Yes, you can contract pneumonia, and it spreads through the air you breathe
Pneumonia is contagious. You catch it when you breathe in droplets from an infected person's cough or sneeze, or sometimes from bacteria or viruses already in your environment. Most pneumonia spreads person-to-person, though the exact route depends on what caused it—a virus, bacterium, or fungus.
Not everyone who is exposed gets sick. Your immune system, your age, and whether you have other health conditions all affect whether you will develop pneumonia after exposure. Some people carry the bacteria that cause pneumonia without ever getting ill, while others get very sick within days.
The time between exposure and symptoms—called the incubation period—varies. Viral pneumonia often shows up within a few days. Bacterial pneumonia can take longer, sometimes a week or more. This is why you might not realize where you caught it.
Key Takeaways
- Pneumonia spreads through respiratory droplets when an infected person coughs or sneezes, and you breathe them in.
- You are more likely to develop pneumonia if you are over 65, have a weakened immune system, or have chronic lung or heart disease.
- Symptoms usually appear within days to a week after exposure, though some people never develop symptoms even after exposure.
- Vaccination against pneumococcal bacteria and influenza virus reduces your risk of contracting pneumonia significantly.
- People with pneumonia are most contagious in the first few days of illness, before they may even realize they are sick.
How pneumonia spreads from person to person
When someone with pneumonia coughs, sneezes, or even talks, they release tiny droplets into the air. If you breathe in those droplets, the germs can land in your lungs and begin to multiply. This is the most common way pneumonia spreads, and it can happen in close settings like homes, workplaces, schools, or crowded public spaces.
You can also catch pneumonia by touching a contaminated surface—a doorknob, phone, or countertop—and then touching your face. The germs enter through your nose or mouth. This route is less common than breathing in droplets, but it still happens.
Some types of pneumonia are more contagious than others. Viral pneumonia, especially from the flu virus, spreads easily. Bacterial pneumonia caused by Streptococcus pneumoniae spreads readily in close quarters. Fungal pneumonia is rare and usually only affects people with very weak immune systems; it does not spread person-to-person in the usual sense.
Who is at higher risk of developing pneumonia
Age is a major factor. Adults over 65 have a much higher risk, as do infants and young children under 5. Your immune system weakens with age, making it harder to fight off infection.
Certain medical conditions increase your risk significantly. If you have chronic obstructive pulmonary disease (COPD), asthma, heart disease, or diabetes, your lungs are more vulnerable. People living with HIV or taking medications that suppress the immune system are at very high risk. Recent surgery, a hospital stay, or a serious illness also leaves you more susceptible.
Lifestyle factors matter too. Smoking damages your lungs' ability to clear mucus and germs. Heavy alcohol use weakens immune function. Being bedridden or having difficulty swallowing increases the chance that germs will reach your lungs instead of being cleared by your body's natural defenses.
If you recently had the flu, your lungs are already inflamed and damaged, making bacterial pneumonia more likely to develop on top of it—a condition called secondary pneumonia.
Symptoms that appear after exposure
After you breathe in the germs, your body's immune system begins to fight back. This causes inflammation in your lungs, and fluid or pus fills the air sacs where oxygen normally enters your blood. Symptoms develop as this process unfolds.
Early signs include a cough that may start dry and become wet, producing mucus or phlegm. You might feel chest pain when you breathe deeply or cough. Fever, chills, and fatigue are common. Some people have shortness of breath or feel confused or disoriented, especially older adults.
Symptoms can appear suddenly or develop gradually over several days. In older people or those with weakened immune systems, symptoms may be milder or unusual—they might have only a slight fever or no fever at all, making pneumonia harder to recognize.
When you are most contagious
You are most contagious during the first few days of pneumonia, when your cough is most active and you are releasing the most droplets. This is often before you even realize you have pneumonia—you might think you just have a cold or mild cough.
Once you start treatment with antibiotics (if it is bacterial pneumonia), you become less contagious within 24 to 48 hours. Viral pneumonia takes longer; you may remain contagious for a week or more, even as you start to feel better.
This is why people with pneumonia are advised to stay home and away from others, especially vulnerable people like the very young, the very old, or those with weak immune systems. Even if you feel well enough to be up and around, you can still spread the illness.
Reducing your risk of contracting pneumonia
Vaccination is the most effective way to lower your risk. The pneumococcal vaccine protects against the most common bacterial cause of pneumonia. The flu vaccine reduces your risk of viral pneumonia and secondary bacterial pneumonia that follows the flu. Ask your doctor which vaccines are right for your age and health status.
Basic hygiene habits reduce transmission. Wash your hands regularly with soap and water, especially after being around sick people or in public spaces. Avoid touching your face. If you are sick, cover your cough with your elbow or a tissue, not your hand.
Maintain your overall health. Don't smoke, limit alcohol, eat well, exercise, and get enough sleep. These habits strengthen your immune system. If you have a chronic condition like diabetes or heart disease, keep it well controlled—this reduces pneumonia risk.
Avoid close contact with people who are coughing or sneezing. If someone in your home is sick, keep them in a separate room if possible, and have them use their own dishes and towels.
What to do if you think you have been exposed
If you have been around someone with pneumonia or a bad cough, watch for symptoms over the next week to ten days. A cough that lasts more than a few days, especially one that produces mucus, warrants a call to your doctor.
You do not need to isolate yourself just because you were exposed—most people who are exposed do not develop pneumonia. But if you develop a cough, fever, or shortness of breath, stay home and contact your doctor. They can listen to your lungs and may order a chest X-ray to confirm pneumonia.
If you are in a high-risk group—over 65, with a chronic illness, or with a weakened immune system—contact your doctor sooner rather than later if symptoms develop. Early treatment makes a real difference in how quickly you recover.
Frequently Asked Questions
Can you get pneumonia from someone who does not have symptoms?
Unlikely, but possible. Most people spread pneumonia when they are actively coughing and sneezing. However, some people carry pneumonia-causing bacteria in their throat without being sick, and they could theoretically spread it. This is rare and usually only happens with certain bacteria.
How long after exposure do symptoms show up?
Symptoms typically appear within 3 to 7 days of exposure, though this varies. Viral pneumonia often shows up faster, within 2 to 3 days. Bacterial pneumonia may take longer. Some people never develop symptoms even after exposure.
If I had pneumonia once, can I get it again?
Yes. Having pneumonia once does not give you lasting immunity. You can catch pneumonia again from a different germ, or even the same type if enough time has passed. This is why vaccination remains important even if you have had pneumonia before.
Is pneumonia contagious after you start antibiotics?
Bacterial pneumonia becomes much less contagious within 24 to 48 hours of starting antibiotics. However, you should still stay home for at least 24 hours after your fever goes away and you feel better, to avoid spreading any remaining germs.
Can you catch pneumonia from animals?
Some types of fungal pneumonia come from environmental sources like bird droppings or soil, not from direct contact with animals. These are rare. The common bacterial and viral pneumonias spread person-to-person, not from pets.