how to get pneumonia

AI Overviews: matched the NHS on everything we checked.

13 November 2026

You develop pneumonia when germs—most commonly bacteria or viruses —enter your lungs and cause the tiny air sacs (alveoli) to swell and fill with fluid or pus. While anyone can get pneumonia, it frequently develops as a secondary complication after another respiratory illness, such as the flu or a cold.1234

Common Ways People Contract Pneumonia

  • Breathing in airborne droplets. Contagious bacteria and viruses spread through the air when an infected person coughs, sneezes, or talks nearby.1
  • Touching contaminated surfaces. You can pick up respiratory germs by touching an object with germs on it and then touching your mouth or nose.1
  • Developing a secondary infection. Having a viral illness like the flu, COVID-19, or RSV weakens your respiratory defenses, making it easier for bacteria to multiply in your lungs.12
  • Inhaling food, liquid, or saliva. Known as aspiration pneumonia, this happens when foreign substances accidentally go down your windpipe instead of your food pipe. This is more common if you have a swallowing problem, brain injury, or impaired gag reflex.12
  • Inhaling environmental fungi. Less commonly, people with weakened immune systems contract fungal pneumonia by breathing in spores found in soil or bird droppings.12

Main Types of Pneumonia by Source

According to medical guidelines from the NHS and the Mayo Clinic, doctors classify pneumonia based on the germ and where it was acquired:

  • Bacterial pneumonia. Often caused by Streptococcus pneumoniae, this type can occur on its own or after a cold or flu. A milder form caused by Mycoplasma pneumoniae is often called "walking pneumonia".
  • Viral pneumonia. Triggered by viruses such as influenza, RSV, or SARS-CoV-2 (COVID-19), this form is usually milder than bacterial pneumonia.
  • Hospital-acquired pneumonia. Caught during a hospital stay for another illness, this type can be more serious because the bacteria may be resistant to standard antibiotics.123

Factors That Increase Your Risk

Certain health conditions and habits make it harder for your lungs to clear out germs:12

  • Age. Infants under age 2 and adults over age 65 face a significantly higher risk.
  • Chronic health conditions. Ongoing lung diseases (like asthma or COPD), heart disease, and diabetes make your lungs more vulnerable.
  • Weakened immune system. People undergoing chemotherapy, taking immunosuppressants, or living with HIV/AIDS have a harder time fighting off lung infections.
  • Smoking and substance use. Smoking damages your lungs' natural defenses against respiratory infections, while excessive alcohol or drug use increases the risk of aspiration.123456

Note: Contrary to common myths, going outside in cold or wet weather does not directly cause pneumonia. Only germs or inhaled substances cause the infection, though cold temperatures can temporarily lower your body's immune response. 1For more details on symptoms and prevention, visit the CDC Pneumonia Overview or consult a healthcare professional if you are experiencing persistent coughing, fever, or difficulty breathing.12

What we checked
Cited the NHS or an accredited sourceYes
Used UK termsYes
Named a UK charityNo
Said to check with a professionalYes

What the NHS says

The NHS page doesn’t give one clear answer to this, so it is checked on its sources and UK terms only.

Where it got this

Six of its twelve sources are American. It cited the NHS two times.

NHS websitePneumonia - NHS
NHS
Mayo ClinicPneumonia - Symptoms and causes - Mayo Clinic
Cleveland ClinicPneumonia: Causes, Symptoms, Diagnosis & Treatment
UC Davis HealthIs pneumonia contagious? Learn the early warning signs and treatments ...
NHS websitePneumonia
NHS
Month by monthFirst asked in November 2026
MonthAI OverviewsAI ModeChatGPT
November 2026–––
About this questionA real Google search, about 3,600 a month in the UK
Where it came from
A real Google search, about 3,600 a month in the UK
Asked since
November 2026
Kind of question
Understanding it · What is this condition
Conditions
Pneumonia
Typed as
A search, in everyday words
Question ID
Q0866.v1