Chest and lung infections
Hospital-acquired pneumonia: causes, diagnosis and treatment in the UK
Hospital-acquired pneumonia is a chest infection that develops after a person has been in hospital for a couple of days, or shortly after leaving. It is treated differently from pneumonia caught in the community because the bacteria involved may be harder to treat. This guide explains how it is defined, how it is investigated, how antibiotics are chosen and what recovery involves.
Last checked: 2026-10-10
Key facts
At a glance.
-
How NICE defines it
NICE describes hospital-acquired pneumonia as pneumonia that develops 48 hours or more after hospital admission and was not incubating at admission, or pneumonia in someone discharged from hospital within the last 7 to 10 days.
-
Sample of phlegm
NICE says that for people with hospital-acquired pneumonia a sample, for example sputum, should be sent for microbiological testing, and the antibiotic may be changed when the result returns.
-
Treat promptly
NICE advises starting antibiotics as soon as possible after diagnosis, and within 4 hours of clinical suspicion if symptoms start in hospital.
-
Review at 5 days
NICE recommends reviewing treatment after a total of 5 days of antibiotics and considering stopping them if the person is clinically stable.
-
Oral where possible
NICE says oral antibiotics are given first line if the person can take them and the illness does not require intravenous treatment, with intravenous treatment reviewed by 48 hours.
-
Most pneumonia starts outside hospital
NICE notes that most pneumonia develops in the community, so hospital-acquired pneumonia is a smaller but important group.
What hospital-acquired pneumonia is
Pneumonia is inflammation of the lungs, usually caused by an infection. The NHS says it is usually caused by a bacterial or viral infection and that babies, older people, and people with heart or lung conditions are at risk of getting seriously ill. NICE explains that pneumonia is an infection of the tiny air sacs in the lungs, which makes it hard for the lungs to work properly.
Most pneumonia is caught outside hospital, which NICE calls community-acquired pneumonia. The group discussed here begins after admission. In the NICE guideline, hospital-acquired pneumonia means pneumonia that develops 48 hours or more after admission and was not already incubating when the person came in, and it also includes people who present with pneumonia but have been discharged within the previous 7 to 10 days. The UK guideline uses the term hospital-acquired pneumonia, and this page covers the same group under the older label "healthcare-associated pneumonia".
NICE notes that, for the purposes of its guideline, ventilator-associated pneumonia, which occurs in someone on mechanical ventilation, is excluded from the definition.
Symptoms and warning signs
NICE's patient information says the main symptom of pneumonia is usually a new cough along with at least one other symptom, such as bringing up yellow or green phlegm, fever, breathlessness or difficulty breathing, chest discomfort or pain, or confusion. The NHS adds a high temperature, aching body, tiredness, loss of appetite, wheezing and, in older people, confusion, which it describes as common.
In hospital, where a person may already be unwell with something else, a new chest infection can be easy to miss. A change in breathing, a rising temperature, new confusion or a need for more oxygen are the sort of signs that nursing and medical staff look for. If you are an inpatient, or you or a relative are recently home from hospital, tell staff straight away about a new cough, breathlessness or chest pain.
-
A new cough, with or without yellow or green phlegm.
-
Fever or feeling hot, cold or shivery.
-
Breathlessness or fast breathing.
-
Chest pain, especially when breathing in or coughing.
-
New confusion or unusual drowsiness, particularly in older people.
If you are at home after a hospital stay
The NHS says to ask for an urgent GP appointment or get help from NHS 111 if you have a cough, are coughing up yellow or green mucus, have chest pain that comes and goes or happens when breathing or coughing, or feel short of breath. It says to call 999 or go to A&E if you are struggling to breathe, have pale, blue or blotchy skin, lips or tongue, are coughing up blood, or suddenly feel confused. This matters after a hospital stay because NICE's definition includes pneumonia that presents within 7 to 10 days of discharge.
Why it happens in hospital
The NHS says pneumonia is usually caused by a bacterial or viral infection and can also follow something getting into the lungs, such as water or food, which is called aspiration pneumonia. In hospital people are often already unwell with another illness or recovering from an operation, and reduced movement, a weak cough or swallowing difficulties can make it harder to clear the lungs. The bacteria involved may also differ from those that cause pneumonia in the community.
NICE says antibiotic choice should take account of how many days into the admission symptoms began and local antimicrobial resistance data, which reflects that ward-based organisms can be harder to treat. The guideline also asks teams to take a sample so the specific bacteria can be identified.
How it is diagnosed
NICE patient information says healthcare practitioners usually diagnose pneumonia by asking about symptoms and examining the chest, and that if you are in hospital a chest X-ray is usually carried out to confirm the diagnosis. Blood tests are also used. For people with hospital-acquired pneumonia, NICE recommends sending a sample such as sputum, a nasopharyngeal swab or a tracheal aspirate for microbiological testing.
NICE uses scoring tools to judge severity in hospital. The CURB65 score gives one point each for confusion, raised blood urea, a raised breathing rate, low blood pressure and age 65 or over, and helps estimate the risk of death and the level of care needed.
Treatment
NICE recommends offering antibiotics to people with hospital-acquired pneumonia, starting as soon as possible after the diagnosis is established and within 4 hours of clinical suspicion if symptoms start in hospital. The choice of antibiotic depends on how severe the illness is, whether the person is at higher risk of resistant bacteria, allergies and local resistance patterns. For non-severe illness and no higher risk of resistance, NICE lists oral co-amoxiclav as first line for 5 days then review, with alternatives such as doxycycline for people with penicillin allergy.
Antibiotics may be given into a vein at first. NICE says that if intravenous antibiotics are given they should be reviewed by 48 hours and, if possible, switched to oral antibiotics to complete the course. It recommends reviewing treatment after a total of 5 days and considering stopping if the person is clinically stable. The NHS says that in hospital people are usually given antibiotics and sometimes steroids, may be given oxygen, and may have a chest X-ray and blood tests.
NICE patient information explains that for people admitted with community-acquired pneumonia an extra corticosteroid or high-flow nasal oxygen may be offered if needed. Those options are described for that group, and the treating team will decide what applies to a particular person with a hospital-acquired infection. Taking antibiotics can cause side effects such as diarrhoea and feeling sick, and NICE says healthcare practitioners should explain this.
Recovery and prevention
The NHS says that most people with pneumonia get better in 2 to 4 weeks depending on symptoms, although tiredness can linger. It advises resting, drinking plenty of fluids, taking paracetamol or ibuprofen if you have been told you can, not smoking, and finishing any antibiotics you are given at home.
NICE does not recommend routine follow-up chest X-rays for people discharged after pneumonia, but advises considering one at 6 weeks for people with risk factors for lung cancer or other underlying respiratory disease, such as smoking or being over 50, or with persisting or worsening symptoms or unexplained weight loss.
Prevention in hospital relies on good hand hygiene, early mobilisation after surgery, careful swallowing assessment and clean equipment. Vaccination against pneumococcus, flu, RSV and COVID-19 is recommended for eligible groups, according to the NHS, and stopping smoking reduces the chance of getting pneumonia.
NHS and private care in general terms
Hospital-acquired pneumonia is managed by the team already looking after the patient, whether in an NHS or independent hospital, and it often lengthens the stay. The principles of testing and antibiotic choice follow the same national guidance, and local microbiology teams advise on resistant organisms.
Frequently asked
Questions people ask.
Quick, plain-English answers to the questions we hear most.
-
How is hospital-acquired pneumonia different from ordinary pneumonia?
It starts 48 hours or more after admission, or soon after discharge. NICE says the treatment choices take account of resistance data and that a sputum sample should be tested.
-
Does it only happen on a hospital ward?
NICE's definition also includes pneumonia in people who present to hospital but have been discharged within the last 7 to 10 days.
-
Why do I need a sample of phlegm?
NICE says a sample is sent to identify the bacteria causing the infection, and your antibiotic may be changed when the result comes back.
-
How long will I take antibiotics?
NICE recommends reviewing after a total of 5 days of antibiotics and considering stopping if you are clinically stable. Some people need longer.
-
Why might I get antibiotics through a drip?
If you are very unwell or cannot take tablets, antibiotics may start in a vein. NICE says to review by 48 hours and switch to oral if possible.
-
Will I need another chest X-ray?
NICE does not recommend routine follow-up X-rays, but says to consider one at 6 weeks for people who smoke, are over 50 or have persisting symptoms.
-
How long does recovery take?
The NHS says most people get better in 2 to 4 weeks depending on their symptoms, though recovery can take longer for older or frailer people.
-
Can it be prevented?
Not always. Vaccination, stopping smoking and good hospital practice such as mobilising early all help, according to the NHS and NICE.
-
When should I call 999?
The NHS says to call 999 or go to A&E if you are struggling to breathe, have blue or blotchy skin or lips, are coughing up blood or suddenly feel confused.
Where this comes from
Sources and checking.
This guide is for information, not medical advice.
Your GP or consultant knows your history and can tell you which parts apply to you. If your symptoms are severe, rapidly worsening, or come with red-flag features, seek urgent medical care. Figures and availability change, so treat them as a guide and confirm with the provider.
Published 2026-10-10, next review 2027-10-10.
-
NICE: Pneumonia: diagnosis and management (NG250), recommendations, https://www.nice.org.uk/guidance/ng250/chapter/Recommendations , retrieved October 2026
-
NICE: Pneumonia: diagnosis and management (NG250), information for the public, https://www.nice.org.uk/guidance/ng250/informationforpublic , retrieved October 2026
-
NHS: Pneumonia, https://www.nhs.uk/conditions/pneumonia/ , retrieved October 2026
Related guides