How pneumonia spreads from person to person
Pneumonia spreads the same way cold and flu do: through droplets in the air when an infected person coughs, sneezes, or talks. When you breathe in those droplets, they can reach your lungs and cause infection. You can also catch pneumonia by touching a contaminated surface—like a doorknob or phone—and then touching your face.
Not everyone who is exposed to pneumonia-causing germs will get sick. Whether you develop pneumonia depends on which germ you encounter, how much of it you inhale, and how well your immune system can fight it off. Some people breathe in the same bacteria or virus as someone else but never develop symptoms, while others get severely ill.
Key Takeaways
- Pneumonia spreads through respiratory droplets when infected people cough or sneeze, or through contact with contaminated surfaces.
- Bacterial pneumonia, viral pneumonia, and fungal pneumonia have different sources and spread in different ways.
- People with weakened immune systems, chronic lung disease, or recent respiratory infections are at higher risk of developing pneumonia.
- Age matters: very young children and adults over 65 are more likely to get pneumonia and experience severe illness.
- Vaccination and basic hygiene—handwashing and covering coughs—reduce your risk of catching pneumonia.
Bacterial pneumonia and how it develops
Bacterial pneumonia is usually caused by Streptococcus pneumoniae, though other bacteria like Haemophilus influenzae and Legionella can also cause it. You catch the bacteria through respiratory droplets, but it does not always lead to pneumonia right away. Often the bacteria colonize your upper airways first—your nose and throat—without making you sick. If your immune system weakens or if you have a recent cold or flu, the bacteria can travel down into your lungs and cause infection.
Bacterial pneumonia tends to come on suddenly and cause high fever, cough with colored sputum (phlegm), and chest pain. It is more common in people who smoke, drink heavily, or have chronic conditions like COPD or heart disease.
Viral pneumonia and respiratory infections
Viral pneumonia is often caused by the same viruses that cause colds and flu—influenza virus, respiratory syncytial virus (RSV), and rhinovirus are common culprits. You catch these viruses through respiratory droplets, just like you would catch a cold. Most people who get infected with these viruses develop only mild upper respiratory symptoms, but in some people the infection spreads to the lungs and causes pneumonia.
Viral pneumonia typically develops gradually over several days. You might start with a runny nose and sore throat, then develop a dry cough and shortness of breath as the infection moves into your lungs. Viral pneumonia is usually milder than bacterial pneumonia, though it can still be serious in older adults or people with weakened immune systems.
Who is at higher risk of catching pneumonia
Age is one of the strongest risk factors. Children under 5 and adults over 65 are more likely to develop pneumonia after exposure to the germs that cause it. Your immune system is still developing in early childhood and declines with age, making it harder to fight off infection.
Certain medical conditions also increase your risk. If you have chronic obstructive pulmonary disease (COPD), asthma, heart disease, or diabetes, your lungs and immune system are less able to defend against pneumonia-causing germs. People living with HIV or taking medications that suppress the immune system face even higher risk. Recent hospitalization, surgery, or a stay in a nursing home also puts you at greater risk because you may be exposed to more aggressive bacteria.
Lifestyle factors matter too. Smoking damages the lining of your airways and makes it easier for bacteria to take hold. Heavy alcohol use weakens your immune response. People who are bedridden or have difficulty swallowing are at risk because they may accidentally inhale food or saliva into their lungs—a process called aspiration.
Fungal pneumonia and environmental exposure
Fungal pneumonia is less common than bacterial or viral pneumonia and usually requires exposure to specific environmental sources. Histoplasma, found in soil and bird droppings, causes pneumonia in people who work with soil or spend time in caves. Coccidioides, found in soil in the southwestern United States, spreads when dust containing fungal spores is inhaled. Cryptococcus is found in soil and bird droppings worldwide.
Most people who inhale fungal spores do not develop pneumonia. Fungal pneumonia is most common in people with weakened immune systems, particularly those with advanced HIV or those taking long-term corticosteroids. If you work in an occupation with high fungal exposure—farming, construction, or archaeology—your risk is higher than the general population.
What happens in your lungs when pneumonia develops
When pneumonia-causing germs reach your lungs, they settle in the tiny air sacs called alveoli. Your immune system responds by sending white blood cells to fight the infection, which causes inflammation. The alveoli fill with fluid or pus, making it harder for oxygen to pass into your bloodstream. This is why pneumonia causes cough, fever, and shortness of breath—your body is working hard to clear the infection and get oxygen to your cells.
The severity depends on how many alveoli are affected and how strong your immune response is. In mild pneumonia, only a small portion of one lung is involved. In severe pneumonia, both lungs may be affected, and oxygen levels in your blood can drop dangerously low.
Reducing your risk of pneumonia
Vaccination is the most effective way to prevent pneumonia. The pneumococcal vaccine protects against the most common bacterial cause of pneumonia and is recommended for all adults over 65 and for younger people with certain risk factors. The flu vaccine reduces your risk of viral pneumonia by preventing influenza infection. Ask your doctor which vaccines are right for you based on your age and health.
Basic hygiene practices also matter. Wash your hands regularly with soap and water, especially after being around sick people or before eating. Cover your cough or sneeze with your elbow or a tissue, and throw tissues away immediately. If you smoke, quitting reduces your risk significantly. If you have a chronic condition like COPD or diabetes, keeping it well-controlled strengthens your immune system's ability to fight off infection.
Frequently Asked Questions
Can you catch pneumonia from someone who has it?
Yes, but not everyone exposed will develop pneumonia. If someone with pneumonia coughs or sneezes near you, you may inhale the germs. Whether you get sick depends on which germ it is, how much you inhale, and how strong your immune system is. People with bacterial pneumonia are generally contagious for the first few days of illness.
Is pneumonia contagious before symptoms appear?
It depends on the cause. With viral pneumonia, you can spread the virus before you develop pneumonia symptoms—sometimes while you still think you just have a cold. With bacterial pneumonia, you are usually contagious only after symptoms start. If you suspect you have pneumonia, staying home and seeing a doctor is the safest approach.
Can you get pneumonia from cold air or wet weather?
Cold air and wet weather do not directly cause pneumonia, but they may increase your risk. Cold temperatures can suppress your immune response slightly, and people spend more time indoors in winter, increasing exposure to respiratory viruses. The real cause is always a germ—bacteria, virus, or fungus—not the weather itself.
What should I do if I have been around someone with pneumonia?
Monitor yourself for symptoms like cough, fever, and shortness of breath over the next week or two. Wash your hands frequently and avoid touching your face. If you have a weakened immune system or chronic lung disease, contact your doctor for guidance. Most people exposed to pneumonia do not develop it, especially if they are vaccinated and in good health.
Can you get pneumonia more than once?
Yes. Recovering from pneumonia does not give you lifelong immunity. You can catch pneumonia again from a different germ, or even from the same type of germ if your immune system has weakened. This is why vaccination and preventive measures remain important throughout your life.