Anion Gap Calculator: A Complete Clinical Guide for Doctors (2026)
- What Is the Anion Gap?
- Worked Example
- Calculate the Anion Gap Instantly
- High Anion Gap vs. Normal Anion Gap Metabolic Acidosis
- High Anion Gap Metabolic Acidosis (HAGMA)
- Normal Anion Gap Metabolic Acidosis (NAGMA)
- Albumin-Corrected Anion Gap: Don’t Skip This Step
- The Delta-Delta Ratio: Unmasking Mixed Disorders
- When to Apply the Delta-Delta
- Common Mistakes When Using the Anion Gap
- A Note for Patients
- Try Our Anion Gap Calculator
- Summary
- References
- Explore All MedDraftPro AI Tools
You order an ABG at 2 a.m. The bicarbonate is low. You diagnose metabolic acidosis — but that’s only half the job. The real question is why the bicarb has dropped, and that answer starts with the anion gap. Get this calculation right, and you’re already three steps ahead in your differential.
The anion gap is one of those numbers that seems simple — four values, one formula — but it carries enormous diagnostic weight. Miss a high anion gap, and you might miss DKA, lactic acidosis, or toxic ingestion in a patient who looks deceptively stable. Use it correctly, and it narrows a broad differential to two or three likely diagnoses in under a minute.
This guide walks you through the formula, the clinical interpretation, albumin correction, the delta-delta ratio, and the common errors that trip up even experienced clinicians.
What Is the Anion Gap?
The anion gap (AG) is a calculated value that represents the difference between measured cations and measured anions in plasma. In reality, plasma is always electrically neutral — every positive charge is balanced by a negative charge. But we don’t measure every ion. The “gap” reflects unmeasured anions: primarily albumin, phosphate, sulphate, and organic acids.
When unmeasured anions accumulate — as they do in ketoacidosis, lactic acidosis, or uraemia — the anion gap widens. When they don’t, you’re likely dealing with a bicarbonate loss or a chloride gain instead. This distinction is the foundation of metabolic acidosis workup.
AG = Na⁺ − (Cl⁻ + HCO₃⁻)Normal range: 8–12 mEq/L (traditional)
With modern analysers: 3–11 mEq/L (check your lab’s reference range)
Units: mEq/L or mmol/L — interchangeable for these electrolytes.
Worked Example
Your patient’s electrolytes return: Na⁺ 138, Cl⁻ 100, HCO₃⁻ 14 mEq/L. Plug in the formula:
AG = 138 − (100 + 14) = 138 − 114 = 24 mEq/L
That’s significantly elevated. With a normal range of 8–12, this patient has a high anion gap metabolic acidosis (HAGMA) — and your differential just opened: DKA, lactic acidosis, uraemia, toxic ingestion. Time to move fast.
Calculate the Anion Gap Instantly
Use our free online Anion Gap Calculator — no sign-up required. Enter Na, Cl, and HCO₃ and get the result with albumin correction in seconds.
High Anion Gap vs. Normal Anion Gap Metabolic Acidosis
Once you confirm metabolic acidosis on your ABG (pH < 7.35, HCO₃⁻ low, with respiratory compensation), the anion gap tells you which category you’re dealing with. This distinction immediately shapes your next investigation and management steps.
High Anion Gap Metabolic Acidosis (HAGMA)
A raised anion gap means unmeasured anions are accumulating. The classic mnemonic is MUDPILES — though it has evolved slightly in modern practice:
| Letter | Cause | Key Clue |
|---|---|---|
| M | Methanol | Osmolar gap, visual symptoms |
| U | Uraemia | Elevated creatinine, urea |
| D | Diabetic Ketoacidosis | Hyperglycaemia, ketones, history |
| P | Propylene glycol / Paracetamol | Drug history, LFTs |
| I | Isoniazid / Iron | Drug history, ferritin |
| L | Lactic Acidosis | Lactate > 2 mmol/L, sepsis, shock |
| E | Ethanol / Ethylene glycol | Osmolar gap, calcium oxalate crystals |
| S | Salicylates | Tinnitus, tachypnoea, aspirin history |
Normal Anion Gap Metabolic Acidosis (NAGMA)
When the anion gap is normal despite a low bicarbonate, the body has lost bicarb directly or gained chloride — hence the older name “hyperchloraemic metabolic acidosis.” Common causes include diarrhoea (the most common worldwide), renal tubular acidosis (RTA), saline overload, and Addison’s disease. The mnemonic HARDASS covers the key causes: Hyperalimentation, Addison’s, RTA, Diarrhoea, Acetazolamide, Spironolactone, Saline.
Albumin-Corrected Anion Gap: Don’t Skip This Step
Albumin is the dominant unmeasured anion — it accounts for the majority of the baseline anion gap. If your patient is hypoalbuminaemic (common in sepsis, chronic liver disease, malnutrition, or prolonged hospital admission), the anion gap will be artificially low. You can miss a true HAGMA entirely.
Corrected AG = Measured AG + 2.5 × (4 − Albumin in g/dL)Normal albumin = 4.0 g/dL. For every 1 g/dL drop in albumin, the anion gap falls by ~2.5 mEq/L.
Example: AG = 10, Albumin = 2.0 g/dL → Corrected AG = 10 + 2.5 × (4 − 2) = 10 + 5 = 15 mEq/L — that’s a HAGMA hiding behind low albumin.
The Delta-Delta Ratio: Unmasking Mixed Disorders
Once you’ve confirmed a HAGMA, the delta-delta ratio (also called the delta gap) helps you determine whether a concurrent metabolic alkalosis or normal anion gap acidosis is hiding underneath. This is critical in complex patients — the ICU septic patient with AKI who has also been vomiting is a classic scenario.
Delta-Delta = (AG − 12) / (24 − HCO₃⁻)Interpretation:
< 0.4 → Concurrent NAGMA
0.4–1.0 → Combined HAGMA + NAGMA
1.0–2.0 → Pure HAGMA (expected compensation)
> 2.0 → Concurrent metabolic alkalosis
When to Apply the Delta-Delta
Only use the delta-delta when you have already confirmed a HAGMA. Applying it to a normal or near-normal anion gap produces misleading results. In practice, use it routinely in any patient with a HAGMA where something about the clinical picture doesn’t add up — the bicarb is higher than expected, or the pH is surprisingly normal for the degree of apparent insult.
Common Mistakes When Using the Anion Gap
Even experienced clinicians make consistent errors with the anion gap. Being aware of them is the first step to avoiding them.
- Not correcting for albumin — the most frequent error, especially on medical wards and ICU.
- Using the wrong normal range — applying 8–12 when your lab uses 3–11 leads to over-diagnosis; the reverse leads to missed cases.
- Ignoring a “borderline” AG of 13–14 — in a hypoalbuminaemic patient, this may represent a corrected AG of 18–20.
- Stopping at the anion gap — the AG tells you the category, not the diagnosis. Always interpret alongside lactate, ketones, creatinine, osmolar gap, and clinical history.
- Not applying delta-delta in complex patients — mixed disorders are common in ICU and are missed without this second step.
A Note for Patients
If your doctor has mentioned the words “anion gap” or “metabolic acidosis” in relation to your blood tests, it simply means that your blood is more acidic than it should be, and the doctors are working out why. It is not a diagnosis in itself — it’s a clue that helps the medical team identify the underlying cause, whether that’s uncontrolled diabetes, kidney problems, an infection, or something else entirely.
The anion gap is calculated from a routine blood test (your electrolyte panel — sodium, chloride, and bicarbonate). You don’t need to do anything specific. Your clinical team will use this number alongside your other results and symptoms to guide treatment. If you have questions about what your specific results mean, speak directly to your doctor.
Try Our Anion Gap Calculator
Calculate your patient’s anion gap — with albumin correction — in one click. Free, no login required.
Summary
- The anion gap = Na⁺ − (Cl⁻ + HCO₃⁻); normal is 8–12 mEq/L (lab-dependent).
- A raised AG indicates unmeasured anion accumulation — use MUDPILES as your differential.
- A normal AG with low bicarb points to NAGMA — bicarbonate loss or chloride gain.
- Always correct for albumin in sick patients — hypoalbuminaemia masks HAGMA.
- Use the delta-delta ratio in HAGMA to detect concurrent mixed disorders.
- The anion gap is a triage tool, not a final diagnosis — always integrate with full clinical context.
- Use a validated calculator to avoid arithmetic errors at the bedside.
References
- Emmett M, Szerlip H. Approach to the adult with metabolic acidosis. UpToDate. 2025.
- Figge J, Jabor A, Kazda A, Fencl V. Anion gap and hypoalbuminemia. Crit Care Med. 1998;26(11):1807–1810.
- Rastegar A. Use of the ΔAG/ΔHCO₃⁻ ratio in the diagnosis of mixed acid-base disorders. J Am Soc Nephrol. 2007;18(9):2429–2431.
- Kraut JA, Madias NE. Serum anion gap: its uses and limitations in clinical medicine. Clin J Am Soc Nephrol. 2007;2(1):162–174.
- British Thoracic Society / Renal Association. Acid-Base Guidelines. 2024 Update.
- WHO. Clinical Laboratory Parameters Reference Manual. Geneva: WHO Press; 2023.
Explore All MedDraftPro AI Tools
From prescription writers to medical report generators — our AI tools help you work faster and smarter.
Physician and founder of MedDraftPro. Writes clinical guides to help doctors work faster at the bedside and patients understand their care.