Audited 26 Jul 2026·Last updated 28 Oct 2026·6 citations·Tier 1·0 uses

Anion Gap Calculator

Anion gap from sodium, chloride and bicarbonate, with optional potassium, the albumin correction of 2.5 per g/dL and a delta ratio for mixed acid-base states.

Anion Gap Calculator

Anion gap (without potassium)
21
Sodium minus the sum of chloride and bicarbonate, in mEq/L: the standard anion gap without potassium.
Anion gap (with potassium)
25.2
Albumin correction amount
3
Albumin-corrected anion gap (without potassium)
24
Albumin-corrected anion gap (with potassium)
28.2
Delta ratio
2

Background.

Plasma carries exactly as much negative charge as positive, but a routine chemistry panel measures only part of it. Sodium accounts for most of the positive side; chloride and bicarbonate for most of the negative. Subtract the two measured anions from sodium and what remains — the anion gap — stands for everything negatively charged that the panel did not measure: albumin above all, plus phosphate, sulphate and small amounts of organic acids.

That leftover is useful because it changes when acids the panel cannot see pile up. Lactate in shock, ketoacids in diabetic ketoacidosis, the acids a failing kidney cannot excrete, and the metabolites of poisons such as methanol or ethylene glycol all consume bicarbonate and replace it with an anion outside the panel, so the gap widens. When bicarbonate is lost instead, as in severe diarrhoea or some kinds of renal tubular acidosis, chloride rises to take its place and the gap stays where it was. Splitting a metabolic acidosis into these two groups is the first fork in working out its cause.

Albumin is the complication. It is the largest single unmeasured anion, so a patient with low albumin — common in critical illness, liver disease, nephrotic syndrome and malnutrition — starts from a lower baseline, and a real accumulation of acid can raise the gap only back to an ordinary-looking number. The correction used here, from Figge and colleagues, adds 2.5 mEq/L for every 1 g/dL of albumin below 4.0 g/dL. With an albumin of 2.8 g/dL, a measured gap of 21 becomes 24.

The calculator gives the gap with and without potassium, the albumin-corrected versions and a delta ratio. It does the arithmetic and stops there: it names no diagnosis, and the numbers are meant to support clinical judgement alongside a blood gas, lactate, ketones and kidney function, not to stand in for it.

What is anion gap calculator?

The serum anion gap is the difference, in mEq/L, between the main measured cation and the main measured anions: AG = Na − (Cl + HCO₃). For singly charged ions, mEq/L and mmol/L are numerically the same, so results reported in either unit can be entered directly. A potassium-inclusive version adds potassium to the cation side, which raises the gap by the potassium value. Because the gap is a construct of what the analyser measures rather than a physical quantity, its normal value depends on the laboratory: normal gaps have drifted lower as analysers have changed how chloride is measured, which is why the reference here is a field for your lab's figure rather than a fixed number. The delta ratio compares how far the gap has risen above that reference with how far bicarbonate has fallen below its own reference, and is used to look for a second acid-base process hiding behind the first.

How to use this calculator.

  1. Enter sodium, chloride and bicarbonate from the same sample, in mEq/L or mmol/L. Most chemistry panels report total CO₂ rather than bicarbonate; it is the usual stand-in.
  2. Add potassium only if your laboratory or protocol uses the potassium-inclusive gap, and compare that result with a reference range built the same way. Left blank, the potassium lines read 0, meaning not calculated.
  3. Enter serum albumin in g/dL to get the corrected gap. A result in g/L divides by 10: 28 g/L is 2.8 g/dL.
  4. Replace the normal anion gap of 12 with your laboratory's reference value, and keep the reference bicarbonate at 24 mEq/L unless your unit uses another, before reading the delta ratio.
  5. Read the corrected gap and delta ratio together with the blood gas, lactate, ketones, creatinine and the clinical picture.

The formula.

AG = Na − (Cl + HCO₃)

The basic gap is AG = Na − (Cl + HCO₃). With potassium it is AGₖ = Na + K − (Cl + HCO₃), always larger by exactly the potassium value. The albumin correction is 2.5 × (4.0 − albumin), with albumin in g/dL, and it is added to both versions of the gap. The coefficient comes from Figge and colleagues' 1998 analysis of how the gap falls with albumin: each gram per decilitre lost removes about 2.5 mEq/L of negative charge from the unmeasured pool. An albumin above 4.0 g/dL makes the correction negative, lowering the gap slightly.

The delta ratio is (corrected AG − normal AG) ÷ (reference HCO₃ − measured HCO₃). The top line is the extra unmeasured anion; the bottom line is the bicarbonate that has been used up. If a single gap-raising acid were responsible and every unit of it consumed one unit of bicarbonate, the two would match and the ratio would be 1. A ratio well below that means bicarbonate has fallen further than the new anions explain, pointing towards an additional normal-gap acidosis; a ratio well above it means bicarbonate is higher than it should be, as with a coexisting metabolic alkalosis or a raised starting bicarbonate. Buffering inside cells and differences in how quickly each anion is cleared blur the one-for-one picture, which is why the ratio is a prompt to look further rather than a classification.

The arithmetic has hard limits. The ratio is not calculated (it shows 0) when measured bicarbonate equals or exceeds the reference, because there is no bicarbonate fall to explain. The ratio always uses the albumin-corrected gap without potassium, so enter the normal gap on that same basis.

A worked example.

Example

