Gas exchange is the movement of oxygen and carbon dioxide between an organism and its surroundings, and it underpins virtually every energy-producing process in animal and plant life. In your lungs, oxygen crosses from inhaled air into your blood while carbon dioxide moves the other direction, all across a tissue barrier thinner than a single red blood cell. But lungs are only one solution to this problem. Fish use countercurrent flow in their gills, birds push air through a one-way circuit, insects open and close tiny valves along their bodies, and some frogs breathe mostly through their skin. The physics driving all of these systems is the same, yet the engineering is wildly different.
What Happens Inside the Human Lung
Your lungs contain roughly 300 million alveoli, tiny sacs clustered at the ends of branching airways. Each alveolus is wrapped in a mesh of capillaries so dense that blood is nearly in direct contact with air. Oxygen dissolves through the thin alveolar wall into the blood, driven by a concentration difference: the oxygen level in freshly inhaled air is higher than in the blood arriving from tissues that just burned through their supply. Carbon dioxide travels the opposite way because the blood returning from your tissues is loaded with it, while the air in the alveolus is not.
Two features keep this system from collapsing. First, a thin layer of pulmonary surfactant coats the inside of each alveolus. When you exhale and the alveolus shrinks, the surfactant film compresses and drops surface tension to extremely low levels, preventing the sac from sticking shut.1PubMed Central. The biophysical function of pulmonary surfactant Without it, the smallest alveoli would collapse on every breath. Premature infants who lack surfactant struggle with exactly this problem.
Second, the lung actively matches blood flow to airflow. If a patch of lung tissue is poorly ventilated and oxygen levels drop there, the blood vessels in that region constrict, redirecting blood toward better-ventilated areas. Computational modeling shows that this reflex, called hypoxic pulmonary vasoconstriction, homogenizes oxygen uptake across the lung and increases total oxygen delivery by improving the match between ventilation and perfusion.2PubMed Central. Hypoxic pulmonary vasoconstriction as a regulator of alveolar-capillary oxygen flux: A computational model of ventilation-perfusion matching It is a remarkably elegant bit of local regulation that happens without any conscious input from you.
How Blood Carries Gases
Getting oxygen into the blood is only half the job. Blood then has to carry it to tissues, drop it off, pick up carbon dioxide, and haul that back to the lungs. Hemoglobin, the protein packed into red blood cells, handles most of the heavy lifting for oxygen. Each hemoglobin molecule can bind four oxygen molecules when conditions are right.
What makes hemoglobin brilliant is that it does not hold onto oxygen with constant strength. As blood arrives at working tissues, those tissues have already been producing carbon dioxide and acid. The drop in pH causes hemoglobin to loosen its grip on oxygen, releasing it right where the cells need it. This pH-driven shift in hemoglobin’s affinity is called the Bohr effect, and modeling work shows it is not a minor tweak: blocking it in simulations dramatically increases hemoglobin’s oxygen affinity, meaning far less oxygen would be released to tissues.3PubMed. The Bohr/Haldane effect: a model-based uncovering of the full extent of its impact on O(2) delivery to and CO(2) removal from tissues Protons that load onto hemoglobin’s binding sites during oxygen unloading are a major reason the physiological oxygen curve sits where it does.4PubMed. The magnitude of the Bohr effect profoundly influences the shape and position of the blood oxygen equilibrium curve
The reverse happens for carbon dioxide. As hemoglobin releases oxygen and shifts to its deoxygenated shape, it becomes better at binding both carbon dioxide and hydrogen ions. This reciprocal phenomenon, the Haldane effect, means that deoxygenated blood is a more efficient carbon dioxide carrier than oxygenated blood.5PubMed. Red blood cell pH, the Bohr effect, and other oxygenation-linked phenomena in blood O2 and CO2 transport So the same conformational change in the hemoglobin molecule simultaneously helps dump oxygen at the tissues and load up carbon dioxide for the return trip. It is a two-for-one deal baked into the protein’s shape.
Carbon dioxide itself travels in three forms: a small fraction stays dissolved in the plasma, some binds directly to hemoglobin as carbamate, and the largest share is converted into bicarbonate by the enzyme carbonic anhydrase inside red blood cells.6Physiological Reviews. Carbon dioxide transport and carbonic anhydrase in blood and muscle When the blood returns to the lungs, the process reverses: bicarbonate converts back into dissolved carbon dioxide, which crosses into the alveolar air and is exhaled.
Gas Exchange in the Airways Themselves
Most people picture gas exchange as happening only in the alveoli, but the airways leading to them are not inert tubes. For gases that dissolve very readily in blood, the airway lining and its own blood supply participate in exchange before inhaled air ever reaches the alveoli. As air passes through the bronchial tree on its way in, it absorbs highly soluble gases from the moist airway mucosa and essentially equilibrates with the bronchial blood supply. By the time it arrives at the alveoli, the partial pressure of these highly soluble gases is already uniform throughout. On the way back out during exhalation, the partial pressure of such gases drops from the alveolar level down to a lower value measured at the mouth.7Europe PMC. Airway exchange of highly soluble gases This matters clinically because breath-test measurements of some exhaled compounds reflect not just alveolar gas exchange but airway exchange as well.
How Fish Gills Outperform a Simple Mixer
Water holds far less dissolved oxygen than air does, so fish face a tougher challenge. Gills solve it with a clever plumbing trick: water flows across the gill surface in one direction while blood flows in the opposite direction. This countercurrent arrangement means that blood always encounters water with a slightly higher oxygen concentration, maintaining a diffusion gradient along the entire length of the exchange surface rather than just at the start.
The payoff is measurable. In dogfish, researchers found that arterial blood oxygen levels were often distinctly higher than the oxygen level in the water leaving the gills, something that would be impossible if the two fluids mixed freely or flowed in the same direction.8Respiration Physiology. Efficiency of O2 exchange in the gills of the dogfish, scyliorhinus stellaris Separate work on Pacific dogfish confirmed that when extraction was high, the oxygen tension of expired water dropped below that of arterial blood, a hallmark of countercurrent flow.9Journal of the Fisheries Research Board of Canada. Relationship of Gill Ventilation and Perfusion in Pacific Dogfish, Squalus suckleyi In practical terms, some fish can extract upward of 80 percent of the oxygen from each gulp of water, a feat no mammalian lung achieves with a single breath of air.
This system has a vulnerability, though. Because fish depend on dissolved oxygen in water, any drop in water oxygenation hits them hard. As oceans warm, water holds less oxygen while ectothermic fish burn through more of it due to faster metabolism. A review of over a thousand elasmobranch species (sharks, skates, and rays) found that while many can tolerate mild to moderate hypoxia through behavioral and physiological adjustments, rising temperatures and spreading deoxygenation will squeeze their margins.10PubMed Central / Journal of Fish Biology. The vulnerability of sharks, skates, and rays to ocean deoxygenation: Physiological mechanisms, behavioral responses, and ecological impacts
The Bird Lung and Its One-Way Airflow
Birds took an entirely different evolutionary path. Instead of lungs that inflate and deflate like ours, birds have a rigid lung connected to a system of air sacs that act as bellows. Air flows through the lung in one direction, from back to front, rather than in and out through the same passages. During inhalation, fresh air bypasses the gas-exchanging portion and fills the rear air sacs. During exhalation, that stored air is pushed forward through the parabronchi, the narrow tubes where actual gas exchange occurs. The result is that the exchange surfaces see a continuous stream of fresh air, with no dead-end mixing.11Philosophical Transactions of the Royal Society B. Unidirectional airflow, air sacs or the horizontal septum: what does it take to make a bird lung?
Within the parabronchi, blood flows perpendicular to the airflow rather than antiparallel to it. This creates a cross-current exchange system, distinct from the countercurrent system in fish gills. Because deoxygenated blood meets air at various points along the parabronchus, the blood leaving the gas-exchange region can achieve oxygen levels higher than would be possible in a simple tidal system like a mammalian lung. That structural advantage, combined with a vast respiratory surface area, a thin barrier between air and blood, and a large capillary blood volume, gives birds exceptional gas exchange efficiency.12Frontiers in Animal Science. Perspectives on the Structure and Function of the Avian Respiratory System: Functional Efficiency Built on Structural Complexity This is part of why bar-headed geese can fly over the Himalayas at altitudes that would leave most mammals gasping.
Insects, Amphibians, and Other Strategies
Insects bypass blood-based oxygen transport almost entirely. Their bodies are laced with a network of tracheal tubes that open to the outside through small ports called spiracles. Air diffuses or is actively pumped through these tubes directly to cells. Many insects cycle through a discontinuous gas exchange pattern: the spiracles close for a period, then flutter open briefly to let oxygen in, then open fully to let accumulated carbon dioxide escape.13PubMed. Discontinuous gas exchange in insects This intermittent approach reduces water loss through the respiratory openings, a serious concern for small-bodied animals with a large surface-area-to-volume ratio.
Amphibians hedge their bets. Many aquatic frogs rely on multiple routes simultaneously: lungs handle most oxygen uptake, but the skin takes on a disproportionate share of carbon dioxide excretion. During a dive, when the lungs are not ventilated, the skin becomes the primary gas exchange organ entirely.14PubMed Central. Pulmonary and cutaneous Oâ‚‚ gas exchange: a student laboratory exercise in the frog The physical properties of oxygen diffusion differ dramatically between air and water, so the partitioning between lung and skin shifts with behavior and environment. This flexibility allows frogs to exploit habitats that would be off-limits to an animal locked into a single gas exchange organ.
Oxygen Carriers Beyond Hemoglobin
Hemoglobin dominates vertebrate oxygen transport, but it is not the only game in nature. Many marine invertebrates rely on hemocyanin, a copper-based protein that floats freely in the blood rather than being packed into cells. Hemocyanin turns blue when oxygenated rather than red. Still other invertebrates use hemerythrin, another iron-based carrier, or giant extracellular hemoglobin molecules that are structurally distinct from the vertebrate version.15PubMed. Structure-Function Relationships of Oxygen Transport Proteins in Marine Invertebrates Enduring Higher Temperatures and Deoxygenation Each of these proteins evolved under different environmental pressures, particularly temperature and oxygen availability, and each has trade-offs in how tightly it binds oxygen and how well it performs when conditions change.
Gas Exchange Before Your First Breath
Before birth, your lungs are filled with fluid and play no role in gas exchange. Instead, the placenta does the work. Maternal blood and fetal blood flow close to each other without mixing, and oxygen diffuses across from the mother’s side into the fetal circulation. The challenge is that the oxygen gradient between the two blood supplies is surprisingly flat, so the fetus relies on several tricks to pull enough oxygen across. Fetal hemoglobin has a higher affinity for oxygen than the adult version, helping it grab oxygen even at low partial pressures.16PubMed. Evolution of placental function in mammals: the molecular basis of gas and nutrient transfer, hormone secretion, and immune responses High fetal hemoglobin concentrations, high blood flow rates through the umbilical cord, and a double-Bohr effect, where oxygen release on the maternal side simultaneously facilitates oxygen uptake on the fetal side, all compensate for the slim pressure gradients.17PubMed. Blood Flow and Respiratory Gas Exchange in the Human Placenta at Term: A Data Update
The high-affinity fetal hemoglobins found in mammals evolved through duplications within the beta-globin gene family, and they arose independently in ruminants and primates, a case of convergent evolution solving the same gas exchange problem in separate lineages.18PubMed. Evolution of placental function in mammals: the molecular basis of gas and nutrient transfer, hormone secretion, and immune responses After birth, fetal hemoglobin is gradually replaced by the adult form over the first several months, shifting the oxygen-binding characteristics of the blood to suit air breathing.
Plants and the Stomatal Trade-Off
Gas exchange is not an animal-only concern. Plants need carbon dioxide for photosynthesis and release oxygen as a byproduct, and this exchange happens primarily through stomata, microscopic pores on the surface of leaves. Each stoma is flanked by a pair of guard cells that swell or shrink to open and close the pore. Open stomata let carbon dioxide in, but they also let water vapor escape.19PubMed Central. Stomata: custodians of leaf gaseous exchange This tension between carbon gain and water loss is the central trade-off in plant gas exchange.
Some plants in arid environments evolved a workaround. CAM (Crassulacean acid metabolism) plants open their stomata at night, when the air is cooler and humidity is higher, and fix incoming carbon dioxide into malic acid for temporary storage. During the day, with stomata closed and water safely retained, the stored acid is broken down to release carbon dioxide internally, feeding it to the photosynthetic machinery. This strategy makes CAM plants considerably more water-efficient than plants that keep stomata open during daylight hours.20PubMed Central. Evolution of Crassulacean acid metabolism in response to the environment: past, present, and future Cacti, agaves, and pineapples all use variations of this approach.
Diving Mammals and Life Without Breathing
For marine mammals that dive deep and hold their breath for extended periods, gas exchange essentially stops at the lung during a dive and must be managed entirely from stored reserves. Elephant seals, sperm whales, and other deep divers carry outsized oxygen stores in their blood and muscle. In deep divers, more than 80 percent of the total oxygen reserve is locked in blood hemoglobin and muscle myoglobin, with myoglobin concentrations elevated far above those seen in land mammals.21PubMed. The physiological basis of diving to depth: birds and mammals
During a dive, these animals undergo a cascade of physiological shifts: the heart slows dramatically, blood vessels constrict to route oxygen preferentially to the brain and heart, and in mammals the lungs collapse at relatively shallow depths, which prevents nitrogen from dissolving into the blood and causing decompression sickness on ascent. Enhanced tissue buffering capacities help maintain cellular energy production even when oxygen runs low.22PubMed Central. Physiological resiliency in diving mammals: Insights on hypoxia protection using the Krogh principle to understand COVID-19 symptoms These animals spend their entire lives cycling between lung collapse and reinflation, between oxygen depletion and restoration, in a way that would cause serious tissue damage in a human.
High Altitude and Genetic Adaptation
Humans living at extreme altitude face their own gas exchange challenge. The air contains the same percentage of oxygen as at sea level, but at lower atmospheric pressure, each breath delivers fewer oxygen molecules. Most people acclimatize over days or weeks by producing more red blood cells, breathing faster, and shifting their blood chemistry. But populations that have lived at altitude for thousands of years show signs of deeper, genetic adaptation.
In Tibetans, researchers have identified strong selection on genes in the hypoxia-inducible factor (HIF) pathway, particularly EPAS1 (encoding HIF-2α) and EGLN1 (encoding PHD2), a key regulator of HIF signaling.23Europe PMC. Human high-altitude adaptation: forward genetics meets the HIF pathway These genes orchestrate the body’s transcriptional response to low oxygen, affecting everything from red blood cell production to blood vessel growth. Interestingly, Tibetans tend to have lower hemoglobin levels than acclimatized lowlanders at the same altitude, suggesting their adaptation involves more efficient oxygen use rather than simply cramming more oxygen carriers into the blood. Andean highlanders, by contrast, show a different pattern of adaptation, with higher hemoglobin levels and evidence of selection on different genes. The same environmental pressure, thin air, produced distinct solutions in populations separated by continents.
When Gas Exchange Breaks Down
Acute respiratory distress syndrome (ARDS) is among the most severe clinical failures of gas exchange. In ARDS, widespread inflammation damages the thin alveolar-capillary membrane, allowing fluid to leak into the alveoli. This edema fills airspaces that should be gas-filled, collapsing some alveoli entirely and reducing lung compliance. The result is severe ventilation-perfusion mismatch: blood flows past flooded or collapsed alveoli and returns to the body without picking up oxygen, a phenomenon called shunting.24PubMed Central. Pathophysiology of Acute Respiratory Distress Syndrome and COVID-19 Lung Injury Pulmonary vascular resistance climbs, making the right side of the heart work harder, and blood oxygen levels can drop to dangerous levels despite a patient being on supplemental oxygen.
When mechanical ventilation is not enough, clinicians can turn to extracorporeal membrane oxygenation (ECMO). The concept is straightforward, if the technology is not: blood is drawn out of the body, passed through an artificial membrane lung where oxygen and carbon dioxide exchange occurs across synthetic fibers, and then returned. By adjusting blood flow rate through the device and the composition of the gas flowing on the other side of the membrane, clinicians can control how much oxygen is added and how much carbon dioxide is removed. With current technology, this can replace lung function for weeks at a time.25PubMed. Physiology of Extracorporeal Gas Exchange ECMO is used for severe ARDS cases, certain cardiac surgeries, and as a bridge while damaged lungs heal or until a transplant becomes available.
Why So Many Designs for the Same Problem
The diversity of gas exchange systems across life is striking, but it follows a logic. Every solution is shaped by the medium the organism lives in (air versus water), its metabolic demands (a hummingbird in flight versus a resting slug), and the constraints of its body plan. Water breathing demands enormous surface area and countercurrent flow because dissolved oxygen is scarce. Air breathing allows smaller, simpler respiratory surfaces but creates the problem of drying out, hence the internalized lung and the insect strategy of closable spiracles. High-performance flight in birds requires such prodigious oxygen delivery that a simple tidal lung would not keep up, so the cross-current parabronchial system evolved alongside the bellows-like air sac arrangement.
Even within a single organism, gas exchange strategy can shift over a lifetime. A frog tadpole breathes through gills, switches to lungs and skin as an adult, and alters the balance between those routes depending on whether it is swimming or basking. A human fetus relies on placental exchange with specialized high-affinity hemoglobin, then transitions to air breathing within minutes of birth. These shifts reinforce a simple point: gas exchange is less a fixed structure and more a problem that organisms solve and re-solve as their circumstances change.

