Dr. Farah Taqueer is a pediatrician based in Karachi with more than 14 years of clinical experience. She qualified with an MBBS from Liaquat University of Medical and Health Sciences and holds an MD in Pediatrics, and is registered with...
The anion gap is the quickest screen in the whole metabolic panel for a hidden acid in your blood. This anion gap calculator runs it with or without potassium, corrects it for low albumin, and gives you the delta ratio. It also covers something the other tools tend to skip: it shows you why your lab's normal range probably does not match the one you read online.
Enter your sodium, chloride and bicarbonate in the calculator. Everything else on this page explains what the number is telling you.
What the Anion Gap Actually Measures
Your blood carries the same number of positive and negative charges. Always. A lab panel only measures a few of them, so subtracting the anions it measures from the cations it measures leaves a gap. That gap is not real. It is the space where the ions nobody measured are hiding.
Most of that space belongs to albumin. At normal pH, albumin accounts for roughly 75% of the unmeasured anions. The rest is phosphate, sulfate, lactate and organic acids.
So when the gap widens, it usually means an acid has arrived that the panel cannot see. Lactate from poor perfusion. Ketones from uncontrolled diabetes. Toxins. Retained acids in kidney failure. The gap does not tell you which one. It tells you to go looking.
The Anion Gap Formula
Without potassium (the common version):
Anion gap = Sodium − (Chloride + Bicarbonate)
With potassium:
Anion gap = (Sodium + Potassium) − (Chloride + Bicarbonate)
Both are correct. They just answer with different numbers, and the normal range shifts with them. Including potassium adds roughly 4 mEq/L to the result, so a value that looks high on one version can be normal on the other. MDCalc leaves potassium out entirely, Omni and Medscape offer both. Check which one produced your number before you compare it to anything.
A note on units, because this trips people up
Enter sodium, chloride, bicarbonate and potassium in either mEq/L or mmol/L. For these four ions the two units are numerically identical, which is why MedlinePlus prints sodium as 136 to 144 mEq/L (136 to 144 mmol/L). No conversion, no thinking about it.
Albumin is the one that bites. It is reported as g/dL in the US and g/L almost everywhere else, and those differ by a factor of ten. Feed 24 g/L into a formula expecting 2.4 g/dL and your correction is nonsense. This calculator has a g/dL and g/L switch on the albumin field so you can paste straight off your report.
One more thing worth knowing: many US panels label bicarbonate as CO₂ or total CO₂. Same value, use it.
Worked example, with the numbers this tool returns
Say your panel reads sodium 140, chloride 100, bicarbonate 18, all in mEq/L.
Add the measured anions: 100 + 18 = 118
Subtract from sodium: 140 − 118 = 22 mEq/L
That is a clearly raised gap on any of the reference ranges in the next section. Add a potassium of 4.0 and the same patient reads 26. Same blood, two right answers.
What Counts as a Normal Anion Gap
Here is the part most calculators leave out. Reputable sources do not agree on the normal range, and not by a little. Every source below is legitimate. The disagreement is real, and it has a cause.
Source
Normal anion gap, potassium excluded
Omni Calculator
3 to 11 mEq/L
NIH StatPearls, anion gap chapter
4 to 12 mmol/L
Lee and colleagues, after labs adopted ion-selective electrodes
6 ± 3 mEq/L
NIH StatPearls, metabolic acidosis chapter
8 to 12
Medscape reference range
12 ± 4 mEq/L
Ayala-Lopez and Harb, measured in 5,034 healthy adults
7 to 18 mmol/L, median 13
Read that table again. A person with an anion gap of 12 is comfortably normal by Medscape, sitting at the top of StatPearls' range, frankly high by Omni's, and dead center normal in the largest real-world dataset of the lot.
Why they disagree
Three things are going on, and the third is the one nobody expects.
The analyzers changed, or so the standard explanation goes. When labs measured sodium by flame photometry and chloride by colorimetry, 12 ± 4 was right. Ion-selective electrodes then arrived in the 1980s, chloride began reading higher, and the calculated gap fell. Lee and colleagues put the shift at 12 ± 4 down to 6 ± 3, and that account is widely repeated.
Except the largest modern study did not find it. Ayala-Lopez and Harb reviewed 17,137 patients at Yale-New Haven Hospital and derived an adult interval of 7 to 18 mmol/L from 5,034 healthy outpatients, using analyzers that measure sodium and chloride by ion-selective electrode. They address the narrowing argument directly and report that this has not been reflected in our data, pointing instead to how reference individuals are selected, differences between patient populations, and differences in method.
And the analyzer brand alone moves it. In 2021 the laboratory at Zuckerberg San Francisco General published a direct response. Using a Siemens Advia, their own patient data gave 4 to 12 mmol/L, where Yale's Roche instruments gave 7 to 18. Across five College of American Pathologists proficiency challenges the calculated gap ran about 4.5 mmol/L lower on the Siemens assay than on the Roche. Their conclusion is blunt: a laboratory should not adopt a published range unless the paper names the analyzer and it matches their own.
And real populations surprise the people who order the test. That 7 to 18 result was, in the authors' own words, surprising to clinicians who expected the upper limit to be closer to 12. Their hospital had been using 6 to 16, and against the new interval roughly 23% of emergency department patients and 18% of intensive care patients had been flagged as high when they were not.
So what should you actually do
Use the reference range printed on your own lab report, not the one on any calculator including this one. Your lab derived its range from its own analyzers and its own patients, and that is the only range your result was ever meant to be read against. If your report does not print one, treat this tool's result as a rough screen and take the raw sodium, chloride and bicarbonate to your doctor rather than the gap.
So this calculator now lets you type it in. Under the albumin field there are two optional boxes for your lab's low and high values. Fill them and the verdict, the scale and the wording all read against your range instead of ours. Leave them blank and nothing changes: it falls back to 8 to 12.
Correcting the Anion Gap for Low Albumin
Since albumin carries most of the unmeasured negative charge, low albumin shrinks the gap. A patient can have a serious acid load and a completely normal looking anion gap, purely because their albumin is low. That happens constantly in ICU patients, in liver disease, and in anyone malnourished. If your albumin came back low on the same panel, our guide to what a low albumin means explains what usually causes it and what actually raises it.
One warning that matters. Sources disagree on what "normal albumin" is in that formula. StatPearls' own chapter writes 4.0 in the equation and 4.5 in the sentence beside it. A 2025 MIMIC-IV analysis used 4.4. Our calculator uses 4.0 and shows you the constant on screen, so you always know which version produced your number.
This is the same problem albumin causes elsewhere in the panel. If your albumin is low, your calcium reading is distorted too, which is what our corrected calcium calculator is for.
Does the correction actually help?
For prognosis, the evidence is decent. In 2,826 critically ill cirrhosis patients, an albumin-corrected anion gap above 20 carried a 30-day mortality of 47.5% versus 28.9% below it, and it predicted death better than the uncorrected gap or albumin alone.
For diagnosis, be more careful. The correction still cannot tell you which acid is present, and a corrected gap is an estimate stacked on an estimate.
The Delta Ratio, and Why It Can Flip
Once the gap is high, the delta ratio asks whether a high anion gap acidosis is the only thing going on:
Delta ratio = (anion gap − 12) ÷ (24 − bicarbonate)
Delta ratio
Usual reading
Below 1
A normal anion gap acidosis is present as well
1 to 2
A pure high anion gap acidosis
Above 2
A metabolic alkalosis is present as well, or bicarbonate was high to begin with
Those bands come from StatPearls' metabolic acidosis chapter. One detail worth knowing. That 12 is the upper limit of the normal gap for the formula without potassium, which is the only version the published thresholds were ever derived on. No source defines a delta ratio for the potassium version. So if you switch this calculator to the potassium formula, the number on screen rises by roughly your potassium value, but the delta ratio is still taken from the potassium-free gap. That keeps the 1 and 2 cut-offs meaning what they were set to mean.
Now watch what happens to our worked patient. Sodium 140, chloride 100, bicarbonate 18, and add an albumin of 2.4 g/dL.
Uncorrected gap 22, delta ratio 1.67, which reads as a pure high anion gap acidosis
Corrected gap 26, delta ratio 2.33, which says there is a metabolic alkalosis hiding underneath
Same patient. One albumin value. Two different clinical stories. That is the entire argument for correcting the gap before you calculate the ratio, and it is why this calculator does both in one pass.
What a High Anion Gap Points To
A raised gap means an unmeasured acid. MDCalc teaches the causes as MUDPILERS, and it is still the fastest way to hold them:
Methanol · Uremia · Diabetic or alcoholic ketoacidosis · Paraldehyde · Isoniazid · Lactic acidosis · Ethanol or ethylene glycol · Rhabdomyolysis and renal failure · Salicylates
Uremia links this straight back to kidney function, so if your gap is up and you have not checked filtration lately, our eGFR calculator takes thirty seconds. Diabetic ketoacidosis is the other common one, and if glucose control is the question, the A1C calculator gives you the three-month picture. If that ketoacidosis came with a high glucose and a low sodium on the same panel, the low sodium is usually dilution rather than a second problem, and our corrected sodium calculator shows what it corrects to.
A normal gap acidosis is a different list, usually bicarbonate lost through the gut or the kidney. MDCalc's mnemonic there is HARDUPS.
What a Low or Negative Anion Gap Points To
A low gap is the mirror image: either an unmeasured anion has gone missing, or an unmeasured cation has arrived.
Start by repeating the panel. In the Cleveland Clinic Journal of Medicine's 2023 review, testing error is the single most common reason for a low serum anion gap, which makes a repeat draw the cheapest next step rather than the last one.
After that, low albumin is the usual true cause, since albumin supplies most of the unmeasured negative charge. Less common causes are a paraprotein disorder such as myeloma, lithium, and bromide, iodide or salicylate, which some analyzers read as chloride and so push the gap down.
The gap can go below zero. That is a lab finding rather than a diagnosis, and the same list applies, with one addition: a severe metabolic alkalosis with very high bicarbonate and very low chloride can produce a negative gap arithmetically, with nothing else wrong. A 2026 case report describes exactly that, with a bicarbonate of 61.6 and a gap of −9.3.
How This Calculator Compares to MDCalc and Others
We opened each of these and checked what it actually does.
This calculator
MDCalc
Omni Calculator
Potassium option
Yes
No
Yes
Albumin correction
Yes, constant shown
Yes
Yes
Albumin units
g/dL and g/L
g/dL and g/L
g/dL
Delta ratio
Yes
Yes
No
States a normal range
Yes, with six sourced ranges
Not on the page
Yes, one range
Explains why ranges differ
Yes
No
No
Enter your own lab's range
Yes
No
No
Checks your inputs are possible
Yes
No
No
Delta ratio handles bicarbonate 24 and over
Yes
No
—
Fair summary: MDCalc is the better tool if you are a clinician who already knows the ranges cold and wants the mnemonics at hand. Its creator is nephrologist Dr. Man S. Oh, and its MUDPILERS and HARDUPS lists are the ones most doctors learned from. It just does not offer the potassium variant, and it does not print a normal range at all.
Omni is a solid consumer tool with a clean explanation, and it does offer potassium. It settles on one range per formula, 3 to 11 without potassium and 5 to 16 with it, which is a defensible choice. We went the other way and showed the spread.
We built this one for the person holding a lab report who wants to know whether their number is actually abnormal. That question has a more complicated answer than any single range can give, so we show the range spread instead of picking one and hoping.
Why Use Our Anion Gap Calculator
Your own lab's normal range, typed in once, so your result is read against the only range it was ever meant to be compared to
Both formulas, with and without potassium, and the reference band shifts with your choice
Albumin in g/dL or g/L, so a report from any country pastes straight in
Albumin correction with the constant visible, so you know which version made your number
Delta ratio calculated from the corrected gap, not the raw one, and always from the potassium-free version the published thresholds were set on
No sign-up, nothing stored, works on a phone at the pharmacy counter
When to Get Help Now
A high anion gap on its own is a lab finding, not an emergency. Combined with symptoms it can be. Get urgent care for deep rapid breathing, confusion or drowsiness, persistent vomiting, severe abdominal pain, or fruity-smelling breath, especially in anyone with diabetes.
If the number is mildly raised and you feel fine, the sensible next step is a repeat panel with albumin drawn at the same time, plus lactate, glucose and kidney function. Your doctor decides which.
The Anion Gap Is Not a Diagnosis
This calculator is for informational and screening purposes only and does not constitute medical advice or diagnosis. Always consult a qualified healthcare professional. The anion gap is a screening number that points toward a category of problem, never to a specific cause, and it must be read alongside your clinical picture, your blood pH and your own laboratory's reference range.
Anion gap = sodium − (chloride + bicarbonate), all in mEq/L or mmol/L. The potassium version is (sodium + potassium) − (chloride + bicarbonate), which runs about 4 mEq/L higher. Both are valid, but each has its own normal range, so check which one your result used.
Corrected anion gap = anion gap + 2.5 × (4.0 − albumin in g/dL). Albumin carries most of the unmeasured negative charge, so every 1 g/dL drop lowers the gap by about 2.5 mEq/L. Without the correction, a real acidosis can hide behind a normal-looking number.
Either way works as long as you match the range. Most US labs and MDCalc exclude potassium because it varies little and is easily altered by a difficult blood draw. Including it raises the result by roughly 4 mEq/L, so normal becomes about 12 to 16 rather than 8 to 12.
It means an acid your panel does not measure has built up. The common causes are lactic acidosis, diabetic or alcoholic ketoacidosis, kidney failure, and certain poisonings including methanol, ethylene glycol and salicylates. The gap flags the category, never the specific cause, so it always needs clinical follow-up.
Testing error is the most common reason, so repeating the panel comes first, not last. After that, low albumin is the usual true cause, since albumin supplies most of the unmeasured anions. Less often it points to a paraprotein disorder such as myeloma, to lithium, or to bromide, iodide or salicylate being read as chloride by the analyzer.
Barely. In 145 healthy patients aged 18 and under, the measured interval was 8 to 19 mmol/L against 7 to 18 in adults, with the same median of 13. The authors caution that this pediatric figure rests on a small sample and should be viewed carefully. Read a child's result with their own doctor.
Yes. Treat it as a lab finding rather than a result. Analytical error comes first, then bromide or iodide poisoning, severe hyperkalemia, lithium, myeloma proteins, and profound hypoalbuminemia. A severe metabolic alkalosis, with very high bicarbonate and very low chloride, can also produce a negative gap arithmetically with nothing else wrong.
Have clinical or research experience with this calculator? If you spot an error in the formula, the thresholds or the sources, or you would like to contribute to this page, write to partnerships@healthcalculator.io.
Sources
Every figure on this page is drawn from government health statistics or peer-reviewed research. Last verified October 2026.