Skip to content
D DoctorCalc
Clinical & Lab Medicine Established acid-base formula Source-mapped educational formula Routine educational estimate

Anion Gap Calculator

Calculate serum anion gap with optional potassium inclusion and albumin correction.

Interactive tool

Calculator

Enter values carefully. Results appear after calculation and should be interpreted with the safety notes and source method on this page.

Source-mapped educational formula

Step 1 — Enter inputs

6 fields required for this tool

Step 2 — Review the result

The result area updates below and keeps safety wording visible.

Result

Complete the form and select Calculate.

About this calculator

The anion gap helps frame metabolic acidosis by estimating unmeasured anions. Albumin correction can be important when albumin is low.

Source-backed
Anion gap = Na − (Cl + HCO3), or Na + K − (Cl + HCO3) when potassium is included. Albumin correction = AG + 2.5 × (4 − albumin).
Review status
Source-mapped educational formula
Limitations
Educational estimate only; not a diagnosis, prescription, or treatment plan.

Formula and method

AG = Na − (Cl + HCO3), optionally AG = Na + K − (Cl + HCO3). Corrected AG = AG + 2.5 × (4 − albumin g/dL).

Medical safety note: This page is for education only and should not replace professional medical advice. For emergencies, medication decisions, or severe symptoms, contact a qualified clinician or local emergency service.

Limitations and when not to rely on this result

  • Educational estimate only; not a diagnosis, prescription, or treatment plan.
  • Result depends on accurate inputs and may not apply to complex medical situations.
  • Use clinician judgment, local guidance, and urgent care pathways when symptoms are severe.

Frequently asked questions

Should potassium be included in the anion gap? +

Some formulas include potassium and some do not. Use the same method as your local lab or teaching reference.

Why correct for albumin? +

Albumin is a major unmeasured anion, so low albumin can hide an elevated anion gap.

What is a normal anion gap? +

Normal ranges vary by lab and by whether potassium is included. Interpret against local reference ranges.

Can this diagnose metabolic acidosis? +

No. Diagnosis requires pH, bicarbonate, clinical context, lactate/ketones, renal function, and other data.

What if albumin is above 4? +

The correction formula can lower the corrected result, but clinical interpretation should follow local practice.