Wednesday, 2 December 2026Plain-language health research · Every claim sourced

Is Pneumonia Contagious? How It Spreads, Sputum Signs and the Pneumonia Vaccine

The germs behind most pneumonia can spread from person to person, but some types, such as Legionnaires' disease and aspiration pneumonia, cannot. Here is what CDC, NHS and Australian guidance say about spread, staying home, sputum and vaccines.

1 in 20: Pneumococcal pneumonia kills up to 1 in 20 adults who get it, according to the CDC

Is pneumonia contagious? Pneumonia itself is a lung infection, and whether it can spread depends on the germ causing it: the viruses and bacteria behind most cases (such as flu, RSV, COVID-19, pneumococcus and Mycoplasma) can pass from person to person in droplets and secretions, but not everyone who catches them develops pneumonia. Some types are not contagious at all, including Legionnaires' disease, pneumonia from inhaling food or liquid (aspiration pneumonia) and most fungal pneumonia.

This guide draws on current advice from the CDC, the NHS and Healthdirect Australia, plus the latest US, UK and Australian vaccine schedules and research on sputum colour.

Why the answer depends on the cause

The CDC describes pneumonia as "an infection of the lungs" that many germs can cause, including bacteria, viruses, fungi and parasites. Bacteria and viruses are the common causes; fungi and parasites are less common. Healthdirect notes that "about half of pneumonia cases are caused by a virus", and that pneumonia often follows a cold or flu that got worse rather than better.

So the real question is whether the germ is contagious. You can catch the virus or bacterium from someone with pneumonia but get only a mild illness or nothing at all. The CDC also notes that clinicians cannot always identify which germ caused a case, which is why hygiene advice applies to everyone with pneumonia.

Which types of pneumonia spread, and how

The table summarises the main causes, using the CDC's pages on each germ and its hospital isolation precautions guidance.

