How Do We Breathe? How Your Lungs Work, Step by Step

Every breath involves a precise sequence of mechanical and chemical processes. Learn how air reaches the alveoli, how oxygen enters your blood, how carbon dioxide leaves your body, and how your brain keeps breathing under control.

“Adult taking a calm breath beside a window in a natural home setting”

Every few seconds, you breathe without having to think about it. Yet each breath sets off a coordinated process involving your respiratory muscles, airways, lungs, blood, heart, and brain.

Your cells need oxygen to release usable energy, and they produce carbon dioxide as a waste product. Your lungs connect the air around you with your bloodstream, allowing oxygen to enter the blood and carbon dioxide to leave it.

Quick answers

  • How we breathe: The diaphragm and rib muscles change the volume of your chest. That changes the pressure and moves air in and out.
  • What the lungs do: They bring air close to your blood so oxygen can enter and carbon dioxide can leave.
  • Why we breathe: Your cells need oxygen to make energy, and they must clear away carbon dioxide.

The Breathing Process, Step by Step

  1. Air enters through your nose or mouth. The nose helps warm, moisten, and filter incoming air.
  2. Air passes through the pharynx and larynx into the trachea, or windpipe.
  3. The trachea divides into the right and left main bronchi, which branch into smaller bronchi and bronchioles.
  4. Air reaches the alveoli, tiny air sacs surrounded by capillaries.
  5. Oxygen diffuses from alveolar air into the blood, while carbon dioxide diffuses from the blood into the alveoli.
  6. You exhale carbon dioxide, and circulation carries oxygen-rich blood to tissues throughout the body.
Airway diagram showing the trachea branching into bronchi and smaller airways toward the alveoli.
Air travels through branching airways before reaching the alveoli, where gas exchange occurs. (CAVELYRA Visual Archive)

How Your Muscles Move Air

Your lungs do not actively pull air in by themselves. Air moves because breathing muscles change the volume of your chest and create pressure differences between the lungs and the outside air.

The diaphragm drives quiet breathing

The diaphragm is a dome-shaped muscle beneath your lungs. When it contracts, it moves downward and increases the volume of the chest cavity. Pressure inside the lungs falls slightly below atmospheric pressure, so air flows in. This is inhalation.

When the diaphragm relaxes, it moves upward. Chest volume decreases, pressure rises, and air flows out. During quiet breathing, exhalation is mostly passive because the lungs and chest wall recoil toward their resting positions.

Diaphragm movement during inhalation and exhalation, showing changes in chest cavity volume.
The diaphragm changes chest volume and helps create the pressure differences that move air in and out. (CAVELYRA Visual Archive)

Your rib cage helps expand the chest

The external intercostal muscles between your ribs help lift the rib cage upward and outward during inhalation. During deep or strenuous breathing, additional muscles can assist. During forceful exhalation, abdominal and other muscles help raise pressure and push air out.

A double-layered membrane called the pleura surrounds the lungs. A small amount of pleural fluid reduces friction between its layers and helps the lungs move with the chest wall.

Where Does the Air Go?

The respiratory system includes the nose, mouth, pharynx, larynx, trachea, bronchi, bronchioles, and alveoli. Each structure contributes to moving air toward the gas-exchange surface.

The airways also defend the lungs. Mucus traps particles, and microscopic cilia move mucus toward the throat so it can be swallowed or expelled. This process is called mucociliary clearance. Coughing helps clear material from the lower airways, while sneezing mainly expels irritants from the nose.

These defenses reduce the amount of foreign material that reaches the deeper lungs, although they cannot remove every particle or microorganism.

How Gas Exchange Works in the Alveoli

An alveolus is a tiny air sac with a very thin wall and a close network of capillaries. Hundreds of millions of alveoli provide a large surface area for exchanging gases between air and blood.

Alveoli surrounded by pulmonary capillaries, showing oxygen entering blood and carbon dioxide moving into the air sacs.
Thin alveolar walls bring inhaled air close to the bloodstream, allowing oxygen and carbon dioxide to exchange. (CAVELYRA Visual Archive)

Oxygen crosses the respiratory membrane from alveolar air into blood because its partial pressure is higher in the alveoli than in the blood arriving at the lungs. Carbon dioxide moves in the opposite direction down its partial-pressure gradient.

The alveoli are living structures, not empty bubbles. Type I alveolar cells form most of the thin exchange surface. Type II cells produce pulmonary surfactant, which lowers surface tension and helps keep the alveoli open. Alveolar macrophages help remove particles and microorganisms that reach the deep lung.

How Oxygen Travels From Your Lungs to Your Cells

