Pneumonia spreads through respiratory droplets, not through touch or surfaces
When someone with pneumonia coughs, sneezes, or talks, they release tiny droplets containing bacteria, viruses, or fungi into the air. If you breathe in those droplets, the germs can settle in your lungs and cause infection. This is the primary way pneumonia spreads from person to person. You cannot catch pneumonia from touching a doorknob or shaking hands with someone who has it—the infection happens in your respiratory tract, not on your skin.
The distance these droplets travel is shorter than many people think. Most respiratory droplets fall to the ground within 3 to 6 feet, which is why close contact with a sick person increases your risk. Sitting across a room from someone coughing is lower risk than standing next to them for an extended conversation.
You can also develop pneumonia without catching it from another person. If you aspirate—meaning food, saliva, or stomach contents accidentally enter your lungs instead of going down your esophagus—bacteria already in your mouth can cause pneumonia. This happens more often in people who have difficulty swallowing or who are sedated.
Key Takeaways
- Pneumonia spreads through respiratory droplets when an infected person coughs or sneezes, not through touch or contaminated surfaces.
- Certain conditions—chronic lung disease, smoking, a weakened immune system, or recent surgery—make you more vulnerable to developing pneumonia after exposure.
- Age matters: children under 5 and adults over 65 have higher rates of pneumonia infection and more severe illness.
- You can develop pneumonia without catching it from someone else if bacteria from your mouth enter your lungs during aspiration.
- Vaccination against pneumococcal bacteria and influenza virus reduces your risk of developing pneumonia significantly.
Who is at higher risk of developing pneumonia after exposure
Not everyone who breathes in pneumonia-causing germs will get sick. Your risk depends on your age, overall health, and whether you have conditions that weaken your immune system or damage your lungs.
Children under 5 and adults over 65 develop pneumonia more often than other age groups. People with chronic obstructive pulmonary disease (COPD), asthma, or other long-term lung conditions are at higher risk because their lungs are already damaged or inflamed. Smokers face elevated risk even without a diagnosed lung disease, because smoking damages the cells that clear mucus and germs from your airways.
A weakened immune system—whether from HIV, chemotherapy, organ transplant, or certain medications—makes pneumonia more likely and more severe. People with diabetes, heart disease, or kidney disease also have higher risk. Recent surgery, hospitalization, or bed rest can increase your chances, as can severe malnutrition or alcohol use disorder.
How the infection develops once germs reach your lungs
When pneumonia-causing germs settle in your lungs, your immune system responds by sending white blood cells to fight the infection. This immune response causes inflammation, and the infected air sacs fill with fluid or pus. That fluid is what makes pneumonia dangerous—it prevents oxygen from moving into your bloodstream.
The speed at which this happens varies. Bacterial pneumonia often develops quickly, sometimes within 24 to 48 hours of exposure. Viral pneumonia may develop more slowly, and fungal pneumonia can take weeks to produce noticeable symptoms. Some people develop symptoms within days of exposure; others may not show signs for a week or longer.
Not everyone exposed to pneumonia germs will develop the infection. Your body's ability to clear the germs before they multiply—through coughing, mucus clearance, and immune response—determines whether you get sick. This is why two people exposed to the same sick person may have different outcomes.
Specific germs that cause pneumonia and how they spread
Streptococcus pneumoniae (pneumococcal bacteria) spreads through respiratory droplets and is one of the most common causes of bacterial pneumonia. Influenza virus spreads the same way and can lead to pneumonia as a complication. Respiratory syncytial virus (RSV) spreads through droplets and is a major cause of pneumonia in young children.
Legionella bacteria spread differently—through water droplets in air conditioning systems, hot tubs, and fountains rather than person-to-person contact. Mycoplasma pneumoniae spreads through respiratory droplets and often causes milder pneumonia, sometimes called "walking pneumonia." Fungal pneumonia from organisms like Histoplasma or Coccidioides spreads through spores in soil and dust, not from other people.
The germ that causes your pneumonia matters because different organisms respond to different treatments. Bacterial pneumonia is treated with antibiotics, viral pneumonia usually requires supportive care, and fungal pneumonia requires antifungal medications.
Why some people get pneumonia after a cold or flu
A viral infection like a cold or flu damages the lining of your airways and temporarily weakens your immune response in your lungs. This creates an opening for bacteria to move in and cause a secondary bacterial pneumonia. This is one reason why people recovering from flu sometimes develop pneumonia days or weeks later.
The risk is higher if you have a chronic lung condition, are over 65, or have a weakened immune system. Smoking also increases the chance that a viral infection will lead to bacterial pneumonia. This is why people in high-risk groups are encouraged to get flu and pneumococcal vaccines—preventing the initial viral infection prevents the cascade that can lead to pneumonia.
Steps to reduce your risk of developing pneumonia
Vaccination is the most effective prevention. The pneumococcal vaccine protects against the most common bacterial cause of pneumonia. The influenza vaccine each year reduces your risk of flu and the pneumonia that can follow it. If you are over 65 or have certain chronic conditions, ask your doctor which pneumococcal vaccines are right for you, as recommendations have changed in recent years.
Hand hygiene and respiratory etiquette reduce transmission. Wash your hands regularly, especially before eating and after being around sick people. If you are sick, cover your cough or sneeze with your elbow or a tissue, and throw tissues away immediately. Avoid touching your face, which is a route for germs to enter your respiratory tract.
If you smoke, quitting reduces your pneumonia risk significantly. Avoid close contact with people who are coughing or sneezing, particularly if you are in a high-risk group. Stay up to date on other vaccines, including COVID-19, which can also cause pneumonia. Manage chronic conditions like diabetes, heart disease, or COPD, as these increase your vulnerability.
When to seek medical attention after exposure or symptom onset
If you have been around someone with pneumonia and develop a cough, fever, or shortness of breath, contact your doctor. Do not wait to see if symptoms resolve on their own, especially if you are over 65, have a chronic lung condition, or have a weakened immune system.
Seek immediate care if you have severe shortness of breath, chest pain, confusion, or bluish lips or fingernails. These can indicate that pneumonia is affecting your oxygen levels and requires urgent treatment. If you are already being treated for pneumonia and your symptoms worsen or do not improve after several days, contact your doctor again.
Frequently Asked Questions
Can you catch pneumonia from someone who has it but no symptoms?
Unlikely. People spread pneumonia most easily when they are actively coughing or sneezing. Someone with pneumonia who is not coughing poses minimal transmission risk. However, some people shed germs before symptoms appear, so avoiding close contact with anyone who is visibly ill is the safest approach.
Does wearing a mask prevent you from catching pneumonia?
A properly fitted N95 or KN95 mask reduces your risk of breathing in respiratory droplets. Surgical masks offer less protection to the wearer but help prevent a sick person from spreading germs to others. Masks are most effective when used consistently in close-contact settings with sick people.
Can you get pneumonia from cold air or wet hair?
No. Pneumonia requires infection with bacteria, viruses, or fungi—cold air and wet hair do not cause infection. However, cold stress may temporarily weaken your immune response, making you slightly more vulnerable if you are exposed to pneumonia germs. The infection itself comes from the germs, not the temperature.
If I had pneumonia once, am I immune to it?
Not completely. Immunity depends on which germ caused your pneumonia. If you had pneumococcal pneumonia, you have some protection against that specific strain, but there are many strains of pneumococcal bacteria. You can develop pneumonia from different germs multiple times in your life, which is why vaccination remains important even after past infection.
How long after exposure do pneumonia symptoms usually appear?
Symptoms typically appear within 1 to 3 weeks of exposure, though this varies by the germ involved. Bacterial pneumonia may develop within days, while fungal pneumonia can take weeks. Some people develop symptoms quickly; others may have been exposed weeks earlier and not realize it.