What Really Tells Your Lungs to Speed Up
You do not decide to breathe in the same way that you decide to wave. Day and night, awake or asleep, your body keeps the air moving without any orders from you. So who is in charge?
The control center sits in the lower part of the brain, in a region called the brainstem. It sends signals to the diaphragm, the large, dome-shaped muscle under the lungs, and to the muscles between the ribs. Each time they tighten, your chest expands and air flows in. When they relax, air flows out.
What sets the pace is mostly not a shortage of oxygen, as many people guess. It is carbon dioxide. Every cell in your body makes carbon dioxide as a waste product while it uses oxygen for energy. The waste travels in the blood to the lungs, where it is breathed out. Sensors in the brain and in large blood vessels keep track of how much carbon dioxide is present. When the level starts to rise, they tell the brainstem to speed up.
That explains what happens when you run. Working muscles produce much more carbon dioxide, the level climbs, and your breathing becomes deeper and faster until the extra is cleared away. After you rest, the level falls and your breathing settles down again.
It also explains why you can hold your breath for only a short time. As carbon dioxide builds up, the urge to breathe grows stronger and stronger. That strong signal is a protective feature, which is one reason people should never stretch their limits when they swim.