How Do Lungs Work? Anatomy, Gas Exchange, and Disease

Your lungs move roughly 11,000 liters of air every day and manage to extract oxygen from it across a tissue barrier thinner than a single red blood cell. They contain around 300 million tiny air sacs packed into a space not much larger than a football, yet if you could flatten those sacs out, their combined surface area would cover 40 to 80 square meters. That engineering feat is the reason you can sprint for a bus, sleep through the night, and do everything in between without consciously choosing to breathe. But lungs are far more than passive bellows: they mount their own immune defenses, filter particles from the air, process certain chemicals in the blood, and adapt across a lifetime to challenges ranging from altitude to pollution.

The Architecture Inside Your Chest

The two lungs are not mirror images of each other. The right lung has three lobes and the left has two, leaving room for the heart. Air enters through the trachea, which branches into two main bronchi, then splits again and again through roughly 23 generations of progressively smaller airways until it reaches the alveoli, the grape-cluster-like sacs where gas exchange happens. A classic study estimated about 300 million alveoli in a typical pair of lungs, fed by around 14 million alveolar ducts, with an astounding 280 billion capillary segments weaving through the tissue between them.1PubMed. Architecture of the human lung The resulting gas-exchange surface area ranges from about 40 to 80 square meters depending on body size.

The barrier separating air from blood in each alveolus is astonishingly thin. It consists of a layer of epithelial cells lining the air side, a layer of endothelial cells lining the capillary, and a sliver of connective tissue between them.2PubMed Central. The micromechanics of lung alveoli: structure and function of surfactant and tissue components In places this barrier is less than half a micrometer thick. Oxygen and carbon dioxide diffuse across it in a fraction of a second.

Not all parts of the lung are identical. At full inflation, the top of the lung (the apex) packs alveoli more densely, at about 32 per cubic millimeter, while the base sits around 21 per cubic millimeter, with proportionally more airway duct space at the bottom.3PubMed. Regional differences in alveolar density in the human lung are related to lung height Gravity plays a role: blood flow and ventilation are both greater near the base when you are upright, so the lung is not simply a uniform sponge but a regionally specialized organ.

Surfactant and Why It Matters

Every alveolus is lined with a thin film of liquid, and liquid surfaces have surface tension. Without something to counteract that tension, the tiny air sacs would collapse on every exhale like wet plastic bags sticking together. The substance that prevents this is pulmonary surfactant, a mixture of fats and specialized proteins produced by type II alveolar epithelial cells. Its main surface-active ingredient is a phospholipid called dipalmitoylphosphatidylcholine, assisted by hydrophobic surfactant proteins known as SP-B and SP-C.4PubMed Central. The Role of Surfactant in Lung Disease and Host Defense against Pulmonary Infections Together, they drive surface tension to near zero during compression, keeping alveoli open through the breathing cycle.5PubMed Central. On the Low Surface Tension of Lung Surfactant

Surfactant production does not switch on all at once during fetal development. In animal models, female fetuses produce surfactant earlier than male fetuses. In rabbits, the key surfactant phospholipid was over 150 percent higher in female lung fluid compared to male lung fluid at 26 days gestation, a gap that narrowed as the lungs matured.6Pediatric Research. Sex Differences in Fetal Rabbit Pulmonary Surfactant Production This sex difference in lung maturity is one reason premature boys historically have had higher rates of respiratory distress syndrome than premature girls.

How Gas Exchange Actually Works

The basic mechanism is simple diffusion. Oxygen in the alveolar air is at a higher concentration than oxygen in the blood arriving from the body, so it moves across the barrier into the capillary. Carbon dioxide, a waste product of metabolism, is at a higher concentration in the blood, so it moves the other way. No pump or active transport is needed for the gases themselves; the system runs entirely on concentration gradients maintained by continuous breathing and continuous blood flow.

Hemoglobin, the oxygen-carrying protein in red blood cells, makes the system far more efficient than dissolved oxygen alone could be. It binds oxygen in the lungs, where oxygen is plentiful and carbon dioxide is being exhaled, and then releases it in the tissues, where oxygen is scarce and carbon dioxide is accumulating. This shift is not accidental. Higher carbon dioxide levels and lower pH in active tissues reduce hemoglobin’s grip on oxygen, encouraging it to let go right where oxygen is needed most.7PubMed. Physiology, Bohr Effect The result is a delivery system that automatically adjusts to demand: exercising muscles get more oxygen without any conscious input from you.