Gas exchange is only the first stage of oxygen delivery. Blood low in oxygen reaches the lung capillaries through the pulmonary arteries. After picking up oxygen, it returns through the pulmonary veins to the left atrium. The left ventricle then pumps it through the aorta and into the body’s circulation.

Most oxygen in blood is carried by hemoglobin inside red blood cells. Hemoglobin binds oxygen reversibly, allowing blood to transport far more oxygen than plasma could carry on its own.

At tissue capillaries, oxygen leaves the blood and enters cells. Inside cells, mitochondria use oxygen during aerobic metabolism to support the production of adenosine triphosphate, or ATP, which supplies energy for cellular processes.

Illustration of oxygen moving from the lungs into blood and being carried by red blood cells to body tissues.
Hemoglobin carries oxygen through the circulation so tissues can use it for cellular energy production. (CAVELYRA Visual Archive)

How Your Lungs Remove Carbon Dioxide

Your cells continuously produce carbon dioxide. The blood carries it back toward the lungs in several forms. Much of it travels as bicarbonate, some binds to proteins including hemoglobin, and a smaller amount remains dissolved in plasma.

In the lungs, carbon dioxide moves from blood into the alveoli and leaves the body when you exhale. This process also helps regulate blood pH. When carbon dioxide accumulates, blood becomes more acidic. Increasing ventilation removes more carbon dioxide, while reducing ventilation allows it to build up.

How Your Brain Controls Breathing

You do not need to remember to take every breath. Networks in the brainstem generate the basic breathing rhythm and adjust ventilation in response to information about carbon dioxide, oxygen, and acidity from chemoreceptors.

During exercise, working muscles use more oxygen and produce more carbon dioxide. Breathing usually becomes faster and deeper, while heart rate and blood flow increase. The respiratory and cardiovascular systems work together to meet the body’s changing needs.

Feeling out of breath during hard exercise does not automatically mean your lungs are failing. It can reflect the increased demand placed on your body. New, severe, or unusual breathlessness, however, should not be dismissed as ordinary exercise response.

Why Airflow and Blood Flow Both Matter

Efficient gas exchange requires ventilation, which brings air to the alveoli, and perfusion, which brings blood to the surrounding capillaries. If an area receives air but little blood, or blood but little air, oxygen exchange becomes less effective.

For example, pneumonia can inflame the lungs and fill some alveoli with fluid or inflammatory material. A pulmonary embolism can block blood flow through part of the pulmonary circulation. These conditions interfere with gas exchange in different ways.

What Can Affect Your Breathing?

Sleep

Breathing continues during sleep, under the control of the brainstem. In obstructive sleep apnea, the upper airway repeatedly narrows or closes, reducing or stopping airflow. Repeated episodes can disrupt sleep and lower oxygen levels.

Read more in Why Do We Snore? The Science Behind Snoring.

Smoking and air pollution

Tobacco smoke and polluted air can irritate and damage airways, impair normal clearance mechanisms, and contribute to respiratory and cardiovascular disease. Avoiding tobacco smoke and reducing exposure to harmful air pollution can help protect lung health.

Altitude

At high altitude, atmospheric pressure is lower, so the partial pressure of oxygen is lower too. The body responds by increasing breathing and, over time, making other adjustments that support oxygen delivery.

Key Takeaways

  • The diaphragm and rib muscles change chest volume and pressure to move air.
  • Air travels through branching airways to the alveoli.
  • Oxygen enters blood and carbon dioxide leaves it by diffusion down partial-pressure gradients.
  • Hemoglobin carries most oxygen to tissues, where cells use it to support ATP production.
  • The lungs remove carbon dioxide and help regulate blood pH.
  • The brain automatically adjusts breathing to changing body needs.
  • Effective gas exchange depends on both airflow and blood flow.

Every breath links the atmosphere to your cells. Breathing, circulation, and cellular metabolism work together to keep your body functioning.

Seek medical advice for new or worsening breathlessness, a persistent cough, or chest pain. Sudden or severe difficulty breathing, blue lips or face, or chest pain with breathlessness requires emergency care. This article is educational and does not replace individualized medical advice.

Related Reading

References

  1. National Heart, Lung, and Blood Institute. How the Lungs Work: The Respiratory System.
  2. National Heart, Lung, and Blood Institute. How the Lungs Work: How Your Body Controls Breathing.
  3. National Heart, Lung, and Blood Institute. How the Lungs Work: What Breathing Does for the Body.

By CAVELYRA Editorial

Written and researched by the CAVELYRA editorial team. We turn complex ideas about the brain, the body and the universe into clear, everyday explanations — every article researched from trusted scientific sources, with no jargon and no hype.