What is the formula to calculate the anion gap in a patient with suspected metabolic acidosis?

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: January 18, 2026View editorial policy

Personalize

Help us tailor your experience

Which best describes you? Your choice helps us use language that's most understandable for you.

How to Calculate the Anion Gap

The anion gap is calculated using the formula: Na⁺ + K⁺ - Cl⁻ - HCO₃⁻, though potassium is often omitted in clinical practice 1.

Standard Calculation Formula

The most commonly used formula is: Anion Gap = Na⁺ - (Cl⁻ + HCO₃⁻) 2, 3.

Alternative Formulas and Adjustments

  • When potassium is included in the calculation, use: Na⁺ + K⁺ - Cl⁻ - HCO₃⁻ 1.

  • If the anion gap was calculated without K⁺, add 4 mmol/L to convert it to the formula that includes potassium 1.

  • If the method of calculation is unclear, add 2 mmol/L as a standardization adjustment 1.

Normal Reference Ranges

  • The modern reference range using ion-selective electrode methods is 3-11 mmol/L (when calculated without potassium) 4.

  • Using the traditional formula without potassium, the reference range is 5-12 mmol/L 4.

  • The older reference range of 8-16 mmol/L is outdated and should not be used with current laboratory techniques, as this can lead to misinterpretation 4.

  • When calculated with potassium included, the normal range is approximately 8-12 mEq/L 5.

Important Clinical Considerations

  • The anion gap represents the difference between unmeasured anions (primarily albumin) and unmeasured cations 2, 3.

  • Hypoalbuminemia falsely lowers the anion gap, requiring correction: for every 1 g/dL decrease in albumin below 4 g/dL, add approximately 2.5 mmol/L to the calculated anion gap 6, 2.

  • An anion gap >24 mmol/L strongly suggests metabolic acidosis and warrants immediate investigation 4.

  • In ethylene glycol poisoning specifically, an anion gap >27-28 mmol/L is associated with significantly higher mortality (20.4%) and requires immediate hemodialysis 1, 6.

Quality Control Applications

  • The anion gap serves as an internal quality control check for electrolyte measurements - values exceeding 24 mmol/L or below 2 mmol/L should prompt verification of laboratory results 4, 7.

  • Most analytical variability in the anion gap comes from laboratory measurement error rather than physiological variation 7.

References

Guideline

Guideline Directed Topic Overview

Dr.Oracle Medical Advisory Board & Editors, 2025

Research

Approach to Patients With High Anion Gap Metabolic Acidosis: Core Curriculum 2021.

American journal of kidney diseases : the official journal of the National Kidney Foundation, 2021

Research

Anion-gap metabolic acidemia: case-based analyses.

European journal of clinical nutrition, 2020

Research

Update on value of the anion gap in clinical diagnosis and laboratory evaluation.

Clinica chimica acta; international journal of clinical chemistry, 2001

Guideline

Initial Management of Elevated Anion Gap

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2026

Research

The anion gap: its use in quality control.

Clinical chemistry, 1976

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.

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.