Breathing Without Thinking

You do not have to remember to breathe because a cluster of neurons in the brainstem generates the rhythm automatically. These cells send signals to the diaphragm and the muscles between your ribs, causing them to contract and pull the chest cavity outward. The expansion lowers pressure inside the chest relative to the atmosphere, and air rushes in. When those muscles relax, the elastic recoil of the lungs and chest wall pushes air back out.

The rate and depth of breathing are fine-tuned by chemoreceptors that monitor carbon dioxide and pH. Specialized brainstem neurons, including those in a region called the retrotrapezoid nucleus and serotonin-producing cells, ramp up breathing when carbon dioxide rises, keeping arterial COâ‚‚ and blood pH remarkably stable.8PubMed Central. Neural Control of Breathing and CO2 Homeostasis This is why holding your breath eventually becomes unbearable: it is the rising COâ‚‚, not the falling oxygen, that triggers the urgent need to inhale.

The mechanics of ventilation also rely on the pleural space, the thin fluid-filled gap between the lung surface and the chest wall. During a normal breath, pressure in this space drops, effectively pulling the lung open. Positive-pressure ventilation in a hospital reverses this: a machine pushes air in, raising pleural pressure and inflating the lungs from the inside.9PubMed Central. The role of pleural pressure in inducing pneumothorax and other adverse effects of positive pressure ventilation That reversal is useful for patients who cannot breathe on their own, but it also explains why mechanical ventilation carries risks such as overinflation and air leaks.

The Lung’s Built-In Defense System

Every breath carries particles, microbes, and chemical irritants. The lungs have evolved a layered defense to deal with them. The first line is mucociliary clearance: a blanket of mucus coats the airways, trapping inhaled particles, while millions of tiny hair-like structures called cilia beat in coordinated waves to push that mucus up toward the throat, where it is swallowed or coughed out.10PubMed Central. Cilia and Mucociliary Clearance This escalator runs continuously, clearing debris before it reaches the delicate alveoli.

Particles small enough to bypass the mucus trap and land in the alveoli encounter a second line: alveolar macrophages. These immune cells patrol the air sac surfaces, engulfing bacteria, dust, and other foreign material. When they detect inhaled nanoparticles, for example, they move toward the deposition site and recruit neutrophils from the bloodstream for backup, creating a localized immune response right where it is needed.11PubMed Central. Alveolar macrophages initiate the spatially targeted recruitment of neutrophils after nanoparticle inhalation Alveolar macrophages are also central players in the inflammatory response to diesel exhaust particles; removing them in experimental models reduced the resulting lung inflammation substantially.12PubMed Central. The Role and Phagocytic Mechanisms of Alveolar Macrophages in Inflammatory Responses Induced by Diesel Exhaust Particles The flip side is that when macrophages overreact to persistent irritants, their own inflammatory signals can damage surrounding tissue.

What Goes Wrong in Major Lung Diseases

Given the lung’s enormous surface area and constant exposure to the outside environment, it is perhaps unsurprising that lung diseases are among the leading causes of death worldwide. Three of the most common chronic conditions illustrate different ways the lung’s structure can break down.

Emphysema and COPD

In emphysema, the walls between alveoli are destroyed, turning many small air sacs into fewer large ones. The result is a dramatic loss of surface area for gas exchange and a loss of the elastic recoil that normally helps push air out. Cigarette smoke is the dominant cause. It sets off a chain of events involving oxidative stress, programmed cell death, and an imbalance between tissue-destroying enzymes (proteases) and the proteins that normally keep them in check.13PubMed Central. Cellular and molecular mechanisms of alveolar destruction in emphysema: an evolutionary perspective Among the enzymes involved, neutrophil elastase and related serine proteases are particularly destructive to alveolar tissue.14PubMed Central. Role of Proteases in Chronic Obstructive Pulmonary Disease Emphysema is one component of chronic obstructive pulmonary disease (COPD), which also includes chronic bronchitis. Once alveolar walls are gone, they do not grow back with current treatments.

Asthma

