Calculate the anion gap, albumin-corrected gap, and delta ratios from electrolyte and albumin results.
Laboratory values
Enter values from the same blood sample
Anion gap
Acid–base calculation
Calculated gaps and ratios
The calculated values will appear here
Copy sodium, chloride, bicarbonate, and albumin from the same laboratory panel.
Albumin-corrected anion gap AG + 2.5 × (4 − albumin in g/dL). Interpret with the laboratory reference interval and clinical context.corrected AG = Na − (Cl + HCO₃) + 2.5 × (4 − albumin g/dL)
Uncorrected anion gap Sodium − chloride − bicarbonate. This equation excludes potassium.
0 mEq/L
Delta gap Uncorrected gap minus the page’s fixed reference of 12 mEq/L.
0 mEq/L
Delta ratio Uncorrected delta gap divided by 24 − bicarbonate; undefined at bicarbonate 24.
—
Corrected delta gap Albumin-corrected gap minus 12 mEq/L. The reference cannot be edited.
0 mEq/L
Corrected delta ratio Corrected delta gap divided by 24 − bicarbonate, rounded to two decimals.
—
Pattern note Simplified label from the rounded corrected delta ratio. It is not a complete acid–base diagnosis.
—
Educational estimate only—not medical advice, a diagnosis, or a treatment instruction. Laboratory reference ranges and albumin-correction practices vary. Delta ratios are meaningful only in the appropriate acid–base context.
The basic gap subtracts measured chloride and bicarbonate from sodium; albumin correction is shown separately.
What Is the Serum Anion Gap?
The serum anion gap is sodium minus the sum of chloride and bicarbonate. It is a calculated difference between routinely measured ions, not an actual absence of electrical charge in blood. Clinicians use it as part of an acid–base assessment, particularly when evaluating metabolic acidosis.
This anion gap calculator shows the uncorrected gap, albumin-corrected gap, delta gaps and delta ratios. The featured answer is the albumin-corrected gap. It excludes potassium and uses fixed reference values of 12 for the gap, 24 for bicarbonate and 4 g/dL for albumin.
The Merck Manual’s acid–base reference explains the basic gap and the influence of albumin. Laboratory methods, pH, carbon dioxide and the clinical situation affect interpretation. This calculator cannot diagnose an acid–base disorder from four inputs alone.
How to Calculate an Albumin-Corrected Anion Gap
Enter sodium, chloride and bicarbonate from a consistent laboratory assessment.
Choose mEq/L or mmol/L for each electrolyte. These monovalent ions have the same numerical concentration in those units.
Enter albumin and select g/dL or g/L. The page divides g/L by 10 internally.
Check that bicarbonate and albumin have not been swapped and that decimal points match the report.
Calculate and read the featured corrected gap before reviewing the separate uncorrected and delta results.
Compare with the laboratory’s own reference interval and review the pattern note with the broader acid–base assessment.
Bicarbonate of exactly 24 makes both delta ratios undefined because their denominator is zero. The page still calculates the gaps. A missing ratio is not an error and does not mean the other results are normal.
Anion Gap and Delta Ratio Formulas
Let Na be sodium, Cl chloride, HCO₃ bicarbonate and Alb albumin in g/dL. All electrolyte differences use the same concentration unit. The calculator excludes potassium from the gap.
AG = Na − (Cl + HCO₃)
Corrected AG = AG + 2.5 × (4 − Alb)
Delta gap = AG − 12
Delta ratio = (AG − 12) ÷ (24 − HCO₃)
Corrected delta gap = corrected AG − 12
Corrected delta ratio = (corrected AG − 12) ÷ (24 − HCO₃)
Albumin in g/dL = albumin in g/L ÷ 10
The albumin adjustment adds 2.5 mEq/L for each 1 g/dL below 4. Above 4, the same equation reduces the corrected gap. This is an arithmetic adjustment, not a treatment target. Merck Manual describes the albumin-related change and delta-gap reasoning.
This implementation rounds AG and corrected AG to two decimals before deriving the corresponding delta values, then rounds the ratios to two decimals. Its pattern note uses the rounded corrected delta ratio. Both ratios are undefined when HCO₃ equals 24; they also require appropriate clinical context when the denominator is negative or close to zero.
Electrolyte, Albumin and Gap Variables
Sodium
Measured serum sodium; the positive ion used by this potassium-excluding equation.
Chloride
Measured serum chloride, subtracted together with bicarbonate.
Bicarbonate
Measured HCO₃ concentration; also determines the delta-ratio denominator.
Albumin
Blood protein concentration entered in g/dL or g/L, converted to g/dL for correction.
Albumin-corrected anion gap
Featured gap after applying the 2.5 × (4 − albumin) adjustment.
Uncorrected anion gap
Sodium minus chloride and bicarbonate, without albumin adjustment.
Delta gap and corrected delta gap
Each gap minus this page’s fixed reference of 12 mEq/L.
Delta ratios
Each delta gap divided by 24 minus bicarbonate. A zero denominator produces an undefined result.
Pattern note
A simplified label selected from the rounded corrected delta ratio, not a complete blood-gas interpretation.
Albumin-Corrected Anion Gap Example
Illustrative example. Use sodium 140, chloride 102 and bicarbonate 18 mEq/L, with albumin 3.2 g/dL. AG = 140 − (102 + 18) = 20 mEq/L.
Albumin correction adds 2.5 × (4 − 3.2) = 2 mEq/L, producing a corrected gap of 22 mEq/L. The bicarbonate difference is 24 − 18 = 6. The uncorrected delta ratio is (20 − 12) ÷ 6 = 1.33, and the corrected ratio is (22 − 12) ÷ 6 = 1.67.
Calculation check. Independent arithmetic and the calculator endpoint agree on these rounded figures. The example demonstrates the effect of albumin; it does not diagnose the cause of an abnormal result.
Illustrative electrolyte and albumin calculation
Output
Value
Uncorrected anion gap
20 mEq/L
Albumin correction
+2 mEq/L
Corrected anion gap
22 mEq/L
Delta gap / corrected delta gap
8 / 10 mEq/L
Delta ratio / corrected delta ratio
1.33 / 1.67
How Albumin and Bicarbonate Change the Results
Keep sodium 140, chloride 102 and bicarbonate 18 mEq/L fixed to isolate the albumin correction. Each example has an uncorrected AG of 20 mEq/L.
Original example: how albumin and bicarbonate change the results
Albumin
Corrected AG
Corrected delta ratio
4 g/dL
20 mEq/L
1.33
3.2 g/dL
22 mEq/L
1.67
2 g/dL
25 mEq/L
2.17
These hypothetical rows show the equation’s sensitivity, not a diagnosis for each albumin value. Changing bicarbonate also changes both the gap and the ratio denominator. The static diagram explains subtraction of measured ions; it does not visualize your blood chemistry.
Interpreting Anion Gap and Delta Ratios
Interpret the gap against the laboratory’s reference interval rather than assuming every laboratory uses 12 as its normal value. The calculator fixes 12 and 24 for the delta calculations; it has no field for a local normal gap or bicarbonate.
The page assigns its pattern note as follows: a corrected ratio below 0 receives a normal-gap pattern label; 0 through 0.4 receives a mixed-pattern label; above 0.4 through 2 receives a high-gap label; above 2 receives a high-gap with alkalosis label. These broad software bands simplify a much more detailed clinical assessment. They do not replace pH, carbon dioxide, compensation checks or evaluation for specific causes.
Ratios become especially unstable when bicarbonate is close to 24 and should not be read as a standalone diagnosis. Unexpected results, severe illness or possible poisoning require prompt medical assessment.
Common Anion Gap Mistakes
Entering albumin in g/L while selecting g/dL creates a large incorrect correction.
Adding potassium manually changes the equation and makes the fixed reference assumptions inconsistent.
Treating 12 mEq/L as every laboratory’s upper limit ignores local methods and reference intervals.
Calling an undefined ratio zero changes its meaning. At bicarbonate 24, division by zero is not defined.
Using the pattern note without pH, carbon dioxide and clinical context overstates this simplified calculation.
Anion Gap and Albumin Correction FAQs
What is the anion gap formula without potassium?
AG = sodium − (chloride + bicarbonate). This calculator uses that potassium-excluding equation.
Why correct anion gap for albumin?
Albumin contributes to unmeasured anions. Lower albumin can reduce the uncorrected gap, so this page also shows AG + 2.5 × (4 − albumin in g/dL).
Can I enter albumin in g/L?
Yes. Select g/L beside albumin. The calculator divides by 10 to obtain g/dL before applying its correction.
Why is the corrected gap the main result?
This page features the albumin-adjusted calculation and keeps the uncorrected gap in a separate card so you can compare them.
Why is my delta ratio undefined?
When bicarbonate equals 24, the denominator 24 − bicarbonate is zero. The gap values can still be calculated.
Does this calculator include potassium?
No. It has no potassium input and uses a sodium-only gap with a fixed normal-gap reference of 12 for its delta calculations.
Is an anion gap of 12 always normal?
No. Reference intervals depend on the laboratory and method. The number 12 is this page’s fixed delta-gap reference, not a universal clinical limit.
Can the pattern note diagnose metabolic acidosis?
No. It is a simplified label from a corrected delta ratio. Clinical assessment and other acid–base measurements are needed.
Sources and References
These references support the concepts and limits explained above. Worked figures were checked independently against this calculator’s formulas.