Pneumonia is typically classified into five types: bacterial, viral, fungal, aspiration, and walking pneumonia. Some sources instead group pneumonia by where you caught it (community-acquired, hospital-acquired, or ventilator-associated), but most people searching for the “five types” want to understand the different forms the infection can take and how they differ from one another.
Bacterial Pneumonia
Bacterial pneumonia is the most common form and tends to be the most severe. The bacterium most often responsible is Streptococcus pneumoniae, though several other bacteria can cause it. Symptoms usually appear within one to three days of exposure and come on fast: high fever, chills, chest pain, cough that produces thick mucus, and rapid or labored breathing. In older adults, the presentation can look different. Instead of a classic fever and cough, confusion or unusual drowsiness may be the first sign something is wrong.
Bacterial pneumonia often follows another illness, like a cold or the flu, that has already weakened your airways. It responds to antibiotics, but the specific course depends on the bacteria involved and how sick you are. Most otherwise healthy people recover at home over one to three weeks, though fatigue can linger longer.
Viral Pneumonia
Viruses cause a significant share of pneumonia cases, especially in children and older adults. The most common culprits are influenza, respiratory syncytial virus (RSV), and coronaviruses (including COVID-19). Parainfluenza, adenovirus, and human metapneumovirus also contribute.
Viral pneumonia generally feels similar to bacterial pneumonia, but there are some distinguishing patterns. Chest pain and shaking chills are less common with viral forms. RSV infections tend to cause more runny nose, mucus production, and wheezing compared to influenza, which is more likely to bring on fever and gastrointestinal symptoms. Many viral pneumonias start as an upper respiratory infection, like a cold, that gradually moves deeper into the lungs.
Antibiotics don’t work against viruses, so treatment focuses on managing symptoms and supporting your body while it fights the infection. One important complication to watch for: a bacterial infection can develop on top of the viral one. If you start improving and then suddenly spike a new fever with thicker, discolored mucus, that pattern suggests a secondary bacterial pneumonia has set in, which does need antibiotics.
Fungal Pneumonia
Fungal pneumonia is less common than bacterial or viral types and typically affects people with weakened immune systems, such as those undergoing chemotherapy, living with HIV, or taking immunosuppressive medications after an organ transplant. The fungi that cause it often live in soil or bird droppings and are inhaled as microscopic spores. In the United States, certain species are concentrated in specific regions. Valley fever is most common in the Southwest, while histoplasmosis clusters in the Ohio and Mississippi River valleys.
For most healthy people, breathing in these spores causes no illness at all, or at most a mild infection that resolves on its own. But in someone with a compromised immune system, the same exposure can lead to a serious lung infection that requires antifungal treatment over weeks or months. Symptoms often develop slowly, with a low-grade fever, cough, fatigue, and night sweats that can easily be mistaken for other conditions.
Aspiration Pneumonia
Aspiration pneumonia develops when food, liquid, saliva, or stomach contents are accidentally inhaled into the lungs instead of swallowed into the stomach. The inhaled material introduces bacteria from the mouth and throat into lung tissue that’s normally sterile, triggering an infection.
This type is most common in people who have difficulty swallowing. Stroke survivors, people with neurological diseases like Parkinson’s or dementia, and frail older adults are at the highest risk. But the swallowing problem alone isn’t usually enough to cause pneumonia. The risk climbs significantly when it’s combined with factors that increase the number of harmful bacteria in the mouth: poor oral hygiene, dry mouth, malnutrition, or smoking. That’s why good dental care and oral hygiene are a surprisingly important part of prevention for people at risk.
Aspiration pneumonia is becoming increasingly recognized as a cause of severe, life-threatening lung infections among frail and very elderly patients, particularly those who are hospitalized. It can be harder to treat than other forms because the bacteria involved are often a mix of species, and the patients who develop it tend to already be medically vulnerable.
Walking Pneumonia
Walking pneumonia is the informal name for a mild form of pneumonia, most often caused by the bacterium Mycoplasma pneumoniae. The name comes from the fact that people who have it usually don’t feel sick enough to stay in bed. You might have a persistent cough, low-grade fever, chills, fatigue, and some shortness of breath, but still be going to work or school. The phrase “walking pneumonia” was coined because patients can look surprisingly well for someone with a lung infection.
Walking pneumonia spreads through respiratory droplets when an infected person coughs or sneezes, and it tends to circulate in close-contact settings like schools, college dorms, and military barracks. It typically resolves on its own, though antibiotics can shorten the illness. The cough, however, can drag on for weeks even after the infection clears.
Where You Caught It Matters Too
Beyond these five types, doctors also classify pneumonia by the setting where you were exposed, because it changes which germs are most likely responsible and how aggressively the infection needs to be treated.
Community-acquired pneumonia (CAP) is any pneumonia you pick up in everyday life, outside a healthcare facility. It’s the most common category and covers most of the types described above. Hospital-acquired pneumonia (HAP) is defined as pneumonia that develops 48 hours or more after being admitted to a hospital. The bacteria circulating in hospitals tend to be more drug-resistant, which makes HAP harder to treat. Ventilator-associated pneumonia (VAP) is a subset of HAP that develops 48 hours or more after a breathing tube is placed. The tube bypasses the body’s normal defenses against inhaled germs, creating a direct path for bacteria to enter the lungs.
How Pneumonia Is Diagnosed
Diagnosing pneumonia generally requires two things: symptoms that fit the picture (fever, cough, shortness of breath, mucus production) and an imaging study that shows infection in the lungs. For most people, that means a standard chest X-ray taken from the front and side. Doctors look for areas of dense white consolidation, hazy patches called infiltrates, or, in more severe cases, cavities in the lung tissue.
While certain X-ray patterns hint at specific causes (a solid, well-defined area of white is more suggestive of bacterial infection, for instance), imaging alone can’t reliably tell bacterial pneumonia from viral or other types. Blood tests, mucus cultures, and sometimes point-of-care lung ultrasound help narrow down the specific cause, which guides the treatment approach.