What Is Pneumonia and How Does It Affect Your Lungs?

Pneumonia is an infection of the lungs in which the tiny air sacs fill with fluid or pus, making it harder to breathe and get oxygen into the bloodstream. It can be caused by bacteria, viruses, or fungi, and its severity ranges from mild enough to manage at home to life-threatening. Globally, lower respiratory infections including pneumonia killed roughly 2.5 million people in 2023, with the heaviest toll falling on children under five and adults over 70.1PubMed. Global burden of lower respiratory infections and aetiologies, 1990-2023: a systematic analysis for the Global Burden of Disease Study 2023 Understanding what pneumonia actually is, what triggers it, and how it is treated can help you recognize it early and take it seriously.

What Causes Pneumonia

The most common bacterial culprit behind community-acquired pneumonia is Streptococcus pneumoniae, often just called pneumococcus.2PubMed Central. Recent advances in our understanding of Streptococcus pneumoniae infection Other bacteria show up regularly too. In one hospital-based study, methicillin-resistant Staphylococcus aureus (MRSA) was the most frequently identified pathogen overall, followed by pneumococcus and Pseudomonas aeruginosa.3PubMed Central. Health care-associated pneumonia and community-acquired pneumonia: a single-center experience Hospital-acquired cases tend to involve a different and often more drug-resistant set of bacteria than what you would catch out in the community.

Viruses also cause pneumonia directly. Influenza, respiratory syncytial virus (RSV), and SARS-CoV-2 are some of the more familiar names. But viruses do not always stop at causing their own infection. A viral respiratory illness can damage your airways and weaken your immune defenses enough to open the door for bacteria that would not normally gain a foothold. This “secondary bacterial pneumonia” is a well-recognized complication of viral infections and a major reason flu seasons come with spikes in pneumonia hospitalizations.4PubMed Central. Postviral Complications: Bacterial Pneumonia The damage to the respiratory lining, combined with suppression of the immune system’s normal surveillance, creates conditions where bacteria can adhere to tissue and multiply rapidly.5PubMed Central. Molecular pathogenesis of secondary bacterial infection associated to viral infections including SARS-CoV-2

Fungi are a less common but serious cause of pneumonia, particularly for people whose immune systems are compromised. Patients undergoing chemotherapy, organ transplant recipients on immunosuppressive drugs, and people living with advanced HIV are at the highest risk. Aspergillus species are the most frequent fungal agents, though other genera including Mucor, Fusarium, Cryptococcus, and Candida can also be responsible.6PubMed. Invasive Fungal Pneumonia in Immunocompromised Patients Fungal pneumonia accounts for a disproportionate number of deaths in bone marrow transplant recipients, with some estimates placing it at around 30% of all deaths in that population.7Jornal Brasileiro de Pneumologia. Fungal infections in immunocompromised patients The type of immune deficiency a person has helps clinicians narrow down which organism might be responsible, because different immune gaps leave you vulnerable to different pathogens.8PubMed. Pneumonia in Immunocompromised Patients

Walking Pneumonia and Atypical Infections

You may have heard the phrase “walking pneumonia,” which usually refers to a milder form caused by Mycoplasma pneumoniae. Unlike the classic bacterial pneumonia that sends people straight to bed, mycoplasma infection often feels more like a lingering, stubborn cold with a dry cough, fatigue, and low-grade fever. The illness can drag on for weeks, and because people frequently feel well enough to keep going about their daily routines, it earned the “walking” nickname. But “mild” is relative. Mycoplasma can occasionally trigger complications beyond the lungs, including inflammation of the heart, liver, joints, and nervous system.9PubMed Central. Mycoplasma pneumonia: Clinical features and management

Walking pneumonia tends to hit younger people harder, or at least more often. In a prospective study of hospitalized adults with community-acquired pneumonia, mycoplasma accounted for only about 6% of cases across all ages but was responsible for a third of cases in patients under 50. The median age of mycoplasma patients was 39, compared to 70 for those with pneumococcal pneumonia.10PubMed Central. Clinical characteristics of Mycoplasma pneumoniae compared to Streptococcus pneumoniae in hospitalized adults with community-acquired pneumonia- a prospective study That same study found that symptoms alone and even chest imaging could not reliably distinguish mycoplasma from pneumococcal pneumonia, which is part of why doctors sometimes treat empirically, covering multiple possible organisms while waiting for test results.

