How is the anion gap calculated?

Medical Advisory BoardAll articles are reviewed for accuracy by our Medical Advisory Board
Educational purpose only • Exercise caution as content is pending human review
Article Review Status
Submitted
Under Review
Approved

Last updated: November 22, 2026 • View editorial policy

Have a follow-up question?

Our Medical A.I. is used by practicing medical doctors at top research institutions around the world. Ask any follow up question and get world-class guideline-backed answers instantly.

How to Calculate the Anion Gap

The anion gap is calculated as: (Na⁺) - (Cl⁻ + HCO₃⁻), measured in mEq/L or mmol/L.

Standard Calculation Formula

The most widely used formula is 1, 2:

Anion Gap = [Na⁺] - ([Cl⁻] + [HCO₃⁻])

Some institutions include potassium in the calculation 3:

Anion Gap = [Na⁺ + K⁺] - ([Cl⁻] + [HCO₃⁻])

When potassium is included, add approximately 4 mmol/L to the reference range 3.

Reference Ranges and Modern Considerations

The reference range has changed significantly with modern laboratory equipment:

  • Traditional reference range: 8-16 mEq/L (without potassium) 1, 2
  • Modern reference range: 3-11 mEq/L or 5-12 mEq/L with ion-selective electrode methods 4, 5
  • With potassium included: The reference range shifts upward by approximately 4 mmol/L 3

Critical threshold for high anion gap metabolic acidosis (HAGMA):

  • Anion gap ≥15 mEq/L provides 98.1% sensitivity for detecting HAGMA 5
  • Mild DKA: >10 mEq/L 1
  • Moderate to severe DKA: >12 mEq/L 1, 2

Correction for Hypoalbuminemia

In patients with low albumin (common in critically ill patients), the anion gap must be corrected to avoid missing occult acidosis 6:

Corrected Anion Gap = Measured AG + [0.25 × (44 - serum albumin in g/L)]

Or using g/dL:

Corrected Anion Gap = Measured AG + [2.5 × (4.4 - serum albumin in g/dL)]

This correction is essential because hypoalbuminemia lowers the observed anion gap and can mask clinically significant metabolic acidosis 6. In critically ill children with shock, the uncorrected anion gap detected only 48% of cases with significant tissue anions, while the albumin-corrected anion gap detected 87% 6.

Use corrected AG >15.5 mEq/L as the threshold when hypoalbuminemia is present 6.

Clinical Interpretation Algorithm

Step 1: Calculate the basic anion gap using [Na⁺] - ([Cl⁻] + [HCO₃⁻])

Step 2: Check serum albumin level

  • If albumin <40 g/L (4.0 g/dL), calculate the corrected anion gap
  • Use the corrected value for clinical decision-making

Step 3: Interpret the result:

  • AG <15 mEq/L (corrected): Normal or hyperchloremic acidosis
  • AG ≥15 mEq/L: High anion gap metabolic acidosis present
  • AG >24 mEq/L: Strongly suggests significant metabolic acidosis 4

Step 4: In specific poisoning contexts (ethylene glycol):

  • AG with potassium <28 mmol/L: Early poisoning, lower mortality (3.6%) 3
  • AG with potassium >28 mmol/L: Late poisoning, higher mortality (20.4%) 3

Common Pitfalls

Hypoalbuminemia is the most important confounder - it occurs in 76% of critically ill children and causes falsely low anion gap values that miss significant acidosis 6. Always correct for albumin in critically ill patients.

Modern laboratory equipment uses ion-selective electrodes that produce lower anion gap values than older methods, but many clinicians still use outdated reference ranges (8-16 mEq/L), leading to missed diagnoses 4.

The anion gap does not identify the specific unmeasured anion - it only indicates presence of unmeasured anions. In sepsis, lactate accounts for only about 50% of the elevated anion gap; other unmeasured anions contribute significantly 7.

Professional Medical Disclaimer

This information is intended for healthcare professionals. Any medical decision-making should rely on clinical judgment and independently verified information. The content provided herein does not replace professional discretion and should be considered supplementary to established clinical guidelines. Healthcare providers should verify all information against primary literature and current practice standards before application in patient care. Dr.Oracle assumes no liability for clinical decisions based on this content.