Skip to content
The Calculatorz
Clinical calculators

Anion Gap Calculator

Calculate the serum anion gap from sodium, chloride and bicarbonate, with optional potassium and albumin correction.

For education and for use by healthcare professionals. It does not diagnose any condition; interpret results with the full clinical picture and your laboratory's reference ranges.

Electrolytes

Electrolytes

What is the anion gap?

The anion gap is the difference between the main positively charged and negatively charged ions measured in the blood: sodium minus chloride and bicarbonate. Clinicians use it to investigate the cause of metabolic acidosis.

How to use this calculator

Enter the electrolyte results from a blood test. The anion gap estimates unmeasured negatively charged substances in the blood and helps clinicians classify metabolic acidosis. Low albumin lowers the gap, so an albumin-corrected value is shown when albumin is entered.

Formula

Anion gap = Na⁺ − (Cl⁻ + HCO₃⁻). With potassium: (Na⁺ + K⁺) − (Cl⁻ + HCO₃⁻). Albumin-corrected anion gap = anion gap + 2.5 × (4.0 − albumin in g/dL).

Terms in the formula

Na⁺
Sodium, mmol/L.
Cl⁻
Chloride, mmol/L.
HCO₃⁻
Bicarbonate, mmol/L.
Albumin
Serum albumin, g/dL, for the corrected value.

Understanding your result

A typical anion gap without potassium is about 8–12 mmol/L, but reference ranges depend on the laboratory's analysers. A high gap can point to causes such as ketoacidosis, lactic acidosis, kidney failure or some poisonings. Low albumin lowers the anion gap, which is why an albumin-corrected value is shown. Results must be interpreted by a clinician.

Calculator credits

Calculator developmentJulia Edwards

Editorial supervision

Expert reviewDuaaClinical Dietitian | Nutritionist | Fitness Coach | Weight Loss Expert

Published byThe Calculatorz

Last updated

Read how we research, test, review and correct our calculators in our editorial policy.

Frequently asked questions

What is a normal anion gap?

About 4–12 mmol/L without potassium in many laboratories (higher if potassium is included). Always use your laboratory's reference range.

What does a high anion gap mean?

It can indicate a high-anion-gap metabolic acidosis, for example from ketoacidosis, lactic acidosis, kidney failure or some poisonings. Clinical assessment is essential.

Why correct for albumin?

Albumin is the main unmeasured anion. Low albumin lowers the gap and can hide a raised anion gap acidosis.

Should potassium be included?

Practices vary. Many labs omit it because potassium is small and fairly stable; if included, normal values are higher.

What is a low anion gap?

Uncommon; it may reflect low albumin, laboratory error or some rare conditions.

Can I interpret this myself?

No. Anion gap results must be interpreted by a clinician with blood gases and other tests.

References & methodology sources

These sources support the calculator’s formula, definitions, thresholds, units or result interpretation.

  1. StatPearls. (n.d.). Physiology, anion gap. StatPearls Publishing (NCBI Bookshelf). View source
  2. Whelton, P. K., et al. (2018). 2017 ACC/AHA guideline for the prevention, detection, evaluation, and management of high blood pressure in adults. Hypertension, 71(6), e13–e115. View source
  3. International Union of Pure and Applied Chemistry. (2025). Amount concentration, c. In Compendium of chemical terminology (the "Gold Book") (5th ed.). View source
  4. Thompson, A., & Taylor, B. N. (2008). Guide for the use of the International System of Units (SI) (NIST Special Publication 811). National Institute of Standards and Technology. View source