Asthma targets the airways rather than the alveoli. The smooth muscle wrapped around the bronchial tubes contracts excessively, narrowing the passages and making it hard to move air in and out. On top of that acute constriction, the airway muscle in people with asthma tends to be hyperresponsive to triggers and less responsive to signals that should relax it.15PubMed Central. Airway smooth muscle in the pathophysiology and treatment of asthma Over time, chronic inflammation can cause the airway walls to thicken and remodel, making the narrowing partly permanent. Unlike emphysema, asthma is often manageable with inhaled medications that relax the smooth muscle and reduce inflammation.

Pulmonary Fibrosis

If emphysema is too much tissue destruction, pulmonary fibrosis is too much tissue production. In idiopathic pulmonary fibrosis (IPF), specialized cells called fibroblasts and myofibroblasts proliferate and lay down excessive connective tissue, including collagen, in the lung’s delicate framework.16PubMed Central. Matrix abnormalities in pulmonary fibrosis This scarring thickens the barrier between air and blood, making gas exchange progressively harder. Some of these myofibroblasts originate from epithelial cells that change identity through a process called epithelial-to-mesenchymal transition.17PubMed Central. Matrix regulation of idiopathic pulmonary fibrosis: the role of enzymes IPF currently has no cure, though two approved drugs can slow its progression.

Air Pollution and Lung Damage

Fine particulate matter, the kind labeled PM2.5, is small enough to bypass the upper airways entirely and reach the alveoli. Once there, these particles irritate and corrode the alveolar walls, impairing lung function over time.18PubMed Central. The impact of PM2.5 on the human respiratory system Even short-term exposure at relatively low doses can trigger measurable inflammation and oxidative stress. In animal experiments, acute exposure to fine particles increased lung stiffness, caused alveolar collapse, and produced visible tissue inflammation in a dose-dependent pattern.19PubMed. Low dose of fine particulate matter (PM2.5) can induce acute oxidative stress, inflammation and pulmonary impairment in healthy mice

What makes PM2.5 particularly concerning is that there does not seem to be a safe threshold below which it stops causing harm. The damage is cumulative and, for people living in polluted cities, essentially constant. Chronic exposure contributes to COPD, lung cancer, and cardiovascular disease. Practical steps like checking air quality indexes, using high-efficiency air filters indoors, and wearing well-fitted masks during poor air quality events can meaningfully reduce the dose your alveoli absorb.

How Lungs Change With Age

Lung function peaks in your mid-twenties and then declines gradually. The chest wall stiffens as cartilage calcifies. The diaphragm weakens slightly. Most relevant, the lung tissue itself loses structural support, causing the air spaces to enlarge even in nonsmokers, a process sometimes called senile emphysema.20PubMed Central. Effect of aging on respiratory system physiology and immunology This is not the same as disease-related emphysema: there is no inflammatory destruction, just a slow loosening of the elastic scaffolding. The practical result is a reduction in the amount of air you can forcefully exhale in one second and a slight drop in blood oxygen levels. The immune defenses of the lung also become less vigorous, which is part of why pneumonia is disproportionately dangerous for older adults.

Regular aerobic exercise is one of the best-studied ways to slow this decline. It does not reverse the structural changes, but it improves the efficiency of the cardiovascular system and the respiratory muscles, partially compensating for the loss of gas-exchange surface area. Avoiding smoking remains the single most impactful choice: the rate of lung function decline in smokers is roughly double that of nonsmokers, and quitting at any age slows the trajectory.

Lungs Across the Animal Kingdom

Not all lungs work the way ours do, and not all air-breathing animals even have lungs in the mammalian sense. Birds, for instance, have a radically different respiratory system. Their lungs are rigid structures fixed to the ribs and vertebrae, not elastic bags that expand and contract. Instead of alveoli, birds have a network of tiny tubes called parabronchi through which air flows in one direction, driven by a set of air sacs that act as bellows.21PubMed Central. Structure and function of the avian respiratory system This unidirectional flow means fresh air passes over the gas-exchange surfaces on both inhalation and exhalation, making birds exceptionally efficient at extracting oxygen. That efficiency helps explain how bar-headed geese can fly over the Himalayas at altitudes where a mammal would struggle to walk.22PubMed Central. The avian respiratory system: a unique model for studies of respiratory toxicosis and for monitoring air quality

