How Does Pneumonia Happen? Stages and Risk Factors

Pneumonia happens when bacteria, viruses, or other pathogens get past your body’s natural defenses and infect the tiny air sacs in your lungs. These air sacs, called alveoli, normally stay dry and filled with air so oxygen can pass into your bloodstream. When they fill with fluid, pus, and debris from the infection, oxygen can no longer move efficiently into your blood, and you get sick. In the United States alone, pneumonia sends about 1.2 million people to emergency departments each year and caused over 41,600 deaths in 2024.

How Pathogens Reach Your Lungs

Your lungs have several layers of protection: nose hairs filter large particles, mucus traps smaller ones, and tiny hair-like structures lining your airways sweep contaminated mucus back up toward your throat. For pneumonia to develop, a pathogen has to slip past all of these barriers. That typically happens through one of three routes.

The most common route is simply breathing in airborne droplets that contain bacteria or viruses. When someone nearby coughs or sneezes, you can inhale those droplets directly into your lower airways. This is how most community-acquired pneumonia spreads.

The second route is aspiration, which means something from your mouth or stomach travels down into your lungs instead of your esophagus. Small amounts of saliva slip into the lungs more often than most people realize. These “silent” microaspirations usually cause no harm because your immune system handles the small bacterial load. But when aspiration happens repeatedly, the lining of the airways gets damaged over time, making infection much more likely. People who are sedated, unconscious, or have difficulty swallowing (from a stroke or neurological condition, for example) are especially vulnerable.

A third, less common route is through the bloodstream. An infection somewhere else in the body can release pathogens into the blood, which then travel to the lungs and take hold there.

What Happens Inside Your Lungs

Once pathogens establish themselves in the alveoli, your immune system launches an aggressive response. The first responders are macrophages, immune cells that already live in your lungs. They engulf and destroy invaders, and they send out chemical alarm signals that recruit reinforcements from the bloodstream.

Those reinforcements are mainly neutrophils, a type of white blood cell that kills bacteria through powerful chemical reactions, including bursts of reactive oxygen. Neutrophils flood into the infected area, and while they’re effective at killing pathogens, they also cause significant collateral damage to surrounding lung tissue. Macrophages play a dual role here: they help fight the infection but also release anti-inflammatory signals that keep the neutrophils from causing too much destruction. When that balance tips too far toward inflammation, the damage escalates quickly.

The walls of the alveoli become inflamed and leaky. Fluid, proteins, dead cells, and immune debris seep into the air sacs. This accumulation is essentially what pneumonia is. The fluid-filled alveoli can no longer exchange oxygen and carbon dioxide the way they’re supposed to. In severe cases, the barrier between the air sacs and surrounding blood vessels breaks down almost entirely, leading to dangerous drops in blood oxygen levels.

The Four Stages of Infection

Classic bacterial pneumonia that affects an entire section of the lung progresses through four recognizable stages. Not everyone experiences all four distinctly, and viral pneumonia follows a less predictable pattern, but these stages illustrate how the disease unfolds.

  • Congestion: The lung tissue becomes heavy and waterlogged. Blood vessels in the area engorge, and fluid rich in bacteria begins filling the alveoli. At this point, few immune cells have arrived yet.
  • Red hepatization: Red blood cells, neutrophils, and a clotting protein called fibrin pour into the alveolar spaces. The affected lung tissue turns red and firm, with a texture similar to liver.
  • Gray hepatization: The red blood cells break down, and the remaining mixture of fibrin, dead cells, and pus shifts the tissue to a grayish color. This is typically the peak of the inflammatory response.
  • Resolution: Macrophages move in to clean up the debris. The fluid is gradually cleared, and the lung tissue heals, sometimes with minor scar tissue left behind.

The whole cycle can take one to three weeks in uncomplicated cases, though recovery often takes longer in older adults or people with other health conditions.

Bacterial vs. Viral Pneumonia

Bacteria and viruses attack lung tissue differently. Bacterial pneumonia tends to consolidate in one area, filling a defined section of the lung with fluid and pus. On chest X-rays, this shows up as a dense white patch. Viral pneumonia more often produces a diffuse, web-like pattern of inflammation that spreads across both lungs rather than concentrating in one spot.

In practice, the two aren’t always easy to tell apart. Studies in children have shown that about half of those with the diffuse, interstitial pattern on imaging still had evidence of bacterial infection. And bacterial pneumonia can sometimes produce patterns that look viral. This overlap is one reason doctors sometimes start antibiotics while waiting for test results, since bacterial pneumonia responds to antibiotics and viral pneumonia does not.

Who Is Most Vulnerable

Age sits at both ends of the risk spectrum. Children under 2 are at higher risk because their immune systems are still developing, with premature babies facing even greater vulnerability. Adults 65 and older face elevated risk because immune function declines with age, and they’re more likely to have chronic conditions that compound the danger.

Smoking is one of the most significant modifiable risk factors. It impairs the mucus-clearing mechanisms that normally sweep pathogens out of the airways, effectively dismantling one of the lungs’ primary defenses. Alcohol and drug use also weaken immune function, and being sedated or unconscious raises the chance of aspirating saliva or vomit into the lungs.

A long list of chronic conditions raises pneumonia risk as well. Lung diseases like asthma, COPD, and cystic fibrosis create environments where pathogens thrive. Conditions that suppress the immune system, including HIV, organ transplants, chemotherapy, and long-term steroid use, leave the body less equipped to fight off infection. Neurological conditions like stroke, dementia, and Parkinson’s disease can impair the ability to cough or swallow effectively, making aspiration more likely. Diabetes, heart failure, liver disease, kidney disease, sickle cell disease, and malnutrition all add additional risk.

Your environment matters too. Living in crowded settings like nursing homes, military barracks, shelters, or prisons increases exposure to respiratory pathogens. Regularly breathing in air pollution or toxic fumes damages the airways over time. And hospitalization itself is a major risk factor: patients in intensive care units, especially those on ventilators, face a distinct category called ventilator-associated pneumonia because the breathing tube bypasses nearly all of the body’s natural airway defenses.

Why Some Cases Turn Severe

Most healthy adults recover from pneumonia within a few weeks, but the disease turns dangerous when the immune response spirals out of control or the body can’t contain the infection. When macrophages are overwhelmed and can’t regulate the neutrophil response, neutrophils release excessive amounts of reactive oxygen species. These molecules are meant to kill bacteria, but in large quantities they destroy healthy lung tissue, leading to widespread cell death through both programmed and uncontrolled pathways.

This cascading damage can break down the alveolar-capillary barrier, the thin membrane that separates air from blood. Once that barrier fails, protein-rich fluid floods the alveoli and a substance called surfactant (which normally keeps the air sacs open) is lost. The air sacs collapse, the lungs stiffen, and blood oxygen drops to dangerous levels. This is the progression toward acute respiratory distress syndrome, the most severe form of lung injury from pneumonia. At that point, mechanical ventilation is often needed to maintain oxygen levels while the lungs attempt to heal.