Anion Gap Calculator
Free anion gap calculator with albumin correction, delta-delta ratio, and urine AG. Supports standard and 4-ion formulas with instant clinical interpretation.
Use 4-ion formula
Correct for hypoalbuminemia
Serum Anion Gap
12.0mEq/L
Normal(Normal: 8–12)Clinical Interpretation
What your anion gap value means clinically
Normal Anion Gap
No evidence of anion-gap metabolic acidosis. If metabolic acidosis is present on ABG, consider non-anion-gap (hyperchloremic) causes.
If acidosis present, consider
Next step: If acidosis is present, use the Urine Anion Gap to differentiate GI from renal causes.
Formula Used
Step-by-step calculation with your values
This calculator provides estimates for educational purposes only. It is not a substitute for professional medical advice, diagnosis, or treatment. Always consult a qualified healthcare provider for interpretation of your results.
What Is the Anion Gap?
Understanding the electrolyte balance in your blood
The anion gap (AG) measures the difference between positively charged ions (cations) and negatively charged ions (anions) in blood serum. By the principle of electroneutrality, total cations must equal total anions — the AG represents the unmeasured anions not captured in routine lab panels.
Normal electrolyte reference ranges:
How to Use This Calculator
5 steps to a complete acid-base analysis
Choose Calculation Type
Select Serum AG for standard acid-base workup, or Urine AG to evaluate the renal response in non-anion-gap metabolic acidosis.
Enter Electrolyte Values
Input sodium, chloride, and bicarbonate from your BMP/CMP results. Values are in mEq/L (same as mmol/L for these electrolytes).
Enable Optional Corrections
Toggle Include K⁺ for the 4-ion formula (used by some institutions). Toggle Albumin Correction for ICU patients with hypoalbuminemia.
Review Results & Interpretation
See the AG value, severity classification on the visual scale bar, and detailed clinical interpretation. The formula with your values is shown step-by-step.
Check Delta-Delta Ratio
For elevated AG, the delta-delta ratio automatically appears to identify mixed acid-base disorders — the key to a complete workup.
Formulas & Calculations
All 5 calculations supported by this tool
Standard Anion Gap
AG = Na⁺ − (Cl⁻ + HCO₃⁻)
Normal: 8–12 mEq/L | Most widely used | From BMP/CMP
With K⁺ (4-Ion)
(Na⁺ + K⁺) − (Cl⁻ + HCO₃⁻)
Normal: 10–20 mEq/L
Albumin-Corrected
AG + 2.5 × (4.0 − Albumin)
Per Figge et al. 1998
Delta-Delta Ratio
(AG − 12) / (24 − HCO₃⁻)
Mixed disorder detection
Urine Anion Gap
Na⁺ + K⁺ − Cl⁻ (urine)
GI vs. renal cause
References: Emmett M, Narins RG. Medicine 1977;56:38-54 | Figge J et al. Crit Care Med 1998;26:1807-1810 | Kraut JA, Madias NE. NEJM 2014;371:1434-1445
Delta-Delta Ratio Interpretation
Identifying mixed acid-base disorders
| Ratio | Interpretation |
|---|---|
< 0.4 | Pure Non-AG Acidosis |
0.4 – 1.0 | Mixed AGMA + NAGMA |
1.0 – 2.0 | Pure AG Acidosis |
> 2.0 | AGMA + Met. Alkalosis |
Worked Example: DKA with vomiting
Na⁺=140, Cl⁻=100, HCO₃⁻=15, Albumin=4.0 g/dL
AG = 140 − (100 + 15) = 25 mEq/L (elevated)
Δ/Δ = (25 − 12) / (24 − 15) = 13/9 = 1.44 → Pure AGMA
If HCO₃⁻ were 20 instead: Δ/Δ = 13/4 = 3.25 → AGMA + metabolic alkalosis (from vomiting)
Causes of Elevated Anion Gap (MUDPILES)
The classic mnemonic for high AG metabolic acidosis
Causes of Low Anion Gap (< 8 mEq/L):
Hypoalbuminemia
Most common cause — each 1 g/dL drop lowers AG by ~2.5 mEq/L
Multiple Myeloma
IgG paraprotein acts as an unmeasured cation, lowering the gap
Bromide / Iodide
Falsely elevates measured Cl⁻ on some analyzers, lowering AG
Lithium Toxicity
Unmeasured cation (Li⁺) displaces Na⁺ in the calculation
Urine Anion Gap: When & Why
Differentiating GI from renal causes of NAGMA
When the serum anion gap is normal but metabolic acidosis is present (non-AG metabolic acidosis, NAGMA), the next question is: are the kidneys responding appropriately? The urine anion gap answers this by estimating renal ammonium (NH₄⁺) excretion.
< 0 mEq/L
Extrarenal cause
Diarrhea, GI fistula, external drainage
> 0 mEq/L
Renal cause (RTA)
Type 1 (distal), Type 4 (hyperkalemic)
Reference: Batlle DC, Hizon M, Cohen E, et al. The Use of the Urinary Anion Gap in the Diagnosis of Hyperchloremic Metabolic Acidosis. NEJM 1988;318:594-599.
Clinical Pearls & Common Mistakes
Practical tips for accurate interpretation
Always correct for albumin in ICU
Hypoalbuminemia is present in 40–60% of ICU patients. A 'normal' AG of 10 in a patient with albumin of 2.0 g/dL is actually 15 once corrected — potentially masking significant acidosis.
CO₂ ≈ HCO₃⁻ on a BMP
The 'CO₂' on a basic metabolic panel represents total CO₂ (dissolved CO₂ + HCO₃⁻). It's ~1–2 mEq/L higher than true bicarbonate, but the difference is clinically negligible for AG calculation.
AG > 20 requires explanation
While the normal range extends to 12 mEq/L, an AG consistently above 20 almost always indicates a clinically significant AGMA — even if the pH and HCO₃⁻ appear 'compensated'. Always investigate.
Use the stepwise approach
First: check AG. If elevated → check delta-delta for mixed disorders. If normal AG with acidosis → check urine AG for GI vs. renal cause. This systematic approach ensures no diagnosis is missed.
Modern analyzers may shift the range
Ion-selective electrode (ISE) analyzers measure chloride ~3–5 mEq/L higher than older flame photometry, which can lower the measured AG. Some labs report a normal range as low as 3–11 mEq/L. This calculator uses the widely cited 8–12 mEq/L reference — always check your own lab's reported range.
Medical disclaimer: This calculator is an educational tool based on published medical formulas (Emmett 1977, Figge 1998, Kraut 2014, Batlle 1988). It is not a substitute for professional medical advice, diagnosis, or treatment. Always consult a qualified healthcare provider for interpretation of acid-base disturbances and treatment decisions.
Frequently Asked Questions
Common questions and detailed answers
Embed Anion Gap Calculator
Add this calculator to your website or blog for free.
You Might Also Like
Related calculators from other categories
Last updated Apr 7, 2026