Calculate the anion gap from sodium, chloride, and bicarbonate.

Anion Gap Calculator
Enter all concentrations in mmol/L or mEq/L.
Formula and limitations
Anion gap = sodium − (chloride + bicarbonate). This equation excludes potassium. Use values from the same blood sample. Reference intervals vary by laboratory. Low serum albumin can lower the calculated gap and mask an elevated anion gap.
Scientific referenceFor education only; not a diagnosis or treatment recommendation. This calculator does not submit or store your entries.
Formula
Understanding The Variables
| Variable | Meaning and units |
|---|---|
| Na⁺ | Serum sodium. |
| Cl⁻ | Serum chloride. |
| HCO₃⁻ | Serum bicarbonate. Use mmol/L or mEq/L consistently. |
Worked Example
With sodium 140, chloride 104, and bicarbonate 24 mmol/L, 140 − (104 + 24) gives 12.0 mmol/L.
Clinical Significance
The gap estimates the difference between commonly measured positive and negative charges and helps characterize acid–base disturbances.
Limitations
The equation excludes potassium and does not adjust for albumin. Reference intervals vary by laboratory, and low albumin can mask an elevated gap.