Anion Gap Calculator

Anion gap (mEq/L)—
Category—
Reference range—

How Anion Gap Calculator is calculated: Anion gap = sodium - (chloride + bicarbonate)

What is the Anion Gap for?

A anion gap calculator is a free online tool that subtracts chloride and bicarbonate from sodium to give the anion gap, which helps work out the cause of a metabolic acidosis. It uses the standard formula: anion gap equals sodium minus the sum of chloride and bicarbonate, with a normal range of about 8 to 12 mEq/L. It gives the answer instantly as you type, with the main result shown first and the supporting figures underneath, so you can check the headline number and the working behind it in one glance.

It is used by clinicians reading a blood gas or electrolyte panel, and medical students learning acid-base balance. If you are working through a health question or a training plan, a blood sugar calculator is often the next step once this answer is in hand, because the two quantities feed into each other.

To use it, enter sodium, chloride, and bicarbonate, all in mEq/L from the same lab report. The calculator runs entirely in your browser: nothing you type is uploaded, stored, or shared, and there is no sign-up. You can change any value and the results update at once, which makes it easy to test what happens when one input moves.

How to work out Anion Gap by hand

Blood must stay electrically neutral, so the positive ions and the negative ions must balance. Sodium is the main positive ion, and chloride and bicarbonate are the main measured negative ions. The gap between them is made up of unmeasured negative ions, mostly albumin and other proteins. When an acid such as lactate or ketoacids builds up, bicarbonate falls and the gap rises, which is why a high anion gap points to a specific kind of acidosis. The formula the calculator uses is: Anion gap = sodium - (chloride + bicarbonate). Every symbol in that formula has one meaning and one unit, and keeping the units straight is most of the work in getting a right answer.

By hand, the steps are: add chloride and bicarbonate together, and subtract the sum from sodium. The calculator does the same steps in the same order, so a hand check on one example should land on the same number the page shows, allowing for the rounding in the display.

All three values must be in mEq/L, which is the same as mmol/L for these single-charge ions. Indian labs usually report in these units, but a bicarbonate reported as total CO2 is the same number for this purpose, so no conversion is needed. The calculator is an estimate in the sense that it trusts the numbers you enter: it cannot tell whether a measurement was read correctly, so a wrong input gives a wrong-looking answer with no warning. Always check the units before trusting a result.

One more check: the formula above is the one the page uses, so a reference that writes it differently is usually just rearranging the same relation or using different symbols. Match the symbols by their meaning, not by their shape, and the numbers will agree. If your source gives the answer in different units, convert at the end rather than in the middle, so a conversion slip cannot hide inside the working.

Albumin changes the gap, and the formula does not know it

Albumin is the biggest unmeasured anion, so a low albumin makes the anion gap look smaller than it really is. A patient with an albumin of 2.0 g/dL has a gap about 5 points lower than the same patient with a normal albumin, which can hide a real acidosis. The albumin-corrected gap adds 2.5 for every 1 g/dL that albumin is below 4.0, and this calculator notes the correction in the article even though it does not apply it.

The normal range depends on the lab and the method, and some labs quote 3 to 11 instead of 8 to 12. The difference comes from how the lab measures the ions, not from the patient, so the range on the report itself is the one to use. A gap of 11 is normal by one range and high by the other, which is why the report's own range matters.

A high anion gap is a clue, not a diagnosis. It says an unmeasured acid is present, but it does not say which one: lactate, ketoacids, kidney failure, and toxins all raise the gap. The next step is to look for the cause, with a lactate, ketones, and kidney function, rather than treating the number itself.

A worked example

Take this example: 140 mEq/L, 100 mEq/L, 24 mEq/L. A sodium of 140, chloride of 100, and bicarbonate of 24 mEq/L. Put those numbers into the calculator and it returns Anion gap (mEq/L) 16 mEq/L; Category High .

Working it through by hand: 140 − (100 + 24) = 16 mEq/L. The hand result matches the calculator exactly, which is the point of the check: if your own working gives a different number, one of the inputs was typed in the wrong unit or the wrong box.

Try a second set to see how the answer moves: a sodium of 138, chloride of 102, and bicarbonate of 26 mEq/L. 138 − (102 + 26) = 10 mEq/L Changing one input at a time and watching the result is the fastest way to build a feel for the formula, and it is how most people spot a typing error before they act on a number.

