Yes, pneumonia is contagious, but how easily it spreads depends on what caused it

Pneumonia caused by bacteria, viruses, or fungi can all spread from person to person, though the risk varies. Bacterial pneumonia spreads through respiratory droplets when an infected person coughs or sneezes. Viral pneumonia spreads the same way and is often more contagious than bacterial forms. Fungal pneumonia is rarely contagious between people—you usually catch it from the environment, not from another person.

The person spreading pneumonia may not have obvious symptoms yet. Someone can transmit the infection during the first few days when they feel like they have a cold or mild cough. This is why pneumonia can spread in households, workplaces, and schools before anyone realizes what is happening.

Key Takeaways

  • Bacterial and viral pneumonia spread through respiratory droplets when an infected person coughs, sneezes, or talks.
  • You are most contagious in the first three to five days of illness, before pneumonia symptoms fully develop.
  • Fungal pneumonia does not spread between people and comes from environmental exposure instead.
  • Staying home for at least 24 hours after starting antibiotics (for bacterial pneumonia) or until fever is gone reduces transmission risk.

How bacterial pneumonia spreads

Bacterial pneumonia travels through respiratory droplets—tiny particles released when someone coughs, sneezes, talks, or breathes heavily. These droplets can land on the mouth, nose, or eyes of someone nearby, usually within six feet. The bacteria then infect the new person's lungs.

Common bacteria that cause pneumonia include Streptococcus pneumoniae, Haemophilus influenzae, and Legionella. Not everyone exposed to these bacteria will develop pneumonia. Your risk depends on your age, immune system strength, and whether you have other health conditions like asthma or heart disease.

A person with bacterial pneumonia is most contagious during the first three to five days of illness. After starting antibiotics, the contagious period usually ends within 24 hours, though you may still feel sick for weeks.

How viral pneumonia spreads

Viruses that cause pneumonia—including influenza, respiratory syncytial virus (RSV), and COVID-19—spread through the same respiratory droplet route as bacteria. Viral pneumonia is often more contagious than bacterial pneumonia because viruses replicate faster and spread more easily.

Viral pneumonia can also spread through contact with contaminated surfaces. If someone with viral pneumonia touches their nose or mouth and then touches a doorknob or phone, the virus can survive on that surface for hours. You can catch it by touching the surface and then touching your own face.

The contagious period for viral pneumonia varies by virus. Influenza pneumonia is usually contagious for about five to seven days after symptoms start. COVID-19 pneumonia can remain contagious for up to 10 days or longer in some cases, depending on the variant and your immune status.

Fungal pneumonia and transmission risk

Fungal pneumonia does not spread from person to person. You cannot catch it from someone who has it. Instead, you inhale fungal spores from soil, bird droppings, or contaminated water sources in the environment.

Common fungi that cause pneumonia include Histoplasma, Coccidioides, and Cryptococcus. These are found in specific geographic regions. For example, Coccidioides is common in the southwestern United States, while Histoplasma is found near the Mississippi and Ohio River valleys. If you have fungal pneumonia, you do not need to isolate from family members or coworkers.

When you stop being contagious

For bacterial pneumonia, you are no longer contagious after 24 hours of taking antibiotics, even if you still feel unwell. Your doctor may recommend staying home longer if you have a high fever or are coughing heavily, but the infection itself is no longer spreading to others.

For viral pneumonia, the timeline depends on the virus. Most people stop being contagious five to seven days after symptoms start, but some viruses linger longer. If you have COVID-19 pneumonia, the CDC recommends staying home for at least five days after symptoms start and until you have been fever-free for 24 hours without fever-reducing medication.

For fungal pneumonia, there is no contagious period—you can be around others immediately, though you should follow your doctor's treatment plan to recover.

Reducing the spread of pneumonia

If you have pneumonia, cover your mouth and nose when you cough or sneeze, using a tissue or your elbow rather than your hands. Wash your hands frequently with soap and water, especially after coughing or sneezing. If soap and water are not available, use an alcohol-based hand sanitizer.

Stay home while you are contagious. For bacterial pneumonia, this means at least 24 hours after starting antibiotics. For viral pneumonia, stay home until your fever is gone without medication and your symptoms are improving. Avoid close contact with people who are very young, elderly, or have weakened immune systems, as they are at higher risk of severe pneumonia.

If you live with someone who has pneumonia, wash your hands after touching shared surfaces like doorknobs or remote controls. Do not share eating utensils, cups, or towels. If possible, have the sick person use a separate bathroom.

Who is at higher risk of catching pneumonia

Certain groups are more likely to develop pneumonia after exposure to the bacteria or virus. Infants under two years old, adults over 65, and people with chronic conditions like diabetes, heart disease, or lung disease face higher risk. People with weakened immune systems—including those with HIV, those taking immunosuppressant medications, or those undergoing chemotherapy—are also at greater risk.

Smokers and people who recently had the flu are more vulnerable to pneumonia. If you fall into any of these groups and are exposed to someone with pneumonia, talk to your doctor about whether preventive measures or monitoring are needed.

Frequently Asked Questions

Can you catch pneumonia from someone who has already recovered?

No. Once someone has recovered from pneumonia and is no longer coughing or showing symptoms, they cannot spread the infection. The contagious period ends days before most people feel completely well.

Is walking pneumonia contagious?

Yes. Walking pneumonia, usually caused by Mycoplasma pneumoniae, spreads through respiratory droplets just like other bacterial pneumonia. People with walking pneumonia often feel well enough to go about their day, which is why it spreads easily in schools and workplaces.

Can you catch pneumonia twice from the same person?

Unlikely. If you were exposed to someone with pneumonia and did not get sick, your immune system fought off the infection. If you do develop pneumonia later, it is usually from a different strain or type of bacteria or virus, not from the same person.

What should I do if I was exposed to someone with pneumonia?

Monitor yourself for symptoms like cough, fever, shortness of breath, or chest pain for the next two weeks. Wash your hands frequently and avoid touching your face. If you develop symptoms, contact your doctor. If you are in a high-risk group, mention the exposure when you call.