Anion Gap Calculator: Metabolic Acidosis & ABG Interpretation
Acid-base questions follow a predictable pattern on Step 2 CK: a clinical vignette, a blood gas, and a set of answer choices that all look plausible until the numbers are actually worked through. The students who get these right consistently are not the ones who memorized the most mnemonics. They are the ones who run the same algorithm every time, in the same order, without skipping steps.
This guide is built around that algorithm. It covers the anion gap calculation and correction, the four primary acid-base disorders, all six compensation formulas including Winter’s formula, the delta-delta ratio for unmasking mixed disorders, and the MUDPILES causes of high-anion-gap metabolic acidosis. The interactive anion gap calculator embedded below applies the Figge albumin correction and runs Winter’s formula automatically once values are entered.
The worked ABGs and practice questions at the end follow real exam structure. Each one is worth reading even for students who feel solid on the basics — the exam does not test isolated disorders. It tests whether the algorithm holds when a second process is layered underneath.
Acid-Base Physiology: The Three Numbers That Run Everything
Acid-base balance comes down to three numbers on every blood gas: pH, PaCO₂, and HCO₃⁻. Once those relationships are clear, interpretation becomes pattern recognition rather than memorization.
The Henderson-Hasselbalch equation is the conceptual engine: pH = 6.1 + log([HCO₃⁻] / (0.03 × PaCO₂)). At normal values (HCO₃⁻ 24 mEq/L, PaCO₂ 40 mmHg), the ratio is 20:1 and pH lands at 7.40. What matters for clinical purposes is that it is the ratio setting the pH, not the absolute values; this is exactly why compensation can normalize pH even while both numbers are abnormal.
Normal reference ranges: pH 7.35–7.45 · PaCO₂ 35–45 mmHg · HCO₃⁻ 22–26 mEq/L · PaO₂ 80–100 mmHg (arterial)
The body has two compensatory systems. The lungs respond in minutes, raising or lowering PaCO₂ through changes in minute ventilation, and handle metabolic disorders. The kidneys respond over 3 to 5 days, adjusting bicarbonate reabsorption and ammonium excretion in the proximal and distal tubules, and handle respiratory disorders. This timing difference is what creates the acute-versus-chronic distinction in respiratory disorders and why it is clinically important.
Two boundary rules govern all of acid-base: compensation never fully corrects the pH, and compensation never overcorrects it. If either of those is violated, a second primary disorder is present. That single principle catches most mixed disorders on the exam.
The 6-Step ABG Interpretation Method
There are several published approaches. The one below works in a consistent order that prevents the most common errors, particularly misidentifying compensation as a primary disorder and missing mixed processes on top of a normal-looking pH. Lecturio’s complete ABG interpretation guide is a good second walkthrough.
The Anion Gap: Formula, Correction, and Interactive Calculator
The anion gap is the most tested single calculation in acid-base physiology. It estimates unmeasured anions in the plasma: predominantly albumin under normal conditions, and organic acid anions (lactate, ketones, formate, oxalate) when something is wrong. The calculation itself is simple. Using it correctly is where students lose points.
Two nuances matter clinically. First, the normal range is analyzer-dependent: older flame-photometry assays ran higher (12–16 mEq/L when K⁺ was included), and most modern ion-selective electrode analyzers use 8–12 mEq/L without K⁺. Always check which range the question provides in its reference values. Second, albumin is the dominant unmeasured anion; a critically ill patient with albumin of 2 g/dL has a baseline AG of roughly 7 mEq/L, not 10 mEq/L. In that patient, a measured AG of 10 represents a corrected gap near 15. That is a real high-AG acidosis that looks normal without correction.
A gap above 20 mEq/L almost always indicates a genuine high-AG metabolic acidosis regardless of the reference range used. Below 20, context and the corrected value matter.
High vs. Normal Anion Gap: MUDPILES and What It Misses
High-anion-gap metabolic acidosis accumulates an unmeasured organic or inorganic acid anion. Normal-gap (hyperchloremic) metabolic acidosis results from bicarbonate loss, with chloride rising to maintain electroneutrality, leaving the gap unchanged. The anion gap calculation distinguishes these two categories; clinical history and the urine anion gap (UAG = UNa + UK − UCl) then distinguish the causes within the normal-gap category.
High Anion Gap Causes: MUDPILES
| Letter | Cause | High-Yield Vignette Clue |
|---|---|---|
| M | Methanol | Visual changes, “snowfield” vision; elevated osmolar gap early |
| U | Uremia | CKD, BUN/Cr elevation, pericardial friction rub |
| D | Diabetic ketoacidosis (DKA) | T1DM, polyuria, fruity breath, glucose >250, β-OHB elevation |
| P | Propylene glycol / Paraldehyde | ICU patient on IV lorazepam infusion; elevated osmolar gap |
| I | Isoniazid / Iron | TB treatment; iron ingestion + vomiting + hematemesis; seizures (INH) |
| L | Lactic acidosis | Sepsis, ischemia, metformin in AKI, CO/cyanide poisoning |
| E | Ethylene glycol | Antifreeze ingestion; calcium oxalate crystals in urine; AKI; elevated osmolar gap early |
| S | Salicylates | Tinnitus, tachypnea, fever; mixed respiratory alkalosis + high-AG acidosis |
Normal Anion Gap Causes: HARDUPS
Normal-gap acidosis is hyperchloremic. The two causes tested most are diarrhea (GI bicarbonate loss, negative UAG) and renal tubular acidosis (RTA, positive UAG). The urine anion gap separates them: a negative value means the kidneys are appropriately excreting NH₄⁺ (pointing toward GI loss); a positive value means they are not (pointing toward RTA).
Osmolar gap trap: Methanol and ethylene glycol both elevate the osmolar gap early, before the parent alcohol is metabolized to its acid. A normal osmolar gap in the right clinical context does not exclude toxic alcohol ingestion; if the presentation is late, the osmolar gap may have already normalized while the anion gap remains elevated.
The Four Primary Acid-Base Disorders
Every ABG maps to one of four quadrants. The table below functions as a quick reference for the primary disorder, its classic causes, and the expected compensatory direction. Keep this structure in working memory: it is the scaffold on which every other piece of acid-base knowledge hangs.
Compensation Formulas and Winter’s Formula
Compensation formulas are not optional. They are the mechanism by which the exam tests whether a second primary disorder is hidden beneath an apparently compensated ABG. Every compensation formula does one thing: it predicts where the compensatory value should land if only one primary disorder exists. A measured value outside that predicted range signals a second primary process.
Winter’s formula is the most frequently tested compensation equation on the USMLE and COMLEX. The convenient approximation (expected PaCO₂ ≈ HCO₃⁻ + 15) is useful for a quick mental check but less precise. The full formula is what to use when the question is testing whether a superimposed process is present.
All Compensation Rules at a Glance
| Primary Disorder | Expected Compensation |
|---|---|
| Metabolic acidosis | PaCO₂ = (1.5 × HCO₃⁻) + 8 ± 2 (Winter’s formula) |
| Metabolic alkalosis | PaCO₂ increases ~0.7 mmHg per 1 mEq/L rise in HCO₃⁻; rarely exceeds 55 mmHg |
| Respiratory acidosis (acute) | HCO₃⁻ rises 1 mEq/L per 10 mmHg rise in PaCO₂ |
| Respiratory acidosis (chronic) | HCO₃⁻ rises 3.5–4 mEq/L per 10 mmHg rise in PaCO₂ |
| Respiratory alkalosis (acute) | HCO₃⁻ falls 2 mEq/L per 10 mmHg fall in PaCO₂ |
| Respiratory alkalosis (chronic) | HCO₃⁻ falls 4–5 mEq/L per 10 mmHg fall in PaCO₂ |
The Delta-Delta Ratio
When the anion gap is elevated, apply the delta-delta: Δ ratio = (AG − 12) ÷ (24 − HCO₃⁻). A result between 1 and 2 confirms a pure high-AG acidosis. Below 1 means a concurrent non-gap acidosis is also present. Above 2 means a concurrent metabolic alkalosis is also present. This is how examiners hide a triple disorder inside a DKA vignette: the patient’s protracted vomiting has generated a metabolic alkalosis that the delta-delta will unmask even when the overall HCO₃⁻ looks only mildly depressed.
Three Worked ABGs
What Actually Moves Scores and What Wastes Time
Most students spending time on acid-base are not struggling because they lack knowledge. They are struggling because they have not built a consistent process. The following guidance draws a line between the two student populations that consistently show up in this material.
- Drill the delta-delta until it is automatic on any elevated-AG vignette
- Practice spotting mixed disorders in normal-pH ABGs; the exam hides them there
- Connect RTA types to their associated conditions and urine pH: type 1 (Sjögren, amphotericin, urine pH >5.5, stones), type 4 (diabetes, ACEi, hyperkalemia)
- Know when not to give bicarbonate in DKA (routine use avoided; reserved for pH <7.0 per the 2024 ADA consensus)
- In salicylate toxicity, know why intubation requires caution before attempting it
- Commit to the six-step algorithm before touching any ABG question; no shortcuts until the process is automatic
- Memorize Winter’s formula verbatim: (1.5 × HCO₃⁻) + 8 ± 2
- Do not attempt to remember all of MUDPILES in the first pass. Anchor on DKA, lactic acidosis, and salicylates, which cover the majority of exam questions
- Do not confuse compensation with a second disorder. Compensation never corrects past 7.40; if it does, a second primary process is present
- Work at least five timed ABG vignettes before the next exam block
Common Mistakes That Cost Points
- Skipping the anion gap in metabolic acidosis. It is step four in the algorithm, not optional. A high-gap acidosis and a normal-gap acidosis have completely different causes and different management pathways.
- Not applying the Figge albumin correction in sick patients. A MICU patient with albumin of 2.0 g/dL has a corrected gap that is 5 mEq/L higher than measured. Missing this masks a real high-AG acidosis.
- Treating compensation as a disorder. A COPD patient with HCO₃⁻ of 32 mEq/L has appropriate renal compensation for chronic respiratory acidosis. Labeling it metabolic alkalosis and chasing a low urine chloride is a waste of workup.
- Forgetting to apply Winter’s formula even when PaCO₂ looks “reasonably low.” The exam deliberately places PaCO₂ values that seem like appropriate compensation but are subtly outside the predicted range; catching that requires the formula, not intuition.
- Missing the delta-delta in a DKA plus vomiting vignette. The HCO₃⁻ will look only mildly depressed because vomiting-induced metabolic alkalosis is partially offsetting the acidosis. The anion gap will be disproportionately elevated for the degree of HCO₃⁻ drop, and the delta ratio will be >2.
Practice Questions
Ready to Apply This on Timed Questions?
The MedBoard Education Step 2 CK question bank bundle covers acid-base disorders, renal pathology, and internal medicine in the same systematic format used above: timed, clinical, and built to match current exam style.
Explore the Step 2 CK Bundle