Overview

What Is Pneumonia?

Pneumonia is an infection or inflammation of the tiny air sacs in one or both lungs. The air sacs may fill with fluid or pus, making it harder to breathe and get enough oxygen. What is pneumonia like can vary widely: illness may be mild, or it may become life-threatening. Pneumonia can affect people of any age and may be caused by bacteria, viruses, fungi, or less common factors.

Symptoms

Pneumonia Symptoms

Pneumonia symptoms can begin suddenly or develop gradually, depending on the cause, a person’s age, and overall health. Symptoms of pneumonia in adults may interfere with normal activities, while infants and older adults may show less typical signs. Walking pneumonia symptoms are often milder, but they still deserve medical attention.

  • Cough, which may produce mucus
  • Fever or chills
  • Shortness of breath
  • Chest pain with breathing or coughing
  • Fatigue
  • Sweating
  • Nausea or vomiting
  • Confusion
  • Blue or gray lips or fingertips, which may indicate low oxygen

How It Spreads

How Pneumonia Spreads

Pneumonia itself is not always contagious. However, viruses and bacteria that cause some cases can spread through respiratory droplets, close contact, or contaminated hands and surfaces. Exposure does not always lead to pneumonia; a person’s immune system, health conditions, and other risk factors also affect whether an infection develops into pneumonia.

CauseHow it may spreadKey consideration
ViralRespiratory droplets, aerosols, close contact, or contaminated hands and surfacesA respiratory virus may cause pneumonia directly or make a secondary infection more likely.
BacterialRespiratory droplets or close contact in some casesBacterial pneumonia is not spread by every exposure, and some cases follow another respiratory infection.
FungalUsually by breathing in fungal spores from the environmentMost fungal causes do not spread from person to person; risk is higher with certain immune problems or exposures.

Risk Factors

Pneumonia Risk Factors

Pneumonia risk factors can increase the chance of developing an infection or the risk of serious complications. Some factors, such as age and chronic illness, cannot be changed, while others, such as smoking and infection exposure, may be reduced. Knowing these factors can help people and clinicians plan prevention and seek care early.

  • Being an infant or young child
  • Being an older adult
  • Having a weakened immune system
  • Having chronic heart disease
  • Having chronic lung disease
  • Smoking or regular exposure to tobacco smoke
  • A recent respiratory infection
  • Recent hospitalization or use of a ventilator
  • Swallowing problems that increase the risk of aspiration
  • Exposure to air pollution
  • Spending time in crowded settings

Complications

Pneumonia Complications

Many people recover from pneumonia with appropriate care, but the illness can become serious or affect other organs. Complications are more likely in older adults, infants, people with chronic conditions, and those with weakened immunity. This is why pneumonia can sometimes be deadly and why worsening symptoms need prompt medical evaluation.

  • Respiratory failure
  • Sepsis
  • Fluid around the lungs
  • Lung abscess
  • Worsening of a chronic disease
  • Hospitalization

Seek urgent help

Know the signs of severe illness

Call emergency services for worsening breathing, blue or gray lips or face, new confusion, or an inability to stay awake. These signs may indicate dangerously low oxygen or another serious complication.

Diagnosis

How Pneumonia Is Diagnosed

Diagnosis is based on the medical history, symptoms, physical examination, oxygen level, and tests selected according to the suspected cause and severity. A clinician may assess how quickly symptoms began, listen to the lungs, and look for signs of infection or low oxygen. Testing helps distinguish pneumonia from other causes of cough and breathing problems.

  • Listening to the lungs with a stethoscope
  • Pulse oximetry to check blood oxygen
  • Chest X-ray
  • Blood tests
  • Sputum testing
  • Molecular tests for selected infectious causes

Treatment & Management

Pneumonia Treatment and Management

Pneumonia treatment depends on whether the cause is bacterial, viral, fungal, or another type, as well as symptom severity and the person’s overall health. Some people can recover at home with supportive care, while severe illness may require oxygen or hospital treatment. A clinician should guide the treatment plan rather than relying on self-diagnosis.

  • Rest and fluids when appropriate
  • Fever or pain relief as directed
  • Prescribed antibiotics for selected bacterial infections
  • Antiviral treatment when indicated
  • Antifungal treatment when indicated
  • Oxygen therapy for low oxygen levels
  • Hospital care for severe illness

Medication safety

Use treatment only as directed

Do not start leftover antibiotics or stop a prescribed course without medical advice. Antibiotics do not treat viral pneumonia, and using them when they are not needed can cause side effects and contribute to antibiotic resistance.

Prevention

Pneumonia Prevention

Pneumonia prevention combines recommended vaccines with steps that reduce exposure to respiratory infections. Avoiding tobacco smoke and managing chronic conditions may also lower risk or reduce the chance of severe illness. Ask a clinician which vaccines and preventive measures are appropriate for your age and health.

  • Stay current with recommended vaccines
  • Wash hands regularly
  • Improve indoor ventilation
  • Avoid smoking and secondhand smoke
  • Manage chronic diseases
  • Ask a clinician about aspiration risk when swallowing is difficult

Outlook and Prognosis

Pneumonia Outlook and Prognosis

Many people improve with appropriate care, but recovery varies from person to person. Cough and fatigue may continue after fever and breathing improve, so recovery does not always happen all at once. How long does pneumonia last depends on the cause, severity, treatment response, and a person’s general health.

  • The infectious cause
  • Age
  • Immune status
  • Chronic illnesses
  • Oxygen level
  • Complications
  • How quickly treatment begins

When Should You See a Doctor

When Should You See a Doctor for Pneumonia?

  • A new or worsening cough with fever
  • Shortness of breath
  • Chest pain
  • A low oxygen reading
  • Symptoms in an infant or older adult
  • Symptoms in someone with major medical conditions

Emergency symptoms

Get immediate medical help

Call emergency services for severe trouble breathing, blue or gray lips or face, sudden confusion, fainting, inability to stay awake, or rapidly worsening symptoms. Do not wait for symptoms to improve when these warning signs are present.

Branches

2 topics

Viruses

1 topic

Symptoms

3 topics