Skip to content

How Your Lungs Work

· 23 min read · Humanome

Your lungs move about 10,000 liters of air a day, and you almost never notice. Every breath is a quiet handoff: fresh oxygen in, spent carbon dioxide out, roughly 20,000 times a day, and your body arranges the whole thing without asking your permission. That constant, invisible exchange is one of the most elegant pieces of engineering in your body, and it is happening right now as you read this line.

This guide walks the full path of a single breath, from the air at your nose to the microscopic sacs where oxygen finally crosses into your blood, and back out again. Along the way you can open Humanome, our interactive 3D model, and watch the airway and lungs in real space: rotate them, peel back the layers, and start exploring the body itself. The lungs make the most sense when you can see them, so we will point you into the model at the moments where it helps most.

Contents

  1. The problem the lungs solve
  2. The journey of a single breath
  3. The alveoli: where the exchange happens
  4. Gas exchange by diffusion
  5. The mechanics of breathing
  6. Transport through the body
  7. The control system
  8. When breathing goes wrong
  9. Caring for your lungs
  10. See it for yourself

1. The problem the lungs solve

Every cell in your body runs on a slow, controlled burn. To turn food into usable energy, cells consume oxygen and produce carbon dioxide as waste, continuously, every second of your life. A neuron firing, a muscle contracting, your gut digesting breakfast: all of it depends on a steady oxygen supply and a reliable way to carry the carbon dioxide away before it builds up. Stop that supply for even a few minutes and cells begin to fail. The lungs exist to solve exactly this problem: they are the exchange point between the outside air and your bloodstream - NHLBI.

The clever part is that your cells cannot touch the air directly. They are buried deep inside a body that is mostly water, sealed away from the atmosphere. So the respiratory system brings the air to a place where it can meet the blood across a barrier thin enough for gases to slip through, and the circulatory system carries those gases the rest of the way. The lungs handle the air side, the heart and blood vessels handle the delivery, and together they keep every cell fed. This is why breathing and circulation are really two halves of one loop, a theme we will return to.

What makes it more remarkable is how little the machinery weighs. Your two lungs together tip the scale at only about 1 kilogram (2.2 pounds), yet they hold a gas-exchange surface roughly the size of a tennis court, folded into your chest - Cleveland Clinic. They are spongy, elastic, and mostly air. The design problem the lungs solve, packing an enormous surface into a small, light, moving space, drives almost everything about how they are built. Once you understand the problem, the anatomy stops looking arbitrary and starts looking like a solution.

2. The journey of a single breath

Follow one breath from the outside in. Air enters through your nose (and sometimes mouth), where it is warmed, moistened, and filtered by hairs and mucus so that what reaches the delicate tissue deeper down is clean and body-temperature. It passes through the pharynx (the throat) and then the larynx (the voice box), which sits at the top of the windpipe and also protects the airway when you swallow. From there the air enters the trachea, the sturdy central tube you can feel at the front of your neck - Cleveland Clinic.

The trachea is worth a closer look, and you can open the trachea in the 3D model to see its position and shape. It is reinforced by C-shaped rings of cartilage stacked like the ribs of a vacuum hose. Those rings keep the tube from collapsing as air rushes through and pressures change, while the open back of each "C" (facing the esophagus behind it) lets a swallowed bite of food bulge past without crushing the airway. It is a small design detail that solves two problems at once: stay open, but stay flexible.

Below the trachea, the airway begins to branch, and this is where the design turns from plumbing into a tree. The trachea splits into two main bronchi, one for each lung, which divide again into smaller and smaller bronchi and then into fine bronchioles, like a trunk dividing into limbs, then twigs. This branching happens more than twenty times over, multiplying a single tube into millions of tiny passages, until each of the smallest bronchioles opens into a cluster of air sacs. The airway ends at the alveoli, the destination of every breath.

