A laboratory professional holds a blood sample tube beside a microscope, with several additional blood samples arranged in a rack.
|

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.

ABG Normal Reference Ranges

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.

ABG Six-Step Algorithm
1
Step 1: Read the pH.
pH <7.35 = acidemia; pH >7.45 = alkalemia. If pH is 7.35–7.45, a disorder may still exist (fully compensated or mixed). Do not skip the remaining steps.
2
Step 2: Identify the primary process.
Whichever value (PaCO₂ or HCO₃⁻) moves in the same direction as the pH disturbance is the primary driver. Low pH with low HCO₃⁻: metabolic acidosis. Low pH with high PaCO₂: respiratory acidosis. High pH with high HCO₃⁻: metabolic alkalosis. High pH with low PaCO₂: respiratory alkalosis.
3
Step 3: Assess compensation.
Apply the appropriate formula (see compensation section below). If compensation is outside the expected range, a second primary disorder is present.
4
Step 4: Calculate the anion gap.
Do this in every metabolic acidosis. AG = Na⁺ − (Cl⁻ + HCO₃⁻), normal 8–12 mEq/L. In hypoalbuminemic patients, apply the Figge correction: add 2.5 mEq/L to the measured gap for every 1 g/dL albumin below 4.
5
Step 5: Apply the delta-delta (if AG is elevated).
Delta ratio = (AG − 12) ÷ (24 − HCO₃⁻). A ratio between 1 and 2 indicates pure high-AG acidosis. Below 1 means a coexisting non-gap acidosis is also present. Above 2 means a coexisting metabolic alkalosis is also present.
6
Step 6: Correlate with clinical context.
Medications, history, glucose, electrolytes, and osmolality close gaps that the numbers leave open.

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.

Anion Gap Formula
Anion Gap Formula
AG = Na⁺ − (Cl⁻ + HCO₃⁻)
Normal range: 8–12 mEq/L (add 2.5 mEq/L per 1 g/dL albumin below 4 for hypoalbuminemic patients)

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.

Interactive Anion Gap Calculator
Interactive Anion Gap Calculator
Anion Gap
—
Corrected AG
—
Albumin 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

MUDPILES — High Anion Gap
LetterCauseHigh-Yield Vignette Clue
MMethanolVisual changes, “snowfield” vision; elevated osmolar gap early
UUremiaCKD, BUN/Cr elevation, pericardial friction rub
DDiabetic ketoacidosis (DKA)T1DM, polyuria, fruity breath, glucose >250, β-OHB elevation
PPropylene glycol / ParaldehydeICU patient on IV lorazepam infusion; elevated osmolar gap
IIsoniazid / IronTB treatment; iron ingestion + vomiting + hematemesis; seizures (INH)
LLactic acidosisSepsis, ischemia, metformin in AKI, CO/cyanide poisoning
EEthylene glycolAntifreeze ingestion; calcium oxalate crystals in urine; AKI; elevated osmolar gap early
SSalicylatesTinnitus, 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

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.

Acid-Base Disorder Matrix
Acidosis (pH < 7.35)
Alkalosis (pH > 7.45)
Metabolic
Metabolic Acidosis
↓ HCO₃⁻ (<22 mEq/L)
High AG: MUDPILES
Normal AG: diarrhea, RTA, saline
Compensation: ↓ PaCO₂ (Winter’s formula)
Metabolic Alkalosis
↑ HCO₃⁻ (>26 mEq/L)
Saline-responsive: vomiting, NG suction, diuretics
Saline-resistant: hyperaldosteronism, Bartter, Gitelman
Compensation: ↑ PaCO₂ (~0.7 mmHg per 1 mEq/L ↑HCO₃⁻)
Respiratory
Respiratory Acidosis
↑ PaCO₂ (>45 mmHg)
Hypoventilation: COPD, opioids, NM disease, OHS
Acute: ↑ HCO₃⁻ 1 mEq/L per 10 mmHg ↑PaCO₂
Chronic: ↑ HCO₃⁻ 3.5 mEq/L per 10 mmHg
Compensation: Renal HCO₃⁻ retention (takes 3-5 days)
Respiratory Alkalosis
↓ PaCO₂ (<35 mmHg)
Hyperventilation: anxiety, sepsis (early), salicylates, PE, pregnancy
Acute: ↓ HCO₃⁻ 2 mEq/L per 10 mmHg ↓PaCO₂
Chronic: ↓ HCO₃⁻ 4-5 mEq/L per 10 mmHg
Compensation: Renal HCO₃⁻ excretion

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
Winter’s Formula: Metabolic Acidosis Compensation
Expected PaCO₂ = (1.5 × HCO₃⁻) + 8 ± 2
If measured PaCO₂ > expected: superimposed respiratory acidosis. If measured PaCO₂ < expected: superimposed respiratory alkalosis (e.g., salicylates, sepsis).

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

