Acidosis Calculator
Enter sodium, chloride, and bicarbonate to compute the anion gap, delta gap, and delta ratio for a metabolic acidosis workup. Educational tool for study purposes — not medical advice.
0 mEq/L
anion gap
When blood gas analysis reveals a metabolic acidosis — low pH with low bicarbonate — the next question is always: what kind? The anion gap is the classic first step of that workup. Computed from three routine electrolyte values (sodium, chloride, and bicarbonate), it separates high anion gap acidosis from normal anion gap acidosis, and the delta gap and delta ratio then reveal whether a second acid-base disorder is hiding underneath. The Acidosis Calculator above performs all three calculations from your entries and explains what each result means. It is designed as the companion to ABG interpretation — where an ABG tool classifies the disorder, this tool works it up — and it is strictly educational, for study purposes, not medical advice.
What the Anion Gap Is
Blood must stay electrically neutral: the total positive charges (cations) always equal the total negative charges (anions). Routine labs measure the main cation, sodium, and the main anions, chloride and bicarbonate — but not every ion. The anion gap is the difference between the measured cation and the measured anions, and it represents the unmeasured anions floating in the blood, such as proteins, phosphates, and sulfates. In metabolic acidosis, a high anion gap means unmeasured acids (like lactate or ketoacids) have accumulated and consumed bicarbonate; a normal anion gap means bicarbonate was lost directly (for example through the gut or kidneys) and chloride rose to take its place. That single distinction reorganizes the entire list of possible causes, which is why the anion gap is calculated first.
How to Use the Calculator
1. Enter sodium (Na⁺) in mEq/L — for example 140.
2. Enter chloride (Cl⁻) in mEq/L — for example 100.
3. Enter bicarbonate (HCO3⁻) in mEq/L — for example 12.
4. Click Calculate to see the anion gap, its classification, the delta gap, the delta ratio, and the workup interpretation. Click Reset to start over.
If any value is missing, outside plausible limits, or produces a negative gap, an error message appears and no result is shown — a negative anion gap almost always means a data-entry or laboratory error.
The Formulas and What They Mean
Anion gap: AG = Na⁺ − (Cl⁻ + HCO3⁻). The normal range is 8 to 12 mEq/L. Above 12 is a high anion gap metabolic acidosis; 8 to 12 with a low bicarbonate is a normal anion gap (hyperchloremic) metabolic acidosis; below 8 is unusual and usually a laboratory artifact.
Delta gap: Δgap = (AG − 12) − (24 − HCO3). It compares how far the anion gap rose above normal with how far the bicarbonate fell below normal. Near zero (between −6 and +6) means a pure high-gap acidosis: every extra unmeasured anion consumed one bicarbonate. Above +6 suggests a concurrent metabolic alkalosis is holding bicarbonate up; below −6 suggests a concurrent normal-gap acidosis is dragging bicarbonate down further.
Delta ratio: Δratio = (AG − 12) ÷ (24 − HCO3). This is the ratio version of the same comparison, and it is interpreted in bands: below 0.4 points to a concurrent normal-gap component, 0.4 to 0.8 to combined high- and normal-gap acidosis, 0.8 to 2.0 to a pure high-gap acidosis, and above 2.0 to a high-gap acidosis plus a concurrent metabolic alkalosis. The delta calculations are only meaningful when the anion gap is actually high and bicarbonate is below 24 — otherwise the calculator marks them not applicable.
Worked Examples With Full Arithmetic
Example 1 — pure high anion gap acidosis. Na 140, Cl 100, HCO3 12. Anion gap = 140 − (100 + 12) = 140 − 112 = 28 mEq/L — high. Delta gap = (28 − 12) − (24 − 12) = 16 − 12 = 4 mEq/L, within ±6. Delta ratio = 16 ÷ 12 = 1.33, inside the 0.8–2.0 band. The calculator reports “High anion gap metabolic acidosis” with “Pure high anion gap acidosis.”
Example 2 — high gap plus a normal-gap component. Na 140, Cl 112, HCO3 14. Anion gap = 140 − (112 + 14) = 140 − 126 = 14 mEq/L — high, but only mildly. Delta gap = (14 − 12) − (24 − 14) = 2 − 10 = −8 mEq/L, below −6. Delta ratio = 2 ÷ 10 = 0.2, below 0.4. The bicarbonate fell much further than the gap rose, so the calculator reports “High anion gap metabolic acidosis” with “High anion gap acidosis with a concurrent normal-gap component.”
Example 3 — high gap plus metabolic alkalosis. Na 140, Cl 95, HCO3 20. Anion gap = 140 − (95 + 20) = 140 − 115 = 25 mEq/L — high. Delta gap = (25 − 12) − (24 − 20) = 13 − 4 = 9 mEq/L, above +6. Delta ratio = 13 ÷ 4 = 3.25, above 2.0. The gap rose far more than bicarbonate fell, so the calculator reports “High anion gap metabolic acidosis” with “High anion gap acidosis plus concurrent metabolic alkalosis.”
Example 4 — normal anion gap acidosis. Na 140, Cl 115, HCO3 15. Anion gap = 140 − (115 + 15) = 140 − 130 = 10 mEq/L — within the normal 8–12 range, while bicarbonate is low. The calculator reports “Normal anion gap (hyperchloremic) metabolic acidosis” and marks the delta calculations not applicable, since there is no high gap to analyze.
Understanding Your Results
The headline is the anion gap itself in mEq/L. The “classification” row sorts it into high, normal, or low, each with a one-line meaning. The “delta gap” and “delta ratio” rows show the two follow-up numbers — or “not applicable” when the gap is not high — and the “workup interpretation” row combines them into a plain-English conclusion: pure high-gap acidosis, a combined picture, or a hidden second disorder. The formula box shows every substitution so you can verify the arithmetic by hand. Remember that these numbers describe the chemistry, not the cause: a high gap tells you unmeasured acids are present, but identifying them (lactate, ketoacids, toxins, kidney failure) needs the clinical context.
Common Causes Students Should Know
For study purposes, it helps to attach the classic cause lists to the two categories. High anion gap metabolic acidosis is traditionally remembered with the mnemonic MUDPILES: methanol, uremia (kidney failure), diabetic ketoacidosis, propylene glycol, infection/ischemia causing lactate, ethylene glycol, and salicylates. Normal anion gap metabolic acidosis comes from direct bicarbonate loss or impaired handling: severe diarrhea, certain kidney tubular disorders, and some medications. A low anion gap is rare in real disease and most often a laboratory issue — for instance, very low albumin, since albumin is itself an unmeasured anion (clinicians sometimes “correct” the gap upward by 2.5 for each 1 g/dL that albumin sits below 4; this calculator uses the uncorrected gap). These lists are starting points for study, not diagnostic checklists.
Common Mistakes to Avoid
The most frequent mistake is unit confusion — the formula only works when all three values are in mEq/L, which is the standard reporting unit, so double-check any lab that reports differently. Next is forgetting that the delta gap and delta ratio are meaningless without a high anion gap; applying them to a normal gap produces nonsense. Students also mix up the direction of the delta gap: a positive delta gap (above +6) means bicarbonate is higher than the gap alone explains, pointing to a concurrent metabolic alkalosis, while a negative one (below −6) points to an added normal-gap acidosis. Another error is ignoring albumin: a low albumin artificially lowers the gap and can hide a high-gap acidosis. Finally, treat a negative calculated gap as what it almost always is — a typo or a lab error — not a physiological finding.
Frequently Asked Questions
1. What is the anion gap?
It is the difference between measured cations and measured anions in the blood: Na⁺ − (Cl⁻ + HCO3⁻). It estimates the unmeasured anions, and in acidosis it reveals whether hidden acids are present.
2. What is a normal anion gap?
8 to 12 mEq/L. Values above 12 indicate a high anion gap metabolic acidosis; values below 8 are unusual and usually reflect a laboratory issue.
3. What causes a high anion gap acidosis?
Accumulation of unmeasured acids — classically remembered as MUDPILES: methanol, uremia, diabetic ketoacidosis, propylene glycol, lactate from ischemia or infection, ethylene glycol, and salicylates.
4. What causes a normal anion gap acidosis?
Direct loss of bicarbonate or impaired acid handling — for example severe diarrhea, certain kidney tubular disorders, or some medications — with chloride rising to fill the electrical gap.
5. What is the delta gap?
It compares the rise in the anion gap above normal with the fall in bicarbonate below normal: (AG − 12) − (24 − HCO3). A value far from zero reveals a second acid-base disorder hiding behind the first.
6. What is the delta ratio?
The ratio version of the delta gap: (AG − 12) ÷ (24 − HCO3). Bands below 0.4, 0.4–0.8, 0.8–2.0, and above 2.0 distinguish pure from mixed high-gap pictures.
7. Why do I need sodium, chloride, and bicarbonate?
Those are the three measured ions in the formula: sodium is the main measured cation, while chloride and bicarbonate are the main measured anions. All three are needed to compute the gap.
8. What if my anion gap comes out negative?
Recheck the entries — a negative gap almost always means a typo or a laboratory error, not a real physiological state. The calculator treats it as an error for this reason.
9. Does low albumin affect the anion gap?
Yes. Albumin is an unmeasured anion, so low albumin lowers the gap and can mask a high-gap acidosis. Clinicians correct by adding 2.5 for each 1 g/dL of albumin below 4; this calculator uses the uncorrected gap.
10. Is a normal anion gap always reassuring?
No. A normal-gap metabolic acidosis is still an acidosis — it just has a different set of causes (bicarbonate loss rather than acid accumulation) and needs its own workup.
11. Can the anion gap be high without acidosis?
Yes, if bicarbonate is not low — for example when a metabolic alkalosis coexists with the high-gap process, holding bicarbonate up. The delta gap and ratio are built to catch exactly this.
12. How does this relate to the ABG calculator?
ABG interpretation identifies that a metabolic acidosis exists; the anion gap workup is the next step, sorting it into high-gap versus normal-gap and checking for hidden second disorders.
13. Is this calculator medical advice?
No. It is an educational tool for learning the workup steps. Never use it to diagnose or treat a real patient; always confirm with a qualified clinician.
14. What units does the calculator use?
Milliequivalents per liter (mEq/L) for all three inputs and all results — the standard unit for these electrolytes on most lab reports.
15. Where can students learn more?
Standard physiology and clinical textbooks cover the anion gap, delta gap, and delta ratio in their acid-base chapters, usually with practice cases for building pattern recognition.
Final Thoughts
The Acidosis Calculator turns three electrolyte numbers into the full metabolic acidosis workup: the anion gap sorts high-gap from normal-gap, and the delta gap and delta ratio check whether a second disorder is hiding underneath. Learn the three formulas, practice the worked examples by hand until the arithmetic is automatic, and remember what the tool cannot do — name the actual acid or treat the patient. For study, it is a sharp drill partner; for real cases, the clinician always has the final word.