The American Lung Association (ALA) warns that pneumonia is a frequent cause of death, especially in infants and older adults with chronic diseases or weakened immune systems.
This article provides an overview of pneumonia, including types and causes. It also discusses symptoms of pneumonia and when to contact a doctor.

Classifying pneumonia is important because it helps guide treatment. The different types of pneumonia include the following.
Aspiration pneumonia
This kind of pneumonia occurs when you inhale particles or large amounts of material into the lungs. The material inhaled could include mouth secretions or stomach contents. This may inflame the lungs and introduce bacteria into them.
Normally, the body can clear small particles that you inhale. There are also mechanisms to prevent inhaling contents from your mouth or stomach. When something inhibits those protective actions, however, aspiration can occur.
Older adults, people who are vomiting, and individuals with swallowing problems or reflux are at risk of this kind of pneumonia. You can also develop it as a result of anesthesia or intoxication with alcohol or drugs.
Community-acquired pneumonia
This type of pneumonia is a
Nosocomial pneumonia
This type encompasses hospital-acquired pneumonia and healthcare-acquired pneumonia. You can get it while staying in a hospital or another kind of healthcare facility. This includes long-term care facilities and even outpatient care clinics, such as dialysis clinics.
Bacteria are the
People receiving ventilator treatment are at
People who are sick or recovering are also less able to fight off nosocomial pneumonia infections.
Fungal pneumonia
Certain fungi can cause pneumonia, particularly in people with weakened immune systems or chronic diseases. These fungi include:
- Aspergillus species
- Cryptococcus neoformans
- Pneumocytis jirovecii
Endemic fungi, which are types of fungi that occur in specific regions, can also cause respiratory conditions, including pneumonia. These endemic fungi include:
- Coccidioides species, present in the Southwestern United States
- Histoplasma capsulatum, present in the Mississippi and Ohio River Valleys
- Blastomyces dermatitidis, present in the upper Midwest
- Cryptococcus species, present in the Pacific Northwest
Fungal pneumonia is not contagious.
‘Walking pneumonia’
Walking pneumonia is not a medical type of pneumonia. Instead, this is a colloquial term for mild pneumonia that does not require bed rest or hospitalization. However, the ALA advises that even mild cases of pneumonia require self-care and rest for a quick recovery. Talk with your doctor if your symptoms do not go away after a few days or if they become worse.
Because COVID-19
Pneumonia signs and symptoms vary in type and severity. They depend on a variety of factors, such as your age, general health, and medical history. Symptoms are often more severe in people who have chronic illnesses, those with weakened immune systems, children younger than 2 years, and older adults.
During a pneumonia infection, inflamed alveoli can fill with fluid or mucus. This causes typical pneumonia symptoms that include:
- a loose, wet cough that produces thick white, yellow, green, or brownish phlegm
- chest congestion with pain or tightness
- fatigue or weakness
- fever and chills or sweating
- headaches
- muscle and body aches
- nausea or vomiting
How long does pneumonia last?
The recovery time for pneumonia varies from person to person, depending on the severity of the infection. The doctor recommending the treatment plan will give a more accurate prediction of your recovery timeline.
Some people may be able to return to their regular activities within a week or two. Others may take a month or longer. Lingering fatigue can take a month to resolve, and doctors encourage people to rest when they are tired.
Talk with your doctor about your symptoms. They will let you know when it is OK for you to return to your regular activities. Returning to the tasks of daily life too soon may cause a relapse in illness.
The recovery period can be longer if complications develop. Older adults, children, and people with weakened immune systems may be more likely to develop complications from the infection. Sepsis, acute respiratory distress syndrome (ARDS), and respiratory failure can cause longer recovery times.
Serious symptoms that might indicate a life threatening condition
According to the ALA, pneumonia can be life threatening in some cases. Seek immediate medical care by calling 911 for any of the following serious symptoms:
- bluish discoloration of the lips or fingernails
- confusion or disorientation
- a gurgling sound in the throat
- a fever higher than 101ºF (38ºC)
- lethargy or changes in consciousness
- wheezing, whistling breath sounds, rapid, labored breathing, or moderate to severe shortness of breath
- a rapid pulse
Bacteria and viruses are the most common causes of pneumonia. The infection usually spreads from person to person when someone with the infection coughs, talks, or sneezes. This sprays droplets containing bacteria into the air where others can inhale them. However, not everyone who is around these germs will get sick. It can depend on risk factors.
The ALA reports that Streptococcus pneumoniae bacteria are the most common bacterial cause of community-acquired pneumonia. Other bacteria include Chlamydia pneumoniae, Haemophilus influenzae, Legionella pneumoniae, and Mycoplasma pneumoniae.
L. pneumoniae are the bacteria responsible for Legionnaires disease, while M. pneumoniae bacteria cause walking pneumonia.
Common viruses that cause community-acquired pneumonia include influenza viruses, respiratory syncytial virus, and SARS-CoV-2.
Other causes of pneumonia include:
- choking or aspiration of food or liquid into the lungs
- a fungal or yeast infection
- inflammation of the lungs due to exposure to toxic gases or lung irritants
- near drowning
- trauma
Pneumonia can occur in any age group and population. However, the risk is highest for children ages 2 years or younger and for older adults. A number of other factors increase the risk of developing pneumonia, including:
- being immobile or bedridden for a long period of time
- being too ill or weak to effectively cough up mucus from the respiratory tract
- having acute bronchitis or a chronic disease, such as congestive heart failure, chronic obstructive pulmonary disease, asthma, or lung cancer
- having an impaired or weakened immune system
- having problems with chewing or swallowing and choking on foods or liquids
- inhaling toxic gases or other lung irritants, such as heavy smoke
- living in a long-term care facility
- not being vaccinated against pneumonia
- smoking
Reducing your risk of pneumonia
Not all people with risk factors will get pneumonia. You can lower your risk of catching or spreading pneumonia by:
- getting your COVID-19 vaccination, including recommended booster doses
- avoiding contact with people who have pneumonia, a cold, or the flu
- avoiding exposure to air pollutants, toxic gases, and lung irritants, such as heavy smoke
- avoiding long periods of immobility
- covering your mouth and nose with your elbow or a tissue when sneezing or coughing
- following your doctor’s advice for exercise and deep breathing exercises
- following your treatment plan for chronic illnesses and injuries
- not smoking
- washing the hands frequently with soap and water for at least 20 seconds
- getting the pneumococcal vaccine if you are an older adult, though you can get it at a younger age if you have a medical condition, as recommended by your primary care professional
Childhood vaccines that prevent pneumonia include Hib, MMR, pneumococcal, and varicella.
To diagnose pneumonia, your doctor will take a medical history, perform an exam, and order testing. Questions your doctor may ask include:
- What symptoms are you experiencing?
- How long have you had these symptoms?
- Do your symptoms interfere with your ability to do activities or interrupt sleep?
- What, if anything, seems to make your symptoms better or worse?
- Are you coughing up phlegm? If so, what color is it?
- Have you ever had pneumonia before?
- Have you had your pneumococcal and COVID-19 vaccines?
- What medical conditions do you have?
- What medications do you take?
During the exam, your doctor will listen to your lungs and breathing. Tests they may order include:
- blood tests to check your blood counts and look for signs of infection
- a chest X-ray to make images of your lungs
- pulse oximetry to check your blood oxygen saturation
- sputum culture to see what pathogen is causing pneumonia
If you require hospitalization for pneumonia, doctors may need to perform additional testing. This may include more imaging exams and more invasive lung tests, such as bronchoscopy.
The goals of pneumonia treatment include reducing your risk of serious complications and controlling your symptoms to allow you to rest and recover. Doctors may suggest managing mild to moderate cases in generally healthy adults at home. More severe cases or infections in infants, older adults, or people with chronic diseases often require hospitalization.
Bacterial pneumonia treatment requires antibiotics. Antibiotics are not effective for treating viral pneumonia. Other pneumonia treatments include:
- bronchodilators to help ease breathing and relieve shortness of breath
- cool-mist vaporizer
- fluids to prevent dehydration
- medications to relieve fever and body aches
- oxygen therapy to help relieve shortness of breath and ensure that vital organs, such as the heart and brain, get enough oxygen
- rest
Pneumonia vaccines
Pneumococcal vaccines help prevent the effects of bacterial pneumonia caused by S. pneumoniae. Although vaccination will not prevent all cases of the lung infection from developing, it can prevent serious complications, promote milder symptoms, and reduce recovery time.
There are two types of pneumococcal vaccines that can reduce the likelihood of developing pneumonia. The
Both types of the pneumococcal vaccine are highly effective in preventing pneumonia.
Influenza, or the flu, is a highly contagious viral infection that can cause pneumonia. The ALA recommends the yearly flu vaccine to help prevent pneumonia. Each year, the flu vaccines administered reflect the current strains that are circulating. Although they are not completely effective at blocking all cases of influenza, they can offer some important protection against the virus.
Learn about the factors that determine how effective flu vaccines are here.
The
In some people — especially infants, older adults, and people with chronic diseases — complications of pneumonia can be severe, even life threatening. They can include:
- ARDS
- death
- dehydration
- emphysema
- hypoxia
- lung abscess
- pleural effusion
- respiratory failure and respiratory arrest
- sepsis
- shock
Pneumonia is an infection that causes inflammation in the air sacs within the lungs. Viruses, bacteria, and fungi can cause pneumonia.
Viral pneumonia and bacterial pneumonia are contagious. Someone may acquire pneumonia from their day-to-day routine, during a hospital stay, or as a result of exposure to certain fungi in their environment.
Treatment for bacterial pneumonia involves taking antibiotics to kill the bacteria. Treatments for viral pneumonia focus on managing symptoms and allowing you to rest and recover.
Receiving the pneumococcal vaccine and the full course of the COVID-19 vaccination is a key step in lowering your risk of pneumonia infection.
Because complications of pneumonia can be severe or even life threatening, it is important to contact your primary care doctor or another healthcare professional for symptoms of pneumonia, including a loose, wet cough, chest pressure, and fever and chills.