AskMed

Pneumonia: Causes, Symptoms, Treatment and Recovery

Pneumonia is an infection of one or both lungs in which the tiny air sacs fill with fluid or pus, making it harder to breathe and to get oxygen into the blood. It is usually caused by bacteria or viruses, less often by fungi, and typically brings a cough, fever or chills, shortness of breath and chest pain on breathing or coughing. Older people may simply become confused, and babies may grunt or breathe fast. Many people recover at home with rest and, when bacteria are the likely cause, antibiotics, but babies, older adults and people with heart or lung disease are more likely to become seriously ill. This guide covers the causes, the symptoms at different ages, who is at risk, how doctors diagnose pneumonia and judge how severe it is, how it is treated, how long recovery takes, possible complications, the vaccines that prevent it and when to get urgent help. It follows the 2019 ATS/IDSA guideline, CDC and NHS advice, and every figure links to its source.

What is pneumonia?

Pneumonia is an infection of the lungs that inflames the alveoli, the small air sacs where oxygen passes into the blood, and fills them with fluid or pus, as the US National Heart, Lung, and Blood Institute (NHLBI) explains. Because those air sacs stop working normally, pneumonia can lower the oxygen level in the blood, which a fingertip pulse oximeter can measure. The CDC lists bacteria, viruses, fungi and parasites as possible causes and sorts pneumonia by where it starts: community-acquired pneumonia develops outside a hospital, healthcare-acquired pneumonia develops during or after a stay in a healthcare setting, and ventilator-associated pneumonia develops in someone on a breathing machine. Pneumonia is common and can be serious. In the United States, CDC FastStats counts about 1.2 million emergency department visits with pneumonia as the main diagnosis in 2022 and 41,627 deaths in 2024. Worldwide, the World Health Organization reports that pneumonia killed 740,180 children under 5 in 2019, 14% of all deaths in that age group.

1.2 millionUS emergency visits for pneumonia in 2022 (CDC)
41,627US deaths from pneumonia in 2024 (CDC)
740,180children under 5 died of pneumonia worldwide in 2019 (WHO)
14%of all deaths in children under 5 (WHO)

Pneumonia is not one disease with one germ. The same picture of a cough, fever and an inflamed patch of lung on an X-ray can come from many different organisms, and the CDC notes that doctors can't always find out which germ caused it. That is why the setting where it began, the person's age and health, and how unwell they are matter as much as the germ when doctors decide on treatment.

What causes pneumonia?

