Anion Gap Calculator

Free anion gap calculator with albumin correction, delta-delta ratio, and urine AG. Supports standard and 4-ion formulas with instant clinical interpretation.

mEq/L
mEq/L
mEq/L

Use 4-ion formula

Correct for hypoalbuminemia

Serum Anion Gap

12.0mEq/L

Normal(Normal: 812)
Anion Gap Range12.0 mEq/L
-108122040

Clinical Interpretation

What your anion gap value means clinically

Normal Anion Gap

No evidence of anion-gap metabolic acidosis. If metabolic acidosis is present on ABG, consider non-anion-gap (hyperchloremic) causes.

If acidosis present, consider

DiarrheaRTA (Types 1, 2, 4)Saline infusionAcetazolamideUreteral diversion

Next step: If acidosis is present, use the Urine Anion Gap to differentiate GI from renal causes.

Formula Used

Step-by-step calculation with your values

AG = Na⁺ − (Cl⁻ + HCO₃⁻) = 140 − (104 + 24) = 12

This calculator provides estimates for educational purposes only. It is not a substitute for professional medical advice, diagnosis, or treatment. Always consult a qualified healthcare provider for interpretation of your results.

What Is the Anion Gap?

Understanding the electrolyte balance in your blood

The anion gap (AG) measures the difference between positively charged ions (cations) and negatively charged ions (anions) in blood serum. By the principle of electroneutrality, total cations must equal total anions — the AG represents the unmeasured anions not captured in routine lab panels.

Albumin~60% of normal AG
PhosphateInorganic PO₄
SulfateFrom protein metabolism
Organic AcidsLactate, ketoacids, etc.
Why calculate the anion gap? It is the single most important screening test in the workup of metabolic acidosis. An elevated AG points toward specific life-threatening conditions (DKA, lactic acidosis, toxic ingestion) that require urgent treatment. A normal AG with acidosis directs the workup toward different causes (diarrhea, renal tubular acidosis).

Normal electrolyte reference ranges:

Sodium (Na⁺)136–145 mEq/L
Chloride (Cl⁻)98–106 mEq/L
Bicarbonate (HCO₃⁻)22–29 mEq/L
Potassium (K⁺)3.5–5.0 mEq/L
Albumin3.5–5.5 g/dL

How to Use This Calculator

5 steps to a complete acid-base analysis

1

Choose Calculation Type

Select Serum AG for standard acid-base workup, or Urine AG to evaluate the renal response in non-anion-gap metabolic acidosis.

2

Enter Electrolyte Values

Input sodium, chloride, and bicarbonate from your BMP/CMP results. Values are in mEq/L (same as mmol/L for these electrolytes).

3

Enable Optional Corrections

Toggle Include K⁺ for the 4-ion formula (used by some institutions). Toggle Albumin Correction for ICU patients with hypoalbuminemia.

4

Review Results & Interpretation

See the AG value, severity classification on the visual scale bar, and detailed clinical interpretation. The formula with your values is shown step-by-step.

5

Check Delta-Delta Ratio

For elevated AG, the delta-delta ratio automatically appears to identify mixed acid-base disorders — the key to a complete workup.

Tip: Enable albumin correction for any ICU patient or anyone with suspected hypoalbuminemia. A "normal" AG in a patient with albumin of 2.0 g/dL is actually elevated by 5 mEq/L once corrected — this catches 10–15% of missed acidoses.

Formulas & Calculations

All 5 calculations supported by this tool

Standard Anion Gap

AG = Na⁺ − (Cl⁻ + HCO₃⁻)

Normal: 8–12 mEq/L  |  Most widely used  |  From BMP/CMP

With K⁺ (4-Ion)

(Na⁺ + K⁺) − (Cl⁻ + HCO₃⁻)

Normal: 10–20 mEq/L

Albumin-Corrected

AG + 2.5 × (4.0 − Albumin)

Per Figge et al. 1998

Delta-Delta Ratio

(AG − 12) / (24 − HCO₃⁻)

Mixed disorder detection

Urine Anion Gap

Na⁺ + K⁺ − Cl⁻ (urine)

GI vs. renal cause

References: Emmett M, Narins RG. Medicine 1977;56:38-54  |  Figge J et al. Crit Care Med 1998;26:1807-1810  |  Kraut JA, Madias NE. NEJM 2014;371:1434-1445

Delta-Delta Ratio Interpretation

Identifying mixed acid-base disorders

