What Is Pneumonia? Symptoms, Causes, and Treatment

Pneumonia is an infection that inflames the tiny air sacs in your lungs, causing them to fill with fluid or pus. This makes it harder for oxygen to pass from your lungs into your bloodstream, which is why breathing feels difficult and your body struggles to get the oxygen it needs. In 2021, pneumonia killed 2.1 million people worldwide, making it one of the deadliest infectious diseases on the planet.

What Happens Inside Your Lungs

Your lungs contain millions of small air sacs that work like transfer stations: oxygen from the air you breathe passes through their thin walls into your blood, and carbon dioxide moves the other direction to be exhaled. When bacteria, viruses, or fungi invade these air sacs, your immune system sends waves of defensive cells to fight the infection. White blood cells flood the area, and plasma leaks out of blood vessels into the surrounding tissue. This fluid buildup is what shows up as a white patch on a chest X-ray, and it’s what makes breathing feel heavy or labored.

The fluid that accumulates actually serves a purpose. It carries infection-fighting proteins like antibodies and complement molecules that help neutralize the invading germs. But this same protective response blocks the air sacs from doing their job. The thicker the fluid barrier, the less oxygen reaches your blood. In severe cases, oxygen levels drop low enough to affect your organs, and your breathing rate climbs as your body tries to compensate.

Common Symptoms

Pneumonia typically causes a combination of lung symptoms and whole-body symptoms. The most recognizable sign is a persistent cough, which may produce thick mucus. Bacterial pneumonia tends to produce yellow, green, or occasionally blood-tinged mucus, while viral pneumonia usually causes thinner, watery mucus. You may also feel a sharp or stabbing chest pain that worsens when you breathe deeply or cough, caused by inflammation of the tissue lining your lungs.

Beyond the lungs, pneumonia often brings fever with chills, muscle aches, fatigue, and loss of appetite. Viral pneumonia is more likely to start with these flu-like symptoms before the cough becomes prominent. Some people, particularly older adults, experience confusion or altered mental status rather than the classic respiratory symptoms, which can make the condition harder to recognize. Shortness of breath and a general feeling of heaviness in the chest are common, especially as the infection progresses.

Who Is Most at Risk

Age is the strongest single risk factor. Children under 5 and adults over 65 are the most vulnerable groups, and risk increases at the extremes: a 1-year-old faces greater risk than a 4-year-old, and an 80-year-old faces greater risk than a 65-year-old. Of the 2.1 million pneumonia deaths recorded globally in 2021, more than 500,000 were children under 5 and over 1 million were adults over 70.

Chronic medical conditions significantly raise your chances of developing pneumonia. Heart disease, liver disease, lung diseases like COPD or asthma, and diabetes all increase susceptibility. People with weakened immune systems, whether from medications, HIV, cancer treatment, or organ transplants, face the greatest risk because their bodies can’t mount an effective initial defense against invading germs.

How Pneumonia Is Diagnosed

A chest X-ray is the primary tool for confirming pneumonia. It reveals the fluid-filled areas in your lungs, shows how much of the lung is affected, and helps distinguish pneumonia from other conditions that cause similar symptoms. If the infection isn’t responding to treatment as expected, a CT scan provides a more detailed view.

Pulse oximetry, the small clip placed on your fingertip, measures how much oxygen is reaching your blood. This gives doctors an immediate sense of how severely the infection is affecting your breathing. Blood tests help confirm that an infection is present and can sometimes identify the specific organism responsible. A sputum test, where you cough up a sample of mucus from deep in your lungs, can also help pinpoint the cause. In more complicated cases, doctors may take a sample of fluid from around your lungs using a needle to identify the infection.

Treatment for Bacterial vs. Viral Pneumonia

Bacterial pneumonia is treated with antibiotics. Most people who don’t need hospitalization receive oral antibiotics and recover at home. The specific type of antibiotic depends on the suspected bacteria and how sick you are. People sick enough to be hospitalized typically receive stronger antibiotics, sometimes through an IV, and those in intensive care get combination therapy to cover a broader range of possible bacteria.

Viral pneumonia is trickier. Outside of influenza, which has targeted antiviral medications, there are limited antiviral options for most viral pneumonias. Treatment focuses on supporting your body while your immune system fights the infection. This includes supplemental oxygen if your blood oxygen drops below healthy levels (doctors aim to keep it between 94% and 98%), along with fluids and rest. For both types, getting up and moving around as soon as you’re able, rather than staying in bed, is strongly recommended because it helps your lungs clear and reduces the risk of blood clots.

Recovery Timeline

Some people feel well enough to return to normal activities within one to two weeks, but for others, recovery takes a month or longer. Even after the infection clears and your cough fades, fatigue commonly lingers for about a month. This is one of the most underestimated aspects of pneumonia: people expect to bounce back once the fever breaks, but the body needs significant time to repair the lung damage and replenish energy reserves.

Older adults, people with chronic conditions, and those who were hospitalized generally face longer recovery periods. Pushing back to full activity too quickly can slow healing. Gradual return to your normal routine, guided by how you feel rather than a fixed calendar, tends to work best.

Serious Complications

Most pneumonia cases resolve with proper treatment, but severe infections can escalate. About 11% of people hospitalized with community-acquired pneumonia develop septic shock, where the infection triggers a dangerous drop in blood pressure and widespread inflammation throughout the body. Sepsis is the primary pathway through which pneumonia leads to its most serious complication: acute respiratory distress syndrome, or ARDS, a condition where the lungs become so inflamed and fluid-filled that they can no longer provide enough oxygen even with mechanical support.

Pneumonia is the single most common cause of ARDS, and the combination carries a high mortality rate. Fluid can also collect in the space between the lung and the chest wall, a condition called pleural effusion, which may need to be drained. Bacteria can spread from the lungs into the bloodstream, seeding infections in other organs.

Vaccines and Prevention

Pneumococcal vaccines protect against the most common bacterial cause of pneumonia. The CDC recommends all children under 5 receive a four-dose vaccine series starting at 2 months of age, with additional doses at 4 months, 6 months, and between 12 and 15 months. Several vaccine formulations are available, including PCV15, PCV20, and PCV21, each covering different strains of bacteria.

For adults 50 and older who have never received a pneumococcal conjugate vaccine, the CDC recommends getting one. If you receive PCV20 or PCV21, no additional pneumococcal vaccination is needed. If you receive PCV15, a follow-up dose of a different vaccine (PPSV23) is recommended about a year later. Adults 65 and older who have already completed a previous vaccination series can discuss with their doctor whether an updated vaccine makes sense for them.

Beyond vaccination, the standard prevention advice applies: frequent handwashing, avoiding close contact with sick individuals, not smoking (which damages the lung’s natural defenses), and managing chronic conditions that increase your vulnerability.