Skip to content
D DocNectar

Free Anion Gap Calculator

Calculate the anion gap from sodium, chloride, and bicarbonate, with an optional potassium-inclusive variant.

100% Free No Signup Works on all devices

Last updated October 12, 2026 · Report an error

Thanks for rating!

Anion Gap (AG) = Sodium - (Chloride + Bicarbonate), the standard published formula used to help classify metabolic acidosis. Optionally includes potassium (AG = (Na + K) - (Cl + HCO3)), a commonly cited variant. Commonly cited reference ranges are roughly 8-16 mEq/L (without potassium) or 10-20 mEq/L (with potassium); exact ranges vary by lab assay. Pure arithmetic on given lab values. For general reference and educational purposes only — not a medical diagnosis. Consult a doctor for actual electrolyte and acid-base assessment.

How it works

Enter sodium, chloride, and bicarbonate. Optionally include potassium for the alternative formula. The tool applies the anion gap formula and compares the result to the standard reference range.

  1. Enter sodium, Na (mEq/L).
  2. Enter chloride, Cl (mEq/L).
  3. Enter bicarbonate, HCO3 (mEq/L).
  4. Enter include potassium in the formula?.
  5. Enter potassium, K (mEq/L) — only if included above.
  6. Click Calculate to see your results.

Examples

Na 140, Cl 100, HCO3 24

AG = 140 - (100 + 24) = 16 mEq/L — at the upper edge of the commonly cited 8-16 mEq/L normal range.

Who should use it

  • Reviewing a basic metabolic panel result.
  • Nephrology, emergency medicine, and critical care education about acid-base disorders.

Industry applications

  • Emergency medicine and critical care reference
  • Nephrology education

Advantages

  • Simple, standard, widely taught formula.
  • Supports both common variants (with and without potassium).

Limitations

  • Reference ranges vary somewhat by lab assay.
  • Can be affected by serum albumin level, which this basic formula does not adjust for.

Common mistakes to avoid

  • Comparing a potassium-inclusive AG against the Na-only reference range (or vice versa).
  • Not accounting for albumin — a low albumin level can lower the expected normal anion gap, per commonly cited nephrology teaching.

Best practices

  • If serum albumin is low, discuss with your doctor about an albumin-corrected anion gap for a more accurate assessment.

Tips

  • The anion gap is typically interpreted alongside bicarbonate, pH, and the clinical picture — not as a standalone number.

Frequently asked questions

Yes, with no signup and no limit on how many calculations you run.
It is a standard published tool commonly used to help classify the cause of metabolic acidosis (high-anion-gap versus normal-anion-gap causes).
Both conventions are published and used; the potassium-inclusive formula uses a correspondingly higher reference range (10-20 mEq/L). Many labs use the simpler Na-only version.
No — this is arithmetic against a standard published reference range. Consult a doctor for actual acid-base assessment.

Get new calculators and guides in your inbox

No spam — just new tools like Anion Gap Calculator and practical guides.

Favorites