Pneumonia spreads through the air and through contact with contaminated surfaces

Pneumonia is not a single infection—it is inflammation in your lungs caused by bacteria, viruses, or fungi. The way you catch it depends on what organism causes it, but most pneumonia spreads the same way cold and flu do: through respiratory droplets when an infected person coughs, sneezes, or talks near you. You breathe in those droplets, and the organism settles in your lungs instead of staying in your upper airways.

Some pneumonia-causing organisms also live on surfaces. If you touch a contaminated doorknob or phone and then touch your face, you can introduce the organism into your respiratory system. This is less common than airborne spread, but it happens. A few types of pneumonia—like the kind caused by Legionella—spread through water droplets in air conditioning systems or hot tubs, not person-to-person contact.

Not everyone exposed to a pneumonia-causing organism will get sick. Whether you develop pneumonia depends on which organism you encounter, how much of it you inhale, and whether your immune system can fight it off. This is why some people in the same household stay healthy while others get pneumonia.

Key Takeaways

  • Most pneumonia spreads through respiratory droplets when an infected person coughs or sneezes, similar to how cold and flu spread.
  • Bacterial pneumonia, viral pneumonia, and fungal pneumonia have different transmission routes and affect different groups of people.
  • Your age, smoking status, chronic illness, and immune system strength all affect whether you will develop pneumonia after exposure.
  • Vaccination against pneumococcal bacteria and influenza virus reduces your risk of pneumonia, though it does not eliminate it completely.

Bacterial pneumonia and who catches it most often

Streptococcus pneumoniae is the most common bacterial cause of pneumonia in adults. It spreads through respiratory droplets from an infected person, usually someone who has had a respiratory infection for several days. You are at higher risk if you smoke, drink heavily, have chronic lung disease, or have a weakened immune system from HIV, chemotherapy, or certain medications.

Other bacteria that cause pneumonia include Haemophilus influenzae and Legionella pneumophila. Legionella is unusual because it does not spread person-to-person; instead, you inhale it from contaminated water systems in large buildings. Outbreaks have occurred in hospitals, hotels, and cruise ships with faulty air conditioning or plumbing.

Bacterial pneumonia tends to develop suddenly—you feel fine one day and very sick the next. This is different from viral pneumonia, which usually develops more slowly after an upper respiratory infection.

Viral pneumonia and seasonal patterns

Influenza virus and respiratory syncytial virus (RSV) are the most common viral causes of pneumonia. Both spread through respiratory droplets, just like the flu and cold do. Influenza pneumonia is most common in winter, while RSV pneumonia peaks in fall and winter in temperate climates. COVID-19 also causes viral pneumonia in some infected people, particularly those over 65 or with underlying health conditions.

Viral pneumonia often follows an upper respiratory infection. You have a cough and congestion for several days, then the infection moves into your lungs. Children under 5 and adults over 65 are at highest risk for severe viral pneumonia, as are people with chronic heart or lung disease.

Viral pneumonia is contagious for as long as you have symptoms, usually one to two weeks. You spread it the same way you spread the flu: through coughs, sneezes, and close contact with others.

Fungal pneumonia and who is vulnerable

Fungal pneumonia is much less common than bacterial or viral pneumonia, and it does not spread person-to-person. Instead, you inhale fungal spores from soil, bird droppings, or contaminated water. Histoplasmosis, coccidioidomycosis, and blastomycosis are the most common fungal pneumonias in North America, and they occur in specific geographic regions.

Fungal pneumonia almost always occurs in people with weakened immune systems: those with HIV/AIDS, those taking immunosuppressive medications after organ transplant, or those on long-term corticosteroids. Healthy people rarely develop fungal pneumonia even if they are exposed to the spores. If you have a normal immune system and develop pneumonia after exposure to soil or bird droppings, it is almost certainly bacterial or viral, not fungal.

Risk factors that make pneumonia more likely