Expected Compensation
Primary DisorderExpected Compensation
Metabolic acidosisPaCO₂ = (1.5 × HCO₃⁻) + 8 ± 2 (Winter’s formula)
Metabolic alkalosisPaCO₂ 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

Worked ABG Examples
Worked ABG 1: Type 1 Diabetic, 19-Year-Old, Vomiting × 2 DaysMixed Disorder
pH
7.15
PaCO₂
23 mmHg
HCO₃⁻
16 mEq/L
Na
138
Cl
96
Step 1: pH 7.15 = acidemia.
Step 2: HCO₃⁻ is low (16); this drives pH down → primary metabolic acidosis.
Step 3 (Winter’s formula): Expected PaCO₂ = (1.5 × 16) + 8 ± 2 = 30–34 mmHg. Measured PaCO₂ is 23 mmHg, well below the predicted range. The lungs are blowing off more CO₂ than expected, meaning a superimposed primary respiratory alkalosis is present (likely concurrent sepsis or salicylate ingestion, not DKA alone).
Step 4 (Anion gap): AG = 138 − (96 + 16) = 26 mEq/L. Elevated: high-AG metabolic acidosis confirmed.
Step 5 (Delta-delta): Δ ratio = (26 − 12) ÷ (24 − 16) = 14 ÷ 8 = 1.75 → pure high-AG process; no hidden concurrent metabolic alkalosis.
Dx: High-AG metabolic acidosis (DKA) + superimposed primary respiratory alkalosis. Investigate for sepsis or salicylate ingestion.
Worked ABG 2: 45-Year-Old, Tinnitus, Tachypnea, FeverClassic Mixed
pH
7.48
PaCO₂
22 mmHg
HCO₃⁻
16 mEq/L
Na
140
Cl
100
Step 1: pH 7.48 = alkalemia.
Step 2: PaCO₂ is low (22) and drives pH up → primary respiratory alkalosis. But HCO₃⁻ is also low (16), which would drive pH down. This is not simply compensation.
Step 3: For acute respiratory alkalosis: expected HCO₃⁻ fall = 2 × [(40 − 22) ÷ 10] = 3.6 mEq/L → expected HCO₃⁻ ≈ 20. Actual HCO₃⁻ of 16 is below the expected compensation range; a second primary process is actively lowering HCO₃⁻.
Step 4: AG = 140 − (100 + 16) = 24. Elevated → high-AG metabolic acidosis present as a second primary disorder.
Salicylates directly stimulate the medullary respiratory center (causing the respiratory alkalosis) and uncouple oxidative phosphorylation (causing lactic/organic acid accumulation and the high-AG acidosis). This is the archetypal mixed disorder.
Dx: Primary respiratory alkalosis + primary high-AG metabolic acidosis → salicylate toxicity. Do not intubate without a clear plan; losing the compensatory hyperventilation can precipitate rapid deterioration.
Worked ABG 3: 68-Year-Old, Chronic COPD, Acute SOBAcute-on-Chronic
pH
7.30
PaCO₂
70 mmHg
HCO₃⁻
34 mEq/L
Na
141
Cl
95
Step 1: pH 7.30 = acidemia.
Step 2: PaCO₂ 70 is elevated and drives pH down → primary respiratory acidosis.
Step 3 (chronic formula): Baseline PaCO₂ for this patient is likely ~60 mmHg (chronic COPD). Expected chronic HCO₃⁻ = 24 + [3.5 × (60 − 40) ÷ 10] = 24 + 7 = 31 mEq/L. Current HCO₃⁻ of 34 is slightly above that, consistent with an acute-on-chronic exacerbation where PaCO₂ has risen acutely but renal compensation has not yet caught up fully.
Step 4: AG = 141 − (95 + 34) = 12 → normal. No metabolic acidosis layered on top.
Dx: Acute-on-chronic respiratory acidosis (COPD exacerbation). Elevated HCO₃⁻ reflects appropriate chronic renal compensation, not metabolic alkalosis. Treat the exacerbation; avoid excessive O₂ supplementation.

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.

