What Happens Inside Your Lungs During Pneumonia
Your lungs contain roughly 300 million tiny air sacs called alveoli. These grape-like clusters are where the magic of breathing happens: oxygen from inhaled air passes through the paper-thin walls of the alveoli into your bloodstream, and carbon dioxide passes from your blood into the alveoli to be exhaled. The walls are so thin that gas exchange happens in milliseconds.
Pneumonia occurs when bacteria, viruses, or fungi infect the alveoli. The immune system responds by flooding the area with white blood cells and inflammatory fluid. The alveoli fill with pus and fluid, turning air-filled spaces into waterlogged sacs. Where gas exchange once happened effortlessly, there is now a barrier of fluid and debris. Oxygen cannot get through. Carbon dioxide cannot get out. Your blood oxygen drops. Your body starves.
The infection can affect a small section of one lung (lobar pneumonia) or be scattered throughout both lungs (bronchopneumonia). The more lung tissue involved, the more severe the oxygen deprivation and the more dangerous the condition becomes.
A 72-year-old retired engineer caught what he thought was a bad cold. After a week, instead of improving, he developed a high fever, shaking chills, and a cough producing rust-colored sputum. His wife brought him to the ER when she noticed his lips had a bluish tinge. His blood oxygen was 82 percent — normal is 95 to 100 percent. X-rays showed pneumonia filling the lower lobe of his right lung. He spent five days in the hospital on intravenous antibiotics and supplemental oxygen. He survived, but later said: "I have never been that sick in my life. I could not breathe. I thought I was going to die."
Types and Causes — Not All Pneumonia Is the Same
Bacterial pneumonia: The most common and most dangerous type in adults. Streptococcus pneumoniae (pneumococcus) is the leading bacterial cause worldwide. It typically comes on suddenly with high fever, shaking chills, and productive cough. Other bacteria include Haemophilus influenzae, Staphylococcus aureus, and Legionella. Bacterial pneumonia is treated with antibiotics and most patients improve within 48 to 72 hours of starting treatment.
Viral pneumonia: Caused by influenza, respiratory syncytial virus (RSV), SARS-CoV-2 (COVID-19), and other respiratory viruses. Often starts gradually, with dry cough and muscle aches before progressing. Viral pneumonia can be mild or devastating — COVID-19 demonstrated to the world how a viral pneumonia can overwhelm hospitals and kill millions. Antibiotics do not work against viruses; treatment is supportive (oxygen, fluids) and antiviral medications when available.
Aspiration pneumonia: Occurs when food, liquid, saliva, or stomach contents are inhaled into the lungs rather than swallowed into the stomach. Common in stroke patients, people with swallowing disorders, heavy alcohol or sedative use, and during anesthesia. The aspirated material introduces bacteria into the lungs and causes chemical irritation.
Hospital-acquired pneumonia (HAP): Develops 48 or more hours after hospital admission. It is typically caused by more resistant bacteria and is more difficult to treat. Ventilator-associated pneumonia (VAP) affects patients on mechanical ventilation and carries a mortality rate of 20 to 50 percent.
Warning Signs — When a Cough Becomes an Emergency
The symptoms of pneumonia can range from mild to life-threatening. A 35-year-old healthy adult may experience what feels like a bad chest cold that gradually worsens. A 75-year-old with heart failure may go from feeling slightly unwell to being in respiratory failure within 24 hours.
Classic symptoms: Cough (often productive, with yellow, green, or rust-colored sputum). High fever and shaking chills. Shortness of breath, particularly with activity that previously caused no difficulty. Chest pain that worsens with deep breathing or coughing (pleuritic pain). Rapid, shallow breathing. Fatigue and weakness out of proportion to the apparent illness.
In older adults, symptoms are often atypical. Fever may be absent or low-grade. The primary symptom may be confusion, which families attribute to dementia or medications. A 2019 study in the Journal of the American Geriatrics Society found that up to 30 percent of elderly patients with pneumonia presented with confusion as the primary symptom rather than respiratory complaints. Falls, reduced appetite, and general decline can be the only signs.
Seek emergency care if you experience: Difficulty breathing or feeling like you cannot get enough air. Chest pain. Confusion or altered alertness. Bluish coloring of lips or fingertips (cyanosis). Coughing up blood. Fever above 102°F (39°C) that does not respond to medication. Rapid heart rate (above 100 beats per minute) at rest. Any of these in an infant, young child, or adult over 65.
Who Is Most Vulnerable — and Why Prevention Matters
Age extremes: Children under 5 and adults over 65 account for the majority of pneumonia deaths. The very young have immature immune systems. The elderly have weakened immune function, less effective cough reflexes, and more comorbidities. A 2020 study in The Lancet found that pneumonia mortality increases exponentially after age 65, with adults over 85 having 10 times the mortality rate of those aged 65 to 74.
Chronic conditions: Heart failure, COPD, asthma, diabetes, kidney disease, liver disease, and any condition causing immunosuppression (HIV, cancer treatment, organ transplant) all significantly increase pneumonia risk and severity.
Lifestyle factors: Smoking damages the cilia — tiny hair-like structures that sweep debris and bacteria out of the airways — and impairs immune cells in the lungs. Smokers are 3 to 5 times more likely to develop pneumonia. Heavy alcohol use suppresses immune function and increases aspiration risk. Poor nutrition and dehydration weaken the body's defenses.
Prevention: The pneumococcal vaccine is recommended for all adults over 65 and younger adults with chronic conditions. A study in the New England Journal of Medicine found that the PCV13 vaccine reduced invasive pneumococcal pneumonia by 75 percent and non-invasive pneumococcal pneumonia by 45 percent in adults over 65. The annual influenza vaccine prevents flu-related pneumonia. COVID-19 vaccination reduces the risk of COVID pneumonia and its severity. Hand washing remains one of the simplest and most effective prevention strategies. Quit smoking — lung defenses begin recovering within weeks.
Treatment and Recovery
Bacterial pneumonia is treated with antibiotics. The choice of antibiotic depends on the suspected organism and severity. Mild community-acquired pneumonia can often be treated at home with oral antibiotics. Moderate to severe cases require hospitalization for intravenous antibiotics, supplemental oxygen, and monitoring.
Recovery is not as fast as most people expect. A study in the Annals of Internal Medicine following patients after pneumonia found that while fever typically resolves within a week, fatigue persisted for a median of 3 weeks, cough for 3 to 4 weeks, and shortness of breath for 2 to 3 weeks. Full chest X-ray clearance took 6 weeks in most patients. Many patients, particularly the elderly, described a prolonged recovery period where they felt "not themselves" for weeks to months.
A 55-year-old marathon runner developed pneumonia from influenza. Despite being fit and healthy, she was hospitalized for 4 days. After discharge, she could not walk to the end of her street without stopping to rest. It took her 3 months to return to running and 6 months to reach her pre-illness pace. Pneumonia does not just fill your lungs. It drains your entire body. Expect recovery to take longer than you think, and do not push yourself back to full activity too quickly.
Return to your doctor if: fever returns after initially improving (may indicate a second infection or complication like an abscess), shortness of breath worsens, you develop new chest pain, or you do not feel significantly better after 3 to 5 days of antibiotics.