Anion Gap Calculator
Calculate serum anion gap from sodium, chloride, and bicarbonate. Optional albumin correction, delta gap analysis, HAGMA interpretation, and exportable results.
Enter your details — results appear below after you calculate.
Electrolytes (basic metabolic panel)
Typical reference: 135–145 mEq/L
Typical reference: 96–106 mEq/L
Typical reference: 22–28 mEq/L (CO₂ on BMP)
Optional albumin correction
How this anion gap calculator works
This tool computes the serum anion gap: AG = Na⁺ − (Cl⁻ + HCO₃⁻) in mEq/L using values from your basic metabolic panel. Normal range is typically 8–12 mEq/L.
Enter sodium, chloride, and bicarbonate exactly as shown on your lab report. Optionally enable albumin correction: AG_corr = AG + 2.5 × (4.0 − albumin g/dL) when hypoalbuminemia may mask an elevated gap.
Results include anion gap category, delta gap and delta ratio when elevated, health score, and clinical recommendations. Pair with ABG/VBG and lactate for complete acid-base assessment. Scroll below for detailed articles and FAQs.
Anion Gap Calculator – Serum Anion Gap from Electrolytes
The serum anion gap is a fundamental acid-base tool derived from a basic metabolic panel. It reflects unmeasured anions in blood and helps classify metabolic acidosis. Our calculator computes Anion Gap = Na⁺ − (Cl⁻ + HCO₃⁻) in mEq/L, with optional albumin correction for hypoalbuminemia, delta gap analysis for high anion gap states, and clinical interpretation bands. Enter sodium, chloride, and bicarbonate from your lab report for instant results with PDF export.
Why Calculate the Anion Gap?
Electrolyte balance and acid-base status are tightly linked. When bicarbonate falls due to accumulation of organic acids (lactate, ketoacids, uremic toxins), the anion gap rises because electroneutrality must be maintained. A normal gap with low bicarbonate suggests hyperchloremic (non-anion-gap) acidosis. The anion gap narrows the differential diagnosis and guides further testing—lactate, ketones, blood gas, osmolal gap, and toxicology when indicated.
1Key Components of Anion Gap Assessment
Laboratory Values
- Sodium (Na⁺) — mEq/L
- Chloride (Cl⁻) — mEq/L
- Bicarbonate (HCO₃⁻ / CO₂) — mEq/L
- Optional: serum albumin for correction
Clinical Context
- ABG/VBG: pH, pCO₂, bicarbonate
- Lactate, beta-hydroxybutyrate, renal function
- Symptoms: Kussmaul breathing, confusion, vomiting
- Medications, toxins, volume status
2How the Anion Gap Is Calculated
Standard formula
Anion Gap = Na⁺ − (Cl⁻ + HCO₃⁻) [mEq/L]
For monovalent electrolytes, mEq/L equals mmol/L numerically. Use values directly from your basic metabolic panel.
Albumin correction
AG_corr = AG + 2.5 × (4.0 − Albumin [g/dL])
Hypoalbuminemia lowers the uncorrected anion gap. Apply correction when albumin is below 4.0 g/dL to avoid missing elevated gap states.
Example calculation
Na⁺ 140, Cl⁻ 100, HCO₃⁻ 18: AG = 140 − (100 + 18) = 22 mEq/L (high anion gap metabolic acidosis). ΔAG = 22 − 12 = 10; ΔHCO₃ = 24 − 18 = 6; delta ratio = 10/6 ≈ 1.67 (consistent with pure HAGMA).
Anion Gap Reference Ranges
| Category | mEq/L | Clinical significance |
|---|---|---|
| Low | < 8 | Albumin correction, paraproteins, lithium |
| Normal | 8–12 | Typical reference range |
| High (HAGMA) | > 12 | Lactic acidosis, DKA, uremia, toxins |
| Marked elevation | > 20 | Urgent evaluation often required |
High vs. Normal Anion Gap Metabolic Acidosis
Metabolic acidosis is classified by anion gap status. High anion gap acidosis (HAGMA) reflects addition of unmeasured anions. Normal anion gap acidosis (NAGMA, hyperchloremic) reflects bicarbonate loss or chloride retention with a gap still in the reference range. Both can coexist—delta gap analysis helps detect mixed disorders.
High Anion Gap (MUDPILES)
- Methanol, Ethylene glycol, Propylene glycol
- Uremia (renal failure)
- Diabetic ketoacidosis, starvation ketosis
- Isoniazid, Iron, Salicylates
- Lactic acidosis (sepsis, shock, metformin)
Normal Anion Gap Causes
- Diarrhea, GI bicarbonate loss
- Renal tubular acidosis (types 1, 2, 4)
- Saline or chloride-rich fluid infusion
- Ureterosigmoidostomy, toluene (late phase)
- Acetazolamide, ammonium chloride
Delta Gap and Delta Ratio
When HAGMA is present, the delta gap compares the rise in anion gap to the fall in bicarbonate. A delta ratio near 1–2 supports pure HAGMA. A ratio below 1 suggests additional hyperchloremic acidosis; above 2 may indicate concurrent metabolic alkalosis or pre-existing elevated bicarbonate masking severity.
ΔAG = measured AG − 12 | ΔHCO₃ = 24 − measured HCO₃ | Delta ratio = ΔAG / ΔHCO₃
Reference bicarbonate 24 mEq/L and reference anion gap 12 mEq/L are standard teaching values; your lab may use slightly different references.
Common Mistakes to Avoid
1. Ignoring hypoalbuminemia
Low albumin falsely lowers the anion gap. Always correct for albumin in critically ill or cirrhotic patients before dismissing an elevated gap.
2. Using anion gap alone without blood gas
The anion gap does not distinguish metabolic from respiratory acid-base disorders. ABG or VBG with pH and pCO₂ is essential for complete interpretation.
3. Delaying care for markedly elevated gap
Anion gap > 20 mEq/L often indicates serious metabolic acidosis. Do not rely on online tools—seek urgent medical evaluation.
4. Self-treating acid-base disorders
Bicarbonate therapy, fluids, and insulin require medical supervision. Never treat suspected DKA, lactic acidosis, or toxic ingestion without emergency care.
The Science Behind the Anion Gap
The anion gap represents the difference between measured cations and anions, accounting for unmeasured negative charges—primarily albumin, phosphate, and organic acids. Emmett and Narins popularized its clinical use for acid-base diagnosis. Modern practice integrates anion gap with strong ion difference theory, lactate measurement, and osmolal gap when toxic alcohol ingestion is suspected. Albumin correction (factor 2.5 mEq/L per g/dL) improves sensitivity in hypoalbuminemic patients.
When to Order Additional Tests
- ABG/VBG for pH and pCO₂
- Lactate in sepsis or shock
- Ketones in diabetes or starvation
- Salicylate, osmolal gap if toxic ingestion suspected
Symptoms of Severe Metabolic Acidosis
- Deep, rapid breathing (Kussmaul respirations)
- Confusion, lethargy, hypotension
- Nausea, vomiting, abdominal pain (DKA)
- Visual changes or blindness (methanol)
Frequently Asked Questions (FAQs)
Related Calculators
You might also be interested in these related health and wellness calculators:

