Anion Gap Calculator
Use lab values to calculate anion gap (AG), with optional potassium and albumin correction.
Formula (without K): AG = Na − (Cl + HCO₃)
Formula (with K): AG = (Na + K) − (Cl + HCO₃)
Corrected AG: AG + 2.5 × (4.0 − albumin)
What is the anion gap?
The anion gap is a quick calculation from routine electrolyte labs that helps assess acid-base disorders, especially metabolic acidosis. It estimates the difference between measured cations and measured anions in blood. Since not all ions are directly measured, the “gap” reflects unmeasured ions.
Clinicians often use this value to separate high anion gap metabolic acidosis from normal anion gap metabolic acidosis. That distinction narrows the differential diagnosis and guides next steps.
How to calculate anion gap
1) Standard formula (most common)
AG = Na − (Cl + HCO₃)
2) Alternative formula including potassium
AG = (Na + K) − (Cl + HCO₃)
3) Albumin-corrected anion gap
Albumin is a major unmeasured anion. Low albumin can make the anion gap appear deceptively normal. A common correction is: Corrected AG = AG + 2.5 × (4.0 − albumin in g/dL).
Typical interpretation ranges
- Without potassium: roughly 8 to 12 mEq/L (lab-specific)
- With potassium: roughly 12 to 16 mEq/L (lab-specific)
- High AG: suggests unmeasured acids are present
- Low AG: less common; can occur with low albumin, lab artifact, or paraproteinemia
Always use your local laboratory’s reference intervals and clinical context.
Common causes of high anion gap metabolic acidosis
- Lactic acidosis (shock, sepsis, hypoperfusion)
- Ketoacidosis (diabetic, alcoholic, starvation)
- Renal failure/uremia
- Toxin ingestions (e.g., methanol, ethylene glycol, salicylates)
Why albumin correction matters
If albumin is low, an uncorrected AG may underestimate the severity of acidosis. For example, someone with hypoalbuminemia can have a “normal” raw AG that becomes elevated after correction. This is why corrected AG is especially useful in ICU and hospitalized patients.
Step-by-step example
Suppose a patient has Na 138, Cl 100, HCO₃ 18, albumin 2.0.
- AG = 138 − (100 + 18) = 20
- Corrected AG = 20 + 2.5 × (4 − 2) = 20 + 5 = 25
This supports a significant high anion gap metabolic acidosis.
Important limitations
- The anion gap is a screening tool, not a standalone diagnosis.
- Lab variation and timing can affect values.
- Mixed acid-base disorders may require additional analysis (e.g., blood gas, delta gap).
- Clinical symptoms and history always come first.
Quick FAQ
Is a higher anion gap always dangerous?
Not always, but it usually signals an important metabolic process and needs timely clinical interpretation.
Should potassium always be included?
Many modern labs and clinicians use the formula without potassium. If your institution includes it, use that method consistently.
Can I use this tool for diagnosis?
Use it for educational and calculation support only. Final diagnosis and treatment should come from a qualified clinician.