Labeled anatomical diagram of the bronchi and lungs with an inset close-up of an alveolus and its surrounding capillaries
Source: The airway branches from the trachea into bronchi and bronchioles, ending in alveoli where oxygen and carbon dioxide cross into and out of the blood. Public-domain illustration, U.S. National Cancer Institute via Wikimedia Commons.

The lungs those branches fill are not a matched pair. The right lung has 3 lobes and the left lung has 2, because the heart takes up room on the left side, tucked into a scoop in the lung called the cardiac notch - Cleveland Clinic. That gives you 5 lobes in total. Here is the whole path in one view:

The path of a single breath: nose and mouth → pharynx (throat) → larynx (voice box) → trachea (windpipe) → the left and right main bronchi → smaller bronchi → bronchioles → the alveoli, the tiny air sacs where oxygen finally crosses into the blood and carbon dioxide crosses out.

Seeing the branching in three dimensions makes the scale click in a way a flat diagram cannot. If you rotate the lungs in Humanome and follow a bronchus inward, you get a feel for how a tube at your throat becomes a forest of passages filling your chest. The whole point of all that branching is coming up next.

3. The alveoli: where the exchange happens

At the very ends of the airway sit the alveoli, and this is where breathing actually pays off. An alveolus is a tiny, rounded air sac, and your lungs hold roughly 300 million of them - Cleveland Clinic. Bunched together like clusters of grapes at the tips of the bronchioles, they are the reason all that branching exists: the tree of tubes is really a delivery system for getting air to these sacs. Each one is wrapped in a fine mesh of tiny blood vessels called capillaries, so that air and blood are brought within a hair's breadth of each other.

That closeness is the entire trick. The wall of an alveolus and the wall of the capillary beside it together form a barrier so thin that oxygen and carbon dioxide can cross it in a fraction of a second. Multiply one tiny sac by 300 million and you get an enormous total surface for exchange, commonly estimated at around 70 square meters, about the size of a singles tennis court - StatPearls. This is how the lungs pack a huge exchange area into a small, light chest: not one big surface, but hundreds of millions of microscopic ones.

There is a hidden problem, though. A wet, tiny bubble wants to collapse in on itself, the way a soap bubble shrinks and pops, because water molecules pull inward with a force called surface tension. If your alveoli behaved like that, the smallest ones would deflate and stick shut, and reopening them would take enormous effort. Your lungs solve this with surfactant, a soapy, detergent-like fluid that coats the inside of every alveolus and lowers that surface tension - NHLBI. Surfactant lets the sacs inflate easily and keeps them from collapsing between breaths, and its absence in premature babies (whose lungs have not yet made enough) is a serious medical problem.

Wrapping and cushioning all of this is the pleura, a smooth two-layer membrane with a thin film of lubricating fluid between the layers. One layer clings to the lung, the other lines the inside of the chest wall, and the slippery fluid lets the lungs glide as they expand and shrink instead of dragging against your ribs. It is the same principle as the fluid in a joint: two surfaces that must move against each other, kept frictionless. Now that the air has reached the alveoli, we can look at the exchange itself.

4. Gas exchange by diffusion

Here is a satisfying fact: your body spends no direct energy pushing oxygen into the blood or pulling carbon dioxide out. The exchange happens by diffusion, the simple tendency of a gas to spread from where it is crowded to where it is sparse, until things even out. No pumps, no active transport across the alveolar wall, just physics doing the work for free - StatPearls. Diffusion problems like this are also paid work for physicists: AI labs pay them by the hour to write hard physics problems with worked solutions and find where a model's reasoning breaks, and the physicist roles on AITraining.jobs, a careers site from Humanome's founders, list where that work is open.

