Is Pneumonia Contagious?

Table of Contents
View All
Table of Contents

Pneumonia comes in many forms—from viral to bacterial and the less likely fungal form. Each variety causes inflammation in your lungs.

This inflammation results from the air sacs in your lungs filling with fluid or pus, making it difficult to breathe. In return, you feel rundown, miserable, and suffer from a cough that can take weeks to get rid of.

As with many illnesses, the type of pneumonia you have will determine many factors—including whether or not your variety of pneumonia is contagious. While many people think pneumonia isn’t contagious, some varieties are indeed contagious.

Preventing the Spread of Pneumonia - Illustration by Theresa Chiechi

Verywell / Theresa Chiechi

Types of Pneumonia

Fungal Pneumonia

Fungal pneumonia can be tricky. You can get fungal pneumonia from breathing in fungal spores often found in soil and occasionally bird droppings. While these fungal spores may cause pneumonia quickly, it’s also possible for these spores to remain dormant in your body; then, one day, they flare up into a case of pneumonia. 

A typical example of fungal pneumonia that can remain dormant is Valley fever. A majority of residents in the southwestern United States will be exposed to the fungal spores that cause Valley Fever at some point. Some people are exposed and never get sick. Others are exposed, and the illness lies dormant for months, years, or even decades. Yet others will get sick reasonably quickly.

Since fungal pneumonia comes from the environment around you, it is not deemed contagious. 

Walking Pneumonia

Technically speaking, walking pneumonia is a type of bacterial pneumonia. It comes from the bacteria named Mycoplasma pneumoniae.

Walking pneumonia is most common in those less than 40 years of age who live and work in crowded quarters. Being in close quarters is one reason it’s so easy for school children to catch walking pneumonia.

While no one wants to catch pneumonia, if you had to pick one type, you’d likely want to pick walking pneumonia. While the symptoms may vary from person to person, typically those with walking pneumonia will have:

  • Basic cold-like symptoms
  • A low-grade fever
  • Cough

In fact, the symptoms can be so mild that you can still participate in your normal day-to-day activities without looking too terribly sick. This is why walking pneumonia may go on long before receiving a diagnosis.

Bacterial Pneumonia

Bacterial pneumonia is spread from person to person by coughing, sneezing, and close contact in general. These bacteria are so easy to pass, they can spread to another person before the first person starts showing symptoms. These bacteria can affect anywhere from a small portion of one lung to widespread areas in both lungs.

Depending on the strain of bacteria causing pneumonia, you may be contagious anywhere from a few days to a few weeks.

One of the most common strains known for causing pneumonia is called Streptococcus pneumoniae, or pneumococcus. Along with pneumonia, this bacteria can cause:

Infection with this bacteria can also lead to bronchitis, which is different than pneumonia. 

Viral Pneumonia

Just like the common cold, pneumonia can be viral or bacterial. Viral pneumonia can transfer from person to person. One of the most well-known forms of viral pneumonia is the flu virus, which is easily spread and causes a wide variety of symptoms. 

Viral pneumonia tends to heal quicker than bacterial or fungal pneumonia and is often less severe. It also makes up about one-third of all pneumonia diagnoses each year.

How You Catch Pneumonia

While anyone can catch pneumonia, some people are more likely to come down with illness when coming into contact with the germs. Like many other illnesses, pneumonia is caught through contact with the bacteria or virus that causes pneumonia.

Coughing and sneezing are the most common ways these germs spread.

It’s also possible to catch the illness by touching something like a counter or door handle, sharing cups and utensils, and touching your face without washing your hands first. 

Groups at Risk

While pneumonia can be acquired at any age, the following groups are most likely to experience severe cases:

  • Children less than 2 years old
  • Adults more than 65 years old
  • People who are immunocompromised
  • Those who suffer from heart and lung conditions, including asthma
  • People who smoke
  • People with diabetes

Prevention

When it comes to pneumonia, there are a few things you can do to decrease the likelihood of spreading the infection, along with preventing yourself from getting pneumonia in the first place. These recommendations are similar to the techniques for avoiding the flu.

While many people think coughing is a sign you’re contagious, this simply isn’t true. Pneumonia can be infectious anywhere from 24 hours up to two weeks after starting antibiotics. For many people, their cough will continue beyond these two weeks. 

Cover Your Mouth and Nose

