Anion Gap Calculator
Enter the requested values and units to calculate the numeric result using the stated formula.
Calculation only
The output is produced only from the values, units, and formula shown by this tool.
This tool does not compare the number with a clinical range, assign a category, diagnose a condition, or recommend an action. Check that your input units match the form and use your laboratory report or a qualified medical professional for interpretation.
How the calculation works
The tool returns the anion gap in mmol/L from sodium, chloride and bicarbonate; potassium is added to sodium when entered. With an albumin value, the formula line also shows an albumin-corrected gap. The gap itself is plain arithmetic.
Formula
- Anion gap = sodium - (chloride + bicarbonate)
- Anion gap with potassium = (sodium + potassium) - (chloride + bicarbonate)
- Albumin-corrected anion gap = anion gap + 2.5 × (4.0 - albumin in g/dL)
Units
Sodium, potassium, chloride and bicarbonate are entered in mmol/L and albumin in g/dL. The tool performs no unit conversion.
Source
Limits of the calculation
- The main result is the uncorrected gap; the albumin-corrected value appears only in the formula line and relies on a fixed albumin constant of 4.0 g/dL set in the code.
- The factor 2.5 per g/dL of albumin was derived by Figge et al. from arterial blood samples collected in an intensive care unit study.
- Albumin is accepted in g/dL only; the code does not convert g/L. A potassium or albumin field that is empty, zero or negative is left out of the calculation.
- Results are rounded to one decimal place and depend on the laboratory methods used for the electrolytes and albumin.