How this instrument works
The anion gap is not a lab result on its own — it is arithmetic performed on three numbers a basic metabolic panel already reports. Blood carries far more positive sodium than the chloride and bicarbonate a standard panel measures directly, and that apparent imbalance is not a mistake: the missing negative charge is made up by anions the panel does not count, chiefly albumin, along with smaller contributions from phosphate, sulfate, and lactate. Subtracting chloride and bicarbonate from sodium estimates the size of that unmeasured pool, and a pool that has grown unusually large is often the first clue that something is producing excess acid.
MedlinePlus's electrolyte panel page describes this same calculation as the final step after sodium, chloride, and CO2 (bicarbonate) come back from the lab, and Cleveland Clinic's patient guide to the anion gap test notes there is no single universal normal range — each lab sets its own cutoff from its own instruments, though 8 to 16 mEq/L is the band most commonly cited. Some hospitals fold potassium into the sum as a fourth term; this instrument uses the more widely taught three-variable version, sodium minus the sum of chloride and bicarbonate, so a figure computed here will not exactly match a lab that reports the potassium-inclusive version.
A widened gap points toward processes that add acid to the blood faster than the body can measure it directly — diabetic ketoacidosis, lactic acidosis, kidney failure, and certain poisonings all show up this way, though the number alone cannot tell those apart. A narrow result, when bicarbonate is still low, usually redirects attention toward a different family of causes — chloride-driven, or hyperchloremic, acidosis — such as significant diarrhea or certain kidney tubule disorders. Either way this is a sorting step, not a verdict; a clinician reads it alongside symptoms, the rest of the chemistry panel, and the person in front of them.
- Enter Sodium in mEq/L from the same basic metabolic panel — 135 to 145 mEq/L is typical.
- Enter Chloride in mEq/L, then Bicarbonate (often printed as CO2) in mEq/L.
- Read Anion gap (mEq/L): the tool subtracts Chloride and Bicarbonate from Sodium automatically.
- Compare the figure against your own lab's printed range, since cutoffs shift slightly between instruments.
- If your lab folds potassium into its reported gap, expect this three-variable result to sit a few mEq/L lower for the same blood.
Worked example — three basic metabolic panels
Sodium 140, chloride 104, bicarbonate 24, all in mEq/L. Add chloride and bicarbonate first: 104 + 24 = 128. Subtract that from sodium: 140 − 128 = 12 mEq/L. Twelve sits comfortably inside the commonly cited 8-16 mEq/L reference range, so this panel gives no signal of a widened-gap process on its own.
Change only the second and third values — sodium 140, chloride 100, bicarbonate 15 — and the arithmetic shifts: 100 + 15 = 115, then 140 − 115 = 25 mEq/L. A result this wide is the pattern textbooks flag as a high-anion-gap metabolic acidosis, with diabetic ketoacidosis, lactic acidosis, and certain toxic ingestions named as classic examples of what gets investigated next — not a diagnosis this arithmetic makes by itself.
A third panel: sodium 135, chloride 110, bicarbonate 20. Chloride plus bicarbonate is 130, and 135 − 130 = 5 mEq/L — a narrow figure. Paired with a low bicarbonate, a result this small points away from the causes above and toward a normal-anion-gap, hyperchloremic pattern instead, which carries its own separate list of causes.
Questions
What counts as a normal anion gap?
Most labs quote roughly 8 to 16 mEq/L, though the exact cutoff depends on the instrument and whether potassium is folded into the sum. This calculator uses the version taught most widely — sodium minus chloride and bicarbonate — so a hospital that adds potassium will typically report a somewhat higher number for the same blood. Compare your result against the range printed on your own report rather than a figure from any single outside source.
Why isn't potassium included in this formula?
Because the three-variable version is the one taught most widely and reported by most labs, and potassium sits in a narrow, fairly stable range, so adding it mostly shifts the reference band rather than changing what an abnormal reading means. Some institutions do use the four-variable form; if your lab already folds potassium into its stated figure, expect this page's output to sit a little lower for the same three shared inputs.
What does a high anion gap suggest?
It suggests the body is producing or retaining acid faster than bicarbonate can neutralize it, with the excess appearing as unmeasured anions. Diabetic ketoacidosis, lactic acidosis from severe illness or poor tissue oxygenation, kidney failure, and certain poisonings are the examples usually listed — but the number itself only flags that something in this family deserves a closer look, not which one applies.
What does a normal or low gap with low bicarbonate mean?
It points toward a different pattern, normal-anion-gap (hyperchloremic) metabolic acidosis, caused by things like significant diarrhea, certain kidney tubule disorders, or some medications, where bicarbonate is lost or chloride retained without the buildup of unmeasured acids seen in a widened-gap process.
Can this calculator diagnose the cause of my acidosis?
No. It performs one line of arithmetic on three lab values and reports where the result falls relative to a commonly cited range. Sorting out an actual cause takes a clinician weighing that figure alongside symptoms, other blood work, medication history, and the rest of the clinical picture — this instrument is a starting filter, not a stand-alone answer.
Which lab values do I need before using this calculator?
Sodium, chloride, and bicarbonate, all reported in mEq/L, which come together on a routine basic metabolic panel (bicarbonate is often printed as CO2). Enter each figure exactly as your lab reports it; no unit conversion is needed since all three are conventionally reported in the same units.
References
Read this first: This instrument computes a screening figure from population formulas — it is not a diagnosis, and it cannot see the whole picture a clinician can. Use it to inform a conversation, not to replace one.