Think about the two gases separately. The air you have just breathed into an alveolus is rich in oxygen, while the blood arriving from the body is oxygen-poor, having dropped its oxygen off at the tissues. Oxygen therefore diffuses from the crowded air into the depleted blood. Carbon dioxide runs the opposite way: the returning blood is loaded with carbon dioxide picked up from the cells, while the fresh air in the alveolus has almost none, so carbon dioxide diffuses out of the blood and into the air, ready to be exhaled - NHLBI. Both gases move down their own concentration gradients at the same time, across the same paper-thin barrier, in opposite directions.

You can measure the result by comparing the air going in with the air coming out. Inhaled air is about 21% oxygen and only a trace of carbon dioxide; by the time you exhale, oxygen has fallen and carbon dioxide has risen sharply, the signature of a successful exchange - Medicine LibreTexts. Notice too that nitrogen, which makes up most of the air, passes through essentially untouched: your body has no use for it, so it goes in and comes back out unchanged.

What breathing changes
Gas composition of inhaled vs exhaled air (percent by volume, approximate)

For diffusion to keep working, two things have to keep flowing: fresh air to the alveoli and fresh blood to the capillaries. Physiologists call these ventilation (the air) and perfusion (the blood), and gas exchange is efficient only where the two are well matched, meeting at the same alveoli at the same time - StatPearls. Keeping air moving in and out is a muscular job, and that is the mechanics we turn to next.

5. The mechanics of breathing

A common misconception is that the lungs actively suck air in. They do not. The lungs are passive elastic bags: they have no muscles of their own and cannot inflate themselves. What moves the air is a change in the size of the chest around them, driven by muscles, which changes the pressure inside - NHLBI. Air, like any gas, flows from higher pressure to lower pressure, so when the chest enlarges and its internal pressure drops below the outside air, the atmosphere pushes air in. That is inhalation.

The star of the show is the diaphragm, a large dome-shaped muscle stretched across the base of your chest, separating it from your belly. When you breathe in, the diaphragm contracts and flattens, dropping downward and enlarging the chest from below - Cleveland Clinic. At the same time, the external intercostal muscles between your ribs contract and swing the rib cage up and out, enlarging the chest from the front and sides. Together they expand the space around the lungs, the internal pressure falls, and air flows in. Then the muscles relax: the diaphragm springs back up into its dome, the ribs settle, the elastic lungs recoil, the pressure rises, and air flows out. Quiet exhalation takes almost no effort at all.

Why air flows in and out: the diaphragm contracts and flattens while the rib muscles lift the ribs up and out → the chest cavity grows → the pressure inside it drops below the outside air → air rushes in (inhalation). Then the muscles relax and the elastic lungs recoil → the chest shrinks → the pressure rises → air flows back out (exhalation).

This is where the rib cage earns its keep. The ribs form a semi-rigid, movable frame that the breathing muscles can lever against, protecting the lungs while still allowing the whole basket to expand and contract with every breath. If you want to see that architecture, our guide to the human skeleton, bones, and joints walks through how the ribs, spine, and sternum fit together. The bones give the muscles something to pull on, and the pleura we met earlier lets the lungs slide smoothly inside that moving cage.

Add it up over a day and it is a lot of quiet work. At rest, a healthy adult breathes about 12 to 20 times per minute, moving roughly half a liter of air with each easy breath - Cleveland Clinic. When you exercise, the diaphragm and intercostals work harder and faster, extra muscles in the neck and abdomen join in, and the volume of each breath climbs, all to keep oxygen coming and carbon dioxide leaving as your cells burn fuel faster. But once the oxygen is in the blood, it still has to reach those cells, which is the job of the next system.

6. Transport through the body

Getting oxygen across the alveolar wall is only half the delivery. Once it enters the blood, oxygen has to travel to tissues that may be more than a meter away, and here the blood uses a clever carrier. Most oxygen does not simply dissolve in the watery plasma (it barely dissolves at all); instead it binds to hemoglobin, an iron-containing protein packed inside your red blood cells - NHLBI. Each red cell is crammed with hemoglobin, and each hemoglobin molecule can grab several oxygen molecules, which is what lets blood carry far more oxygen than water ever could. Hemoglobin is also why blood is red, and why oxygen-rich blood is a brighter red than oxygen-poor blood.

