Formula: Anion Gap & Delta Ratio Reference Equation
- serumSodiumMeqL: Serum Sodium (mEq/L)
- serumChlorideMeqL: Serum Chloride (mEq/L)
- serumBicarbonateMeqL: Serum Bicarbonate (mEq/L)
- serumAlbuminGdl: Serum Albumin (g/dL)
Compute standard Anion Gap, hypoalbuminemia correction, and Delta Ratio.
No. The page is an educational calculator that reproduces textbook arithmetic. Decisions about a real person depend on the full clinical picture, the blood gas, the trend over time and the reference ranges of the lab that ran the sample. Use the tool to understand or double-check the maths, and leave interpretation and treatment to the clinician responsible for the patient.
Because low albumin is common in unwell people and it pulls the measured gap down. Showing the corrected value first stops a raised gap being missed when albumin is low. The uncorrected gap is still listed underneath, 22 mEq/L for the default panel, so you can compare the two and see how much of the headline came from the albumin adjustment.
The corrected one. The formula subtracts 12 from the albumin-corrected gap and divides by 24 minus bicarbonate. With the defaults that is 12 divided by 8, giving 1.5. Some sources calculate it from the uncorrected gap instead, which would give 10 divided by 8, or 1.25. Check which version a textbook or paper uses before comparing figures.
Almost always a typing mistake. The input ranges catch the wildest entries, but a negative gap can still appear when chloride plus bicarbonate is larger than sodium, which is very rare in real blood. Re-check each value against the report and confirm all four numbers come from the same sample. If they genuinely give a negative gap, that is a question for the laboratory.
The delta gap is how far the corrected gap sits above the assumed normal of 12 mEq/L. A corrected gap of 24 is therefore 12 above normal. It is a measure of the excess, not the total, and it is the number that gets divided by the bicarbonate deficit to form the delta ratio shown on the last line.
It is a widely taught approximation, not a precise constant. It comes from the average negative charge albumin carries in plasma, and the true figure varies with pH and between people. The calculator applies 2.5 per g/dL every time. For learning purposes that is fine, but small differences between corrected gaps should not be over-read.
Enter 3.5. The field expects grams per decilitre, and there are ten decilitres in a litre, so divide a g/L value by ten. If you typed 35, the calculator would reject it, because albumin must be above 0 and no more than 7 g/dL. That message is usually the first sign of this unit slip, which is the most common one on the page.
Usually because of the baselines. This tool fixes the normal gap at 12 and normal bicarbonate at 24. Some books use other values, some include potassium in the gap, and some compute the delta ratio without the albumin correction. Each of those choices shifts the result. Work the example by hand using your book's numbers to see where the difference comes from.
Because bicarbonate is 24 mEq/L or higher. The ratio divides by the fall in bicarbonate below 24, so when there is no fall there is nothing meaningful to divide by. The calculator then leaves the ratio line out and the summary says it does not apply. The normal gap preset, with bicarbonate at 24, shows exactly this behaviour.
Both the gap and the ratio change. Dropping bicarbonate from 16 to 10 with everything else at the defaults raises the corrected gap to 30 mEq/L, because less bicarbonate is subtracted from sodium. The delta ratio becomes 1.29, since the gap rose by 18 while bicarbonate fell by 14. Try it in the calculator to see each line update.
The calculator uses the most common form of the gap, which leaves potassium out, and it does not try to identify which unmeasured anion is responsible. Lactate, ketones and other acids are what a raised gap may hint at, but measuring them is a separate laboratory test. The tool only does the subtraction and the two follow-on ratios.
This calculator is for learning and for checking arithmetic. It does not diagnose anyone, and it should never be the reason a real patient is treated one way or another. Electrolyte results are read by the clinician caring for that person, alongside their own laboratory's reference ranges, the blood gas, the history and the examination.
With that said, the arithmetic behind the anion gap is simple and worth understanding. Students meet it in physiology, nurses see it on chemistry panels, and anyone reading a case report runs into it. The tool takes four numbers from a basic metabolic panel plus albumin and returns three things: the uncorrected gap, the gap corrected for albumin, and the delta ratio that compares how far the gap rose with how far bicarbonate fell.
Everything it shows comes from three short formulas. Nothing is looked up, nothing is adjusted for age or for a particular analyser, and there is no interpretation text telling you what the numbers mean. That last part is deliberate. The meaning depends on context the calculator cannot see.
The default inputs are sodium 140 mEq/L, chloride 102 mEq/L, bicarbonate 16 mEq/L and albumin 3.2 g/dL. Here is each step.
First the plain gap. Add chloride and bicarbonate together, then subtract the total from sodium. With 102 and 16 on one side and 140 on the other, 22 is left over. The result panel shows this as the Uncorrected Anion Gap of 22 mEq/L. A quick sense check: the measured anions should account for most of the sodium, and here they cover all but 22 of it.
Next the albumin correction. Albumin is 0.8 g/dL below the reference value of 4.0 built into the formula. Multiply 0.8 by 2.5 to get 2, and add it to the gap. That gives the headline figure, an Albumin-Corrected Serum Anion Gap of 24 mEq/L.
Then the delta gap, which is simply the corrected gap minus 12. Here that is 12 mEq/L. The 12 is the assumed normal gap the formula uses as its baseline.
Finally the delta ratio. Bicarbonate is 16, so it has fallen 8 below the assumed normal of 24. Divide the delta gap of 12 by that 8 and you get 1.5, the last line in the result. If you can reproduce these four numbers on paper, you understand everything the calculator is doing.
The anion gap is not a real ion. It is the difference between the cations and anions that a routine panel measures, and it exists because blood also holds anions nobody bothers to measure on a standard panel. Albumin is the biggest of those. It carries a negative charge at body pH, so when albumin falls the gap falls with it, even if nothing else has changed.
That is the problem the correction solves. A patient with low albumin and a genuine build-up of unmeasured acid can show a gap that looks only mildly raised, because the missing albumin cancels some of the rise. The correction adds back 2.5 mEq/L for every 1 g/dL of albumin below 4.0, which is the Figge adjustment named on this page.
You can see the size of the effect by changing only the albumin field. At 4.0 g/dL the corrected and uncorrected gaps are the same, 22 mEq/L, and the delta ratio drops to 1.25. At 2.0 g/dL the corrected gap climbs to 27 mEq/L and the delta ratio to 1.88. Same sodium, same chloride, same bicarbonate. Only the albumin moved.
The correction also works in the other direction. Enter 4.5 g/dL and the corrected gap falls to 20.75 mEq/L, below the uncorrected 22. That follows directly from the formula, though in practice a high albumin is far less common than a low one.
The third preset is a deeper acidosis: sodium 138, chloride 100, bicarbonate 10 and albumin 3.5 g/dL. The plain gap is 138 minus the sum of 100 and 10, which leaves 28 mEq/L.
Albumin is half a gram below 4.0, so the correction adds 1.25, giving a corrected gap of 29.25 mEq/L. The delta gap is 17.25 mEq/L. Bicarbonate has fallen 14 below 24, and 17.25 divided by 14 gives a delta ratio of 1.23.
Comparing it with the default is instructive. The gap is larger and bicarbonate much lower, yet the ratio is a little smaller, because both moved by similar amounts. A bigger gap does not by itself mean a bigger ratio.
The delta ratio asks a single question. When the gap went up, did bicarbonate come down by a matching amount?
In a simple high anion gap acidosis, each unmeasured acid anion that appears uses up roughly one bicarbonate. The rise in the gap and the fall in bicarbonate should be of similar size, and the ratio lands around 1 or a little above it. The default result of 1.5 sits in that zone.
If the ratio is well below 1, bicarbonate has dropped more than the gap explains, and teaching texts point to a second process that lowers bicarbonate without raising the gap. If it is well above 2, bicarbonate is higher than the gap would predict, which teaching texts link to something adding bicarbonate at the same time. The exact cut-offs differ between textbooks and between institutions, which is one more reason the calculator prints a number and leaves the reading to a clinician.
You can watch the ratio move by changing chloride alone. Raising it by 8 mEq/L above the default shrinks the corrected gap to 16 mEq/L and the delta ratio to 0.5, because the same fall in bicarbonate is now mostly balanced by extra chloride rather than by unmeasured acid. That shift is in the direction teaching texts associate with a normal gap, or hyperchloraemic, acidosis.
Two numbers in the formulas are not inputs. The normal gap is fixed at 12 mEq/L and the normal bicarbonate at 24 mEq/L. Both are common teaching values, but they are conventions, not laws.
Laboratories set their own reference intervals, and different analysers report different normal gaps. A lab whose normal gap is lower than 12 would give a larger delta gap for the same patient than this calculator shows. Because you cannot change the baselines here, treat the delta gap and delta ratio as a worked example using textbook values. If your lab report lists a different normal range, the hand calculation in the earlier section shows you exactly where to swap it in.
The formula also leaves out potassium. Some versions of the anion gap add it to sodium, which gives a bigger number with a different normal range. Mixing the two versions is a common source of confusion when comparing a result here with one in a textbook.
The delta ratio divides by 24 minus bicarbonate. As bicarbonate approaches 24, that denominator shrinks toward zero and the ratio swings to large, unstable values that carry no meaning.
The calculator handles this by showing the ratio only when bicarbonate is below 24 mEq/L. At 24 or above, the ratio line is dropped and the summary sentence says the delta ratio does not apply. The normal gap preset shows this: sodium 140, chloride 104, bicarbonate 24 and albumin 4 give a gap of 12 mEq/L, a delta gap of 0, and no ratio at all.
Just below the threshold the ratio still needs care. With bicarbonate at 22 and the other defaults, the denominator is only 2 and the ratio reads 3. A small error in a single lab value moves a ratio like that a long way, so it is most informative when bicarbonate is clearly low, as in the default of 16 or the wide gap preset of 10.
It is tempting to look only at the headline number. The page is more useful when you read all three lines as a set, because each answers a different question.
The uncorrected gap tells you what the raw panel says. The corrected gap tells you what the panel would probably say if albumin were normal. The difference between them, 2 mEq/L for the default, is purely the albumin effect, and when it is large it is a reminder that the raw report may be understating things.
The delta gap and delta ratio then ask whether the change in bicarbonate fits the change in the gap. A raised corrected gap with a ratio near 1 or a little above tells one consistent story. A raised gap with a ratio far from that range tells a messier one, where more than one thing may be going on.
A useful exercise is to change one input at a time and predict the result before you press anything. Lower albumin and only the corrected lines should move. Raise chloride and the gap shrinks while bicarbonate stays put, so the ratio falls. Lower bicarbonate and both the gap and the ratio shift together. If your prediction and the screen disagree, one of the inputs is probably not what you think it is.
Most wrong answers here come from the inputs, not the formula. A few habits help.
Check the units. Sodium, chloride and bicarbonate go in as mEq/L, which for these single-charge ions is numerically the same as mmol/L. Albumin must be in g/dL. Many labs outside the United States report albumin in g/L, so a value like 32 needs to be entered as 3.2. The calculator accepts albumin only above 0 and up to 7 g/dL, so a g/L figure typed by mistake is rejected with a message rather than turned into a nonsense gap.
Use the bicarbonate from the chemistry panel, usually reported as total CO2, rather than the calculated bicarbonate on a blood gas, unless you are deliberately comparing the two. They are close but not always identical, and the gap is defined on the panel value.
The other fields have limits too. Sodium must be at least 100 mEq/L and below the upper bound named in the error message, chloride between 60 and 140, and bicarbonate above 0 and up to 60. Values outside those ranges return an error instead of a result. Inside them, take every value from the same blood draw, because a sodium from this morning and a chloride from yesterday do not make a gap.