Pneumonia is caused mainly by bacteria and viruses, and the CDC names the most common of each. Among bacteria, Streptococcus pneumoniae (pneumococcus) and Mycoplasma pneumoniae lead the list, followed by less common ones such as Chlamydia pneumoniae, Haemophilus influenzae, Legionella (the cause of Legionnaires' disease), whooping cough (pertussis) and psittacosis, caught from birds. Among viruses, the CDC lists COVID-19, influenza, respiratory syncytial virus (RSV), human metapneumovirus, human parainfluenza virus and rhinovirus as common causes, and adenovirus, chickenpox and measles as less common ones. The NHS adds that pneumonia can follow another infection, such as flu, RSV or COVID-19. Fungi are a less common cause: the NHLBI names Pneumocystis jirovecii, which mainly affects people with a weakened immune system, and fungi in the soil of the southwestern United States and the Ohio and Mississippi River valleys. The NHS calls fungal pneumonia rare in healthy people in the UK. In children, the WHO names pneumococcus as the most common bacterial cause and RSV as the most common viral cause.

Community-acquired, hospital-acquired and ventilator-associated pneumonia

Where pneumonia starts changes which germs are likely. Community-acquired pneumonia, the kind most people get, is the subject of the 2019 guideline from the American Thoracic Society (ATS) and the Infectious Diseases Society of America (IDSA). Their 2016 guideline defines hospital-acquired pneumonia as pneumonia that was not incubating at admission and appears 48 hours or more after admission, and ventilator-associated pneumonia as pneumonia that appears more than 48 hours after a breathing tube is placed. That guideline's treatment for pneumonia caught in hospital covers germs such as Pseudomonas aeruginosa and, when risk factors are present, methicillin-resistant Staphylococcus aureus (MRSA), which is why it is treated differently from pneumonia caught at home. The NHLBI notes that intensive care, being sedated or unconscious, and not being able to move around much all raise the risk.

Aspiration pneumonia

Aspiration pneumonia happens when food, drink, vomit or saliva goes down into the lungs instead of the stomach, as the NHS describes. The NHLBI lists the people most at risk: those whose swallowing or cough reflex is weakened by a stroke, head injury, dementia or Parkinson's disease, and people who are sedated, heavily intoxicated or unconscious after an overdose. For suspected aspiration pneumonia, the ATS/IDSA guideline suggests not routinely adding extra antibiotic cover for anaerobic bacteria.

What are the symptoms of pneumonia in adults, children and older people?

The symptoms of pneumonia in adults are usually a cough, which may bring up yellow, green or bloody mucus, a high temperature or chills, shortness of breath, and chest pain that is worse when breathing in or coughing, according to the NHS and the CDC. The NHS adds an aching body, tiredness, loss of appetite and wheezing, and says symptoms can start suddenly or over a few days. The CDC also lists nausea, vomiting and diarrhea, and the NHLBI mentions headache and muscle pain. Symptoms change with age. In older adults, the NHLBI says the typical signs may be missing: instead of a fever there may be a lower than normal temperature, and the main change may be weakness or sudden confusion, which the NHS calls common in older people. Babies and young children can also look different, with vomiting, restlessness or unusual tiredness, and signs of hard breathing. Because these symptoms overlap with colds, flu and bronchitis, a doctor's examination is needed to tell them apart.

Symptoms in babies and children

The NHLBI lists the breathing signs to watch for in babies: rapid breathing, grunting, the skin between the ribs pulling in with each breath, the nostrils widening, and a bluish tone to the skin and lips. The WHO uses fast breathing or lower chest wall indrawing to recognize pneumonia in children under 5 with a cough or difficulty breathing, notes that wheezing is more common when a virus is the cause, and warns that very sick infants may be unable to feed or drink, become unconscious, feel cold or have convulsions. The NHS adds that a baby who cannot be woken or feels floppy needs emergency care.

Symptoms in older people

In older adults, pneumonia can show up first as new confusion, weakness or loss of appetite, sometimes with a lower than normal temperature instead of a fever, as the NHLBI and the NHS describe. Family and carers are often the first to notice the change. The NHS treats sudden confusion, such as not knowing where you are, as an emergency sign, so a sudden change in how someone thinks or behaves alongside chest symptoms needs prompt medical help.

Who is at higher risk of pneumonia, and how can it be prevented?

People at higher risk of pneumonia are the very young, the old, and anyone whose lungs or immune system are weakened, and the CDC sets out these groups. By age, risk is highest in adults 65 and older, rising as age increases, and in children younger than 5, highest in the youngest. By health, the CDC lists chronic heart, lung and liver disease and diabetes, and says a weakened immune system, from many conditions and medicines, carries the greatest risk. The NHLBI adds asthma, COPD, bronchiectasis, cystic fibrosis, heart failure, kidney disease, sickle cell disease, malnutrition, HIV, pregnancy, chemotherapy, organ or bone marrow transplants and long-term steroid use. Behaviors matter too: smoking, which reduces the lungs' ability to clear mucus, drinking too much alcohol, and being around people who are sick. The NHLBI also names crowded places such as nursing homes, shelters, prisons and military barracks. Pneumonia can happen any time of year, but the CDC notes respiratory germs spread most in fall and winter.

Vaccines that help prevent pneumonia

The CDC names vaccines against several germs that cause pneumonia: pneumococcus, Haemophilus influenzae type b (Hib) and whooping cough among bacteria, and influenza, COVID-19, RSV, measles and chickenpox among viruses, plus an RSV preventive antibody product. For pneumococcal vaccine specifically, the CDC recommends it for all children younger than 5, children aged 5 through 18 with certain risk conditions, all adults 50 or older, and adults aged 19 through 49 with certain risk conditions. Your doctor or pharmacist can say which vaccines and timing fit you. The WHO calls immunization against Hib, pneumococcus, measles and whooping cough the most effective way to prevent pneumonia in children, and adds exclusive breastfeeding for the first 6 months and cleaner indoor air.

How is pneumonia diagnosed, and how is its severity judged?

Pneumonia is diagnosed from the symptoms and a physical examination, and in hospital it is confirmed with a chest X-ray; the 2019 ATS/IDSA guideline defines community-acquired pneumonia as symptoms and signs of pneumonia with confirmation on chest imaging, because the examination alone is unreliable. A GP or other clinician will ask about the symptoms, listen to the chest, and check temperature, heart rate, breathing rate and blood pressure, as Asthma + Lung UK describes. A pulse oximeter clipped to a finger or earlobe measures the oxygen level in the blood without a needle. Asthma + Lung UK says a chest X-ray is usually needed only when pneumonia is diagnosed in hospital, so many people treated at home never have one. In hospital, the NHS lists blood tests and a chest X-ray, and the NHLBI describes a full blood count to check the body's response to infection, an arterial blood gas for very sick patients, and sputum and blood cultures to identify the germ.

Which tests the guideline recommends, and when

More tests are not always better. The ATS/IDSA guideline recommends against routine sputum and blood cultures in people treated at home, and in hospital it reserves them for severe pneumonia, people being treated for MRSA or Pseudomonas, people who have had those germs before, and people who were in hospital and given antibiotics into a vein in the last 90 days. It recommends testing for flu whenever flu is circulating, suggests urine antigen tests for pneumococcus and Legionella mainly in severe pneumonia, and advises starting antibiotics in clinically suspected, X-ray-confirmed pneumonia whatever the result of procalcitonin, a blood marker sometimes used to tell bacterial from viral infection. When pneumonia is not improving, the NHLBI says a chest CT scan can show abscesses or fluid around the lung, bronchoscopy can collect samples from the airways, and fluid around the lung can be drained with a needle and tested.

How severe is it? CURB-65 and other scores

Doctors decide how severe pneumonia is by combining clinical judgement with a validated score, and CURB-65 is the best known. CURB-65, derived by Lim and colleagues in Thorax in 2003 from 1,068 adults admitted with community-acquired pneumonia in the UK, New Zealand and the Netherlands, gives one point each for confusion, a blood urea above 7 mmol/L, a breathing rate of 30 or more a minute, low blood pressure (systolic below 90 or diastolic 60 or below) and age 65 or over. The total runs from 0 to 5, and the risk of dying within 30 days rises steeply with it: 0.7% at a score of 0, 3.2% at 1, 3% at 2, 17% at 3, 41.5% at 4 and 57% at 5 in the study. Lim and colleagues proposed the score as a way to sort patients into different management groups. You can work out a score with the CURB-65 calculator, and the CURB-65 score interpretation guide explains each result.

30-day mortality by CURB-65 score among 1,068 adults admitted to hospital with community-acquired pneumonia, from the abstract of Lim et al., Thorax 2003. Bars are scaled to the highest value.

Other ways of judging severity

CURB-65 is not the only tool. The ATS/IDSA guideline prefers the Pneumonia Severity Index (PSI), a longer score, over CURB-65 for deciding who needs hospital admission, always alongside clinical judgement; the CURB-65 vs PSI comparison sets the two side by side. Once someone is in hospital, the guideline calls pneumonia severe when there is septic shock needing medicines to support blood pressure, or breathing failure needing a ventilator, or at least three minor criteria such as a breathing rate of 30 or more, confusion, low blood pressure needing large amounts of fluid, a low body temperature, or infiltrates in more than one lobe of the lung.

Scores leave room for questions. A CURB-65 of 1 in a frail 85-year-old who lives alone is not the same as a 1 in a fit 66-year-old, and the ATS/IDSA guideline prefers a different score. AskMed is a medical question app made for doctors, nurses, pharmacists, medical students and researchers that searches clinical guidelines, journals and drug labels before it answers, and puts a link to the source after every claim. Ask it what a CURB-65 score of 2 means for where someone should be treated, and how the ATS/IDSA guideline's preference for the PSI changes that, and you get the guideline wording with each point linked so you can check it yourself.

Ask AskMed what a pneumonia severity score means:

How is pneumonia treated?

Pneumonia is treated according to its likely cause and severity, and for bacterial pneumonia the main treatment is antibiotics, the NHS explains. For adults with community-acquired pneumonia treated at home, the 2019 ATS/IDSA guideline names antibiotic families: an aminopenicillin, a tetracycline-class antibiotic or, where local resistance is low, a macrolide for otherwise healthy adults; and for people with heart, lung, liver or kidney disease, diabetes, alcohol use disorder, cancer or no working spleen, a beta-lactam combined with a macrolide or a tetracycline, or a respiratory fluoroquinolone on its own. In hospital it uses similar combinations and adds cover for MRSA or Pseudomonas only when risk factors are present. It ties the length of treatment to clinical stability, meaning normal vital signs, being able to eat and normal thinking, which most reach within 48 to 72 hours. Antibiotics do not treat viruses, and the NHLBI lists antiviral or antifungal medicines when those germs are the cause. The exact medicine and duration are for the treating clinician to set.

How long does recovery from pneumonia take, and what are the complications?

Recovery from pneumonia usually takes 2 to 4 weeks for most symptoms, according to the NHS, but full recovery can take up to 6 months, and tiredness is often the last thing to go. Asthma + Lung UK gives a typical timeline after starting treatment: the fever should settle within 1 week; by 4 weeks the chest should feel better with less phlegm; by 6 weeks the cough should ease and breathing should be easier; by 3 months most symptoms should be gone, though tiredness may remain; and by 6 months most people have fully recovered. The NHLBI says some people return to their normal routine in 1 to 2 weeks, while others take a month or longer, and that most people feel tired for about a month. Asthma + Lung UK advises building activity up gradually and seeing a GP if symptoms are still affecting you after 6 weeks, when a chest X-ray may be arranged.

  1. 1 week: the high temperature should have gone.
  2. 4 weeks: the chest feels better and there is less phlegm.
  3. 6 weeks: less coughing and easier breathing.
  4. 3 months: most symptoms gone, but tiredness may remain.
  5. 6 months: most people have fully recovered.
A typical recovery timeline after starting treatment for pneumonia, from Asthma + Lung UK (reviewed February 2026).

Complications of pneumonia

Most people recover without lasting problems, but complications are more likely in young children, older adults and people with other serious conditions, and when pneumonia goes untreated, the NHLBI says. It lists sepsis, when the infection spreads into the blood and triggers inflammation that damages organs; acute respiratory distress syndrome and respiratory failure, when the lungs cannot supply enough oxygen; damage to the kidneys, liver or heart; a lung abscess or necrotizing pneumonia, where lung tissue dies and forms pockets of pus that may need draining or surgery; and inflammation of the lung lining with fluid or pus around the lung. Over the longer term, the NHLBI notes depression and worsening heart and blood vessel disease. The qSOFA calculator shows one bedside screen clinicians use for sepsis.

A follow-up chest X-ray is not needed for everyone: the ATS/IDSA guideline suggests not routinely repeating imaging in adults whose symptoms have settled within 5 to 7 days, noting that lung cancer was found in 1.3% to 4% of recovering patients in the studies it reviewed, most of them current or former smokers.

Recovery is where many questions come up weeks later, when the cough is still there or the tiredness won't lift. Ask AskMed whether a cough 5 weeks after pneumonia is expected and when guidelines advise a repeat chest X-ray, and it lays out the recovery timeline, the follow-up imaging advice and the warning signs that need a doctor, each linked to the guideline or patient source it comes from.

Check what is normal during pneumonia recovery with AskMed:

When should you seek urgent care for pneumonia?

You should seek urgent care for pneumonia when breathing becomes a struggle or the brain or circulation are affected, and the NHS draws a clear line between urgent and emergency signs. Call an emergency number or go to the emergency department if you or someone else is struggling to breathe, choking, gasping or unable to speak; has pale, blue or blotchy skin, lips or tongue; is coughing up blood; or suddenly becomes confused, for example not knowing where they are. A baby who cannot be woken or feels floppy also needs emergency care. The NHS advises not driving yourself; ask someone to take you or call an ambulance, and bring your medicines. See a doctor urgently, the same day, if you have a cough with yellow or green phlegm, chest pain that comes and goes or happens when breathing or coughing, or feel short of breath. The NHLBI adds getting help quickly if symptoms suddenly get worse or you have trouble breathing or talking.

If you're being treated at home, contact your doctor if you are not improving after 2 to 3 days of antibiotics, if symptoms get worse after starting to improve, or if new symptoms appear. Take extra care with babies, people over 65, and anyone with heart or lung disease or a weakened immune system, since the NHS says they are more likely to become seriously ill and need hospital treatment.

Frequently asked questions

Is pneumonia contagious?

The germs that cause pneumonia, such as flu, RSV, COVID-19 and pneumococcus, can spread from person to person through coughs and sneezes, although not everyone who catches them develops pneumonia. The CDC advises handwashing, covering coughs and staying away from others while sick. Aspiration pneumonia is not caught from other people.

What is the difference between bacterial and viral pneumonia?

Bacterial pneumonia, most often caused by pneumococcus or Mycoplasma, is treated with antibiotics. Viral pneumonia, caused by viruses such as flu, RSV, COVID-19 or rhinovirus, does not respond to antibiotics; the NHLBI lists antiviral medicines among the treatments. The two can look alike, and the CDC notes that the germ is not always found.

What is walking pneumonia?

Walking pneumonia is an informal name for pneumonia caused by Mycoplasma pneumoniae. The CDC says people with it can seem better than expected for someone with a lung infection and often keep going about their day, which is how the name arose. It still needs a doctor's assessment.

Can you have pneumonia without a fever?

Yes. The NHLBI says older adults may have a lower than normal temperature instead of a fever, and may show only weakness or sudden confusion. Anyone with a worsening cough, breathlessness or new confusion should be checked even without a fever.

How long does pneumonia last?

The NHS says most people improve within 2 to 4 weeks. Asthma + Lung UK expects the fever to settle within a week, the cough to ease by about 6 weeks, and most people to feel fully recovered by 6 months, with tiredness often the last symptom to go.

Do you always need a chest X-ray for pneumonia?

No. Many people are diagnosed and treated at home from their symptoms and a chest examination; Asthma + Lung UK says an X-ray is usually needed only when pneumonia is diagnosed in hospital. Guidelines also do not recommend a routine repeat X-ray once symptoms have settled.

Sources

  1. Metlay JP, Waterer GW, Long AC, et al. Diagnosis and Treatment of Adults with Community-acquired Pneumonia. An Official Clinical Practice Guideline of the American Thoracic Society and Infectious Diseases Society of America. Am J Respir Crit Care Med. 2019;200(7):e45-e67.
  2. Kalil AC, Metersky ML, Klompas M, et al. Management of Adults With Hospital-acquired and Ventilator-associated Pneumonia: 2016 Clinical Practice Guidelines by the Infectious Diseases Society of America and the American Thoracic Society. Clin Infect Dis. 2016;63(5):e61-e111.
  3. Lim WS, van der Eerden MM, Laing R, et al. Defining community acquired pneumonia severity on presentation to hospital: an international derivation and validation study. Thorax. 2003;58(5):377-382.
  4. Centers for Disease Control and Prevention. About Pneumonia, Pneumonia Risk Factors and Preventing Pneumonia. 25 February 2026.
  5. Centers for Disease Control and Prevention. Pneumococcal Vaccination. 25 February 2026.
  6. Centers for Disease Control and Prevention. About Mycoplasma pneumoniae Infection. 18 May 2026.
  7. National Center for Health Statistics. FastStats: Pneumonia. Last reviewed 1 September 2026.
  8. NHS. Pneumonia. Last reviewed 17 July 2026.
  9. National Heart, Lung, and Blood Institute. Pneumonia: symptoms, causes and risk factors, diagnosis and recovery.
  10. World Health Organization. Pneumonia in children. Fact sheet, 11 November 2022.
  11. Asthma + Lung UK. Pneumonia: diagnosis and treatment and recovery. Last reviewed 10 February 2026.

Cited medical answers
you can trust.

AskMed on iPhone, iPad, Android and the web.