⚗️
✓ Editorially reviewed by Derek Giordano, Founder & Editor · BA Business Marketing

Anion Gap Calculator

Serum Anion Gap with Albumin Correction

Updated October 2026

🧮
500+ calculators, no signup required
Finance · Health · Math · Science · Business
nnng.com
Anion gap = sodium − (chloride + bicarbonate). With Na 140, Cl 104 and HCO₃ 24 mEq/L, the gap is 140 − 128 = 12 mEq/L, within the common reference range of about 8–12 (some labs use 3–11; ranges depend on the analyzer). A high gap points toward conditions such as ketoacidosis or lactic acidosis and needs clinical interpretation; albumin also shifts the expected value.

What Is the Anion Gap?

The anion gap is a calculated value that helps make sense of metabolic acidosis — a state where the blood is too acidic. Your blood contains positively charged ions (mainly sodium) and negatively charged ions (mainly chloride and bicarbonate). Labs routinely measure these, but not every charged particle is measured. The anion gap estimates the "unmeasured" anions by subtracting the main measured anions from sodium: Na − (Cl + HCO₃).1

A normal gap runs about 8–12 mEq/L when potassium is left out of the calculation. Some clinicians include potassium — (Na + K) − (Cl + HCO₃) — which shifts the normal range up to roughly 10–16. This calculator supports both; enter a potassium value to include it, or leave it blank to use the more common sodium-only version.

Why It Matters

When metabolic acidosis is present, the anion gap splits the differential into two camps. A high anion gap means unmeasured acids are accumulating — think diabetic ketoacidosis, lactic acidosis, kidney failure, or certain toxic ingestions. A normal gap acidosis points instead toward bicarbonate loss, as in severe diarrhea or certain kidney conditions. That fork in the road is why the anion gap is one of the first things calculated when acidosis appears on a metabolic panel.2

The Albumin Correction

Albumin is itself a negatively charged protein and a major contributor to the "normal" gap. When albumin is low — common in critically ill patients — the baseline gap falls, and a dangerously high-gap acidosis can hide inside a deceptively normal-looking number. The correction adds roughly 2.5 mEq/L to the gap for every 1 g/dL that albumin sits below 4.0. Enter an albumin value and this calculator shows the corrected gap, which can unmask hidden acidosis. For patients with low albumin, this adjustment is genuinely important.

A Calculation Within a Bigger Workup

The anion gap is a pointer, not an answer. A high gap tells you to go looking for an unmeasured acid; it doesn't say which one. Interpreting it sits within a full acid-base assessment alongside pH, bicarbonate, the clinical picture, and often a check of kidney function. This tool does the arithmetic accurately; the diagnosis belongs to a clinician.

How is the anion gap calculated?
The common formula is sodium minus the sum of chloride and bicarbonate: Na − (Cl + HCO₃). Some clinicians include potassium as (Na + K) − (Cl + HCO₃), which raises the normal range. This calculator supports both — enter potassium to include it, or leave it blank for the sodium-only version.
What is a normal anion gap?
Without potassium, a normal anion gap is roughly 8 to 12 mEq/L. If potassium is included in the calculation, the normal range shifts up to about 10 to 16 mEq/L. Reference ranges vary slightly between labs, so compare against your own lab’s values.
What does a high anion gap mean?
In the setting of metabolic acidosis, a high anion gap means unmeasured acids are accumulating — causes include diabetic ketoacidosis, lactic acidosis, kidney failure, and certain toxic ingestions. It tells clinicians to search for the specific unmeasured acid; it doesn’t identify which one on its own.
Why correct the anion gap for albumin?
Albumin is a negatively charged protein that contributes to the normal gap. When albumin is low, the baseline gap falls, and a genuinely high-gap acidosis can hide inside a normal-looking number. The correction adds about 2.5 mEq/L per 1 g/dL that albumin is below 4.0, which can unmask hidden acidosis.
Should I include potassium in the calculation?
Either approach is valid as long as you use the matching normal range. The sodium-only formula is more common in everyday practice. Including potassium captures a bit more of the cation side and is sometimes preferred — just interpret the result against the 10 to 16 range rather than 8 to 12.
Does a normal anion gap rule out a problem?
No. A normal gap in the setting of acidosis points toward bicarbonate loss, such as from severe diarrhea or certain kidney conditions, rather than ruling out disease. And in low-albumin patients, the corrected gap matters — a "normal" uncorrected value can mask a real high-gap acidosis.

How to Use This Calculator

  1. Enter sodium, chloride, and bicarbonate — Input these three core electrolyte values from your metabolic panel in mEq/L. They form the basic anion gap calculation.
  2. Optionally add potassium — Enter a potassium value to use the (Na + K) formula, which raises the normal range to about 10–16. Leave it blank for the standard sodium-only version.
  3. Optionally add albumin — Enter albumin to calculate the corrected gap. This is important in low-albumin patients, where the uncorrected gap can mask a real acidosis.
  4. Review your anion gap and category — The calculator shows your gap, the formula used, the matching normal range, and — if you entered albumin — the albumin-corrected value.

Tips and Best Practices

In critically ill or low-albumin patients, always enter albumin. The corrected gap can reveal a high-gap acidosis that the raw number hides.

Pick one formula and stick with its range: 8–12 for the sodium-only version, 10–16 if you include potassium. Mixing them up is the most common interpretation error.

A high gap is a starting point, not a diagnosis. It tells you an unmeasured acid is present — the next step is identifying which one, alongside the full clinical picture.

Use electrolytes from a single panel, and interpret the gap together with pH and bicarbonate. The anion gap is one piece of a complete acid-base assessment.

📚 Sources & References
  1. [1] Kraut, J.A., & Madias, N.E. ""Serum anion gap: its uses and limitations in clinical medicine."" Clinical Journal of the American Society of Nephrology. NCBI.nlm.nih.gov
  2. [2] National Kidney Foundation ""Metabolic Acidosis."" Kidney.org. Kidney.org
  3. [3] Hamilton, P.K., et al. ""Understanding acid-base disorders."" StatPearls / NCBI. NCBI.nlm.nih.gov
  4. [4] MedlinePlus ""Anion Gap Blood Test."" U.S. National Library of Medicine. MedlinePlus.gov
✅ Editorial Standards — Every calculator is built from peer-reviewed formulas and official data sources, editorially reviewed for accuracy, and updated regularly. Read our full methodology · About the author