Although most people with walking pneumonia recover with the right antibiotic, the condition can be dangerous for vulnerable individuals. A retrospective analysis found that patients who died of mycoplasma pneumonia had dramatically elevated markers of organ stress, including much higher kidney function markers and signs of liver and heart involvement, compared to survivors.11PubMed Central. Mycoplasma Pneumoniae Pneumonia: Walking Pneumonia Can Cripple the Susceptible The takeaway: walking pneumonia is usually manageable, but dismissing it entirely as harmless can be a mistake, especially for older adults or people with underlying health conditions.

Aspiration Pneumonia

Not all pneumonia starts with inhaling a germ from someone’s cough. Aspiration pneumonia develops when food, liquid, saliva, or stomach contents accidentally enter the airways instead of going down the esophagus. Once that material reaches the lungs, it brings bacteria along with it and irritates the tissue directly. This type is especially common in older adults, people who have had a stroke, those with neurological conditions that impair swallowing, and anyone who is heavily sedated or intubated.

Swallowing difficulties, known clinically as dysphagia, are a significant risk factor. After a stroke, for example, impaired movement of the swallowing muscles can allow food or liquid to slip past the larynx and into the lungs.12PubMed Central. The Relationship Between Dysphagia and Pneumonia in Acute Stroke Patients: A Systematic Review and Meta-Analysis Research on elderly patients hospitalized with community-acquired pneumonia has found that they show a significant delay in the protective closure of the laryngeal vestibule during swallowing, compared to healthy people of the same age.13European Respiratory Journal. Oropharyngeal dysphagia is a risk factor for community-acquired pneumonia in the elderly In simple terms, the “lid” that protects the airway closes a fraction of a second too slowly, giving food or liquid a window to slip through. Aspiration pneumonia can be especially tricky to prevent in nursing home settings, where swallowing problems and sedating medications are both common.

How Pneumonia Symptoms Differ From a Regular Cold

A cold typically stays in your nose and throat. Pneumonia reaches deeper, into the lungs themselves, and the symptoms reflect that. The hallmark signs include a productive cough (often with yellow, green, or rust-colored mucus), fever that may spike high, chills, shortness of breath even at rest, and chest pain that worsens when you breathe deeply or cough. Fatigue tends to be far more profound than what a cold produces, and you may notice your heart racing as your body works harder to compensate for reduced oxygen.

In older adults, pneumonia can look deceptively different. Instead of the classic fever and cough, an elderly person may present with confusion, lethargy, or a general decline in their overall condition, sometimes without an obvious respiratory complaint at all. Clinicians sometimes call this a “silent infection.” Even chest X-rays can appear normal early in the illness in older or dehydrated patients, which makes diagnosis trickier and can delay treatment.14PubMed Central. Pneumonia in the elderly If a grandparent suddenly seems confused or unusually weak without an obvious cause, pneumonia is one of the things a doctor should consider.

Who Faces the Highest Risk

The global data paints a clear picture of who bears the greatest burden. Children under five and adults over 70 account for a disproportionate share of pneumonia deaths worldwide.15The Lancet. Global, regional, and national disease burden of lower respiratory infections in 195 countries, 1990–2016: a systematic analysis for the Global Burden of Disease Study 2016 In 2016 alone, lower respiratory infections killed over 650,000 children under five and more than a million adults over 70. The encouraging news is that child mortality from these infections has been falling: a roughly one-third drop since 2010, driven by better access to vaccines, nutrition programs, and antibiotics in low-income countries.16PubMed. Global burden of lower respiratory infections and aetiologies, 1990-2023: a systematic analysis for the Global Burden of Disease Study 2023

Beyond age, several factors raise your risk. Chronic lung diseases like COPD or asthma, diabetes, heart disease, liver or kidney disease, and any condition or treatment that weakens the immune system all make pneumonia more likely and more dangerous. Smoking is one of the strongest modifiable risk factors. And the setting matters: pneumonia acquired in a hospital carries a higher death rate than the kind you catch out in the community. One study found hospital mortality was about 25% for healthcare-associated pneumonia, compared to roughly 9% for community-acquired cases.17PubMed Central. Health care-associated pneumonia and community-acquired pneumonia: a single-center experience

How Doctors Diagnose Pneumonia

