Anion Gap Calculator – With Albumin Correction
Enter your sodium, chloride and bicarbonate (CO₂) values to calculate the anion gap, with optional albumin correction. Helps interpret metabolic acidosis from a standard chemistry panel.
Calculate the Anion Gap from Your Electrolyte Results
Anion Gap Formula
Where:
- \(Na^+\) — serum sodium concentration (mEq/L)
- \(Cl^-\) — serum chloride concentration (mEq/L)
- \(HCO_3^-\) — serum bicarbonate concentration (mEq/L), often reported as “CO₂” or “total CO₂”
- \(2.5\) — mEq/L added to the gap for every 1 g/dL that albumin lies below 4.0 g/dL
The first formula measures the difference between routinely measured cations and anions — the “gap” that reflects unmeasured anions such as albumin, lactate and ketoacids. The second (Emmett) correction adjusts for low albumin, which otherwise masks an elevated gap.
Anion Gap – Calculation Example
Example: a chemistry panel shows sodium 140 mEq/L, chloride 104 mEq/L, bicarbonate 24 mEq/L, and albumin 3.0 g/dL.
\[ AG = 140 - (104 + 24) = 140 - 128 = 12 \text{ mEq/L} \]
\[ AG_{corr} = 12 + 2.5 \times (4.0 - 3.0) = 12 + 2.5 = 14.5 \text{ mEq/L} \]
Result: anion gap 12 mEq/L; albumin-corrected anion gap 14.5 mEq/L — mildly elevated, mainly revealed once the low albumin is taken into account.
How to Use the Anion Gap Calculator
- Enter your Sodium (Na⁺) value from the chemistry panel (basic metabolic panel), in mEq/L.
- Enter your Chloride (Cl⁻) value in mEq/L.
- Enter your Bicarbonate (HCO₃⁻) value in mEq/L. On many lab reports this appears as “CO₂” or “total CO₂” — use that number.
- If albumin was measured, keep “Correct for albumin” ticked and enter your Serum albumin in g/dL. If it was not measured, untick the checkbox.
- Read the Anion gap, the Albumin-corrected anion gap, and the plain-language interpretation below them.
What Is the Anion Gap?
The anion gap is a calculated value from a routine blood chemistry panel. Blood plasma must remain electrically neutral: the total positive charge of cations equals the total negative charge of anions. Routine panels measure sodium, chloride and bicarbonate but not every charged particle — proteins, organic acids, phosphate and others are “unmeasured.” The anion gap estimates the size of this unmeasured fraction:
\[ \text{measured cations} - \text{measured anions} \approx \text{unmeasured anions} - \text{unmeasured cations} \]
In a healthy person the gap is mostly accounted for by albumin, so a normal result is roughly 3–11 mEq/L when potassium is excluded. When acids accumulate in the blood — lactate in shock, ketones in diabetic ketoacidosis, toxins in methanol poisoning — the extra unmeasured anions push the gap upward. A rising anion gap is therefore a sensitive flag for certain types of metabolic acidosis and often appears before the cause is obvious.
The main clinical value of the anion gap is classification: it divides metabolic acidosis into high-anion-gap causes (lactic acidosis, ketoacidosis, renal failure, toxins) and normal-anion-gap causes (diarrhea, renal tubular acidosis), which narrows the differential diagnosis considerably. Because it is derived from three other measurements, it carries no extra cost and no extra blood draw.
Albumin is the single largest contributor to the normal gap. In hypoalbuminemia — common in chronic illness, liver disease and critical care — each 1 g/dL drop in albumin lowers the measured gap by about 2.5 mEq/L, potentially hiding a dangerous acidosis. That is why the albumin correction is recommended whenever albumin is known, and why the calculator uses the corrected value for interpretation.
Interpreting Your Result
Typical reference ranges (without potassium):
| Anion gap | Interpretation |
|---|---|
| 3–11 mEq/L | Normal |
| > 11, up to ~19 mEq/L | Mildly elevated — possible high-anion-gap acidosis (lactate, ketones, CKD, drugs) |
| ~19–30 mEq/L | Clearly elevated — high-anion-gap metabolic acidosis likely, needs medical evaluation |
| ≥ 30 mEq/L | Markedly elevated — consider severe lactic acidosis, toxic alcohols or salicylates; urgent evaluation |
| < 3 mEq/L | Low — consider marked hypoalbuminemia, paraproteinemia (e.g. myeloma), bromide, or lab error |
A result outside the normal range is not a diagnosis. It must be read together with bicarbonate, pH (if available), the clinical picture and often a lactate or ketone measurement.
Limitations and Practical Tips
- Laboratory variation. Reference ranges differ between labs, and some include potassium in the calculation (typical range 10–20 mEq/L). Compare your result to the range printed on your own report when possible.
- Bicarbonate nomenclature. If your report shows “CO₂” or “total CO₂” rather than bicarbonate, use that value — it is essentially the same measurement for this purpose.
- A normal gap does not exclude acidosis. Normal-anion-gap (hyperchloremic) acidosis, such as diarrhea or renal tubular acidosis, can occur with a completely normal anion gap.
- Single snapshot. Electrolytes change quickly in acute illness. Trends across repeated panels are more informative than one value.
- Not a diagnostic tool. This calculator provides information for discussion with a clinician; it cannot replace medical judgment or further testing.
If a toxic alcohol ingestion is suspected, the anion gap is often paired with the Serum Osmolality Calculator to detect a coexisting osmolar gap. Chronic kidney disease is a common cause of a persistently elevated gap — the eGFR (CKD-EPI 2021) Calculator can help assess kidney function, and the qSOFA Score Calculator is useful when sepsis (a major cause of lactic acidosis) is a concern.
Frequently Asked Questions
How do I calculate the anion gap by hand?
Subtract the sum of chloride and bicarbonate from sodium: \( AG = Na^+ - (Cl^- + HCO_3^-) \). For example, with sodium 138, chloride 102 and bicarbonate 22: \( 138 - 124 = 14 \) mEq/L. If your lab includes potassium, use \( AG = Na^+ + K^+ - (Cl^- + HCO_3^-) \) and compare against a potassium-inclusive reference range (roughly 10–20 mEq/L) instead of the usual 3–11.
Do I need to convert mmol/L to mEq/L before using the calculator?
No conversion is needed for these electrolytes. Sodium, chloride and bicarbonate are monovalent ions, so 1 mmol/L equals 1 mEq/L and the numbers are interchangeable. The same is true for potassium. Only multivalent ions like calcium or magnesium require a conversion factor. If your lab reports in mmol/L (common outside the US), simply enter the values as printed — the anion gap result will be identical.
Can the anion gap be negative, and what does that mean?
Yes, a calculated gap of zero or below is possible and should never be dismissed as a math error. The usual explanations are severe hypoalbuminemia, high levels of abnormal proteins (paraproteins in multiple myeloma), bromide or iodide intoxication, or lithium excess. A negative gap can also be caused by a laboratory error, so repeating the chemistry panel is a reasonable first step before further workup.
What are the most common mistakes when calculating the anion gap?
Typical errors include entering CO₂ from a blood gas report instead of serum bicarbonate, using the anion gap printed on a lab slip that includes potassium while applying a potassium-free reference range, and forgetting the albumin correction in chronically ill patients. Also avoid entering chloride in mmol/L when sodium is in mEq/L from a different report — always pull all three values from the same chemistry panel drawn at the same time.
What is the delta ratio (delta-delta) and why does it matter?
The delta ratio compares the rise in anion gap to the fall in bicarbonate: \( \Delta AG / \Delta HCO_3^- \), where \( \Delta AG = AG - 12 \) and \( \Delta HCO_3^- = 24 - HCO_3^- \). A ratio near 1 suggests a pure high-anion-gap acidosis; below 0.4 suggests a normal-gap (hyperchloremic) acidosis; above 2 suggests a coexisting metabolic alkalosis or pre-existing high bicarbonate. It helps spot mixed acid-base disorders a single value would miss.
Does the anion gap require an arterial blood gas, or is venous blood enough?
A routine venous chemistry panel is enough — no arterial puncture is needed, because sodium, chloride and bicarbonate (total CO₂) are measured in venous serum. Venous bicarbonate runs only 1–2 mEq/L higher than arterial, which rarely changes the interpretation. An arterial blood gas adds pH and PaCO₂, useful for confirming acidosis and checking for respiratory compensation, but it is not required for the anion gap itself.
Which medications and substances can raise the anion gap?
Common culprits include metformin (lactic acidosis, especially with kidney impairment), propofol (propylene glycol), isoniazid, iron, salicylates, and toxic alcohols such as methanol and ethylene glycol. Topiramate and acetazolamide cause the opposite — a normal-gap acidosis. If you take these medications and your anion gap is elevated, do not stop treatment on your own; discuss the result with your prescriber, since stopping some drugs abruptly can be harmful.