Carbon dioxide makes the return trip by a different route. Only a little of it rides on hemoglobin; most is carried in the plasma, largely converted into bicarbonate, a dissolved form that the blood can hold in large amounts and then convert back to carbon dioxide gas when it reaches the lungs to be breathed out - NHLBI. This bicarbonate system does double duty: it transports the waste gas and it also helps keep the blood's acidity (its pH) in the narrow range your body needs, a link that becomes important when we look at how breathing is controlled.

None of this transport works without a pump, which is where the heart comes in, and the two organs really do work as a single loop. The right side of the heart collects oxygen-poor blood returning from the body and pumps it a short distance into the lungs to be refreshed. The left side receives the newly oxygenated blood and pumps it out to the whole body under higher pressure. Here is that circuit:

The heart-lung loop: body tissues use oxygen and make carbon dioxide → oxygen-poor blood returns to the right heart → the right heart pumps it to the lungs → the alveoli swap carbon dioxide for fresh oxygen → oxygen-rich blood returns to the left heart → the left heart drives it back out to the body, and the circuit repeats.

Because the two organs are so tightly coupled, a problem in one quickly becomes a problem in the other, which is why doctors so often consider the heart and lungs together. To see how that pump is built and how it keeps the whole loop moving, our companion guide on how the human heart works picks up exactly where this section leaves off, and our overview of how the circulatory system works follows the blood on its full journey around the body. For now, the takeaway is simple: the lungs load the blood, the heart moves it, and the tissues unload it, around and around, without pause.

7. The control system

You are breathing right now without deciding to, and you were before you started reading this sentence. Breathing is one of the few functions that runs on automatic yet can also be seized by conscious control, letting you hold your breath, sigh, sing, or blow out a candle. The automatic rhythm is set by the brainstem, specifically the medulla oblongata and the pons, which house the respiratory centers that fire the signals to your breathing muscles in a steady cycle - Medicine LibreTexts. This is why breathing continues while you sleep, while you are distracted, and while you are unconscious.

The surprising part is what the control system actually listens to. You might assume it watches for low oxygen, but its main trigger is the opposite waste gas. Specialized sensors called chemoreceptors constantly monitor the level of carbon dioxide and the resulting acidity (pH) of your blood and the fluid around your brain. When carbon dioxide rises and pH drops, the brainstem speeds up and deepens your breathing to blow off the excess, and when carbon dioxide falls, breathing slows - Medicine LibreTexts. This is why you cannot hold your breath indefinitely: the urgent, uncomfortable "I need to breathe" feeling is driven far more by building carbon dioxide than by falling oxygen.

This carbon-dioxide-first design is elegant because it keeps the blood's chemistry stable, not just its oxygen supply. By tying breathing to pH, the body uses the lungs as a fast, minute-to-minute regulator of acid balance, working alongside the slower kidneys. It also explains everyday experiences: the automatic panting after a sprint (clearing a surge of carbon dioxide), the way a calm slow breath can settle you, and the deep involuntary breath your body forces after you have held it too long. If you want to use that calming effect on purpose, BehavioralTherapyTechniques.com, the behavioral therapy guide made by the same team as Humanome, walks through cyclic sighing, a short breathing exercise built on a double inhale and a long, slow exhale. The brainstem is doing constant math on your blood and adjusting the muscles accordingly, all beneath awareness.

That constant monitoring is one small piece of a much larger control network, and if the idea of the brainstem quietly running your vital functions is interesting, our guide to the brain and nervous system maps how these deep, automatic centers fit into the rest of your nervous system. Breathing sits at the boundary between the voluntary and the automatic, which is part of what makes it so fascinating: it is the one vital rhythm you can consciously override, but only for a little while before the brainstem takes back the wheel.