RatioInterpretation
< 0.4
Pure Non-AG Acidosis
0.4 – 1.0
Mixed AGMA + NAGMA
1.0 – 2.0
Pure AG Acidosis
> 2.0
AGMA + Met. Alkalosis

Worked Example: DKA with vomiting

Na⁺=140, Cl⁻=100, HCO₃⁻=15, Albumin=4.0 g/dL

AG = 140 − (100 + 15) = 25 mEq/L (elevated)

Δ/Δ = (25 − 12) / (24 − 15) = 13/9 = 1.44 → Pure AGMA

If HCO₃⁻ were 20 instead: Δ/Δ = 13/4 = 3.25 → AGMA + metabolic alkalosis (from vomiting)

Causes of Elevated Anion Gap (MUDPILES)

The classic mnemonic for high AG metabolic acidosis

M
MethanolToxic alcohol → formic acid
U
UremiaRenal failure → organic acids
D
DKAKetoacids (β-hydroxybutyrate)
P
Propylene GlycolIV solvent → lactic acid
I
INH / IronIsoniazid or iron poisoning
L
Lactic AcidosisType A (hypoxia) or B (meds)
E
Ethylene GlycolToxic alcohol → oxalic acid
S
SalicylatesAspirin OD → mixed disorder
AG > 30 Rule: An anion gap greater than 30 mEq/L virtually always indicates metabolic acidosis, regardless of the pH or bicarbonate level (Oh & Carroll, 1977). The two most common causes are lactic acidosis and diabetic ketoacidosis.

Causes of Low Anion Gap (< 8 mEq/L):

Hypoalbuminemia

Most common cause — each 1 g/dL drop lowers AG by ~2.5 mEq/L

Multiple Myeloma

IgG paraprotein acts as an unmeasured cation, lowering the gap

Bromide / Iodide

Falsely elevates measured Cl⁻ on some analyzers, lowering AG

Lithium Toxicity

Unmeasured cation (Li⁺) displaces Na⁺ in the calculation

Urine Anion Gap: When & Why

Differentiating GI from renal causes of NAGMA

When the serum anion gap is normal but metabolic acidosis is present (non-AG metabolic acidosis, NAGMA), the next question is: are the kidneys responding appropriately? The urine anion gap answers this by estimating renal ammonium (NH₄⁺) excretion.

Negative UAG

< 0 mEq/L

Extrarenal cause

Diarrhea, GI fistula, external drainage

Positive UAG

> 0 mEq/L

Renal cause (RTA)

Type 1 (distal), Type 4 (hyperkalemic)

Reference: Batlle DC, Hizon M, Cohen E, et al. The Use of the Urinary Anion Gap in the Diagnosis of Hyperchloremic Metabolic Acidosis. NEJM 1988;318:594-599.

Clinical Pearls & Common Mistakes

Practical tips for accurate interpretation

Always correct for albumin in ICU

Hypoalbuminemia is present in 40–60% of ICU patients. A 'normal' AG of 10 in a patient with albumin of 2.0 g/dL is actually 15 once corrected — potentially masking significant acidosis.

CO₂ ≈ HCO₃⁻ on a BMP

The 'CO₂' on a basic metabolic panel represents total CO₂ (dissolved CO₂ + HCO₃⁻). It's ~1–2 mEq/L higher than true bicarbonate, but the difference is clinically negligible for AG calculation.

AG > 20 requires explanation

While the normal range extends to 12 mEq/L, an AG consistently above 20 almost always indicates a clinically significant AGMA — even if the pH and HCO₃⁻ appear 'compensated'. Always investigate.

Use the stepwise approach

First: check AG. If elevated → check delta-delta for mixed disorders. If normal AG with acidosis → check urine AG for GI vs. renal cause. This systematic approach ensures no diagnosis is missed.

Modern analyzers may shift the range

Ion-selective electrode (ISE) analyzers measure chloride ~3–5 mEq/L higher than older flame photometry, which can lower the measured AG. Some labs report a normal range as low as 3–11 mEq/L. This calculator uses the widely cited 8–12 mEq/L reference — always check your own lab's reported range.

Medical disclaimer: This calculator is an educational tool based on published medical formulas (Emmett 1977, Figge 1998, Kraut 2014, Batlle 1988). It is not a substitute for professional medical advice, diagnosis, or treatment. Always consult a qualified healthcare provider for interpretation of acid-base disturbances and treatment decisions.

Frequently Asked Questions

Common questions and detailed answers

Embed Anion Gap Calculator

Add this calculator to your website or blog for free.