Diagnosis typically starts with a physical exam, where a doctor listens for crackling or bubbling sounds in the lungs through a stethoscope. A chest X-ray is the standard imaging tool, able to show areas of the lung that are filled with fluid or pus. In complicated cases, a CT scan provides a more detailed picture and can help distinguish between bacterial and non-bacterial causes.

Blood tests help fill in the picture. Among biomarkers used to diagnose community-acquired pneumonia in the outpatient setting, C-reactive protein (CRP) has the best overall accuracy, followed by white blood cell count and procalcitonin.18PubMed. Accuracy of Biomarkers for the Diagnosis of Adult Community-acquired Pneumonia: A Meta-analysis CRP is favored partly because it is cheap and widely available as a point-of-care test. Sputum cultures and blood cultures can identify the specific organism responsible, though results take time and cultures do not always grow anything useful, especially if antibiotics have already been started. Newer deep-learning models applied to CT scans are showing promise in distinguishing bacterial from non-bacterial pneumonia with accuracy that rivals experienced radiologists, though this technology is not yet in routine clinical use.19PubMed. Differentiating Bacterial and Non-Bacterial Pneumonia on Chest CT Using Multi-Plane Features and Clinical Biomarkers

Treatment

Bacterial pneumonia is treated with antibiotics, and picking the right one depends on where the infection was acquired, how severe it is, and what organism is suspected. Guidelines from the American Thoracic Society and the Infectious Diseases Society of America provide the standard framework for empiric treatment of community-acquired pneumonia, recommending different antibiotic combinations depending on whether the patient can be managed at home or needs hospitalization.20PubMed Central. Diagnosis and Treatment of Adults with Community-acquired Pneumonia. An Official Clinical Practice Guideline of the American Thoracic Society and Infectious Diseases Society of America Mild cases in otherwise healthy adults are often treated with a single oral antibiotic. Hospitalized patients usually receive intravenous antibiotics and sometimes a combination of two drugs to cover a broader range of bacteria. Viral pneumonia does not respond to antibiotics. Antiviral medications exist for certain causes, like influenza and SARS-CoV-2, but for many viral pneumonias, treatment focuses on supportive care: fluids, rest, fever management, and oxygen if needed.

When pneumonia is severe enough to cause respiratory failure, oxygen support becomes critical. Options range from standard nasal cannulas to high-flow oxygen therapy and noninvasive ventilation through a mask or helmet. Recent evidence supports using helmet-delivered noninvasive ventilation for patients struggling with low oxygen levels, because it allows higher pressures that help re-expand collapsed lung tissue. High-flow nasal cannulas have also shown effectiveness, though recognizing when these approaches are failing is crucial so that a patient can be moved to a ventilator before their condition deteriorates further.21PubMed Central. Noninvasive ventilation and high-flow oxygen therapy for severe community-acquired pneumonia Even the oxygen targets used during mechanical ventilation matter. A study comparing conservative oxygen targets (keeping blood oxygen at a lower, more physiological level) against the conventional practice of giving more oxygen found that the conservative approach reduced ICU mortality and lowered rates of complications like shock and bloodstream infections.22PubMed. Observation of the curative effect of conservative oxygen therapy in mechanical ventilation of patients with severe pneumonia Too much oxygen, it turns out, can cause its own damage.

Complications and Long-Term Effects

Pneumonia that is inadequately treated or that becomes severe can lead to several dangerous complications, including acute respiratory distress syndrome (where the lungs become so inflamed that they can barely function), empyema (a collection of pus between the lung and the chest wall), and lung abscess.23PubMed. Complications of nosocomial pneumonia in the surgical patient Sepsis, a body-wide inflammatory response to infection, is another serious possibility. When pneumonia progresses to sepsis, mortality rises sharply.

Even among people who survive and are discharged from the hospital, the story does not always end cleanly. Survivors of hospitalized community-acquired pneumonia carry a considerable excess in long-term mortality compared to the general population. The main drivers of this increased death rate are cardiovascular disease, lung disease, kidney disease, and cancer. The thinking is that the intense inflammation triggered by a serious lung infection does not simply switch off when the fever breaks. It can destabilize chronic conditions that were previously well controlled, setting off a cascade of health problems in the months and years that follow.24PubMed. Severity Assessment and the Immediate and Long-Term Prognosis in Community-Acquired Pneumonia Age, being male, and residing in a nursing home are all associated with worse long-term outcomes.

Vaccines and How Well They Work

