Skip navigation

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

URL of this page: https://medlineplus.gov/pneumonia.html

Pneumonia

Also called: Bronchopneumonia

Summary

What is pneumonia?

Pneumonia is an infection in one or both of your lungs. It causes the air sacs of your lungs to fill up with fluid or pus. Pneumonia can range from mild to severe, depending on what caused it, your age, and your overall health.

What causes pneumonia?

Bacterial, viral, and fungal infections can cause pneumonia.

Bacteria are the most common cause. Bacterial pneumonia can occur on its own. It can also develop after you've had certain viral infections such as a cold or the flu. Several different types of bacteria can cause pneumonia, including:

Viruses that infect the respiratory tract may cause pneumonia. Viral pneumonia is often mild and goes away on its own within a few weeks. But sometimes it is serious enough that you need to get treatment in a hospital. If you have viral pneumonia, you are at risk of also getting bacterial pneumonia. The different viruses that can cause pneumonia include:

Fungal pneumonia is more common in people who have chronic health problems or weakened immune systems. Some of the types include:

Aspiration can also cause pneumonia. It can happen when you aspirate (accidentally breathe in) food or fluid into the lungs. If you are not able to cough out the food or fluid, it may cause an infection.

Who is more likely to develop pneumonia?

Anyone can develop pneumonia, but certain factors can increase your risk:

What are the symptoms of pneumonia?

The symptoms of pneumonia can range from mild to severe and include:

The symptoms can vary for different groups. Newborns and infants may not show any signs of the infection. Others may vomit and have a fever and cough. They might seem sick, with no energy, or be restless.

Older adults and people who have serious illnesses or weak immune systems may have fewer and milder symptoms. They may even have a lower-than-normal temperature. Older adults who have pneumonia sometimes may feel weak or suddenly get confused.

What other problems can pneumonia cause?

Sometimes pneumonia can cause serious complications such as:

  • Bacteremia, which happens when the bacteria move into the bloodstream. It is serious and can lead to septic shock.
  • Lung abscesses, which are collections of pus in cavities of the lungs.
  • Pleural disorders, which are conditions that affect the pleura. The pleura is the tissue that covers the outside of the lungs and lines the inside of your chest cavity.
  • Kidney failure.
  • Respiratory failure.

How is pneumonia diagnosed?

Sometimes pneumonia can be hard to diagnose. This is because it can cause some of the same symptoms as a cold or the flu. It may take time for you to realize that you have a more serious condition.

To find out if you have pneumonia, your health care provider:

  • Will take your medical history, which includes asking about your symptoms
  • Will do a physical exam, which includes listening to your lungs with a stethoscope
  • May order various tests, such as:
    • A chest x-ray
    • Blood tests such as a complete blood count (CBC) to see if your immune system is actively fighting an infection
    • A blood culture to find out whether you have a bacterial infection that has spread to your bloodstream

If you are in the hospital, have serious symptoms, are older, or have other health problems, you may also have more tests, such as:

  • Sputum test, which checks for bacteria in a sample of your sputum (mucus that is brought up from the lungs by coughing).
  • Chest CT scan to see how much of your lungs are affected. It may also show if you have complications such as lung abscesses or pleural effusions (a buildup of fluid in the pleural space).
  • Pleural fluid culture, which checks for bacteria in a fluid sample that was taken from the pleural space.
  • Pulse oximetry or blood oxygen level test, to check how much oxygen is in your blood.
  • Bronchoscopy, a procedure used to look inside your lungs' airways.

What are the treatments for pneumonia?

Treatment for pneumonia depends on the type of pneumonia, which germ is causing it, and how severe it is:

  • Antibiotics treat bacterial pneumonia and some types of fungal pneumonia. They do not work for viral pneumonia.
  • In some cases, your provider may prescribe antiviral medicines for viral pneumonia.
  • Antifungal medicines treat other types of fungal pneumonia.

You may need to be treated in a hospital if your symptoms are severe or if you are at risk for complications. While there, you may get additional treatments. For example, if your blood oxygen level is low, you may receive oxygen therapy.

It may take time to recover from pneumonia. Some people feel better within a week. For other people, it can take a month or more.

Can pneumonia be prevented?

Vaccines can help prevent pneumonia caused by pneumococcal bacteria or the flu virus. Washing your hands often, not smoking, and having a healthy lifestyle may also help prevent pneumonia.

NIH: National Heart, Lung, and Blood Institute

Start Here

Symptoms

Diagnosis and Tests

Prevention and Risk Factors

Related Issues

Specifics

Statistics and Research

Clinical Trials

Reference Desk

Children

Teenagers

Patient Handouts

The information on this site should not be used as a substitute for professional medical care or advice. Contact a health care provider if you have questions about your health.