Skip to main content
Calcimator

Anion Gap Calculator

Calculate the serum anion gap and delta-delta ratio for metabolic acidosis workup and acid-base disorder classification.

About this calculator

The anion gap approximates the unmeasured anions in serum -- proteins, sulfates, phosphates, and organic acids -- by subtracting the routinely measured negative ions from the routinely measured positive ion: AG = Na+ - (Cl- + HCO3-). A normal gap is roughly 8-12 mEq/L; values above that suggest an unmeasured acid has accumulated (high anion gap metabolic acidosis, remembered by mnemonics like MUDPILES for methanol, uremia, diabetic ketoacidosis, and similar causes), while a normal-gap acidosis instead points toward bicarbonate loss with compensatory chloride retention. Because albumin is the single largest unmeasured anion, low albumin artificially lowers the gap and can mask a real high-gap acidosis -- the albumin-corrected anion gap adds back about 2.5 mEq/L for every 1 g/dL the albumin sits below its own normal value of 4.0 g/dL, a correction factor Figge and colleagues derived from measurements in critically ill patients and published in Critical Care Medicine in 1998.

The delta-delta ratio compares how far the anion gap has risen above normal to how far bicarbonate has fallen below normal; a ratio near 1 suggests a pure high-gap acidosis, while a ratio well above or below 1 suggests a second, mixed acid-base process is also present. None of these numbers replace a full acid-base workup with arterial blood gas and clinical context -- they narrow the differential, not close it.

Inputs

mEq/L

Normal Na⁺: 136–145 mEq/L; hyponatremia: <136; hypernatremia: >145 mEq/L

mEq/L

Normal Cl⁻: 98–106 mEq/L; hyperchloremia >106 mEq/L may indicate normal-AG acidosis

mEq/L

Normal HCO₃⁻: 22–29 mEq/L; metabolic acidosis: <22; metabolic alkalosis: >29 mEq/L

g/dL

Normal albumin: 3.5–5.0 g/dL; corrected AG = measured AG + 2.5 × (4.0 − albumin)

Results

Anion Gap

12mEq/L

Corrected AG (Albumin)

12mEq/L

Delta-Delta Ratio0
Classification1(1=Normal, 2=High AG, 3=Low AG)

Figures current as of 1998. Source: Figge J, Jabor A, Kazda A, Fencl V. Anion gap and hypoalbuminemia. Crit Care Med. 1998;26(11):1807-1810.

How to Use This Calculator
  1. Enter serum sodium (Na⁺), chloride (Cl⁻), and bicarbonate (HCO₃⁻) in mEq/L.
  2. Set albumin level (g/dL) for albumin-corrected anion gap calculation.
  3. Review Anion Gap and corrected anion gap — normal is 8–12 mEq/L (or 3–11 with albumin correction).
  4. Elevated AG > 12 triggers MUDPILES differential (methanol, uremia, DKA, etc.).

How the result changes with Sodium (Na⁺)

Sodium (Na⁺)Anion GapCorrected AG (Albumin)
100-28mEq/L-28mEq/L
105-23mEq/L-23mEq/L
20072mEq/L72mEq/L

What each input means

Sodium (Na⁺)
Serum sodium concentration in mEq/L. AG = Na⁺ − (Cl⁻ + HCO₃⁻). Normal range 136–145 mEq/L.
Chloride (Cl⁻)
Serum chloride concentration in mEq/L. Normal range 98–106 mEq/L. Hyperchloremia (>106) can be seen with normal anion gap metabolic acidosis.
Bicarbonate (HCO₃⁻)
Serum bicarbonate (CO₂) concentration in mEq/L. Normal range 22–29 mEq/L. Low HCO₃⁻ (<22) indicates metabolic acidosis.
Albumin
Serum albumin for corrected anion gap calculation. Hypoalbuminemia reduces the AG by ~2.5 mEq/L per 1 g/dL fall in albumin. Normal range 3.5–5.0 g/dL.

How this is calculated

Worked example, using the default values

  1. Identify Input Parameters
    4 parameters
    Sodium (Na⁺) = 140, Chloride (Cl⁻) = 104, Bicarbonate (HCO₃⁻) = 24, Albumin = 4 = 4 input(s) provided
  2. Calculate Anion Gap
    Anion Gap
    12 = 12
  3. Calculate Corrected AG
    Corrected AG
    12 = 12
  4. Calculate Delta-Delta Ratio
    Delta-Delta Ratio
    0 = 0
  5. Calculate Classification
    Classification
    1 = 1

Figures and sources

Engine last updated . Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.

Frequently Asked Questions

Why does sodium move the anion gap more than chloride or bicarbonate do?

All three inputs carry the same weight of 1 in the formula (AG = Na+ - Cl- - HCO3-), but sodium's normal reference value is roughly 30-40% higher than chloride's and several times higher than bicarbonate's, so an equivalent percentage swing in sodium represents a larger absolute mEq/L change and moves the calculated gap the most in practice, even though no single term is mathematically weighted more than another.

Why doesn't albumin change the plain anion gap, only the corrected version?

The plain anion gap formula (Na+ minus chloride plus bicarbonate) has no albumin term at all -- albumin only enters through the separate correction, which adds roughly 2.5 mEq/L for every 1 g/dL the measured albumin sits below the normal reference of 4.0 g/dL. That correction exists because albumin is the largest unmeasured anion in serum, so a low albumin from malnutrition or critical illness can mask a genuinely elevated gap if only the uncorrected number is read.

What does a high anion gap actually suggest is happening?

A gap above the roughly 8-12 mEq/L normal range means some acid has accumulated in the blood that isn't being captured by the routine chloride and bicarbonate measurements -- common causes include diabetic ketoacidosis, lactic acidosis, uremia from kidney failure, and certain toxic ingestions like methanol or ethylene glycol. A normal gap with acidosis instead points toward bicarbonate being lost directly, such as from severe diarrhea or a renal tubular disorder.

What is the delta-delta ratio used for?

It compares the rise in the anion gap above its own normal value to the fall in bicarbonate below its own normal value. A ratio near 1 is consistent with a single, uncomplicated high-gap acidosis, while a ratio noticeably higher or lower than 1 suggests a second, coexisting acid-base disturbance -- such as a concurrent metabolic alkalosis or a mixed high- and normal-gap acidosis -- that the anion gap alone would not reveal.

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Medical & Clinical.