Anion Gap Calculator

Calculate the serum anion gap from sodium, chloride and bicarbonate (or total CO₂) from the same testing time. If albumin is available, see an estimate adjusted for low albumin.

Anion Gap Calculator

Use the ▼ arrow for the three electrolytes. mmol/L and mEq/L have the same numeric value for these monovalent ions.

Choose g/dL or g/L as printed on the albumin report. Leave blank to omit the adjustment.

Enter both limits if your report gives an anion gap interval that excludes potassium. Otherwise no automatic range label is shown.

Choose “Save as PDF” in the browser print dialog.

Inputs are calculated in this browser and are not automatically saved or sent to the site. Printing or saving a PDF includes the values.

How to use it and example

For Na 140, Cl 104 and HCO₃ 20 mmol/L, the gap is 16. If albumin is 2.0 g/dL, the adjusted estimate is 16 + 2.5 × (4 − 2) = 21. Neither number is a diagnosis; interpret it with the laboratory interval and clinical context.

Compared with your lab interval

The gap gives a clue about unmeasured ions. A higher value can occur with lactate, ketones, reduced kidney function or some toxic exposures; a low value can reflect low albumin or measurement error, among other causes. This number alone does not diagnose acidosis or its cause.

Limits

This calculation cannot establish blood pH or the full acid-base state. Interpret bicarbonate/total CO₂, blood gases, lactate, ketones, kidney function, medicines, exposures and laboratory methods together. Do not mix a potassium-inclusive formula with this formula’s reference interval.

Frequently asked questions

Should I include potassium K⁺?

This tool uses the common potassium-free formula. Potassium-inclusive formulas produce different numbers and require different reference intervals.

Can I use total CO₂ instead of HCO₃⁻?

Total CO₂ in a routine serum chemistry panel largely reflects bicarbonate and is commonly used as a proxy. A blood-gas bicarbonate value may differ by method or timing; check the specimen context.

Related guides, logs and calculators

Kidney test guide · Lab result log · eGFR calculator · Health records

Sources

General health information, not a substitute for medical care. No independent clinician review is claimed. · Sources checked 2026-09-30