Skip To Calculator

Anion Gap Calculator

Estimates the difference between routinely measured cations and anions in serum or plasma.

Input Values

Results

Enter values and select Calculate.

Formula And Worked Example

Formula

AG without K = Na − (Cl + HCO₃). AG with K = (Na + K) − (Cl + HCO₃).

Worked Example

Na 140, Cl 104, HCO₃ 20 and K 4.0 mmol/L give AG = 140 − (104 + 20) = 16.0 mmol/L; with potassium it is 20.0 mmol/L.

Inputs And Units

Sodium (Na), chloride (Cl), bicarbonate (HCO₃), and optional potassium (K), all in mmol/L. Use compatible electrolyte measurements from the relevant episode.

Interpretation And Limits

These are two different reference conventions; including potassium changes the expected range. Albumin is an important contributor to unmeasured anions, so hypoalbuminemia can lower the observed gap. Assay method, specimen type and analytical differences also matter. This implementation does not perform albumin correction or a full acid–base analysis. A gap alone does not establish the cause of acidosis; use blood gas and clinical context as appropriate.

Sources