CauseSpreads between people?How it spreads or starts
Viruses (flu, RSV, COVID-19, rhinovirus, human metapneumovirus, parainfluenza)Yes, the virus spreadsRespiratory droplets and secretions; the virus may cause only a mild illness in the person who catches it
Pneumococcus (Streptococcus pneumoniae)Yes, the bacteria spreadDirect contact with saliva or mucus; many people carry it in the nose or throat without being ill
Mycoplasma pneumoniae ("walking pneumonia")YesDroplets from coughs and sneezes, mainly during prolonged close contact; incubation usually 1 to 4 weeks
Legionella (Legionnaires' disease)Generally noBreathing in water mist containing Legionella
Aspiration pneumoniaNoFood, drink or other material getting into the lungs
Fungal pneumoniaNo (handled with standard precautions)More common in people whose immune systems are not working well

Pneumococcal pneumonia

The CDC says people spread it "through direct contact with respiratory secretions, like saliva or mucus". Many people, especially children, carry it in the nose or throat without symptoms; the CDC calls this carriage and says it "only rarely leads to sickness". Children under 5, adults 50 and over, and people who smoke or have diabetes or chronic heart, lung, kidney or liver disease are at higher risk of serious pneumococcal disease.

Mycoplasma and "walking pneumonia"

The CDC describes Mycoplasma pneumoniae infections as "generally mild and a common cause of 'walking pneumonia'". It spreads through droplets when people cough and sneeze. People who spend a lot of time together are at higher risk, and outbreaks are most common in crowded settings such as schools, college residence halls, hospitals, care homes, prisons and military training sites. In school outbreaks, family members of ill children are the most likely to be affected. The incubation period is usually 1 to 4 weeks, there is no vaccine, and you can catch it more than once.

Legionnaires' disease

Legionella is the clearest example of a pneumonia that does not spread from person to person. The CDC says the most common way to get sick is "breathing in mist containing Legionella", and that "in general, people don't spread Legionnaires' disease and Pontiac fever to other people."

Is it safe to be around someone with pneumonia?

For most healthy people, brief everyday contact with someone who has pneumonia is unlikely to give you pneumonia, though you can still catch the germ behind it. The CDC says, for example, that most people who spend only a short time with someone ill with Mycoplasma do not get infected. The risk is higher for people who are more likely to become seriously ill. The NHS lists babies, older people and people with heart or lung conditions; Healthdirect adds Aboriginal and Torres Strait Islander people.

To limit spread, the NHS and Healthdirect advise covering coughs and sneezes with a tissue (or your inner elbow) and binning it straight away, washing your hands regularly with soap and water, not sharing food, drinks or utensils, and limiting contact with others while you are unwell.

How many days should you stay home with pneumonia?

There is no fixed quarantine period for pneumonia in the community, in the US, UK or Australia. The NHS advises people to "try to stay at home if you have a high temperature or do not feel well enough to do normal activities", and Healthdirect advises limiting your exposure to others while you are unwell.

Recovery takes time. The NHS says most people get better in 2 to 4 weeks, and Healthdirect notes that a cough "may last for several weeks even after you've recovered". A lingering cough on its own does not mean you are still contagious, but if you are unsure whether you can return to work around vulnerable people (for example in healthcare or childcare), ask your doctor or your employer's occupational health team.

Does a patient with pneumonia need to be isolated in hospital?

Not always. Under the CDC's hospital isolation guidance, many pneumonias, including pneumococcal, Legionella, fungal and adult viral pneumonia, need only the standard precautions used for every patient. Some need extra "droplet precautions": Mycoplasma pneumonia for the duration of the illness, and pneumonia caused by group A streptococcus or meningococcus "until 24 hours after initiation of effective therapy". Pneumococcal pneumonia moves to droplet precautions only if it appears to be spreading within a ward.

Early warning signs of pneumonia

The NHS says symptoms "can start suddenly or gradually over a few days". Common signs listed by the CDC, NHS and Healthdirect include:

  • a cough, which may be dry or bring up thick mucus (sputum)
  • a high temperature (38°C / 100.4°F or above) or chills
  • shortness of breath
  • chest pain that is worse when you breathe or cough
  • feeling very tired, and sometimes nausea, vomiting or diarrhoea
  • confusion, which is common in older people and can be the main sign

What sputum colour tells you

The NHS lists coughing up yellow or green mucus (phlegm) as a reason to get an urgent GP appointment or call NHS 111. Coloured sputum is a reason to get checked, but it does not prove a bacterial infection.

In a German primary-care study of 241 adults with acute cough, only 28 (12%) had a proven bacterial infection. Yellow or green sputum picked up 79% of those bacterial infections, but it was also common in people without one: its specificity was only 46%, and just 16% of people with coloured sputum had a bacterial infection. The authors concluded that sputum colour "should not be used to make a decision on whether to prescribe an antibiotic".

The pneumonia vaccine: who should get it and how often

There is no single "pneumonia vaccine". The vaccine usually meant is the pneumococcal vaccine, which protects against pneumococcus only. Flu, COVID-19 and RSV vaccines also reduce the infections that commonly lead to pneumonia; Healthdirect notes that pneumonia is one of the possible complications of influenza. There is no vaccine for Mycoplasma. Recommendations differ by country:

CountryWho is routinely offered it (adults)Vaccine and doses
US (CDC)All adults 50 and over; ages 19 to 49 with risk conditionsPCV20 or PCV21 as a single dose, or PCV15 followed by PPSV23 a year later
UK (NHS/UKHSA)Everyone at 65; children and adults with certain medical conditions; people experiencing homelessness from 1 October 2026A single dose of PCV20 (Prevenar 20) for most adults
Australia (National Immunisation Program)Adults 65 and over; Aboriginal and Torres Strait Islander adults 25 and over; adults 18 and over with specified conditionsA single dose of 21-valent Capvaxive, introduced from 1 July 2026

Babies are vaccinated too: the CDC schedule gives four doses at 2, 4, 6 and 12 to 15 months, while the NHS gives a dose at 16 weeks and a booster at 1 year.

How often is a pneumonia vaccine needed? For most adults, once. The CDC says that after PCV20 or PCV21 an adult's pneumococcal vaccinations are complete, and the NHS says most adults only need one dose for long-term protection. Some people with health conditions need extra doses. In Australia, adults who had an older pneumococcal vaccine are now recommended a dose of Capvaxive at least 12 months after their last dose, according to the Department of Health's June 2026 advice. Some Australian pages still show the pre-July 2026 thresholds (70 and over, or 50 and over for Aboriginal and Torres Strait Islander people).

How well does it work?

The largest trial, CAPiTA, a randomised controlled trial of 84,496 adults aged 65 and over, tested an earlier vaccine (PCV13) against placebo over about four years. Pneumonia caused by the vaccine's strains occurred in 49 people in the vaccine group and 90 in the placebo group, a 45.6% relative reduction. Invasive pneumococcal disease fell by 75% (7 versus 28 cases). The vaccine did not reduce pneumonia from all causes, because most pneumonia is caused by other germs or other strains. That is why the UK guidance says the vaccine "does not protect against all pneumococcal strains". It still matters: the CDC says pneumococcal pneumonia "kills up to 1 in 20 adults who get it."

What is the downside of getting a pneumonia shot?

The main downsides are short-lived side effects. The CDC, NHS and Australian guidance list pain, redness or swelling where the injection was given, tiredness, headache, muscle aches, a mild fever or chills, and loss of appetite. Serious allergic reactions are rare and, according to the NHS, usually happen within minutes. The NHS says you only cannot have it after a serious allergic reaction to a previous dose or an ingredient, and that it can be given in pregnancy or breastfeeding if needed. Protection takes about 3 weeks to build. For a comparison with another adult vaccine, see our guide to shingles vaccine side effects.

When to see a doctor

Get emergency help (999 in the UK, 911 in the US, 000 in Australia) if someone is struggling to breathe or cannot speak, has pale, blue or blotchy skin, lips or tongue, is coughing up blood, or suddenly becomes confused. The NHS advises not driving yourself to A&E.

Contact a doctor urgently if you have a cough with yellow or green mucus, shortness of breath, or chest pain when breathing or coughing. If you are on antibiotics, the NHS says to contact your doctor if you feel no better after 2 to 3 days; Healthdirect says after 5 days.

Antibiotics treat bacterial pneumonia but not viral pneumonia, which usually clears by itself. Healthdirect says most people recover at home. The NHS advises against cough medicine because coughing helps clear the infection, and says stopping smoking lowers your chance of getting pneumonia. See also RSV symptoms in adults and more in infections and vaccines.

How strong is the evidence?

We grade this article moderate (see how we grade evidence). How each germ spreads, which pneumonias need isolation and who should be vaccinated come from current CDC, NHS, UKHSA and Australian government guidance, which agree on the basics but differ on vaccine ages and products. Vaccine effectiveness against pneumonia rests mainly on one very large randomised trial of an older vaccine (PCV13); the PCV20 and PCV21 vaccines now used have not been tested in a pneumonia trial of that size in the sources we reviewed. The sputum colour finding comes from one cross-sectional study of otherwise healthy adults, so it may not apply to people with chronic lung disease.

What we still don't know

Because the cause is often never identified, it is often impossible to say how contagious a particular person was. There is no national surveillance system for Mycoplasma in the US, and the CDC says the true number of people affected is unknown; it observed a large rise in 2024, and increases tend to occur about every 4 years.

Frequently asked questions

How long is pneumonia contagious?

It depends on the germ. Mycoplasma has an incubation period of 1 to 4 weeks and hospitals use droplet precautions for the whole illness, while some bacterial pneumonias need these precautions only until 24 hours after effective antibiotics start. At home, the NHS advises staying in while you have a high temperature or feel too unwell for normal activities.

Is walking pneumonia contagious?

Yes. Walking pneumonia is usually caused by Mycoplasma pneumoniae, which spreads through droplets when people cough and sneeze. Short contact rarely leads to infection, but people who spend a lot of time together, such as families and schoolchildren, are at higher risk.

Is it safe to be around someone with pneumonia?

For most healthy people, brief contact is unlikely to cause pneumonia, though you can catch the underlying germ. Babies, older people and people with heart or lung conditions are more at risk, so the person who is ill should cover coughs, wash their hands and limit close contact while unwell.

How often is a pneumonia vaccine needed?

Most adults need it only once. The CDC says one dose of PCV20 or PCV21 completes an adult's pneumococcal vaccination, and the NHS says most adults need one dose for long-term protection. Some people with health conditions need extra doses.

What is the downside of getting a pneumonia shot?

The usual downsides are short-lived side effects such as a sore, red or swollen arm, tiredness, headache, muscle aches, mild fever or loss of appetite. Severe allergic reactions are rare. The vaccine also does not protect against every type of pneumonia.

Sources

  1. Centers for Disease Control and Prevention. About Pneumonia. Last reviewed 25 February 2026. cdc.gov
  2. Centers for Disease Control and Prevention. Pneumococcal Disease: Causes and How It Spreads. Last reviewed 25 February 2026. cdc.gov
  3. Centers for Disease Control and Prevention. Mycoplasma pneumoniae Infection: Causes and How It Spreads. Updated 18 May 2026. cdc.gov
  4. Centers for Disease Control and Prevention. Clinical Overview of Mycoplasma pneumoniae Infection. Updated 18 May 2026. cdc.gov
  5. Centers for Disease Control and Prevention. How Legionella Spreads. Updated 22 July 2026. cdc.gov
  6. Centers for Disease Control and Prevention / HICPAC. Appendix A: Type and Duration of Precautions Recommended for Selected Infections and Conditions (Guideline for Isolation Precautions, 2007). Last reviewed 11 September 2026. cdc.gov
  7. Centers for Disease Control and Prevention. Pneumococcal Vaccine Recommendations. Updated 25 February 2026. cdc.gov
  8. Centers for Disease Control and Prevention. Pneumococcal Disease in Adults and Vaccines to Prevent It. Updated 25 February 2026. cdc.gov
  9. NHS. Pneumonia. Last reviewed 17 July 2026. nhs.uk
  10. NHS. Pneumococcal vaccine. nhs.uk
  11. UK Health Security Agency. Guide to vaccinations for adults over 65. Published 19 November 2026. gov.uk
  12. Healthdirect Australia. Pneumonia. Last reviewed May 2025. healthdirect.gov.au
  13. Australian Government Department of Health. National Immunisation Program: Pneumococcal schedule for adults, advice for health professionals. June 2026. health.gov.au
  14. Australian Government. New pneumococcal vaccine for adults on the NIP. Media release. health.gov.au
  15. Bonten MJM, Huijts SM, Bolkenbaas M, et al. Polysaccharide conjugate vaccine against pneumococcal pneumonia in adults. N Engl J Med. 2015;372(12):1114-1125. doi:10.1056/NEJMoa1408544 (PubMed 25785969)
  16. Altiner A, Wilm S, Däubener W, Bormann C, Pentzek M, Abholz HH, Scherer M. Sputum colour for diagnosis of a bacterial infection in patients with acute cough. Scand J Prim Health Care. 2009;27(2). doi:10.1080/02813430902759663

This article is for general information and isn't a substitute for advice from your doctor or another qualified health professional. See our medical disclaimer and editorial standards. Spotted an error? Tell us.

The Atlas Digest

The week's health research, explained.

One email each week: the studies that mattered, what they really found, and how much weight they can bear. No sponsored content.

Unsubscribe at any time. See our privacy policy.