Pneumonia can affect one or both lungs and causes inflammation (swelling) that can lead to serious complications, especially in certain individuals like those under age 5 or over age 65.
This article walks you through the various types of pneumonia, including which are contagious and for how long. Knowing the facts can help you decide if it’s safe to visit someone with pneumonia or if it’s better to keep your distance.
Types of Pneumonia: Contagious or Not?
The risk of passing pneumonia varies by the pneumonia type.
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.
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 symptomsA low-grade feverCough
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:
Ear infections Sinus infections Meningitis
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.
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.
How to Avoid Getting Infectious Pneumonia
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.
Children less than 2 years oldAdults more than 65 years oldPeople who are immunocompromisedThose who suffer from heart and lung conditions, including asthmaPeople who smokePeople with diabetes
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)
A Word From Verywell
There are two essential things to remember when it comes to pneumonia:
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 olderAdults 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 conditionsAdults 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).
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.