Pneumococcal vaccines target the most common bacterial cause of pneumonia and come in two main types: conjugate vaccines (like PCV13, PCV15, and PCV20, which are given to young children as part of their routine schedule and increasingly to adults) and the older polysaccharide vaccine (PPV23). The effectiveness of these vaccines has been studied extensively, though the results are more nuanced than a simple percentage might suggest. A systematic review of observational studies found that PPV23 effectiveness against any community-acquired pneumonia requiring hospitalization was modest in the general population, and it appeared to wane over time: effectiveness was lower when measured more than five years after vaccination.25PLoS ONE. Effectiveness of pneumococcal vaccines in preventing pneumonia in adults, a systematic review and meta-analyses of observational studies However, effectiveness estimates against specifically pneumococcal pneumonia (as opposed to pneumonia from any cause) were higher, ranging from about 32% to 51% in the general population.

Vaccination also appears to provide meaningful protection for people with immune-mediated inflammatory diseases, a group you might expect to respond poorly to vaccines. A UK case-control study found that pneumococcal vaccination in adults with conditions like rheumatoid arthritis and inflammatory bowel disease was associated with about a 30% reduction in the odds of hospitalization for pneumonia and a 40% reduction in the odds of dying from pneumonia.26The Lancet Regional Health – Europe. Effectiveness of pneumococcal vaccination in adults with common immune-mediated inflammatory diseases in the UK: a case–control study Those are meaningful numbers for a population that is inherently harder to protect. The annual flu vaccine also matters for pneumonia prevention, because influenza is one of the most common viral infections that paves the way for secondary bacterial pneumonia.

Air Pollution, Smoking, and Indoor Fuel

Environmental exposures are an underappreciated driver of pneumonia risk, particularly in low- and middle-income countries. A systematic review of studies on children under five found that exposure to solid fuel use for cooking and heating was significantly associated with childhood pneumonia. The connection is straightforward: burning wood, charcoal, dung, or crop residues indoors produces fine particulate matter that damages the delicate lining of developing airways.27PubMed Central. Understanding the effect of indoor air pollution on pneumonia in children under 5 in low- and middle-income countries: a systematic review of evidence

Outdoor air pollution matters too, and not just in developing countries. A large study using UK Biobank data found that long-term exposure to higher levels of fine particulate matter (PM2.5), nitrogen dioxide (NO2), and other pollutants was associated with increased pneumonia risk. The relationship between air pollution and smoking turned out to be more than additive: people who both smoked and lived in areas with higher pollution faced roughly double the pneumonia risk compared to never-smokers in cleaner air.28PubMed. Long-term Exposure to Ambient Air Pollutants and Increased Risk of Pneumonia in the UK Biobank That interaction between smoking and pollution is worth knowing about if you live in a city and are trying to decide whether quitting smoking really matters “that much.” It does, and the benefit is amplified if you are also breathing polluted air daily.

Why Your Lung Microbiome Matters

For a long time, the lungs were assumed to be sterile in healthy people. That turns out to be wrong. Your lower airways harbor a low-density community of microbes, and these resident bacteria interact with your immune system in ways that influence whether an incoming pathogen gains a foothold or gets cleared. When the balance of this community shifts, whether from antibiotic use, a viral infection, or inflammation from another cause, it can create an opening for pathogenic organisms to dominate.29PubMed Central. The Lung Microbiome and Its Role in Pneumonia The lung microbiome is still an emerging area of research, but it is reshaping how scientists think about susceptibility. The question is no longer just “did you inhale a dangerous germ?” but “what was the state of your airway ecosystem when the germ arrived?”

Genetics may also influence who gets severely ill. Research has identified variations in genes involved in the inflammatory response, such as those coding for proteins that regulate how strongly the immune system reacts to infection, that are associated with differences in pneumonia severity and survival.30PubMed. Genetic variability in the severity and outcome of community-acquired pneumonia Other work has linked specific genetic variants in the HMGB1 gene, which plays a role in activating the inflammatory cascade, with increased susceptibility to developing severe pneumonia.31PubMed. Association of High Mobility Group Box Protein B1 Gene Polymorphisms with Pneumonia Susceptibility and Severity None of this means pneumonia is “genetic” in the way eye color is. But it does mean that two people exposed to the same bacterium in the same way can have very different outcomes, partly because of differences in how their immune systems are wired to respond.