provider image
Welcome! You’re in GoodRx for healthcare professionals. Now, you’ll enjoy a streamlined experience created specifically for healthcare professionals.
Skip to main content
HomeHealth ConditionsPneumonia

Is Pneumonia Contagious?

Eunice Kang, MD, CPHPatricia Pinto-Garcia, MD, MPH
Published on January 21, 2025

Key takeaways:

  • Pneumonia is a lower respiratory tract illness that affects the lungs. It can be caused by viruses, bacteria, or less commonly, fungi. 

  • Pneumonia isn’t contagious. But many germs that cause pneumonia are contagious. 

  • Not everyone who’s exposed to these germs will get sick. People who do get sick may  develop other respiratory illnesses, like colds or sinus infections, instead of pneumonia. 

A man comforts his mom as she cleans her nose with a tissue.
triloks/E+ via Getty Images

Pneumonia is one of several illnesses that affect the respiratory system. The respiratory system includes your nose, throat, airways, and lungs. You may have many questions if you or someone you love is sick with pneumonia. And one of those questions may be whether you should worry about pneumonia being contagious. Pneumonia itself isn’t contagious. But the germs that cause pneumonia can pass from person to person. 

What is pneumonia?

Pneumonia is an infection of the lung tissue. It’s a type of lower respiratory tract infection. Pneumonia can be caused by viruses, bacteria, and sometimes fungi. 

When people get sick with pneumonia they can develop an infection in one or both lungs. They can also develop infection in a section (lobe) of their lung or throughout the entire lung. It’s also possible for the infection to start in one part of the lung and then spread to the rest of the lung or even the other lung. 

Each case of pneumonia is unique. Some people who get sick with pneumonia only develop mild symptoms while others develop very severe illness. And people who get sick with pneumonia more than once may also have very different experiences each time they get sick. 

This happens because some germs that cause pneumonia tend to make people more sick than others. People also tend to develop more severe illnesses if they are older or have other health conditions

Can you get pneumonia from someone who has it? 

You cannot get pneumonia from someone who has pneumonia. Pneumonia itself isn’t contagious. But many of the viruses, bacteria, and fungi that cause pneumonia are contagious. You can pick up these germs from someone who’s sick with pneumonia. 

GoodRx icon

But you might not develop pneumonia if you get sick with one of these germs. Viruses and bacteria that cause pneumonia also cause other respiratory illnesses like:

It’s impossible to predict if someone will develop pneumonia when they get sick with pneumonia-causing germs. But you may be at higher risk for developing pneumonia from one of these germs if:

  • You’re over 65 years old.

  • You have a weakened immune system or diabetes.

  • You have chronic obstructive pulmonary disease (COPD), asthma, or another lung condition.

  • You have a chronic heart or liver condition.

  • You smoke.

You’re also more likely to develop pneumonia if you haven’t been vaccinated against viruses and bacteria that can cause pneumonia. 

How does pneumonia spread?

Pneumonia doesn’t spread. But the viruses and bacteria that cause pneumonia can spread from person to person. Here’s how this works.

Viruses

Viruses that cause pneumonia spread through respiratory droplets. When someone is sick and they talk, sneeze, or cough, they expel tiny droplets of water. These droplets contain viruses and bacteria. If another person breathes in these droplets, they can get sick, too.  

Viruses that cause pneumonia include:

  • The flu virus

  • Respiratory syncytial virus (RSV)

  • Coronavirus

  • Common cold viruses

People with viral pneumonia are most contagious for the first few days of their illness. Most people stop being contagious after about a week. 

Bacteria 

Some bacteria that cause pneumonia also spread through respiratory droplets. For example, Mycoplasma pneumoniae spreads through respiratory droplets and is a major cause of walking pneumonia. Streptococcus pneumoniae can also spread through respiratory droplets. It can cause severe pneumonia.

But other bacteria that cause pneumonia don’t spread this way. Legionella is a bacteria that can cause serious pneumonia. Legionella grows in water and can contaminate common items like  air conditioners, whirlpools, hot tubs, and humidifiers. You can only get sick with legionella if you breathe in water droplets from water sources that are contaminated with the bacteria. 

People with bacterial pneumonia can spread the bacteria until they start treatment with antibiotics. People stop being contagious after taking antibiotics for 48 hours

Fungi

Some fungi can also cause pneumonia. The most common causes of fungal pneumonia are:

These fungi don’t pass from person to person. Fungal pneumonia is never contagious. You can only get sick with fungal pneumonia by breathing in these fungi from sources like contaminated soil

What can you do to prevent pneumonia?

Pneumonia can be a very serious illness. But there are steps you can take to lower your risk of developing pneumonia. Many actions that help prevent illnesses from the flu or COVID will also lower your risk of getting sick with pneumonia. These include:

  • Frequent handwashing

  • Not touching your eyes, nose, and mouth

  • Avoiding people who are sick

  • Disinfecting frequently touched surfaces

You can also avoid getting pneumonia by keeping your immune system strong by:

  • Getting enough sleep

  • Eating foods that are rich in vitamins and minerals

  • Not smoking and limiting alcohol

It’s also important to stay up to date with vaccinations. Vaccines that protect against viruses and bacteria that cause pneumonia can keep you healthy. Consider getting vaccinated against:

  • RSV 

  • The flu

  • COVID

  • Pneumococcus

Your healthcare team can help you decide if one or more of these vaccines is right for you.

The bottom line

Pneumonia is a lung infection that can be caused by viruses, bacteria, and fungi (this is less common). Pneumonia itself isn’t contagious. But many of the viruses and bacteria that can lead to pneumonia are contagious. You can lower your risk of getting pneumonia by washing your hands, avoiding people who are sick, and staying up to date with vaccines.

why trust our exports reliability shield

Why trust our experts?

Eunice Kang, MD, CPH
Dr. Kang practiced internal medicine, mostly hospital-based, for 12 years before transitioning to clinical research in 2021. She began her clinical career as a hospitalist clinician educator and became an associate program director of the internal medicine residency program at Norwalk Hospital in Norwalk, Connecticut, in 2015.
Patricia Pinto-Garcia, MD, MPH
Patricia Pinto-Garcia, MD, MPH, is a medical editor at GoodRx. She is a licensed, board-certified pediatrician with more than a decade of experience in academic medicine.

References

Centers for Disease Control and Prevention. (2023). Risk factors for pneumonia

Centers for Disease Control and Prevention. (2024). About Legionnaires’ disease

View All References (6)

Centers for Disease Control and Prevention. (2024). Fungal community-acquired pneumonias

Centers for Disease Control and Prevention. (2024). How flu spreads

National Heart, Lung, and Blood Institute. (2022). Pneumonia: Causes and risk factors

Shah, N. B. (2024). Pneumonia symptoms, causes, and risk factors. UPMC Health Beat. 

Wisconsin Department of Health Services. (2023). Immunizations: Pneumococcal disease (streptococcus pneumoniae)

World Health Organization. (2022). Legionellosis.

GoodRx Health has strict sourcing policies and relies on primary sources such as medical organizations, governmental agencies, academic institutions, and peer-reviewed scientific journals. Learn more about how we ensure our content is accurate, thorough, and unbiased by reading our editorial guidelines.

Was this page helpful?

Get the facts on Pneumonia.

Sign up for our newsletter to get expert tips on condition management and prescription savings.

By signing up, I agree to GoodRx's Terms and Privacy Policy, and to receive marketing messages from GoodRx.

Related Articles