Who uses a Anion Gap and why

The first group is clinicians reading a blood gas: the anion gap is the first step in sorting a metabolic acidosis into high-gap and normal-gap causes, which lead to very different treatments.

The second is medical students learning acid-base: three numbers and one subtraction is easy to learn, and working through a case shows how the gap points to lactate or ketoacids. A GFR calculator is a natural companion here, since the two quantities are usually checked together.

The third is anyone reading their own electrolyte panel: a high gap explains why the bicarbonate is low, and it is the number the doctor will look at first. None of these uses needs an account or an install: the page opens, the numbers go in, and the answer is there.

Whatever the reason, one reading is rarely the whole story. Health numbers move with the time of day, with food and sleep, and with the device or lab that measured them, so a single result is a snapshot, not a verdict. Repeat the measurement, note the conditions, and look at the trend over weeks rather than one day's figure.

Anion Gap Calculator vs GFR Calculator

A creatinine clearance calculator answers a different question: it estimates kidney filtration from creatinine and age, while this tool uses sodium, chloride, and bicarbonate to sort an acidosis.. The two tools look similar because they share inputs, but they solve for different unknowns, and picking the wrong one is the most common source of confusion between them.

Use this Anion Gap when the quantity you need is the one named in the title above. Use the GFR Calculator when your unknown is the one it is named for instead. If a problem gives you the answer this page produces and asks for something else, that something else is usually the job of the companion tool.

In practice the two are used back to back: work out the first quantity here, then carry it into the second tool as an input. Keeping the chain in that order, and writing each intermediate answer down, stops small rounding slips from growing into a wrong final answer.

Common mistakes with a Anion Gap

The first mistake is forgetting the albumin correction, which can hide a real acidosis when albumin is low.

The second is using the wrong normal range, when some labs quote 3 to 11 and others 8 to 12, and the report's own range is the one that counts.

The third is treating a high gap as a diagnosis, when it only says an unmeasured acid is present and the cause still needs finding. A quick habit that catches all three: work one example by hand, compare it with the calculator, and only then trust the page for the rest of the set.

How to use this Anion Gap

Step one, enter sodium, chloride, and bicarbonate, all in mEq/L from the same lab report. Step two, check the units beside each box match the units in your measurement or lab report. Step three, read the main result at the top of the results box, then the supporting figures below it.

For the most accurate results, use the most precise inputs you have, and keep the same unit system all the way through: mixing centimetres with metres, or milligrams with grams, is the single biggest cause of answers that are out by a factor of ten or a hundred. Always read the albumin on the same report: a low albumin hides a high gap, and the corrected gap is 2.5 higher for every 1 g/dL below 4.0.

The calculator is free, works on a phone or a computer, and needs no sign-up. Everything runs in your browser, so your numbers never leave your device, and closing the page leaves nothing behind.

This calculator is an estimate for information only. It is not medical advice and cannot diagnose or treat anything. If a result worries you, talk to a clinician before acting on it.

Frequently Asked Questions

The formula is Anion gap = sodium - (chloride + bicarbonate). Blood must stay electrically neutral, so the positive ions and the negative ions must balance. Sodium is the main positive ion, and chloride and bicarbonate are the main measured negative ions. The gap between them is made up of unmeasured negative ions, mostly albumin and other proteins. When an acid such as lactate or ketoacids builds up, bicarbonate falls and the gap rises, which is why a high anion gap points to a specific kind of acidosis. Put the values in with matching units and the calculator applies the formula directly, with no hidden adjustments.

The usual range is about 8 to 12 mEq/L, though some labs quote 3 to 11 depending on how they measure the ions, so the range on the report itself is the one to use. A gap above 12 is high and suggests an unmeasured acid such as lactate or ketoacids, and a gap below 8 is low and often reflects low albumin.

The anion gap is Anion gap (mEq/L) 16 mEq/L; Category High . The calculation is 140 minus the sum of 100 and 24, which is 140 minus 124, giving 16 mEq/L, which is high and points to an unmeasured acid.

The common causes are lactate from shock or sepsis, ketoacids in diabetic ketoacidosis or starvation, kidney failure, and toxins such as methanol or ethylene glycol. The gap says an acid is present, but it does not say which one, so the next step is a lactate, ketones, kidney function, and a history.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.