Marine mammals face a different challenge: holding their breath during deep dives. Whales and dolphins can exhale explosively, with measured expiratory flows exceeding 160 liters per second, and their alveoli are designed to collapse under the extreme pressure at depth.23PubMed Central. Cardiorespiratory adaptations in small cetaceans and marine mammals This collapse is actually a feature, not a flaw. By shutting down gas exchange at depth, the lung prevents nitrogen from being forced into the blood, which would otherwise cause decompression sickness on ascent. Genetic studies have found that cetaceans carry convergent mutations in a surfactant protein gene (SFTPC) that promote a type of stiffening in the alveolar walls, making this controlled collapse easier to achieve.24PubMed Central. Evolutionary genetics of pulmonary anatomical adaptations in deep-diving cetaceans

The Evolutionary Origins of Air Breathing

Lungs are older than you might expect. They did not originate in the first animals to walk on land. Several lineages of fish independently evolved air-filled structures, some of which became lungs and others swim bladders. These structures have different developmental origins and can serve either buoyancy or respiration, making them a textbook example of convergent evolution.25PubMed. The origin and evolution of the surfactant system in fish: insights into the evolution of lungs and swim bladders The current thinking is that the earliest air-breathing organs in bony fish ancestors may have been modified gill pouches, with dorsal extensions eventually giving rise to the swim bladder and ventral extensions evolving into lungs.26Comparative Biochemistry and Physiology Part A: Molecular & Integrative Physiology. Which came first, the lung or the breath? Surfactant, the substance that keeps our alveoli from collapsing, has been found in the air-breathing organs of lungfish and other primitive species, suggesting it is an ancient innovation that predates the move to land by millions of years.

Human Adaptation to Thin Air

At 4,000 meters above sea level, every breath delivers roughly 40 percent less oxygen than at sea level. Yet populations that have lived at high altitude for thousands of years manage daily life, pregnancy, and physical labor without supplemental oxygen. Andean, Tibetan, and Ethiopian highlanders have each evolved distinct solutions to this problem, and the differences are illuminating.27PubMed Central. Human adaptation to high-altitude: A contemporary comparison of the oxygen cascade in Andean, Tibetan and Ethiopian highlanders

Andean populations tend to have larger lung volumes and higher hemoglobin concentrations, essentially trying to grab and carry more oxygen with each breath and each red blood cell. Tibetans, by contrast, maintain relatively normal hemoglobin levels but breathe faster and have higher blood flow to tissues. Ethiopian highlanders show yet another pattern, with blood oxygen saturation levels closer to lowland norms despite living at comparable altitudes. Genomic studies have traced many of these differences to variants in genes involved in the hypoxia-inducible factor (HIF) pathway, a master regulatory system that cells use to sense and respond to low oxygen.28PubMed Central. Genetics of human origin and evolution: high-altitude adaptations The fact that three independent populations arrived at three different genetic and physiological strategies for the same environmental problem says something about how many ways a body can be reconfigured around the same pair of lungs.

Bioengineering and the Future of Lung Repair

Lung transplantation remains the only option for end-stage lung disease, and donor organs are scarce. Researchers have been working on an alternative: building new lung tissue from scratch. One approach takes a donor lung, strips away all its cells with detergent solutions to leave behind just the protein scaffold, and then seeds that scaffold with new cells. Early experiments have shown this can produce tissue that exchanges gas in laboratory settings.29PubMed Central. Strategies for whole lung tissue engineering The scaffold retains the intricate branching architecture of the airways and blood vessels, which would be essentially impossible to build from raw materials.

Stem cell therapies represent another avenue. The idea is to use a patient’s own cells, or carefully prepared donor cells, to repair or regenerate damaged lung tissue without replacing the entire organ.30PubMed Central. Stem Cells and Lung Regeneration Bioengineered tracheal transplants have already been attempted in a handful of patients, with mixed results. The lung itself is a harder problem: with over 40 distinct cell types that must be arranged in precise spatial relationships, getting the biology right is far more complex than seeding a scaffold and hoping for the best. The field is making progress, but a fully functional lab-grown lung that could be transplanted into a human is still years, likely decades, away. For now, the most realistic near-term advances involve using cell therapies to slow or partially reverse fibrosis and emphysema rather than replacing whole organs.