ABG: Solid vs Unstable
If the Concepts Are Solid: Optimize Here
  • 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
If This Is Still Unstable: Stabilize Here First
  • 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

Acid-Base Practice Questions
Question 1. A 28-year-old woman presents with 3 days of nausea, vomiting, and abdominal pain. She has type 1 diabetes and missed two insulin doses. ABG: pH 7.22, PaCO₂ 28 mmHg, HCO₃⁻ 11 mEq/L. Serum: Na 136, Cl 94. Which of the following best describes her acid-base status?
  • A High-AG metabolic acidosis with appropriate compensation
  • B High-AG metabolic acidosis with superimposed respiratory acidosis
  • C High-AG metabolic acidosis with superimposed respiratory alkalosis
  • D Pure respiratory acidosis
Correct: B. AG = 136 − (94 + 11) = 31 → elevated. Winter’s formula: expected PaCO₂ = (1.5 × 11) + 8 ± 2 = 24.5–26.5 mmHg. Measured PaCO₂ of 28 mmHg is above the expected range, indicating the patient is retaining more CO₂ than expected: a superimposed respiratory acidosis is present (respiratory muscle fatigue, aspiration, or concurrent pulmonary process). Choice A is incorrect because PaCO₂ falls outside the acceptable compensation window. Choice C would require PaCO₂ below the predicted range.
Question 2. A 55-year-old man with a long history of alcohol use presents with confusion. Serum: Na 140, Cl 100, HCO₃⁻ 16 mEq/L, Glucose 90, BUN 14, Creatinine 1.0. Measured osmolality is 320 mOsm/kg. What is the calculated osmolar gap, and what does it suggest?
  • A Osmolar gap 8; normal, no toxic ingestion
  • B Osmolar gap 14; suggests uremia
  • C Osmolar gap 30; suggests toxic alcohol ingestion
  • D Osmolar gap 5; suggests diabetic ketoacidosis
Correct: C. Calculated osmolality = (2 × Na) + (glucose ÷ 18) + (BUN ÷ 2.8) = (2 × 140) + (90 ÷ 18) + (14 ÷ 2.8) = 280 + 5 + 5 = 290. Osmolar gap = 320 − 290 = 30 mOsm/kg (normal <10). An elevated osmolar gap in a patient with confusion and elevated anion gap (140 − [100 + 16] = 24) raises strong concern for methanol or ethylene glycol ingestion. Isopropyl alcohol also raises the osmolar gap but does not cause a high-AG acidosis (it generates ketones without significant acid accumulation).
Question 3. A 70-year-old man with COPD presents with worsening dyspnea. His baseline PaCO₂ is 55 mmHg. Today’s ABG shows pH 7.25, PaCO₂ 75 mmHg, HCO₃⁻ 32 mEq/L. His anion gap is 12. What is the most accurate characterization of his acid-base disorder?
  • A Acute respiratory acidosis with metabolic alkalosis
  • B Chronic respiratory acidosis, fully compensated
  • C Metabolic alkalosis with respiratory acidosis
  • D Acute-on-chronic respiratory acidosis
Correct: D. Chronic compensation formula: expected HCO₃⁻ rise = 3.5 mEq/L per 10 mmHg. For a baseline PaCO₂ of 55 from a normal 40: expected HCO₃⁻ = 24 + [3.5 × (55−40)/10] = 24 + 5.25 ≈ 29 mEq/L. His current HCO₃⁻ is 32, slightly above the expected chronic level, consistent with acute retention on top of chronic disease. The pH of 7.25 confirms active acidemia rather than full compensation. The elevated HCO₃⁻ here is appropriate chronic renal compensation, not metabolic alkalosis. Choice A would require the HCO₃⁻ to be independently elevated above what respiratory compensation predicts; the delta ratio does not support that here.
Ready to Apply This on Timed 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