Anion Gap Calculator (Metabolic Acidosis Workup)
Calculate serum anion gap and delta-delta ratio from electrolytes to help classify the type of metabolic acidosis.
Reviewed for accuracy by Rahul Singh, Health & Wellness Specialist
Medical disclaimer: This calculator is provided for educational and informational purposes only and does not constitute medical advice, diagnosis, or treatment. Results are general estimates and may not reflect your individual circumstances. Always consult a qualified healthcare professional before making decisions about your health.
Formula
AG = Na - (Cl + HCO3) | Corrected AG = AG + 2.5 ร (4.0 - Albumin) | Delta Ratio = (Corrected AG - 12) / (24 - HCO3)
The anion gap measures unmeasured anions. Normal AG is 8-12 mEq/L. Corrected AG adjusts for hypoalbuminemia (2.5 mEq/L per 1 g/dL below 4.0). The delta-delta ratio identifies mixed acid-base disorders: <1 = concurrent NAGMA, 1-2 = pure HAGMA, >2 = concurrent metabolic alkalosis.
Worked Examples
Example 1: Elevated Anion Gap
Problem:Na 140, Cl 103, HCO3 24, Albumin 4.0 g/dL.
Solution:AG = 140 - (103 + 24) = 13 Corrected AG = 13 + 2.5(4.0 - 4.0) = 13 Corrected AG 13 > 12 mEq/L โ Elevated (HAGMA) Normal range is 8-12 mEq/L
Result:AG 13, Corrected AG 13 โ Elevated (HAGMA)
Example 2: DKA with HAGMA
Problem:Na 138, Cl 98, HCO3 10, Albumin 3.0 g/dL.
Solution:AG = 138 - (98 + 10) = 30 Corrected AG = 30 + 2.5(4.0 - 3.0) = 32.5 Delta ratio = (32.5 - 12)/(24 - 10) = 1.46 Pure HAGMA (ratio 1-2)
Result:AG 30, Corrected AG 32.5 โ HAGMA, delta ratio 1.46 (pure HAGMA)
Frequently Asked Questions
What is the anion gap?
The anion gap is the difference between measured cations (sodium) and measured anions (chloride + bicarbonate) in the blood. It represents unmeasured anions such as albumin, phosphate, sulfate, and organic acids. The normal anion gap is approximately 8-12 mEq/L (when not corrected for albumin). An elevated anion gap indicates accumulation of unmeasured acids, as seen in conditions like DKA, lactic acidosis, and toxic ingestions.
Why is albumin correction important?
Albumin is a major contributor to the anion gap. Hypoalbuminemia (common in critically ill patients) artificially lowers the anion gap, potentially masking a HAGMA. For every 1 g/dL decrease in albumin below 4.0 g/dL, the expected anion gap decreases by approximately 2.5 mEq/L. The corrected AG formula accounts for this: Corrected AG = AG + 2.5 ร (4.0 - measured albumin).
What is the delta-delta ratio?
The delta-delta ratio (delta gap) compares the change in anion gap to the change in bicarbonate: Delta ratio = (AG - 12) / (24 - HCO3). Interpretation: Ratio < 1: Concurrent NAGMA (additional non-AG acidosis). Ratio 1-2: Pure HAGMA. Ratio > 2: Concurrent metabolic alkalosis (or pre-existing elevated HCO3). This helps identify mixed acid-base disorders.
What causes a high anion gap metabolic acidosis?
The mnemonic MUDPILES helps remember causes: Methanol, Uremia, Diabetic ketoacidosis (DKA), Propylene glycol, Isoniazid/Iron, Lactic acidosis (type A from tissue hypoperfusion, type B from medications or metabolic causes), Ethylene glycol, Salicylates. Other causes include starvation ketosis, alcoholic ketoacidosis, and toxic alcohol ingestions.
What is the anion gap and how is it calculated?
Anion gap = Sodium - (Chloride + Bicarbonate). Normal range is 8-12 mEq/L. An elevated anion gap indicates metabolic acidosis from conditions like diabetic ketoacidosis, lactic acidosis, renal failure, or toxic ingestions (MUDPILES mnemonic). A normal anion gap acidosis suggests GI or renal bicarbonate loss.
References
Background & Theory
History
Reviewed for accuracy by Rahul Singh, Health & Wellness Specialist ยท Editorial policy
Related Calculators
๐งฎWinter Formula Calculator
Calculate expected pCO2 in metabolic acidosis using Winter formula for compensation assessment.
๐งฎBicarbonate Deficit Calculator
Calculate sodium bicarbonate replacement needs for metabolic acidosis correction.
๐งฎDash Diet Score Calculator
Score adherence to the DASH dietary pattern from food frequency questionnaire data.
๐งฎTpn Calculator
Calculate total parenteral nutrition formulation from patient weight, caloric, and protein needs.
๐งฎReticulocyte Index Calculator
Calculate corrected reticulocyte count and reticulocyte production index for anemia workup.
๐งฎChads2 Score Calculator
Calculate the CHADS2 stroke risk score for patients with non-valvular atrial fibrillation.
๐งฎCha2ds2-Vasc Score Calculator
Calculate CHA2DS2-VASc score for stroke risk stratification in atrial fibrillation patients.
๐งฎHas-Bled Score Calculator
Assess bleeding risk in patients on anticoagulation using the HAS-BLED scoring system.