The central equation behind acid-base balance in the body is the Henderson-Hasselbalch equation, which describes the relationship between blood pH, bicarbonate concentration, and the partial pressure of carbon dioxide. In its simplest form it says: pH equals a constant plus the log of the ratio of bicarbonate to dissolved CO₂. That single relationship underpins nearly everything clinicians do when they read a blood gas report, and it captures the two big levers the body uses to keep blood pH in its narrow livable range of roughly 7.35 to 7.45. But the equation is only the starting point for understanding how the body actually maintains that balance, and there are competing models that frame the chemistry differently.
What the Henderson-Hasselbalch Equation Actually Tells You
The equation was formalized in the early twentieth century when Lawrence Henderson adapted the mass-action expression for carbonic acid and Karl Hasselbalch recast it using logarithmic pH notation. Hasselbalch went on to make the first actual blood pH measurements with a hydrogen electrode and proposed quantifying metabolic acid-base disturbances by measuring the pH of blood equilibrated to a standard CO₂ pressure.1PubMed. History of blood gas analysis. II. pH and acid-base balance measurements The clinical chemists of the 1950s then married this equation with the Brønsted-Lowry definition of an acid to create the bicarbonate-centered framework that remains the dominant bedside approach today.2PubMed Central. Bench-to-bedside review: a brief history of clinical acid-base
What the equation boils down to for practical purposes is this: the pH of your blood depends on the ratio of bicarbonate (controlled mainly by the kidneys) to dissolved CO₂ (controlled mainly by the lungs). If bicarbonate goes up relative to CO₂, pH rises and the blood becomes more alkaline. If CO₂ rises relative to bicarbonate, pH falls and the blood becomes more acidic. The body can shift either side of the ratio to compensate for a disturbance on the other side, which is why acid-base physiology always comes back to the interplay between breathing and kidney function.
One thing worth knowing is that the equation uses a constant that is itself not perfectly constant. The practical coefficient for carbonic acid’s first ionization varies somewhat depending on temperature, protein concentration, and ionic strength of the sample. Research going back decades has examined how reliable this coefficient remains under the varied conditions of real clinical blood samples.3PubMed. On the reliability of the Henderson-Hasselbalch equation in routine clinical acid-base chemistry For most bedside situations it holds up well enough, but it is not a law of nature carved in stone; it is a useful approximation of a more complicated chemical reality.
How the Lungs Adjust the CO₂ Side
The fastest way your body corrects an acid-base disturbance is by changing how fast and deeply you breathe. Carbon dioxide is constantly produced by cellular metabolism, and it is constantly blown off in the lungs. If blood becomes too acidic, the respiratory system ramps up ventilation to dump CO₂ faster, which pulls the denominator of the Henderson-Hasselbalch ratio down and nudges pH back up. If blood becomes too alkaline, breathing slows and CO₂ accumulates.
This reflex is driven by central chemoreceptors in the brainstem that sense hydrogen ion concentration in the fluid surrounding the brain. These receptors respond to small shifts in CO₂ to fine-tune normal gas exchange and to large shifts to limit dangerous swings in pH.4PubMed Central. Central chemoreceptors: locations and functions The response is fast but not instantaneous, and it has an interesting wrinkle: the fluid around the brain (cerebrospinal fluid) does not equilibrate with blood pH at the same speed as the rest of the body. In experiments where metabolic acidosis was induced, ventilation jumped by about a third in the first hour but then plateaued briefly because the cerebrospinal fluid was still relatively alkaline, which acted as a brake on the ventilatory drive. Only after both blood and cerebrospinal fluid were acidotic together did ventilation climb to nearly double the baseline level over the following hours.5American Review of Respiratory Disease. Dynamics of the Control of Ventilation during Metabolic Acidosis and Its Correction
This delay matters clinically. A patient with a rapidly developing metabolic acidosis may not show full respiratory compensation for hours, meaning the blood gas values you measure early on can understate how much the body is trying to correct. The respiratory system is powerful but it is ultimately a short-term patch; it can shift CO₂ quickly, yet it cannot generate new bicarbonate. For that, you need the kidneys.
How the Kidneys Adjust the Bicarbonate Side
If the lungs are the sprinters of acid-base regulation, the kidneys are the marathon runners. They work more slowly, taking hours to days to fully compensate, but they can make lasting changes that the lungs cannot. The kidneys protect pH in two major ways: reabsorbing the bicarbonate that is already in the blood (preventing it from being lost in urine) and manufacturing new bicarbonate when existing stores are depleted.
Under normal conditions, the kidneys reabsorb virtually all of the bicarbonate that gets filtered through the glomerulus. Roughly 70 to 80 percent of that reclamation happens in the proximal tubule, another 10 to 15 percent in the thick ascending limb of the loop of Henle, and smaller fractions in the distal tubule and collecting duct. In every segment the mechanism is the same: the tubule cell secretes a hydrogen ion into the urine, where it reacts with a bicarbonate molecule to form carbonic acid, which then splits into CO₂ and water. The CO₂ diffuses back into the cell and is recycled.6PubMed Central. Kidney metabolism and acid–base control: back to the basics
When the body faces a sustained acid load, the kidneys go beyond simply reclaiming filtered bicarbonate. They ramp up ammonia production and excrete hydrogen ions bound to urinary buffers, effectively generating new bicarbonate that enters the bloodstream. When the body is too alkaline, the kidneys do the opposite: they allow bicarbonate to spill into the urine, pulling pH back down. This flexibility is what makes renal compensation the definitive long-term correction for acid-base disturbances.
Clinical Tools Built on the Equation
The Henderson-Hasselbalch equation is the backbone, but clinicians rarely stop there. Several additional calculations are layered on top to figure out what kind of acid-base disturbance is present and whether the body’s compensation makes sense.
The serum anion gap is one of the most widely used. It is calculated by taking the sodium concentration and subtracting the sum of chloride and bicarbonate. The result, normally in the low teens, reflects the unmeasured anions in the blood, mostly albumin and other proteins. When the anion gap rises, it almost always signals that the body has accumulated unmeasured acids, such as lactic acid or ketoacids.7PubMed Central. Clinical usefulness of the serum anion gap A falling anion gap, while less common, can be generated by several different mechanisms and sometimes points to unusual conditions like certain blood cancers or drug exposure.8Clinical Journal of the American Society of Nephrology. Serum Anion Gap
Another tool is Winter’s formula, which predicts what the CO₂ level should be if the lungs are fully compensating for a metabolic acidosis. If the measured CO₂ matches the predicted value, the compensation is appropriate. If it is higher or lower, a second acid-base disorder is lurking on top of the first. Research has shown that Winter’s formula can exhibit larger errors than some newer predictive equations, but it remains a standard teaching point and a quick bedside check.9PubMed. A very simple formula to compute pCO2 in hemodialysis patients
The Stewart Model and Why It Stirs Debate
Not everyone is satisfied with the Henderson-Hasselbalch framework. In 1981, the Canadian physiologist Peter Stewart proposed a fundamentally different way of thinking about acid-base balance, built around three independent variables: the strong ion difference (the gap between all fully dissociated cations and anions in the blood), the total concentration of weak acids (mainly albumin and phosphate), and the partial pressure of CO₂.10PubMed. Stewart and beyond: new models of acid-base balance Stewart argued that bicarbonate is not an independent driver of pH but rather a dependent variable that shifts in response to changes in those three independent factors.
His model is grounded in six simultaneous equations incorporating the laws of mass action, mass conservation, and electrical neutrality, with water dissociation placed at the center of everything.11PubMed Central. The Stewart approach–one clinician’s perspective Clinicians who adopted the Stewart approach found it especially useful in the intensive care unit, where patients often have abnormal albumin levels, receive large volumes of intravenous fluid with varying chloride concentrations, and develop acid-base disturbances that the traditional bicarbonate-centered approach can miss or mislabel.12Journal of Critical Care. A physical chemical approach to the analysis of acid-base balance in the clinical setting
The two camps have been arguing for decades. Supporters of the traditional approach point out that the Henderson-Hasselbalch equation is mathematically contained within Stewart’s system, so the two are not actually in conflict, and that Stewart’s added complexity rarely changes the clinical decision. Supporters of Stewart counter that thinking in terms of strong ion difference and weak acids exposes hidden disturbances, particularly the acidifying effect of saline infusion or the alkalinizing effect of low albumin, that the traditional approach tends to gloss over. In practice, many clinicians use whichever framework they learned first and supplement it with whichever pieces of the other help them make sense of tricky cases.
Acid-Base Shifts During Exercise
If you have ever sprinted hard enough to feel your muscles burn and your breathing become ragged, you have experienced an acute acid-base disturbance. During intense exercise, the demand for energy outstrips what mitochondria can supply through aerobic metabolism. The extra ATP is regenerated through glycolysis and the phosphagen system, and every molecule of ATP that is hydrolyzed releases a proton. Under resting or moderate-intensity conditions, mitochondria consume those protons as part of oxidative phosphorylation, so they do not accumulate. It is only when exercise intensity exceeds the aerobic steady state that protons build up and the cell acidifies.13American Journal of Physiology-Regulatory, Integrative and Comparative Physiology. Biochemistry of exercise-induced metabolic acidosis
Lactate production rises under these conditions, but not because lactate itself is the cause of the acidosis. Lactate is actually generated to keep glycolysis running by regenerating a cofactor (NAD⁺) that would otherwise become depleted. The popular notion that “lactic acid makes your muscles burn” is an oversimplification; the acidosis comes from the proton release during ATP breakdown, and lactate production is the cell’s attempt to keep up, not the villain of the story. Once exercise stops and mitochondrial respiration catches up with the backlog, the accumulated protons are cleared and pH normalizes within minutes to tens of minutes.
Altitude and the Kidneys Working Overtime
Climbing to high altitude is one of the cleanest natural experiments in acid-base compensation. As you ascend, the lower oxygen pressure triggers hyperventilation, which blows off CO₂ and creates a respiratory alkalosis. Your blood pH rises. The kidneys then compensate by excreting bicarbonate in the urine, effectively pulling the numerator of the Henderson-Hasselbalch ratio down to match the lowered CO₂ denominator and bringing pH back toward normal.14PubMed. Acid-base balance at high altitude in lowlanders and indigenous highlanders
How quickly this happens is striking. In a study tracking people who rapidly ascended to 3,800 meters, arterial pH was normalized within 24 hours of arrival through renal bicarbonate elimination.15PubMed Central. Time course and magnitude of ventilatory and renal acid-base acclimatization following rapid ascent to and residence at 3,800 m over nine days As altitude continues to increase, the kidney’s compensatory capacity appears to plateau after about five days of exposure, suggesting a ceiling beyond which the kidneys cannot keep pace with increasingly aggressive hyperventilation.16PubMed Central. Renal reactivity: acid‐base compensation during incremental ascent to high altitude Indigenous highland populations, who have lived at altitude for generations, appear to have adapted so that their resting pH and bicarbonate levels settle at values between the sea-level norm and what acclimatizing lowlanders achieve, hinting at long-term evolutionary tuning of the same bicarbonate/CO₂ ratio the Henderson-Hasselbalch equation describes.17PubMed. Acid-base balance at high altitude in lowlanders and indigenous highlanders
When the Gut Disrupts the Balance
The gastrointestinal tract is not usually the first organ people think of in acid-base physiology, but it plays a surprisingly large role. The stomach secretes hydrochloric acid, and the pancreas secretes bicarbonate-rich fluid. Under normal conditions these secretions are reabsorbed downstream and the net effect on systemic acid-base status is roughly neutral. When something disrupts normal GI function, however, the losses can be massive and one-sided.
Severe vomiting, for instance, removes hydrochloric acid from the stomach without the corresponding downstream bicarbonate absorption, pushing the body toward metabolic alkalosis. Prolonged diarrhea does the opposite: the bicarbonate-rich fluid of the lower intestine is lost before it can be reabsorbed, causing metabolic acidosis. Surgical rerouting of the GI tract, infections, and hereditary diseases can all uncover the gut’s normally hidden importance in maintaining acid-base homeostasis.18PubMed. Acid-base disturbances in gastrointestinal disease Whether the result is acidosis or alkalosis depends on the nature and volume of the fluid lost, and the clinical picture can be complicated when a patient has both vomiting and diarrhea simultaneously.
Fetal Acid-Base Balance and the Placenta
One of the more remarkable applications of acid-base physiology is in fetal medicine. The fetus cannot breathe and has no functional lungs for gas exchange, so the entire job of clearing CO₂ and maintaining pH falls to the placenta. Oxygen-rich blood from the mother crosses the placental membrane, and CO₂ flows in the opposite direction. The system works much like a venous equilibration model: the fetal umbilical vein equilibrates with maternal blood across the placenta, and as long as oxygen delivery stays above a critical threshold, the fetus maintains a normal base excess. Studies in fetal lambs showed that oxygen uptake and acid-base status remained normal as long as the umbilical oxygen delivery rate stayed above roughly half its usual value, but once delivery dropped below that floor both oxygen uptake and base excess fell sharply.19PubMed. Fetal oxygen uptake, oxygenation, and acid-base balance as a function of uterine blood flow Under normal conditions, the oxygen supply to the fetus runs at about twice the minimum needed, providing a substantial safety margin.
This is why obstetricians monitor fetal heart rate patterns during labor so closely. A decelerating heart rate pattern can signal reduced placental blood flow, which, if sustained, means the fetus’s acid-base buffer is being consumed faster than it can be replenished. The Henderson-Hasselbalch relationship still applies inside the fetal circulation; it is just that both sides of the equation are controlled by the placenta rather than by fetal lungs and kidneys working independently.
Extreme Buffering in Deep-Diving Mammals
If you want to see acid-base physiology pushed to its biological limit, look at Cuvier’s beaked whales. These animals routinely dive to extreme depths for extended durations, far beyond the point at which aerobic metabolism can supply all the energy they need. When dives exceed the aerobic limit, anaerobic metabolism kicks in and lactate accumulates. The whale does not attempt to clear this lactate immediately; instead, it buffers the resulting acid load across a series of deep dives and metabolizes the accumulated lactate during extended surface recovery periods or during sequences of shallower dives that follow a deep bout.20Journal of Experimental Biology. Extreme diving in mammals: first estimates of behavioural aerobic dive limits in Cuvier’s beaked whales
Cuvier’s beaked whale muscle has one of the highest acid-buffering capacities among cetaceans, which allows prolonged low-level anaerobic function without catastrophic pH drops. Combined with a dive response that slows the heart rate, constricts blood flow to non-essential organs, and reduces kidney and liver function during the dive, the animal can tolerate an acid-base environment that would incapacitate most mammals. These adaptations are a vivid reminder that while the Henderson-Hasselbalch equation describes the same chemistry in every mammal’s blood, the biological machinery built around that equation can vary enormously across species, shaped by millions of years of evolutionary pressure on where and how an animal needs to survive.
How pH Measurement Itself Evolved
The ability to measure blood pH, and therefore to use the Henderson-Hasselbalch equation clinically, has its own surprisingly dramatic history. Electrometric measurement of hydrogen ion concentration was discovered by Wilhelm Ostwald around 1890 and described thermodynamically by Walther Nernst. Søren Sørensen introduced the pH scale in 1909, and Hasselbalch adapted that notation to Henderson’s carbonic acid equation. But for decades the dominant clinical method was not pH measurement at all; it was Donald Van Slyke’s manometric apparatus, which measured plasma CO₂ content and inferred acid-base status from there.21PubMed. History of blood gas analysis. II. pH and acid-base balance measurements
The breakthrough that brought direct pH measurement to routine clinical use came from an unlikely catalyst: the 1952 polio epidemic in Copenhagen. The surge of patients on mechanical ventilators created an urgent need for rapid, accurate blood gas analysis. Poul Astrup developed a glass electrode that could measure pH in blood at body temperature and, with Ole Siggaard-Andersen, created the interpolative method for deriving CO₂ and bicarbonate from pH measurements alone. That three-electrode blood gas analyzer displaced Van Slyke’s apparatus by the 1960s and remains, in updated form, the standard instrument in hospital laboratories worldwide.22Nephrology Dialysis Transplantation. Acid–base homeostasis: a historical inquiry of its origins and conceptual evolution It is a useful corrective to remember that the elegant equation written on whiteboards in medical schools only became clinically actionable because of a series of engineering innovations driven by public health crises, not abstract theoretical interest.