Your risk of developing pneumonia after exposure depends on several factors. Age matters: adults over 65 and children under 5 have weaker immune responses. Smoking damages the lining of your airways and impairs the cells that clear bacteria and viruses from your lungs. Chronic diseases like COPD, asthma, heart disease, and diabetes all increase risk because they compromise your immune system or the structure of your lungs.

Medications that suppress your immune system—including corticosteroids, biologics for rheumatoid arthritis, and chemotherapy—make pneumonia more likely and more severe. Recent surgery or hospitalization increases risk because you may have been exposed to antibiotic-resistant bacteria. Alcohol use disorder damages your immune system and increases aspiration risk (breathing stomach contents into your lungs). HIV and other conditions that severely weaken immunity make pneumonia much more common and harder to treat.

Even healthy people can develop pneumonia, but these factors shift the odds. A 70-year-old smoker with COPD who is exposed to influenza virus is far more likely to develop pneumonia than a 30-year-old nonsmoker with no chronic illness exposed to the same virus.

Vaccination and prevention

Two vaccines reduce your risk of pneumonia: the pneumococcal vaccine and the influenza vaccine. The pneumococcal vaccine protects against Streptococcus pneumoniae, the most common bacterial cause. The influenza vaccine protects against flu virus, which is a leading cause of viral pneumonia. Neither vaccine prevents all pneumonia, but both reduce your risk of developing it and reduce severity if you do get sick.

Vaccination recommendations vary by age and health status. Adults 65 and older are recommended to receive pneumococcal vaccination. Younger adults with chronic lung disease, heart disease, diabetes, or weakened immunity should also be vaccinated. Everyone 6 months and older should receive an annual influenza vaccine.

Beyond vaccination, reducing your risk means not smoking, limiting alcohol, washing your hands regularly, and staying up-to-date on other preventive care. If you have a chronic illness, keeping it well-controlled also reduces pneumonia risk.

When pneumonia develops after other infections

Pneumonia often follows a cold or flu. You have upper respiratory symptoms for several days—sore throat, runny nose, cough—and then the infection moves into your lungs. This is called secondary pneumonia. It happens because the initial viral infection damages the lining of your airways, making it easier for bacteria to invade, or because your immune system is temporarily weakened from fighting the first infection.

Secondary pneumonia is why people with flu are at risk even if they recover from the initial illness. The flu itself may not cause pneumonia, but it opens the door for bacterial pneumonia to develop days later. This is also why people with untreated or poorly controlled asthma and COPD are at high risk: their airways are already inflamed, and any respiratory infection can tip into pneumonia.

Frequently Asked Questions

Can you catch pneumonia from someone who has it?

Yes, if the pneumonia is caused by bacteria or virus that spreads through respiratory droplets. Bacterial and viral pneumonia are contagious through coughs and sneezes. Fungal pneumonia does not spread person-to-person; you catch it from the environment. If someone has pneumonia and you are exposed to their cough, your risk of infection depends on your immune system and vaccination status, not on whether you were exposed.

Is pneumonia contagious before symptoms start?

Usually not. Most people are contagious once they develop symptoms—cough, fever, or difficulty breathing—not before. However, some people shed respiratory viruses for a day or two before symptoms appear. If you have been exposed to someone who later developed pneumonia, your risk is highest if you were in close contact during the time they were coughing.

Can you get pneumonia from cold air or wet weather?

No. Cold air and wet weather do not cause pneumonia directly. However, winter weather correlates with pneumonia because people spend more time indoors in close contact, and respiratory viruses like influenza and RSV circulate more in winter. The infection itself comes from a virus or bacteria, not from temperature or humidity.

What if I was exposed to pneumonia but did not get sick?

Your immune system fought off the infection before it established itself in your lungs. This is normal and happens to most people most of the time. Exposure does not equal infection. Your vaccination status, age, overall health, and the amount of organism you inhaled all affect whether exposure leads to illness.

Does getting pneumonia once protect you from getting it again?

Not completely. Pneumonia caused by one strain of bacteria or virus may provide some immunity to that specific strain, but there are many different organisms that cause pneumonia. You can develop pneumonia from a different organism later. Vaccination provides broader protection than natural infection alone.