What is the formula to calculate the anion gap?

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: December 12, 2025View 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⁺ - (Cl⁻ + HCO₃⁻), though some laboratories include potassium in the calculation as: Na⁺ + K⁺ - (Cl⁻ + HCO₃⁻). 1

Standard Calculation Methods

Primary Formula (Most Common)

  • Anion Gap = Na⁺ - (Cl⁻ + HCO₃⁻) 1, 2
  • This is the most widely used formula in clinical practice 3

Alternative Formula (With Potassium)

  • Anion Gap = Na⁺ + K⁺ - (Cl⁻ + HCO₃⁻) 1
  • When converting between formulas: if calculated without K⁺, add 4 mmol/L; if potassium status is unknown, add 2 mmol/L 1

Normal Reference Ranges

Modern Ion-Selective Electrode Method

  • Normal range: 3-11 mmol/L (without potassium) 4
  • Updated range: 5-12 mmol/L in some laboratories 4
  • The reference range has been lowered from the historical 8-16 mmol/L due to changes in electrolyte measurement techniques 4

Clinical Interpretation Thresholds

  • Normal anion gap: 59.5% of hospitalized patients 4
  • Increased anion gap: 37.6% of hospitalized patients 4
  • Decreased anion gap: 2.9% of hospitalized patients 4

Critical Clinical Cutoffs

High Anion Gap Thresholds

  • Anion gap >27 mmol/L: Strong indication for urgent intervention in toxic ingestions 1
  • Anion gap 23-27 mmol/L: Moderate elevation warranting investigation 1
  • Anion gap >24 mmol/L: Rare finding that strongly suggests metabolic acidosis 4

Low Anion Gap Thresholds

  • Anion gap <2 mmol/L: Very rare finding requiring investigation 4
  • Negative anion gap (-1 or less): Suggests laboratory error, specimen contamination, hypoalbuminemia, extreme hyperkalemia, bromism, or paraproteins 5

Important Corrections and Adjustments

Hypoalbuminemia Correction

  • Recalculate using: Na⁺ + K⁺ - Cl⁻ - HCO₃⁻ to confirm the value 6
  • Severe hypoalbuminemia significantly lowers the anion gap since albumin is a major unmeasured anion 6
  • Check arterial blood gas to assess actual acid-base status when baseline anion gap is low, as it can mask concurrent high anion gap metabolic acidosis 6

Clinical Pitfalls to Avoid

  • The anion gap may overestimate glycolate/toxin concentrations in concomitant AKI or ketoacidosis 1
  • The anion gap may underestimate toxin concentrations in hypoalbuminemia or co-ingestions of lithium or barium 1, 6
  • Clinicians still commonly use the outdated reference range of 8-16 mmol/L, which can lead to misinterpretation 4

Quality Control Applications

Laboratory Verification

  • Use anion gap as an internal quality control check for electrolyte measurements 4, 7
  • High incidence of anion gap >24 mmol/L or <2 mmol/L should prompt verification of electrolyte quality control and assessment for hypoalbuminemia or hyperglobulinemia 4
  • Most variability in anion gap measurements is due to analytical rather than physiological variation 7

Delta Gap Calculation

  • Δ anion gap = observed anion gap - normal anion gap 3
  • Δ HCO₃⁻ = normal HCO₃⁻ - observed HCO₃⁻ 3
  • Ratio of 1 suggests simple anion gap acidosis 3
  • Ratio <1 indicates superimposed non-gap acidosis 3
  • Ratio >1 suggests superimposed metabolic alkalosis 3

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

Clinical Significance of a Low Anion Gap

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2025

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.