7 Different Types of Pneumonia

The different types of pneumonia can vary in treatment, severity, and cause—here's what you need to know.

Pneumonia is an infection of the tiny air sacs in the lungs, called alveoli, according to MedlinePlus. These air sacs fill with either pus or fluid and can cause a mild or severe illness, depending on different factors such as your age and the type of pneumonia you have.

There are several different types of pneumonia, and for some people, knowing the kind you have can be crucial in getting you the proper care you need.

"The different types of pneumonia can sometimes require very different treatments," Thomas Monaco, MD, assistant professor at the Baylor College of Medicine, told Health. "For example, one group of bacteria that causes pneumonia may not respond to the same antibiotic as another group, and antibiotics will not help at all if the cause of the pneumonia is due to a virus or some of the more uncommon causes of pneumonia."

Shweta Sood, MD, MS, a pulmonologist at Penn Medicine, agreed. "For us, it's really helpful to know the type because it influences our therapies for that specific patient, including how aggressive they should be," said Dr. Sood. And once your healthcare provider can figure out the type of pneumonia you have, they can get you the right treatment to help you feel like yourself again.

Pneumonia falls into three broad categories that include bacterial-based pneumonia, fungal infections, and those caused by viruses. Here's a breakdown of the different types of pneumonia.

Getty Images / Jo Imperio

Community-Acquired Pneumonia

If you acquire pneumonia in the community (rather than at a hospital) then you may have community-acquired pneumonia, according to MedlinePlus. "Community-acquired pneumonia is someone living their normal life, who gets sick and is diagnosed with pneumonia," said Dr. Sood. "Most of the time, they can be treated safely with rest at home and antibiotics." Bacterial, viral, and walking pneumonia are considered community-acquired pneumonia.

Bacterial Pneumonia

Bacterial pneumonia is a kind of community-acquired pneumonia that is caused by bacteria—most commonly, Streptococcus pneumonia, according to the American Lung Association. This is a bacteria that normally lives in your upper respiratory tract that can make its way down into your lungs and cause an infection, Raymond Casciari, MD, a pulmonologist at Providence St. Joseph Hospital-Orange, told Health.

You can develop this form of pneumonia on its own or after you've had a virus, like the cold or flu. According to the American Lung Association, more than 900,000 people in the United States develop bacterial pneumonia each year. However, Streptococcus pneumoniae isn't the only type of bacteria that can lead to bacterial pneumonia—Dr. Casciari stated that the following types of bacteria could also cause bacterial pneumonia:

  • Mycoplasma pneumoniae
  • Chlamydophila pneumoniae
  • Legionella pneumophila

"We have very good and specific antibiotics to treat bacterial pneumonia," said Dr. Sood. "We need to first identify the bacteria and use the antibody that's specific for that bacteria."

Viral Pneumonia

Community-acquired pneumonia can also be caused by a virus. This is called viral pneumonia, according to MedlinePlus. These viruses can cause pneumonia:

Unfortunately, antibiotics don't treat viral pneumonia. According to MedlinePlus, there are some other medications that may help if the infection is caught early. This includes antiviral drugs and corticosteroids that will try to reduce inflammation, said Dr. Casciari.

In more severe cases, you may need supplemental oxygen as a treatment, according to MedlinePlus. For milder cases of the illness, though, Dr. Sood said your healthcare provider would probably recommend you rest at home and get plenty of fluids.

You do have the option, however, to prevent some of the viruses that can cause pneumonia. The flu, measles, and COVID-19 all have vaccines available to prevent severe illness, according to the U.S. Department of Health and Human Services.

Walking Pneumonia

The last community-acquired pneumonia is walking pneumonia. The term "walking pneumonia" isn't necessarily a true medical diagnosis. "What it implies is that whatever the cause of your pneumonia is, it's not severe enough to put you in bed," said Dr. Casciari. Dr. Sood echoed that statement, and said that with walking pneumonia, you can feel sick, "but you're still able to do most activities."

