Overview

The anion gap is a blood test calculation used when assessing acid-base problems. It compares the main measured positive and negative ions.

Enter sodium, chloride and bicarbonate from your blood test. Add albumin if you have it, as low albumin can hide a raised gap. This is for education and doesn’t diagnose anything.

Worked examples

InputsResult
Sodium (mEq/L)140Chloride (mEq/L)104Bicarbonate (mEq/L)24Albumin (g/dL, 4 if unknown)4Anion gap: 12 mEq/LAlbumin-corrected gap: 12 mEq/LWithin the common reference range of about 4–12Reference ranges vary by lab. Talk to a clinician about your results.
Show 2 more examples
Sodium (mEq/L)140Chloride (mEq/L)104Bicarbonate (mEq/L)24Albumin (g/dL, 4 if unknown)2.5Anion gap: 12 mEq/LAlbumin-corrected gap: 15.75 mEq/LAbove the common reference range of about 4–12Reference ranges vary by lab. Talk to a clinician about your results.
Sodium (mEq/L)135Chloride (mEq/L)95Bicarbonate (mEq/L)12Albumin (g/dL, 4 if unknown)4Anion gap: 28 mEq/LAlbumin-corrected gap: 28 mEq/LAbove the common reference range of about 4–12Reference ranges vary by lab. Talk to a clinician about your results.

Anion gap by chloride

With the calculator's starting values, the anion gap is 12 mEq/L. The table shows how it changes with the chloride.

Chloride (mEq/L)Anion gap (mEq/L)
6056 mEq/L
8036 mEq/L
10016 mEq/L
104starting value12 mEq/L
120-4 mEq/L
140-24 mEq/L

Other inputs: Sodium: 140 mEq/L · Bicarbonate: 24 mEq/L · Albumin: 4 g/dL, 4 if unknown. Change them in the calculator above for your own numbers.

How it works

Blood is electrically neutral, so the gap represents ions that aren’t routinely measured. Each 1 g/dL fall in albumin below 4 lowers the gap by about 2.5, which the corrected figure adds back. Reference ranges vary by lab and analyzer, and results need a clinician’s interpretation.

The formula

Anion gap = Na⁺ − (Cl⁻ + HCO₃⁻); corrected = gap + 2.5 × (4 − albumin)
Na⁺, Cl⁻, HCO₃⁻Measured in mEq/L
albuminMeasured in g/dL

Practical tips

  • Sodium 140, chloride 104 and bicarbonate 24 give a gap of 12.
  • With albumin of 2.5, that gap corrects to 15.75.
  • Some labs include potassium, which raises the normal range.

Frequently asked questions

What does a high anion gap mean?

It can point to extra acids in the blood, such as from kidney problems or ketoacidosis. A clinician needs to interpret it.

Why correct for albumin?

Albumin carries negative charge, so low albumin lowers the gap and can mask a real rise.