While the preferred method for covering your mouth when you cough or sneeze is into a tissue, not everyone can get to tissues in time when the urge to cough or sneeze hits. If you have the urge to cough or sneeze—and a tissue isn’t available—the next best thing is to cover your mouth or nose with the inside of your elbow.

Coughing or sneezing into your elbow will decrease the chances of your leaving traces of your infection on door handles, faucets, or anything else you touch.

Wash Your Hands

Regardless of whether you’re sick or healthy, washing your hands with soap and water is often good for your health. When you’re ill and wash your hands, you’re reducing the number of germs you can spread. When you’re healthy and washing your hands, you reduce the chance of introducing dangerous germs to your body.

Limit Contact With Others

One of the best things you can do when recovering from pneumonia is to limit your contact with others. As we’ve learned throughout the COVID-19 pandemic—which can cause viral pneumonia—staying at least six feet away from others reduces the amount of viral or bacterial content they are exposed to as you breathe or talk. 

Vaccines

Currently, four pneumonia vaccines are available in the United States. The Centers for Disease Control and Prevention (CDC) recommends children younger than 2 years, adults older than 65 years, and anyone of any age who is immunocompromised or struggles with certain chronic health conditions receive one of these vaccines.

There are two types of pneumococcal vaccines available:

  • Pneumococcal conjugate vaccines (PCV13, PCV15, and PCV20)
  • Pneumococcal polysaccharide vaccine (PPSV23)

CDC's Pneumococcal Vaccine Recommendations

PCV13 (Prevnar 13) protects against 13 types of bacterial pneumonia and is recommended for:

  • Children younger than 2 years old—as a four-part series. They should receive this vaccine at 2 months, 4 months, 6 months, and 12–15 months old.
  • Children ages 2 to 18 years with certain medical conditions

PCV15 (Vaxneuvance) or PCV20 (Prevnar 20)—which protect against 15 and 20 types of bacterial pneumonia, respectively—is recommended for:

  • Adults 65 years or older
  • Adults ages 19 to 64 years with certain risk factors or medical conditions

PPSV23 (Pneumovax23), which is effective against 23 types of bacterial pneumonia, is recommended for:

  • Children ages 2 to 18 years with certain medical conditions
  • Adults 19 years and older who get PCV15 or PCV13.

Note that PCV15 and PCV20 are new and the recommendations for using them were released in January 2022. Therefore, any adult who previously received the older PCV13 vaccination should get a dose of PPSV23 (or PCV20 if PPSV23 is not available).

A Word From Verywell

There are two essential things to remember when it comes to pneumonia:

  • You can reduce your chances of getting pneumonia by avoiding those who are sick and remembering to practice good hand hygiene.
  • If you come down with pneumonia, it’s important to take care of yourself. If you experience wheezing, shortness of breath, fever, cough, or chest pains, seek medical care immediately.

While pneumonia is often easily treatable with at-home care, in certain situations, a delay in seeking professional help may result in a worse condition or possibly even death.

Frequently Asked Questions

  • What are the symptoms of pneumonia?

    Pneumonia symptoms vary by age group but tend to include fever, cough, restlessness, fatigue, aches, shortness of breath, vomiting, bluish tint on lips or skin, chest pain, and headaches.

  • How is pneumonia treated?

    Most cases of pneumonia can be treated at home with rest, fluids, prescription medication, gargling salt water, running a humidifier, and stopping smoking. Prescription medications include antibiotics, nebulizers, antivirals, and antifungals depending on the type of penumonia. For more severe cases, treatment at a hospital might be necessary, especially for elderly individuals or those with underlying conditions or severe symptoms.

  • How long does pneumonia last?

    Many people recover from pneumonia within one week but others need additional time. Some people can take a month to recover and others are mostly recovered but have lingering fatigue after other symptoms have subsided.

Was this page helpful?
6 Sources
Verywell Health uses only high-quality sources, including peer-reviewed studies, to support the facts within our articles. Read our editorial process to learn more about how we fact-check and keep our content accurate, reliable, and trustworthy.
  1. Yale Medicine. Pneumonia.

  2. MedlinePlus. Valley fever.

  3. Centers for Disease Control and Prevention. Pneumococcal vaccination.

  4. American Lung Association. Pneumonia symptoms and diagnosis.

  5. Jain S, Self WH, Wunderink RG, et al. Community-acquired pneumonia requiring hospitalization among U.S. adultsN Engl J Med. 2015;373(5):415–427. doi:10.1056/NEJMoa1500245

  6. American Lung Association. Pneumonia treatment and recovery.