There isn’t a single number. Pneumonia is classified in several overlapping ways, and depending on which system you use, you could count anywhere from 4 to more than 30 distinct types. The three main ways doctors categorize pneumonia are by where you caught it, what caused it, and how it affects your lungs. Understanding these categories matters because each type can differ in severity, treatment, and outlook.
In 2021, pneumonia killed 2.2 million people worldwide, including 502,000 children. Nearly half of pneumonia deaths in adults over 50 are linked to air pollution and smoking. It remains one of the leading infectious causes of death globally, which is why getting the type right changes everything about how it’s treated.
Classification by Where You Got It
The first question doctors ask isn’t “what germ caused this?” but “where were you when you got sick?” That’s because the setting determines which organisms are most likely responsible, and how aggressive treatment needs to be.
Community-acquired pneumonia (CAP) is the most common form. You pick it up in everyday life, outside of a hospital or healthcare facility. It’s what most people picture when they think of pneumonia.
Hospital-acquired pneumonia (HAP) develops 48 hours or more after being admitted to a hospital for something else entirely. The bacteria circulating in hospitals tend to be more resistant to standard treatments, making HAP harder to manage than community-acquired cases.
Ventilator-associated pneumonia (VAP) is a subset of HAP that occurs more than 48 hours after a patient is placed on a breathing machine. The tube bypasses many of the body’s natural defenses against infection, giving bacteria a direct path into the lungs.
Some classification systems also recognize healthcare-associated pneumonia as a separate category, covering people who develop pneumonia after spending time in nursing homes, dialysis centers, or outpatient clinics. The distinction matters because these patients are exposed to a different mix of germs than someone who gets sick at home.
Classification by What Causes It
This is where the number of pneumonia “types” expands significantly. Dozens of different organisms and substances can inflame the lungs, and they fall into several broad groups.
Bacterial Pneumonia
Bacteria are the most common cause of pneumonia serious enough to require medical care. The single biggest culprit is the pneumococcal bacterium, which is why pneumococcal vaccines exist. Other bacteria frequently involved include those responsible for Legionnaires’ disease and various hospital-acquired infections. Each bacterial species can produce a somewhat different pattern of illness, but they generally share features like high fever, productive cough, and rapid onset.
Viral Pneumonia
Viruses cause a large share of pneumonia cases, especially in children and older adults. Influenza, RSV, COVID-19, and even the chickenpox virus can all trigger lung infections. Viral pneumonia often starts with upper respiratory symptoms that gradually worsen, and it tends to cause a dry cough rather than one that produces thick mucus. In people with weakened immune systems, viruses like chickenpox can spread to the lungs and cause severe pneumonitis.
Fungal Pneumonia
Three major fungal pneumonias circulate in specific regions of the United States. Valley fever comes from a fungus in southwestern soils. Histoplasmosis is linked to soil contaminated with bird or bat droppings, particularly in the Ohio and Mississippi River valleys. Blastomycosis comes from a soil fungus found in parts of the Midwest and Southeast. These infections often go undiagnosed at first because they can mimic bacterial pneumonia or even lung cancer on imaging.
A separate group of fungal pneumonias are classified as opportunistic, meaning they primarily strike people whose immune systems are compromised. The most notable is PCP (Pneumocystis pneumonia), which remains the most common opportunistic infection in people with HIV. Invasive aspergillosis is another, particularly dangerous for organ transplant recipients during periods when their immune function is at its lowest.
Atypical and “Walking” Pneumonia
Walking pneumonia gets its name from the fact that people often feel well enough to go about their daily routines despite having a lung infection. It’s most commonly caused by Mycoplasma pneumoniae, a bacterium that damages the lining of the respiratory tract. Symptoms take one to four weeks to appear after exposure and can linger for weeks. The infection spreads through coughing and sneezing, and some people carry it without symptoms at all. Despite the casual-sounding name, walking pneumonia can occasionally become severe.
Non-Infectious Types
Not all pneumonia is caused by germs. Several types result from physical or chemical injury to the lungs.
Aspiration pneumonia happens when bacteria-laden saliva or food particles from the mouth are inhaled into the lungs. This is especially common in people who have difficulty swallowing, whether from a stroke, neurological condition, or heavy sedation. The inhaled material introduces bacteria that the lungs can’t easily clear.
Aspiration pneumonitis is a related but distinct condition. It occurs when acidic stomach contents are inhaled, causing a chemical burn to the lung tissue. The damage unfolds in two waves: a direct acid injury that peaks within one to two hours, followed by an inflammatory response peaking at four to six hours as immune cells flood the affected tissue. If food particles are inhaled along with the acid, severe lung damage can occur even if the acid itself isn’t highly concentrated.
Eosinophilic pneumonia is an inflammatory condition in which a specific type of white blood cell accumulates in the lungs. It comes in two forms. The acute version develops over days to two weeks and can be triggered by inhaled toxins, chemical fumes, metal dust, smoke from fires, or vaping. Returning to cigarette smoking after quitting is a recognized trigger. The chronic version worsens over weeks to months and can be caused by certain medications, parasitic infections, fungal allergies, or radiation therapy to the chest.
Lipoid pneumonia results from fat-based substances entering the lungs. This can happen from inhaling oil-based nasal drops, mineral oil laxatives, or certain vaping products.
How Doctors Figure Out Which Type You Have
A CT scan is considered the reference standard for diagnosing pneumonia, producing detailed cross-sectional images of the lungs. In practice, though, a standard chest X-ray is often the first test ordered. Chest X-rays catch about 65% of pneumonia cases, while lung ultrasound, increasingly used in intensive care settings, detects roughly 93% with similar accuracy to CT for ruling out other conditions.
Beyond imaging, doctors may test sputum samples, blood cultures, or nasal swabs to identify the specific organism. In hospital settings, rapid identification of the pathogen is critical because it determines whether you need antibiotics, antivirals, antifungals, or primarily supportive care.
Vaccines That Prevent Bacterial Pneumonia
Pneumococcal vaccines are the primary tool for preventing the most common and dangerous form of bacterial pneumonia. Current CDC recommendations call for all adults 50 and older who have never received a pneumococcal conjugate vaccine to get one. The newer vaccine formulations (PCV20 and PCV21) are single-dose options that complete the vaccination series on their own. The older PCV15 requires a follow-up dose of a different vaccine about a year later.
For adults 65 and older who already received certain earlier vaccine versions, the decision about whether to get an updated vaccine is made through a conversation with their healthcare provider, weighing individual risk factors. People with weakened immune systems, cochlear implants, or cerebrospinal fluid leaks may be eligible for an accelerated schedule with as little as eight weeks between doses.
Flu and COVID-19 vaccines also reduce pneumonia risk indirectly, since viral respiratory infections frequently open the door to secondary bacterial pneumonia.