Walking pneumonia can come from any of the main causes of pneumonia—bacterial, viral, or fungal—according to Dr. Casciari. But the American Lung Association says it's most commonly the result of an infection by the Mycoplasma pneumoniae bacteria, which usually causes mild infections in the respiratory system.

Walking pneumonia can be treated with antibiotics, rest, drinking plenty of fluids, and taking fever-reducing medicine (if you have a fever), according to the American Lung Association.

Fungal Pneumonia

Fungal pneumonia isn't common in most parts of the US, and people are usually infected when they breathe in certain fungal spores, said Dr. Casciari. However, there is a condition called valley fever, which is a type of fungal pneumonia caused by the fungus Coccidioides, which lives in soil in the southwestern U.S., according to the American Lung Association.

Fungal pneumonia is usually more of a concern for people with weakened immune systems, like those who have diabetes, AIDS, or cancer, Marc Sala, MD, a pulmonologist at Northwestern Medicine, told Health. Treatment usually involves antifungal medications like fluconazole, Dr. Casciari said.

Nosocomial Pneumonia

Nosocomial pneumonia is a type of pneumonia that develops after being admitted to a hospital, which can include either hospital-acquired pneumonia or ventilator-associated pneumonia, according to a 2022 StatPearls article.

Hospital-acquired pneumonia is different than community-acquired. "That's a term we use for patients that are in the hospital or are going to hospital-like settings and get pneumonia," said Dr. Sood. "They tend to get infected with bugs that require more aggressive therapy and antibiotics."

A common way to get hospital-acquired pneumonia is from the use of a ventilator, Reynold A. Panettieri, Jr., MD, director of the Rutgers Institute for Translational Medicine and Science, told Health.

"With a ventilator, the tube goes through your windpipe so you can still maintain oxygen to your heart and brain," explained Dr. Panettieri. "But that tube, which is a foreign object, can be a conduit for any bacteria to get directly into the lungs."

People who are on a ventilator are often sick to begin with so adding pneumonia on top of that can be dangerous. "The mortality of that is very high," said Dr. Panettieri.

Chemical Pneumonia

Chemical pneumonia is caused by a toxin you inhale, said Dr. Panettieri. "Classic chemical pneumonia was caused by chlorine gas, which was used as a weapon in World War I."

But it's also possible to get chemical pneumonia by accidentally breathing in large amounts of fumes from cleaning supplies, pool equipment, or even air fresheners if they're sprayed directly into someone's airways, said Dr. Casciari. "These things can physically irritate the lungs."

For treatment, corticosteroids can help with inflammation, according to MedlinePlus. Then, healthcare providers will usually provide supportive care until your lungs can heal themselves. "That might involve supplemental oxygen, fluids, and even mechanical ventilation," said Dr. Casciari.

Aspiration Pneumonia

Aspiration pneumonia is an infection that can happen when you accidentally inhale substances into your lungs, like your own stomach acid or food particles, according to MedlinePlus. That causes inflammation and "sometimes this injury can be followed by a secondary bacterial infection," said Dr. Monaco.

This condition is more common in people who have a brain injury, neurological disorder, trouble swallowing, or have used drugs or alcohol—anything that can interfere with the gag reflex that would help keep these substances out of the lungs, explained Dr. Casciari.

Treatment for aspiration pneumonia varies: "If the aspiration is small in amount and there is no sign of a secondary infection, we usually treat it supportively with oxygen and prevention of further aspiration," said Dr. Monaco. "Most patients recover fully."

If there's a lot of stuff in your airways, you may need a breathing tube and a procedure called a bronchoscopy to help remove everything, said Dr. Monaco, adding that antibiotics may also be needed.

A Quick Review

Pneumonia can be caused by various bacteria, fungi, or viruses, according to the American Lung Association. By diagnosing the type of pneumonia you have, you are one step closer to treating it. Whether you need rest, antibiotics, or supplemental oxygen—your healthcare provider can determine which kind of pneumonia you have and guide you through treatment.

Was this page helpful?
Related Articles