Anion Gap Calculator
Clinical acid-base diagnostic system calculating standard serum anion gap, albumin-corrected anion gap, delta gap, and delta-delta ratio with complete electrolyte electroneutrality analysis.
| Ion / Parameter | Measured | Reference Range | Status |
|---|---|---|---|
| Sodium (Na+) | 140.0 mEq/L | 135 – 145 mEq/L | Normal |
| Chloride (Cl−) | 104.0 mEq/L | 96 – 106 mEq/L | Normal |
| Bicarbonate (HCO3−) | 24.0 mEq/L | 22 – 28 mEq/L | Normal |
| Serum Albumin | 4.0 g/dL | 3.5 – 5.0 g/dL | Normal |
| Measured Cations | 140.0 mEq/L | Na+ (or Na+ + K+) | Base |
| Measured Anions | 128.0 mEq/L | Cl− + HCO3− | Base |
| Standard Anion Gap | 12.0 mEq/L | 8.0 – 12.0 mEq/L (ISE) | Normal |
| Albumin-Corrected AG | 12.0 mEq/L | 8.0 – 12.0 mEq/L | Normal |
The Delta-Delta ratio evaluates mixed acid-base disorders by comparing the excess anion gap (ΔAG) to the deficit in serum bicarbonate (ΔHCO3−). In a pure High Anion Gap Metabolic Acidosis (HAGMA), each 1 mEq/L increase in unmeasured anions titrates approximately 1 mEq/L of bicarbonate.
Evaluates whether the respiratory center is mounting appropriate hyperventilation compensation for metabolic acidosis: Expected PaCO2 = 1.5 × [HCO3−] + 8 ± 2 mmHg.
If measured PaCO2 < expected: Concomitant Respiratory Alkalosis (e.g. early sepsis, pain, aspirin toxicity).
| Category | Mnemonic & Cause | Primary Unmeasured Anion / Ion | Key Confirmatory Diagnostic Tests |
|---|---|---|---|
| HAGMA | G – Glycols (Ethylene Glycol, Propylene Glycol) | Glycolate, Oxalate, L-lactate | Osmolal gap > 10, toxic alcohol panel, calcium oxalate crystals in urine |
| HAGMA | O – Oxoproline (5-Oxoproline / Pyroglutamic Acid) | 5-Oxoproline | Urine organic acid analysis; history of chronic paracetamol/acetaminophen in malnourished/septic females |
| HAGMA | L – L-Lactate (Tissue Hypoperfusion, Sepsis, Shock) | L-Lactate | Serum lactate level (> 2.0 mmol/L indicates cellular hypoperfusion/shock) |
| HAGMA | D – D-Lactate (Short Bowel Syndrome, Bacterial Overgrowth) | D-Lactate | Specific D-lactate stereoisomer assay (standard clinical lactate assay only detects L-lactate) |
| HAGMA | M – Methanol (Windshield Washer Fluid, Moonshine) | Formate (Formic Acid) | Osmolal gap > 10, serum methanol chromatography, visual impairment / optic papillitis |
| HAGMA | A – Aspirin / Salicylates (Salicylate Intoxication) | Salicylate, Lactate, Ketones | Serum salicylate level; mixed respiratory alkalosis + high anion gap metabolic acidosis |
| HAGMA | R – Renal Failure (Acute or End-Stage Uremia) | Sulfates, Phosphates, Urate, Hippurate | BUN, Serum Creatinine, eGFR < 15 mL/min, oliguria |
| HAGMA | K – Ketoacidosis (DKA, Alcoholic AKA, Starvation) | β-Hydroxybutyrate, Acetoacetate | Serum quantitative β-hydroxybutyrate, blood glucose, urine acetoacetate test |
| NAGMA | U – Ureteroenterostomy / Ileal Conduit | Hyperchloremia (Cl− absorbed for HCO3−) | Surgical history of urinary diversion; elevated serum chloride |
| NAGMA | S – Saline Resuscitation (0.9% Normal Saline Infusion) | Hyperchloremic Acidosis | Infusion history of normal saline (Cl− concentration is 154 mEq/L vs plasma 104) |
| NAGMA | E – Endocrine (Hypoaldosteronism, Addison's) | Type 4 RTA (Hyperkalemic Acidosis) | Elevated serum K+, low serum aldosterone, low morning cortisol |
| NAGMA | D – Diarrhea (GI Bicarbonate Loss) | Direct enteric loss of HCO3− | Stool history; Negative Urinary Anion Gap (UAG = Na+ + K+ − Cl− < 0) |
| NAGMA | C – Carbonic Anhydrase Inhibitors (Acetazolamide) | Renal HCO3− wasting | Medication list (glaucoma or altitude prophylaxis); alkaline urine pH > 7.0 |
| NAGMA | A – Ammonium Chloride / Parenteral Nutrition | Acid loading with chloride | Hyperalimentation review, total parenteral nutrition (TPN) chloride load |
| NAGMA | R – Renal Tubular Acidosis (Types 1, 2, 4) | Defective H+ excretion or HCO3− reabsorption | Positive Urinary Anion Gap (UAG > 0); urine pH > 5.5 despite systemic acidemia |
| NAGMA | P – Pancreatic / Biliary Fistula | Direct loss of bicarbonate-rich digestive fluid | Surgical drain output analysis, fluid electrolyte panel |
| LOW GAP | Hypoalbuminemia (Sepsis, Cirrhosis, Nephrotic) | Deficit of normal unmeasured negative charges | Serum Albumin < 3.5 g/dL; AG drops by 2.5 mEq/L per 1.0 g/dL drop in albumin |
| LOW GAP | Multiple Myeloma (IgG Paraproteinemia) | Positively charged unmeasured monoclonal IgG proteins | Serum protein electrophoresis (SPEP), serum free light chains, bone marrow biopsy |
| LOW GAP | Lithium Toxicity (Cation Accumulation) | Unmeasured monovalent cation (Li+) | Serum lithium level (> 1.5 mEq/L indicates clinical toxicity) |
| LOW GAP | Bromide / Iodide Toxicity (Halide Interference) | False lab chloride elevation (ISE cross-reactivity) | Extremely low or negative AG (< 0 mEq/L); serum bromide levels |
| LOW GAP | Severe Hypercalcemia / Hypermagnesemia | Excess unmeasured divalent cations (Ca2+, Mg2+) | Ionized calcium, total serum calcium, serum magnesium level |
Principles of Serum Anion Gap & Electroneutrality in Clinical Practice
The principle of electroneutrality mandates that in any aqueous biological compartment, the total concentration of positive electrical charges (cations) must exactly equal the total concentration of negative electrical charges (anions). In human serum, the principal cations are Sodium (Na+), Potassium (K+), Calcium (Ca2+), and Magnesium (Mg2+). The principal anions are Chloride (Cl−), Bicarbonate (HCO3−), Albumin (carrying net negative charges at physiological pH 7.40), Phosphate (PO43−), Sulfate (SO42−), and organic acids.
The Figge-Jabor-Kazda-Fencl Albumin Correction Equation
Serum albumin is the single largest contributor to the normal unmeasured anion pool. Under normal conditions (serum albumin 4.0 g/dL), albumin accounts for approximately 10 to 12 mEq/L of negative charge (roughly 2.5 to 2.8 mEq/L of negative charge per gram of albumin). When a patient develops hypoalbuminemia—a pervasive finding in intensive care units, sepsis, liver cirrhosis, starvation, and nephrotic syndrome—the baseline measured anion gap plummets.
For every 1.0 g/dL drop in serum albumin below 4.0 g/dL, the observed anion gap drops by approximately 2.5 mEq/L (or 0.25 mEq/L per 1 g/L drop below 40 g/L). If a clinician fails to correct for low albumin, an occult, life-threatening High Anion Gap Metabolic Acidosis (such as lactic acidosis or diabetic ketoacidosis) may appear deceptively “normal” on routine lab panels.
Patient Presentation: A 64-year-old female in the intensive care unit with septic shock has the following laboratory profile:
- Sodium (Na+): 138 mEq/L
- Chloride (Cl−): 108 mEq/L
- Bicarbonate (HCO3−): 18 mEq/L
- Serum Albumin: 1.6 g/dL (severely reduced)
AG = 138 − (108 + 18) = 138 − 126 = 12.0 mEq/L (Appears deceptively normal on uncorrected glance!)
2. Albumin-Corrected Anion Gap Calculation:
AGcorrected = 12.0 + 2.5 × (4.0 − 1.6) = 12.0 + 2.5 × 2.4 = 12.0 + 6.0 = 18.0 mEq/L
Interpretation: The patient actually has a marked High Anion Gap Metabolic Acidosis (unmasking occult severe hyperlactatemia of 6 mEq/L).
3. Delta Gap & Delta Ratio:
ΔAG = 18.0 − 12.0 = 6.0 mEq/L
ΔHCO3− = 24.0 − 18.0 = 6.0 mEq/L
Delta Ratio = 6.0 / 6.0 = 1.00 (Confirms a pure, uncomplicated High Anion Gap Metabolic Acidosis).