How pneumonia infection happens
Pneumonia spreads when you breathe in droplets that contain the bacteria, virus, or fungus that causes the infection. When someone with pneumonia coughs, sneezes, or talks, they release tiny droplets into the air. If you inhale those droplets, the germs can settle in your lungs and begin to multiply. This is the most common way pneumonia spreads from person to person.
You can also catch pneumonia by touching a contaminated surface and then touching your face, nose, or mouth. Some pneumonia-causing germs survive on doorknobs, railings, or other objects for hours. If you touch your face before washing your hands, you may introduce the germ into your respiratory system.
Less commonly, pneumonia develops when germs already in your mouth or throat are accidentally inhaled into your lungs instead of going down your esophagus. This can happen if you have difficulty swallowing or if you aspirate while sleeping.
Key Takeaways
- Pneumonia spreads mainly through respiratory droplets when an infected person coughs or sneezes, so close contact with someone who has pneumonia increases your risk.
- Touching contaminated surfaces and then your face can transmit pneumonia-causing germs, which is why hand hygiene matters even after exposure has passed.
- People with weakened immune systems, chronic lung disease, or recent respiratory infections are at higher risk of developing pneumonia after exposure.
- Age matters: very young children and adults over 65 catch pneumonia more often and experience more severe illness than middle-aged adults.
- You cannot catch pneumonia from someone who has already recovered, since they are no longer shedding the virus or bacteria.
Who is most likely to develop pneumonia after exposure
Not everyone who is exposed to pneumonia-causing germs will become sick. Your risk depends on your immune system strength and your overall health. People with weakened immune systems—including those with HIV, those taking immunosuppressant medications, or those recovering from chemotherapy—are far more likely to develop pneumonia after exposure than healthy adults.
Chronic lung disease significantly raises your risk. If you have asthma, chronic obstructive pulmonary disease (COPD), or cystic fibrosis, your lungs are already inflamed or damaged, making it easier for an infection to take hold. Smoking also damages the protective lining of your airways, which is why smokers develop pneumonia at higher rates than non-smokers.
Age is a major factor. Children under 5 and adults over 65 are at substantially higher risk. Very young children have immune systems that are still developing, while older adults' immune systems become less effective over time. Hospitalized patients and people living in nursing homes face higher exposure and lower immune defenses, so they develop pneumonia more often.
Conditions that increase your pneumonia risk
A recent respiratory infection—even a mild cold or flu—damages the lining of your airways and makes pneumonia more likely. If you are still coughing from a cold and then encounter someone with pneumonia, your lungs are primed for secondary infection. This is why pneumonia often follows the flu.
Heart disease, diabetes, and kidney disease all weaken immune function or change how your body responds to infection. People with these conditions develop pneumonia more often and tend to have worse outcomes. Alcohol use disorder damages immune cells and impairs your body's ability to clear germs from your lungs.
Swallowing problems from stroke, Parkinson's disease, or other neurological conditions increase aspiration risk—the accidental inhalation of food, saliva, or stomach contents into the lungs. This can introduce bacteria from your mouth directly into your lungs, where they can cause infection.
The difference between catching pneumonia and developing it
Exposure to a pneumonia-causing germ does not automatically mean you will develop pneumonia. Your body may fight off the infection before symptoms appear, or you may carry the germ without becoming sick. This is especially true for healthy adults with strong immune systems.
Pneumonia develops when the germ overwhelms your immune defenses and multiplies in your lungs faster than your body can clear it. This process usually takes several days. You might feel fine for 3 to 7 days after exposure, then suddenly develop a cough, fever, and chest discomfort as the infection takes hold.
Some people are asymptomatic carriers—they have the germ in their respiratory system but never develop symptoms. They can still spread the infection to others, particularly in the first few days after exposure, even though they feel well.
Seasonal and environmental factors
Pneumonia is more common in winter months in most of North America and Europe. Cold air may make your airways more susceptible to infection, and people spend more time indoors in close contact during winter, which increases transmission. Flu season (typically November through March) brings a spike in pneumonia cases because influenza often leads to secondary bacterial pneumonia.
Indoor environments with poor ventilation increase transmission risk. Crowded spaces—schools, public transit, offices with shared air systems—create more opportunities for respiratory droplets to reach others. Dry indoor air from heating systems can irritate your airways and make infection more likely.
Air pollution and secondhand smoke exposure damage your lungs' ability to clear germs, making pneumonia more likely after exposure. People living in areas with high air pollution develop pneumonia at higher rates than those in cleaner environments.
What to do if you have been exposed
If you have spent time near someone who developed pneumonia, monitor yourself for symptoms over the next 1 to 2 weeks. Watch for a persistent cough, fever, shortness of breath, or chest pain. These symptoms may develop gradually or appear suddenly.
Wash your hands frequently with soap and water, especially after touching your face, eating, or using the bathroom. Hand hygiene is your most effective defense after exposure. If you have a chronic condition, weakened immune system, or are over 65, contact your doctor if you develop any respiratory symptoms—even mild ones—because early treatment can prevent pneumonia from becoming severe.
If you are at high risk and have been exposed, your doctor may recommend preventive measures depending on the type of pneumonia involved. For some bacterial pneumonias, antibiotics started early can prevent infection. For viral pneumonias, prevention options are more limited, but your doctor can discuss monitoring strategies.
Frequently Asked Questions
Can you catch pneumonia from someone who is recovering?
Once someone has recovered and is no longer coughing or showing symptoms, they are unlikely to transmit pneumonia. However, some people shed germs for a few days after symptoms improve, so caution is still reasonable if the person is still coughing. After symptoms have completely resolved for 24 hours without fever-reducing medication, transmission risk drops sharply.
Is pneumonia contagious before symptoms appear?
Yes. Many people shed respiratory viruses and bacteria for 1 to 2 days before they feel sick. This is why someone can transmit pneumonia while feeling fine. This asymptomatic period is one reason pneumonia spreads in workplaces and schools—people come to work or school unaware they are contagious.
Can you catch pneumonia from pets?
Most common pneumonias in humans come from human-to-human transmission. However, some fungal pneumonias can come from environmental exposure (like bird droppings) rather than from a sick person. Bacterial and viral pneumonias that affect humans do not typically transmit from pets to people, though pets can carry some respiratory bacteria.
Does the flu vaccine prevent pneumonia?
The flu vaccine reduces your risk of influenza, which in turn reduces your risk of pneumonia developing as a complication. However, it does not prevent all pneumonias—only those that follow the flu. Pneumococcal vaccines offer more direct protection against bacterial pneumonia and are recommended for adults over 65 and people with certain chronic conditions.
Can you catch pneumonia twice?
Yes. Recovering from pneumonia does not create lasting immunity to all pneumonia-causing germs. Different bacteria and viruses cause pneumonia, so you can catch different types at different times. Some people develop pneumonia multiple times in their lifetime, especially if they have chronic lung disease or a weakened immune system.