Anion Gap Calculator

Anion Gap Icon

Anion Gap Calculator

Enter serum values to calculate the Anion Gap.
AG = Na⁺ – (Cl⁻ + HCO₃⁻)

Serum electrolytes panel for anion gap calculation (Na, Cl, HCO3, optional K)
Suggested header image: clean medical banner with test tubes/electrolyte icons (keep < 200 KB, ALT above).

Anion Gap Calculator – A Complete Guide for Clinicians & Students

The Anion Gap (AG) is a core tool to identify and classify metabolic acidosis. Calculated from routine electrolytes, it reveals unmeasured ions that hint at critical underlying processes. Our calculator above provides fast results with optional potassium inclusion, albumin correction, and instant interpretation with next steps.

Use the calculator ↑ • Then return here for interpretation and learning.

What is the Anion Gap?

The Anion Gap represents the difference between measured cations and measured anions in serum, helping detect unmeasured ions associated with acidosis.

Standard (without potassium): AG = Na⁺ − (Cl⁻ + HCO₃⁻)

With potassium included: AG = (Na⁺ + K⁺) − (Cl⁻ + HCO₃⁻)

Anion gap formula diagram showing cations (Na±K) versus anions (Cl + HCO3)
Suggested image: simple infographic of the AG formula with cations and anions in contrasting colors.

Normal Reference Ranges

MethodNormal Range (mmol/L)
Without Potassium8 – 12
With Potassium12 – 16

Always check your laboratory’s reference interval before interpretation.

Why Calculate the Anion Gap?

  • Differentiate anion gap metabolic acidosis (AGMA) from non–anion gap metabolic acidosis (NAGMA).
  • Identify or exclude urgent causes (DKA, lactic acidosis, renal failure, toxins).
  • Guide targeted diagnostics and management.

Key Features of Our Anion Gap Calculator

  • Dual Modes: with or without K⁺.
  • Albumin Correction: Corrected AG = AG + 2.5 × (4.0 − albumin[g/dL]).
  • Color-coded Interpretation: Low, Normal, or High.
  • Actionable Tips: “What to do next” for each category.
  • Mobile-friendly UX and quick input flow.
Screenshot of the Anion Gap Calculator interface
Suggested image: cropped screenshot of your calculator UI.

How to Use the Calculator

  1. Enter Sodium (Na⁺), Chloride (Cl⁻), and Bicarbonate (HCO₃⁻) in mmol/L.
  2. (Optional) Include Potassium (K⁺).
  3. (Optional) Add Albumin to apply correction.
  4. Click Calculate to get AG, corrected AG (if applicable), and interpretation.

Step 1 — Enter values

Type your Na⁺, Cl⁻, and HCO₃⁻. Optionally include K⁺ and albumin for correction.

Na⁺(+ K⁺)Cl⁻HCO₃⁻

Tip: Typical example — Na 140, Cl 104, HCO₃ 24.

Step 2 — Calculate AG

AG = Na⁺ (+ K⁺)Cl⁻ + HCO₃⁻

AG = measured cations minus measured anions.

Step 3 — Read the result

Example: AG 14 mmol/L — Normal

Ref: 8–12 (no K⁺) · 12–16 (with K⁺). High AG → consider DKA, lactic acidosis, renal failure, toxins.

Interpreting Results

Low Low Anion Gap (rare): consider lab error, hypoalbuminemia, paraproteinemia. Action: repeat labs; check albumin and protein.

Normal Normal Anion Gap: often hyperchloremic (non-anion gap) metabolic acidosis. Action: assess for diarrhea, renal tubular acidosis, saline overload.

High High Anion Gap: suggests metabolic acidosis. Action: evaluate for life-threatening etiologies promptly (see mnemonic below).

MUDPILES mnemonic graphic for high anion gap causes
Suggested image: MUDPILES (or GOLDMARK) mnemonic as a simple, branded card.

Common Causes of High AG (MUDPILES)

  • Methanol
  • Uremia
  • Diabetic ketoacidosis
  • Propylene glycol
  • Iron/Isoniazid
  • Lactic acidosis
  • Ethylene glycol
  • Salicylates

FAQs (Quick Answers)

Should I include potassium in AG calculation?
Optional. Many labs report AG without K⁺. Including K⁺ slightly raises the normal range—be consistent with local convention.
Why correct for albumin?
Low albumin lowers the AG and can mask acidosis. Correcting AG improves diagnostic accuracy.
Is this calculator suitable for pediatrics?
Yes, but neonates/infants may have different reference ranges. Interpret with age-appropriate norms.
Does this tool replace clinical judgment?
No. Use alongside clinical evaluation and local protocols; repeat labs if results are discordant with the presentation.

References

  1. Kraut JA, Madias NE. Serum anion gap: Its uses and limitations in clinical medicine. Clin J Am Soc Nephrol. 2007;2(1):162–174. doi: 10.2215/CJN.03020906
  2. Emmett M, Narins RG. Clinical use of the anion gap. Medicine (Baltimore). 1977;56(1):38–54.
  3. Story DA. The meaning of the anion gap. Anaesth Intensive Care. 2004;32(5):575–578.

Educational use only. Not a substitute for professional medical advice.