Skip to content
induwara.lk
Premium
induwara.lkClinical · Acid-base

Anion Gap Calculator (Albumin-Corrected + Delta Ratio)

Work out the serum anion gap from sodium, chloride and bicarbonate, correct it for albumin, and — when the gap is high — get the delta ratio to unmask mixed acid-base disorders. Instant, in your browser, sources cited. Educational use only.

By Induwara AshinsanaUpdated Jul 17, 2026
Anion Gap Calculator

Educational use only. This is not a diagnostic tool. Acid-base decisions need clinical context, an arterial blood gas, and a qualified clinician.

mmol/L

mmol/L

mmol/L

Include potassium (K⁺)

Off by default. Most labs report the gap without potassium (reference ~4–12 mmol/L). Turn on to add K⁺ (reference ~8–16).

g/dL

Normal ≈ 4.0. Low albumin masks a true gap — clear this field to skip the correction.

Example cases
Anion gap
12mmol/L
Corrected for albumin
12mmol/L
Albumin normal (no change)
Classification
Normal anion gap
Reference 412 mmol/L
Delta ratio
N/A
Only when gap is high

Working

  • Anion gap = 140 − (104 + 24) = 12 mmol/L

Formulas and reference ranges follow StatPearls (NCBI NBK539757, NBK448090) and Medscape. Full citations are in the Sources section below.

How it works

The anion gap estimates the unmeasured anions in serum by comparing the main measured cation (sodium) with the main measured anions (chloride and bicarbonate). It is the fastest bedside screen for the cause of a metabolic acidosis. This calculator uses the formulas published by StatPearls (NCBI Bookshelf) and Medscape.

  1. Anion gap. Without potassium the gap is Na − (Cl + HCO₃), with a normal range of roughly 4–12 mmol/L. Including potassium gives (Na + K) − (Cl + HCO₃), which raises the reference range to about 8–16 mmol/L. The tool shifts the range automatically when you toggle potassium.
  2. Albumin correction. Albumin is the dominant unmeasured anion, so a low albumin lowers the measured gap and can mask a real acidosis. The correction adds back 2.5 × (4.0 − albumin) mmol/L for albumin measured in g/dL. A patient with albumin 2.0 g/dL has a gap read about 5 mmol/L too low.
  3. Classification. The corrected gap (or the raw gap when no albumin is entered) is compared with the upper reference limit. Above it is a high-anion-gap acidosis; the tool then lists the GOLD MARK differential. Within range is normal; when bicarbonate is also low, the HARDUPS list of normal-gap (hyperchloraemic) causes is shown instead.
  4. Delta ratio. Only meaningful when the gap is high, the delta ratio is (corrected gap − upper limit) ÷ (24 − HCO₃). It compares how far the gap has risen against how far bicarbonate has fallen. Below 0.4 points to a pure normal-gap acidosis, 0.4–1 to a combined disorder, 1–2 to a pure high-gap acidosis, and above 2 to a concurrent metabolic alkalosis. When bicarbonate is exactly 24 the ratio is undefined (division by zero), and the tool says so rather than showing a misleading number.

As an independent check the calculator also computes the delta gap (corrected bicarbonate = measured HCO₃ + the rise in the gap). Because the delta ratio equals 1 + (delta gap ÷ ΔHCO₃), the two methods are algebraically the same and point to the same mixed disorder — a corrected bicarbonate above 26 mmol/L flags an added alkalosis, below 22 an added normal-gap acidosis.

Worked examples

Diabetic ketoacidosis — pure high-gap acidosis

Na 140, Cl 100, HCO₃ 10, albumin 4.0 g/dL

  1. Anion gap = 140 − (100 + 10) = 30 mmol/L → high (>12)
  2. Corrected = 30 + 2.5 × (4.0 − 4.0) = 30 mmol/L (albumin normal)
  3. Delta ratio = (30 − 12) ÷ (24 − 10) = 18 ÷ 14 = 1.29
  4. 1.29 sits in the 1–2 band → pure high-anion-gap metabolic acidosis

Low albumin hiding a gap — combined disorder

Na 140, Cl 112, HCO₃ 18, albumin 2.0 g/dL

  1. Anion gap = 140 − (112 + 18) = 10 mmol/L → looks normal
  2. Corrected = 10 + 2.5 × (4.0 − 2.0) = 10 + 5 = 15 mmol/L → high, gap revealed
  3. Delta ratio = (15 − 12) ÷ (24 − 18) = 3 ÷ 6 = 0.5
  4. 0.5 sits in the 0.4–1 band → combined high-gap and normal-gap acidosis

Potassium included, normal result

Na 138, K 4.0, Cl 104, HCO₃ 24 (potassium toggle on)

  1. Anion gap = (138 + 4) − (104 + 24) = 142 − 128 = 14 mmol/L
  2. With-potassium reference range is 8–16 → 14 is normal
  3. Gap is not high, and bicarbonate is exactly 24, so the delta ratio is not applicable

Frequently asked questions

Sources & references

The formulas, reference ranges and delta-ratio bands on this page were last cross-checked against these sources on 2026-07-17. This tool is for education and does not replace clinical assessment.

Related tools

Rate this tool
Be the first to rate

Comments & feedback

Spotted a bug or want an improvement? Tell us — our team reviews every comment, and good ideas get built. Comments are public and anonymous.

Found a bug, edge case, or want to suggest an improvement?

Email me at [email protected] — most fixes ship within 24 hours.