QuestionAlveoli
How Does Gas Exchange Work in the Lungs? Oxygen In, CO2 Out
For general education about how the body works, not medical advice. Medical disclaimer.

Gas exchange is the movement of oxygen from the air in the alveoli into the blood, and of carbon dioxide from the blood into the air. It happens by diffusion across a barrier only about half a micrometer thick, where the alveolar walls and the capillary walls meet. Oxygen is then carried by red blood cells to the body’s tissues.
Contents
The full answer
Oxygen enters the blood at the alveoli, the air sacs of the lungs. Air breathed in fills the air sacs and holds about 21 percent oxygen. The blood reaching the lungs has already given up much of its oxygen to the body, so its oxygen level is low. This difference drives oxygen across the barrier into the blood.
Carbon dioxide travels in the opposite direction. Cells produce it all the time, and the blood carries it to the lungs. Because the blood holds more carbon dioxide than the alveolar air, the gas diffuses out of the capillaries and into the air sacs, where it is breathed out.
Both gases move passively. No muscle or pump pushes them through the barrier. Breathing renews the air in the alveoli, and blood flow renews the blood in the capillaries, which keeps the difference in gas levels going.
How diffusion works in the lungs
Diffusion moves molecules from a place where they are more concentrated to a place where they are less concentrated. Physiologists describe this in terms of partial pressure, which is the share of a gas’s pressure in a mixture. In the alveoli, the partial pressure of oxygen is about 100 mmHg, while in the blood arriving from the body it is about 40 mmHg.
For carbon dioxide, the gradient runs the other way. The partial pressure in the arriving blood is about 46 mmHg, while in the alveolar air it is about 40 mmHg. The gas therefore moves from the blood into the alveoli.
The rate of diffusion depends on the area of the barrier, its thickness and the difference in pressure. The alveoli give a very large area, and the barrier is thin, so the gradients are enough to exchange gases quickly even at rest.
What happens inside the capillaries
Blood flows through the pulmonary capillaries in single file. A red blood cell passes through a lung capillary in about 0.75 second at rest, and gas exchange is usually complete before the cell reaches the far end of the capillary. The cell is flattened, which brings its membrane close to the alveolar air.
Inside the red blood cell, oxygen binds to hemoglobin, a protein carrying four binding sites for oxygen. Hemoglobin is close to fully saturated when blood leaves the lungs, so most of the oxygen in the blood is carried attached to hemoglobin rather than dissolved in the plasma.
Carbon dioxide is carried in three ways: most as bicarbonate in the plasma, some bound to hemoglobin, and a small part dissolved in the plasma. Changes in the blood’s acidity affect how much of the gas is held in each form, which is why the breathing rate is linked to the chemistry of the blood.
Where gas exchange happens in the body
Gas exchange takes place in the alveoli only. The airways that lead to them, from the nose through the trachea and bronchi to the bronchioles, carry air but do not exchange gases with the blood. This part of the path is called the conducting zone.
The region of the lungs where gas exchange takes place is called the respiratory zone. It includes the respiratory bronchioles, the alveolar ducts and the alveoli. Air reaches this zone only after passing through the conducting zone, so a small amount of air in each breath stays in the airways and does not take part in exchange.
The amount of gas exchanged depends on two things: how much air reaches the alveoli and how much blood flows through the capillaries around them. When the heart pumps more blood, more capillaries carry blood at once, and when breathing speeds up, more fresh air arrives. During exercise both rise, which is why the body can take in and remove more gas each minute.
Not every alveolus receives the same amount of air or blood at every moment. The lungs match the two flows as well as they can, so that most blood passes through areas that are well ventilated. This balance is called ventilation-perfusion matching, and it keeps the blood well supplied with oxygen even when the air sacs differ slightly.
The exchanged oxygen then leaves the lungs through the pulmonary veins and reaches the body’s tissues, where the same diffusion principle moves oxygen out of the capillaries and into the cells.
Common myths
A common myth is that the lungs take in air and then pump the oxygen into the blood. In fact, gas exchange is passive. The lungs move air in and out, and diffusion does the work of moving gases across the barrier.
Another myth is that the blood is filled with air. Oxygen and carbon dioxide are dissolved in the plasma or bound to hemoglobin, and the blood does not carry bubbles of air.
A third myth is that carbon dioxide is simply a waste gas that the body throws out without use. Carbon dioxide also helps regulate the acidity of the blood through bicarbonate, so its levels are part of the body’s chemical balance.
Frequently asked questions
What is gas exchange?
Gas exchange is the movement of oxygen from the air into the blood and carbon dioxide from the blood into the air. In the human body it takes place across the walls of the alveoli.
What drives oxygen into the blood?
Oxygen moves by diffusion from a region of higher partial pressure to one of lower partial pressure. Alveolar air holds about 100 mmHg of oxygen, while blood arriving at the lungs holds about 40 mmHg.
How long does a red blood cell spend in a lung capillary?
At rest, a red blood cell takes about 0.75 second to pass through a lung capillary. That is enough time for the cell to pick up most of the oxygen it can carry.
How does carbon dioxide leave the blood?
Carbon dioxide diffuses from the blood into the alveolar air, because its partial pressure is higher in the blood than in the air sacs. It is then breathed out.
Why is the air-blood barrier so thin?
A thin barrier, often about 0.5 micrometer, lets gases diffuse quickly. Diffusion slows sharply with distance, so the thinness is essential for gas exchange.
Sources and further reading
- OpenStax, "Anatomy and Physiology 2e"
- Gray's Anatomy (Susan Standring, ed.)
- NCBI Bookshelf, StatPearls, "Physiology, Alveolar Gas Exchange"
Cite this page
“How Does Gas Exchange Work in the Lungs? Oxygen In, CO2 Out.” Body Atlas, https://body.bigworldlist.com/questions/how-does-gas-exchange-work-in-the-lungs/.
Alveoli: more questions and guides
- ProfileAlveoli: The Tiny Air Sacs Where Gas Exchange Happens
- QuestionHow Many Alveoli Are in the Lungs? Counting the Air Sacs
- ListParts of the Respiratory System: From Nose to Alveoli
- QuestionWhat Is Lung Surfactant? Why the Alveoli Don't Collapse
- QuestionWhat Is the Surface Area of the Lungs? About 70 Square Meters
- QuestionWhy Do We Sigh? What a Sigh Does for the Lungs