Kidney Function (eGFR) Calculator
Estimate your kidney function by calculating your glomerular filtration rate (eGFR) using serum creatinine, age, sex. Detect early signs of chronic kidney disease and monitor renal health.

Creatinine Clearance (Cockcroft-Gault) Calculator
Estimate creatinine clearance (CrCl) using the Cockcroft-Gault formula with age, sex, body weight, and serum creatinine. Medication dosing context, clearance categories, and PDF export.

Corrected Calcium Calculator
Estimate albumin-corrected total calcium using the Payne formula. Enter serum calcium and albumin in mg/dL or mmol/L with hypocalcemia and hypercalcemia interpretation, PDF export.

BUN/Creatinine Ratio Calculator
Calculate BUN/creatinine ratio from blood urea nitrogen and serum creatinine. Prerenal vs intrinsic renal pattern interpretation, unit conversion, and PDF export.

NLR (Neutrophil-to-Lymphocyte Ratio) Calculator
Calculate NLR from CBC absolute neutrophil and lymphocyte counts. Enter ×10³/µL, cells/µL, or WBC with differential % for inflammation screening, risk bands, and PDF export.

HbA1c ↔ Average Blood Glucose Calculator
Convert HbA1c (%) to estimated average glucose (eAG) and back using the ADAG formula. ADA category bands, mg/dL and mmol/L units, PDF export.

Type 2 Diabetes Risk Assessment Calculator
Assess type 2 diabetes risk using the Indian Diabetes Risk Score (IDRS). Enter age, waist, family history, activity, and clinical history. Low to Very High risk with PDF export.

Sodium Intake Calculator
Estimate daily sodium from diet habits—compare to WHO/AHA limits by health profile, salt-to-sodium conversion, contributor breakdown, low-sodium Indian swaps, DASH tips, and PDF export.
Calculator Categories
Explore more free tools by health topic. Your calculator's category is highlighted below.
Nutrition & Metabolism
31 calculators
Browse categoryBody Composition
16 calculators
Browse categoryFitness & Cardio
13 calculators
Browse categorySleep & Circadian Health
6 calculators
Browse categoryAging & Longevity
6 calculators
Browse categoryHeart & Metabolic Health
23 calculators
Browse categoryMental Wellbeing
4 calculators
Browse categoryWomen's Health
10 calculators
Browse categoryEnvironment & Lifestyle
6 calculators
Browse category