Anion gap calculator

Enter sodium, chloride and bicarbonate to get the anion gap. Turn on potassium if your reference range includes it, and albumin to see the albumin-corrected gap. It is an estimate for information, not a diagnosis.

mEq/L
mEq/L
mEq/L
Anion gap12 mEq/L

Runs in your browser: nothing you enter is sent anywhere.

How to use it

  1. Enter sodium, chloride and bicarbonate (total CO₂) from the same blood sample, in mEq/L or mmol/L.
  2. Optionally turn on potassium and enter it.
  3. Optionally turn on albumin correction, choose g/dL or g/L and enter the albumin.
  4. Read the anion gap and, if chosen, the albumin-corrected gap.

Formulas

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

Albumin in g/L is divided by 10 first, which is the same as adding 0.25 × (40 − albumin in g/L). When potassium is included, the corrected gap is built on the gap with potassium.

Worked example

Sodium 135, chloride 100, bicarbonate 15 mEq/L, albumin 2.0 g/dL:

  • Anion gap = 135 − (100 + 15) = 20 mEq/L
  • Corrected = 20 + 2.5 × (4.0 − 2.0) = 25 mEq/L

With normal values, 140 − (104 + 24) = 12 mEq/L; adding potassium 4.0 gives 16 mEq/L.

Tips and common mistakes

  • Use values from one sample; mixing results from different times gives a meaningless gap.
  • Compare the gap only with a reference range calculated the same way (with or without potassium).
  • High albumin, above 4.0 g/dL, lowers the corrected gap.
  • This is an estimate for information, not a diagnosis. Acid–base problems need a clinician’s assessment.

Frequently asked questions

What is a normal anion gap?

It depends on the lab's analysers and on whether potassium is included. Many references quote roughly 8 to 12 mEq/L without potassium; use the range printed on your lab report.

Why correct the anion gap for albumin?

Albumin carries most of the unmeasured negative charge in blood. When albumin is low, the gap shrinks and can hide a raised gap. The correction adds 2.5 mEq/L for each 1 g/dL that albumin is below 4.0 g/dL.

Should potassium be included?

Most labs leave it out because potassium is small and fairly stable. Include it only if the reference range you compare against was built with potassium.

Are mEq/L and mmol/L the same here?

Yes. Sodium, potassium, chloride and bicarbonate each carry a single charge, so the numbers in mEq/L and mmol/L are identical.

More in Health

All tools in this category: Health ·Updated November 4, 2026

Privacy choices

Google Analytics shows us which tools are used and whether they work. It may set cookies. Your choice is kept in this browser.