A chemistry panel shows sodium 140, chloride 101, bicarbonate 18 and potassium 4.2 mEq/L, with albumin 2.8 g/dL. The measured anions add to 101 + 18 = 119, so the gap is 140 − 119 = 21 mEq/L. Including potassium puts the cations at 144.2 and the gap at 25.2. Albumin is 4.0 − 2.8 = 1.2 g/dL below the reference, so the correction is 2.5 × 1.2 = 3 mEq/L. The corrected gap is 21 + 3 = 24 mEq/L, or 28.2 with potassium. For the delta ratio, the gap has risen 24 − 12 = 12 above the normal value entered, while bicarbonate has fallen 24 − 18 = 6 below its reference: 12 ÷ 6 = 2. The albumin step changes more than the gap. Without it, the same panel gives a delta ratio of (21 − 12) ÷ 6 = 1.5. With it, the rise in unmeasured anion is twice the fall in bicarbonate rather than one and a half times. Correcting for albumin can therefore move a patient across whatever line a clinician uses to suspect a second process, so the corrected figure is the one to read.

reference Bicarbonate24
sodium140
albumin G Dl2.8
normal Anion Gap12
potassium4.2
chloride101
bicarbonate18

Frequently asked questions.

My patient's gap is normal but the albumin is low. Should I worry?
It is exactly the situation the correction exists for. Sodium 140, chloride 108 and bicarbonate 20 give a gap of 12, which looks ordinary. With albumin at 2.0 g/dL the correction is 2.5 × 2.0 = 5, and the corrected gap is 17 — a gap acidosis that the raw number concealed. Low albumin is common in critically ill patients, the same group in which lactic acidosis is most often a concern.
Should potassium be part of the anion gap?
Both versions are in use, and neither is wrong as long as the result is compared with a reference range built the same way. Potassium is small and fairly stable next to sodium, so the potassium-inclusive gap simply runs higher by the potassium value — 4.2 mEq/L in the worked example. Mixing conventions is the real error: a with-potassium gap read against a without-potassium normal value looks falsely high.
Why does the normal anion gap vary from one laboratory to another?
Because the gap is defined by what the analyser measures. Changes in measurement methods, particularly for chloride, have shifted normal gaps lower over the decades, and different platforms still differ. A reference copied from an old textbook can make a normal patient look abnormal or hide a modest rise. Enter the value your own laboratory publishes for the formula you are using, rather than relying on the default of 12.
Can I use total CO₂ from the chemistry panel instead of bicarbonate?
Usually, and most clinicians do. Total CO₂ is bicarbonate plus dissolved carbon dioxide, which at a normal PaCO₂ of 40 mmHg adds about 0.03 × 40 = 1.2 mmol/L, so it runs slightly above blood gas bicarbonate. A bigger source of error is an underfilled or long-opened tube, which loses CO₂, lowers the reported value and inflates the gap.
What can make the anion gap low or even negative?
Low albumin is by far the most common reason. Other causes are less frequent but worth knowing: some myeloma proteins carry a positive charge and add unmeasured cations; lithium does the same in toxicity; and bromide or iodide can be read as chloride by the analyser, inflating it. A gap of zero or below, such as 140 − (118 + 24) = −2, should prompt a check for laboratory error or one of these causes.
Does a raised anion gap tell me which acid is responsible?
No. It says an unmeasured anion has accumulated, not which one. Lactate, ketones, uraemic acids, salicylate, and the toxic alcohols methanol and ethylene glycol can all raise it, and telling them apart needs lactate, ketones, creatinine, a toxicology history and sometimes a serum osmolal gap. The calculated value narrows the search; it does not end it.
How should I read the delta ratio?
As a comparison of two changes: how much unmeasured anion has appeared and how much bicarbonate has gone. If they match, the ratio is 1 and a single gap acidosis could explain the panel. A ratio well below 1 suggests a second, normal-gap acidosis as well; well above 1 suggests bicarbonate is being held up by a metabolic alkalosis or a high baseline. There is no fixed point where a departure becomes significant: some acid is buffered inside cells and bone rather than by bicarbonate, so ratios somewhat above 1 are common with a single disorder, and the ratio is a prompt to look further, not a verdict.
Why does the delta ratio show 0 for some entries?
The ratio divides by the fall in bicarbonate. If measured bicarbonate equals the reference, the division is impossible, and if it is above the reference there is no fall to explain and the ratio's sign would flip into a number with no clinical meaning. In both cases the calculator shows 0, meaning not calculated, and still returns the anion gap. The same 0 appears when the normal gap or reference bicarbonate is left blank. The delta ratio is shown only when both are filled in and measured bicarbonate is below the reference.
How does the anion gap relate to the osmolal gap in suspected poisoning?
They track different things. The osmolal gap is measured serum osmolality minus the value calculated from sodium, glucose and urea, and it rises when uncharged particles such as methanol or ethylene glycol themselves are present. The anion gap rises later, as those alcohols are metabolised into acids. Early after ingestion the osmolal gap may be high with a normal anion gap; later the pattern can reverse, so a normal value of either does not exclude toxic alcohol poisoning.
Can the anion gap replace a blood gas?
No. The gap describes only the metabolic, unmeasured-anion part of the picture. It cannot show pH, the respiratory component or whether compensation is appropriate, and a patient can be dangerously acidaemic with a normal gap or have a raised gap with a near-normal pH. Interpreting it alongside a blood gas, and within the clinical context, is what makes it useful.

How this page was produced

Published by
Quanta Calculator
Primary sources
6 cited below
Method
AG = Na − (Cl + HCO₃)
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon