Anion Gap Calculator (Metabolic Acidosis Workup)
Calculate serum anion gap and delta-delta ratio from electrolytes to help classify the type of metabolic acidosis.
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 difference between a high anion gap and a normal anion gap metabolic acidosis?
In a high anion gap acidosis, an unmeasured acid anion such as lactate, ketoacids or a toxic alcohol metabolite accumulates, so bicarbonate falls while chloride stays put and the gap widens. In a normal anion gap acidosis the bicarbonate lost through the gut or kidney is replaced by chloride, which is measured, so the gap stays normal and the picture is hyperchloraemic. Typical causes are diarrhoea, renal tubular acidosis and large-volume saline infusion.
Should potassium be included in the anion gap calculation?
Two conventions exist. The sodium-only form, Na minus (Cl plus HCO3), carries a normal range of roughly 8 to 12 mEq/L and is the version used here. Some laboratories add potassium, giving Na plus K minus (Cl plus HCO3), with a correspondingly higher normal range near 12 to 16 mEq/L. The absolute value is not comparable between the two, so always confirm which convention your laboratory's quoted reference interval assumes before calling a gap elevated.
How does Winter's formula complement the anion gap?
Winter's formula predicts the respiratory compensation expected for a metabolic acidosis: expected PaCO2 in mmHg equals 1.5 times the bicarbonate plus 8, give or take 2. If the measured PaCO2 is higher than predicted there is a superimposed respiratory acidosis, often from fatigue or depressed consciousness; if lower, a concurrent respiratory alkalosis, as seen with salicylate toxicity or sepsis. Combining it with the delta ratio uncovers triple acid-base disturbances.
What is the osmolal gap and when should it be checked alongside the anion gap?
The osmolal gap is the measured serum osmolality minus the calculated value, where calculated osmolality is roughly 2 times sodium plus glucose divided by 18 plus BUN divided by 2.8 in conventional units. A widened gap points to an unmeasured low-molecular-weight solute, classically methanol or ethylene glycol. Timing matters: soon after ingestion the parent alcohol raises the osmolal gap while the anion gap is still normal, and later the metabolites reverse that pattern.
Why can the anion gap be low or even negative?
Hypoalbuminaemia is by far the commonest reason, which is why the albumin-corrected gap is calculated. Other causes include an excess of unmeasured cations, such as severe hypercalcaemia, hypermagnesaemia, lithium toxicity, or cationic paraproteins in multiple myeloma. Halide interference is another: bromide or iodide is read as chloride by many analysers, inflating the measured chloride and collapsing the gap. A frankly negative gap should prompt suspicion of laboratory interference.
How does the lactate level relate to the measured anion gap?
Lactate is one of the unmeasured anions, so each 1 mEq/L rise in lactate widens the gap by roughly the same amount if nothing else changes. The correspondence is loose in practice because hypoalbuminaemia masks part of the rise, and because ketoacids, uraemic anions or renal handling of lactate can shift the balance. A normal anion gap therefore does not exclude significant hyperlactataemia, so measure lactate directly when tissue hypoperfusion is suspected.
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 โ Parenteral Nutrition
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.