There are differenttypes of pneumonia.
In most cases, pneumonia is due to a bacterial or viral infection.
In rarer cases, pneumonia can be triggered by inhaling fluid into the lungs or from a fungal infection.

Phynart Studio / Getty Images
When people discuss types of pneumonia, they also consider how severe the infection is.
People also distinguish pneumonia cases by where they were picked up: for example, hospital-acquired pneumonia orcommunity-acquired pneumonia.
Phynart Studio / Getty Images
Viral
Viral infections are one of the most common types of pneumonia.
Having viral pneumonia can increase your risk of developing bacterial pneumonia, which is often more severe.
Bacterial
Bacterial infection can also lead to pneumonia.
Bacterial infections can progress quickly, so dont hesitate to seek help if your symptoms worsen.
Walking
Walking pneumonia is a key in of bacterial infection also known as mycoplasma pneumonia.
Walking pneumonia is often spread in crowded living spaces, like dormitories or jails.
Symptoms
The most common symptom of walking pneumonia in adults is a persistent, dry cough.
The cough often continues to get worse, eventually becoming a productive cough that brings up mucus.
Kids often present with a fever or sluggishness before developing a cough that gets worse at night.
However, the cough from walking pneumonia can last for a month or more.
This happens most commonly in people who have a suppressed immune system or other chronic health conditions.
Antifungal medications can help treat fungal pneumonia.
This happens most often with food or drink.
When a person aspirates food or drink, bacteria can be introduced into the lungs.
This can lead to the development of bacterial pneumonia.
In other cases, a person might breath in chemicals that damage the lungs.
This can lead to chemical pneumonitis, an inflammation of the lungs that can progress into pneumonia.
Chemical pneumonitis can lead to chronic lung problems.
If you believe you have inhaled chemicals, it’s best to seek medical treatment.
American Lung Association.What is walking pneumonia?
Centers for Disease Control and Prevention.New CDC study highlights burden of pneumonia hospitalizations among US adults.
American Lung Association.How is pneumonia treated?
Centers for Disease Control and Prevention.Pneumonia.