8. When breathing goes wrong

Understanding how the lungs are supposed to work makes it much easier to understand what happens when they do not, so this section is a calm, educational tour of four common problems. None of this is a diagnosis. It is a look at where in the system things break, and what that does to the exchange we have been describing. Where it helps, you can light up the affected structures in the 3D model and see them in place.

Asthma is a condition of the airways, the bronchi and bronchioles, not the alveoli. In asthma the airway walls become inflamed and oversensitive, and in response to triggers (allergens, cold air, exercise, infection) the muscle around them tightens and the lining swells and produces mucus, narrowing the passages and making it hard to move air, especially to breathe out - MedlinePlus. It is strikingly common: about 1 in 12 people in the United States, more than 28 million, currently have asthma - CDC. You can watch asthma light up the affected airways in 3D to see exactly which structures narrow during an attack, or read the full page on asthma.

COPD (chronic obstructive pulmonary disease) is long-term, largely permanent damage to those same airways and to the alveoli, usually caused by years of smoking or other harmful exposures. It bundles together chronic bronchitis (inflamed, mucus-clogged airways) and emphysema (alveoli that have been destroyed and merged into fewer, larger, floppy sacs), so both the tubes and the exchange surface are damaged at once - NHLBI. The global toll is enormous: COPD is the third leading cause of death worldwide, responsible for about 3.5 million deaths in 2023 - WHO. You can see COPD's damage across the lungs in 3D to picture how both airway and alveolar injury add up.

Pneumonia attacks the alveoli directly. It is an infection (by bacteria, viruses, or fungi) that inflames the air sacs and fills them with fluid and pus, so the very surface where gas exchange happens is flooded and cannot do its job, which is why pneumonia can leave someone breathless and low on oxygen - American Lung Association. It falls hardest on the youngest: pneumonia is the leading single infectious cause of death in children under 5 worldwide, killing about 740,000 of them in 2019 - WHO. You can see pneumonia fill the alveoli in 3D to connect the flooding to the loss of gas exchange, or read the full page on pneumonia.

Lung cancer is the uncontrolled growth of abnormal cells in the lung tissue, and it is the leading cause of cancer death in the United States, with roughly 226,650 new cases and about 124,730 deaths projected for 2025 - American Cancer Society. By far the biggest risk factor is smoking, though it can occur in people who never smoked, and it often causes few symptoms until it is advanced - CDC. You can explore lung cancer in the 3D model to see where tumors take hold in the lung. Seen together, these four conditions map neatly onto the anatomy: asthma and the airway-part of COPD are tube problems, pneumonia and the emphysema-part of COPD are air-sac problems, and cancer is a tissue-growth problem.

Common lung conditions by burden
Different measures, shown for scale, not directly compared

When to seek urgent care. Most breathing troubles are not emergencies, but some are, and it is worth knowing the difference. Get emergency help right away for severe shortness of breath, lips or face turning blue or gray, chest pain or pressure, confusion or trouble staying awake, or an asthma attack that does not ease after using a rescue inhaler as directed - MedlinePlus. These signs can mean the exchange or the airway itself is failing, and they need trained help, not a wait-and-see. If you are ever unsure, treat sudden, severe breathing difficulty as urgent.

9. Caring for your lungs

The good news is that the biggest levers for lung health are also the simplest, and they are about protection more than repair. The single most important one is straightforward: do not smoke, and avoid secondhand smoke and vaping. Smoking is the leading cause of both COPD and lung cancer, and quitting at any age slows further damage and lowers risk over time - NHLBI. Because much lung damage accumulates quietly over years, the earlier the protection, the more of that beautiful exchange surface you preserve.

