Yes, pneumonia is contagious, but the risk depends on what caused it

Pneumonia caused by bacteria or viruses spreads from person to person through respiratory droplets — the tiny particles released when someone coughs, sneezes, or talks. If you breathe in those droplets, you can catch the infection. However, not everyone exposed to pneumonia will develop it. Your own immune system, vaccination status, and overall health determine whether you get sick after exposure.

Fungal pneumonia, which is less common, does not spread between people. You get it from breathing in fungal spores from the environment — soil, bird droppings, or decaying wood — not from another person.

Key Takeaways

  • Bacterial and viral pneumonia spread through respiratory droplets when an infected person coughs or sneezes, but exposure does not may provide infection.
  • You are most contagious in the first three to five days of illness, before or just as symptoms appear.
  • Staying home, covering your cough, and washing your hands reduce the chance you will spread pneumonia to others.
  • Fungal pneumonia does not spread between people and comes from environmental exposure instead.
  • People over 65, young children, and those with weakened immune systems face higher risk of severe illness if exposed.

How bacterial pneumonia spreads

Bacterial pneumonia is caused by bacteria such as Streptococcus pneumoniae, which live in the nose and throat. When an infected person coughs or sneezes, they release droplets containing the bacteria into the air. These droplets travel a short distance — usually three to six feet — and land on surfaces or are breathed in by someone nearby.

You can also catch bacterial pneumonia by touching a contaminated surface and then touching your face, nose, or mouth. The bacteria enter through your respiratory tract and begin to multiply in your lungs. Not everyone who is exposed becomes ill; your immune system may fight off the infection before symptoms develop.

How viral pneumonia spreads

Viral pneumonia spreads the same way as bacterial pneumonia — through respiratory droplets. Viruses such as influenza, respiratory syncytial virus (RSV), and coronavirus can all cause pneumonia. Viral pneumonia is often more contagious early in the illness, sometimes before a person realizes they are sick.

This is why viral pneumonia can spread quickly through families, schools, and workplaces. A person may feel only mildly ill or have symptoms that seem like a common cold, yet still transmit the virus to others. After five to ten days, most people shed fewer viral particles and become less contagious, even if they still feel unwell.

When you are most contagious

You are most contagious during the first three to five days of pneumonia, when your body is actively shedding bacteria or virus into the air. For viral pneumonia, this period can start before you notice symptoms — you may spread the infection while feeling only slightly under the weather.

After about five days, most people shed fewer infectious particles. However, you can still transmit pneumonia for longer, especially if you have a persistent cough. If you are taking antibiotics for bacterial pneumonia, you typically become less contagious after 24 to 48 hours of treatment, though you should stay home for at least five days if possible.

Steps to reduce spreading pneumonia to others

If you have pneumonia, cover your mouth and nose with a tissue when you cough or sneeze, then throw the tissue away immediately. If you do not have a tissue, cough or sneeze into your elbow, not your hands. Wash your hands frequently with soap and water, especially after coughing, sneezing, or touching your face.

Stay home while you are sick and contagious — at minimum for the first five days or until your fever is gone without fever-reducing medication. Avoid close contact with others, particularly people over 65, young children, pregnant women, and anyone with a weakened immune system. Clean and disinfect surfaces you touch frequently, such as doorknobs, light switches, and phones.

Who is at highest risk if exposed to pneumonia

Certain groups face a much higher risk of developing severe pneumonia if exposed. Adults over 65, children under five, people with chronic lung disease (such as asthma or COPD), and those with weakened immune systems — including people with HIV, cancer patients undergoing treatment, and those taking immunosuppressant medications — are all at increased risk.

Pregnant women, people with heart disease, and those with diabetes also have higher risk. If you fall into one of these groups and are exposed to someone with pneumonia, contact your doctor. They may recommend monitoring for symptoms or, in some cases, preventive treatment. Vaccination against pneumococcal bacteria and influenza virus can reduce your risk significantly.

Fungal pneumonia does not spread between people

Fungal pneumonia is caused by inhaling fungal spores from the environment, not from another person. You cannot catch fungal pneumonia from someone who has it. The fungi that cause it — such as Coccidioides, Histoplasma, or Blastomyces — live in soil, dust, or bird and bat droppings in specific geographic regions.

If you develop fungal pneumonia, you do not need to isolate from others or worry about spreading it. However, fungal pneumonia can be serious, especially in people with weakened immune systems, and requires medical treatment with antifungal medications.

Frequently Asked Questions

Can I catch pneumonia from someone who is already taking antibiotics?

Yes, but the risk is lower. After 24 to 48 hours of antibiotics, a person sheds fewer bacteria and is less contagious. However, they can still spread pneumonia, which is why staying home for at least five days is still recommended, even while on antibiotics.

How long should I stay away from work or school if I have pneumonia?

Most people should stay home for at least five days from the start of symptoms, or until their fever is gone without fever-reducing medication for 24 hours. If you work with vulnerable populations — elderly people, young children, or immunocompromised individuals — ask your doctor when it is safe to return.

Can pneumonia spread through food or water?

No. Pneumonia spreads through respiratory droplets in the air, not through food or water. You cannot catch pneumonia by sharing a meal or drinking from the same glass as someone who is sick.

Do I need to wear a mask if I have pneumonia?

If you must be around others while sick, wearing a mask reduces the droplets you release into the air and lowers the risk to people nearby. A surgical mask or N95 respirator is more effective than cloth masks at blocking respiratory droplets.

Can someone get pneumonia twice from the same person?

Unlikely. Once you recover from pneumonia caused by a specific bacteria or virus, your immune system usually remembers that pathogen and protects you from it for a period of time. However, you can catch pneumonia from a different bacteria or virus, or from the same one years later if immunity has faded.