Beyond smoke, your lungs are only as clean as the air you give them, so air quality matters. Reducing exposure to heavy air pollution, workplace dusts and fumes, radon in the home, and wildfire smoke all lessen the burden on your airways and alveoli over a lifetime. Vaccination is another quiet protector: staying up to date on flu, COVID-19, and pneumococcal vaccines (as recommended for your age and health) lowers your risk of the infections that cause pneumonia and can seriously damage lungs already under strain. And regular physical activity, while it does not enlarge the lungs, strengthens the breathing muscles and the heart-lung loop so the whole system works more efficiently.

  • Do not smoke or vape, and steer clear of secondhand smoke.
  • Limit exposure to air pollution, occupational dusts, radon, and wildfire smoke.
  • Stay current on vaccines that prevent respiratory infections.
  • Move regularly to keep the breathing muscles and circulation strong.
  • Seek care early for a cough, wheeze, or breathlessness that lingers or worsens.

Taken together, these are not exotic interventions; they are the ordinary habits that keep a healthy, low-weight, high-surface organ doing its job for decades. Your lungs are resilient, but unlike a cut on your skin, deep lung tissue does not fully regrow once it is destroyed, which is why prevention carries so much more weight here than cure. Protecting the exchange surface you have is the whole game. (If you are curious how the body's other great protective barrier works, our guide to understanding your skin covers the organ that guards you from the outside in.)

10. See it for yourself

Reading about the airway is one thing; watching it in three dimensions is another, and that is exactly what Humanome is built for. You can open the 3D explorer and find the lungs yourself: rotate the model, peel back the outer layers to reveal the rib cage and then the lungs beneath it, and click into the branching airway to see how the trachea divides toward those hundreds of millions of alveoli. Start by opening the trachea and following it inward, the same path a breath takes.

The explorer is at its best when it turns an abstract description into something you can see in place. When you light up asthma or pneumonia in the model, the affected structures highlight against the rest of the body, so "narrowed airways" and "fluid-filled alveoli" stop being phrases and become locations you can point to. That is the whole mission behind Humanome: to make the body explorable by anyone, so that understanding how you work is a matter of curiosity, not a medical degree.

If you would rather keep reading, we have full reference pages for the conditions in this guide: asthma, COPD, pneumonia, and lung cancer. You can also step back and browse the lungs alongside the body's other internal organs, the system this guide belongs to.

The takeaway

Your lungs solve one crucial problem with remarkable economy: they bring the outside air close enough to your blood, across a surface the size of a tennis court folded into a 1-kilogram organ, that oxygen and carbon dioxide can trade places by simple diffusion, breath after breath, while your brainstem sets the pace automatically. Understand that single loop of air in, waste out, and most of what the respiratory system does, and most of what can go wrong with it, falls into place. The best way to make it stick is to see it: open the Humanome 3D explorer and walk the airway from your nose to the alveoli with your own eyes.

This article is general health education, not medical advice. It cannot diagnose or treat any condition. For questions about your own health, or for any severe or sudden breathing difficulty, please consult a qualified clinician or seek emergency care.

After reading

Test what you just read

A round of a Humanome quiz on the 3D body5 free questions

Quiz: The bronchial tree

Test yourself on the 3D body

The structures this guide teaches are a quiz on the same 3D body. At Find it, you get a name and click the structure on the body yourself; at Name it, it lights up and you pick its name. The first 5 questions are free at either level, with no sign-up.

More quizzes on this: Major organs · The respiratory system · All 121 quizzes

Print the diagram

All 86 worksheets

Humanome Pro

All 121 quizzes at every level, the lab practicals, and rounds built from what you got wrong: $5.99 a month, or $29.95 for a whole year in the Black Friday sale (half the usual $59.90, through December 1).

What Pro adds

Teaching this? The free Respiratory System WebQuest takes a class through it on the 3D body, with a printable sheet and an answer key. The class plan gives every student Pro, every quiz and level on the 3D body, and shows you each student's scores: $2.99 a student a month, from 20 students, 50% less than Pro on their own. How the class plan works

Built on Founden.ai