Anion Gap Calculator
Anion Gap
—
Albumin-Corrected
—
Interpretation
—
How the Anion Gap Works
The anion gap (AG) is a calculated value from routine blood chemistry that represents the difference between measured cations and measured anions in the serum. It is a critical tool in clinical medicine for diagnosing and classifying metabolic acidosis. According to StatPearls (National Library of Medicine), the anion gap helps clinicians rapidly identify potentially life-threatening conditions including diabetic ketoacidosis, lactic acidosis, and toxic ingestions.
The principle is based on electroneutrality: total cations must equal total anions in blood. Since not all anions and cations are measured in a basic metabolic panel, the "gap" represents unmeasured anions (primarily albumin, phosphate, sulfate, and organic acids). When unmeasured anions increase (as in metabolic acidosis), the anion gap rises above the normal range of 3-12 mEq/L.
This calculator computes both the standard anion gap and the albumin-corrected anion gap, which accounts for the fact that hypoalbuminemia (common in hospitalized patients) artificially lowers the AG and can mask an underlying anion gap metabolic acidosis. Use our Corrected Calcium Calculator alongside this tool, as both use albumin correction, or the Mean Arterial Pressure Calculator for hemodynamic assessment.
The Anion Gap Formula
The standard anion gap formula is derived from the principle of electroneutrality and is universally used in emergency and internal medicine, as described in major medical references including UpToDate clinical guidelines.
Standard AG = Na+ - (Cl- + HCO3-)
Albumin-Corrected AG = AG + 2.5 x (4.0 - Measured Albumin)
Some laboratories include potassium: AG = (Na+ + K+) - (Cl- + HCO3-), with a normal range of 10-20 mEq/L. The corrected AG adds 2.5 mEq/L for every 1 g/dL decrease in albumin below 4.0 g/dL.
Worked example: Na = 140, Cl = 100, HCO3 = 24, Albumin = 4.0 g/dL. AG = 140 - (100 + 24) = 16 mEq/L. This is mildly elevated. With albumin at 4.0, the corrected AG equals the standard AG. If albumin were 2.0 g/dL instead: Corrected AG = 16 + 2.5 x (4.0 - 2.0) = 21 mEq/L, revealing a significantly elevated AG masked by low albumin.
Key Anion Gap Terms You Should Know
- Anion Gap (AG): The difference between measured cations (Na+) and measured anions (Cl- + HCO3-) in serum. Normal range: 3-12 mEq/L without potassium.
- Metabolic Acidosis: A condition where excess acid accumulates in the blood, lowering the pH below 7.35 and typically reducing bicarbonate. Can be anion gap or non-anion gap.
- MUDPILES Mnemonic: Memory aid for elevated AG causes: Methanol, Uremia, Diabetic Ketoacidosis, Propylene glycol, Isoniazid/Iron, Lactic acidosis, Ethylene glycol, Salicylates.
- Delta-Delta (Delta Ratio): Compares the change in AG to the change in bicarbonate to detect mixed acid-base disorders. Calculated as (AG - 12) / (24 - HCO3).
- Non-Anion Gap Metabolic Acidosis (NAGMA): Acidosis where the AG remains normal, typically caused by bicarbonate losses (diarrhea, renal tubular acidosis) or chloride excess.
Causes of Elevated vs. Normal Anion Gap Acidosis
Distinguishing between anion gap and non-anion gap metabolic acidosis is one of the most important steps in the clinical workup of acid-base disorders. The following comparison is based on guidelines from the National Library of Medicine.
| Elevated AG (>12 mEq/L) | Normal AG (NAGMA) |
|---|---|
| Diabetic ketoacidosis (DKA) | Diarrhea (GI bicarbonate loss) |
| Lactic acidosis | Renal tubular acidosis (Type 1, 2, 4) |
| Uremia (renal failure) | Saline infusion (dilutional) |
| Salicylate toxicity | Acetazolamide use |
| Methanol / Ethylene glycol | Ureteral diversion |
| Starvation ketoacidosis | Adrenal insufficiency |
Practical Examples
Example 1 - DKA presentation: Na = 135, Cl = 98, HCO3 = 10, Albumin = 3.5 g/dL. AG = 135 - (98 + 10) = 27 mEq/L. Corrected AG = 27 + 2.5(4.0 - 3.5) = 28.25 mEq/L. The significantly elevated AG, combined with low bicarbonate, strongly suggests diabetic ketoacidosis. Delta ratio: (27 - 12) / (24 - 10) = 1.07, suggesting pure anion gap acidosis.
Example 2 - Masked AG in ICU patient: Na = 138, Cl = 105, HCO3 = 22, Albumin = 2.0 g/dL. Standard AG = 138 - (105 + 22) = 11 mEq/L (appears normal). Corrected AG = 11 + 2.5(4.0 - 2.0) = 16 mEq/L (actually elevated). Without albumin correction, the underlying lactic acidosis would have been missed.
Example 3 - Normal values: Na = 140, Cl = 102, HCO3 = 26, Albumin = 4.2 g/dL. AG = 140 - (102 + 26) = 12 mEq/L. Corrected AG = 12 + 2.5(4.0 - 4.2) = 11.5 mEq/L. Both values are within normal range, indicating no unmeasured anion accumulation. Monitor other labs with our Corrected Calcium Calculator.
Clinical Tips for Anion Gap Interpretation
- Always correct for albumin: Approximately 50-60% of ICU patients have hypoalbuminemia. Failing to correct the AG can mask significant metabolic acidosis. For every 1 g/dL decrease in albumin below 4.0, the AG decreases by approximately 2.5 mEq/L.
- Calculate the delta ratio: When an elevated AG is found, the delta ratio (change in AG / change in bicarbonate) helps detect mixed disorders. A ratio of 1-2 suggests pure AG acidosis; <1 suggests concurrent NAGMA; >2 suggests concurrent metabolic alkalosis.
- Consider the clinical context: An AG of 20+ in a diabetic patient suggests DKA. In a post-cardiac arrest patient, consider lactic acidosis. In a patient with unknown ingestion, consider toxic alcohols (methanol, ethylene glycol).
- Know your lab's normal range: Normal AG varies by laboratory method. Ion-selective electrode methods typically give a normal range of 3-12 mEq/L, while older flame photometry methods give 8-16 mEq/L.
- Use serial measurements: Trending the AG over time helps assess treatment response. In DKA treatment, a falling AG indicates clearing of ketoacids. Use our BSA Dosing Calculator for medication dose adjustments.
Anion Gap in Clinical Practice
According to a study in the Clinical Journal of the American Society of Nephrology, approximately 25% of elevated anion gaps in hospitalized patients are attributable to lactic acidosis, making it the most common cause. DKA accounts for about 15%, and renal failure for approximately 10%. An AG greater than 20 mEq/L has a positive predictive value of over 80% for identifying a clinically significant metabolic acidosis. The albumin correction improves diagnostic sensitivity by approximately 25% in patients with hypoalbuminemia, preventing missed diagnoses in critically ill populations.
Frequently Asked Questions
What is the anion gap formula?
The standard anion gap formula is AG = Na+ - (Cl- + HCO3-), with a normal range of 3-12 mEq/L. Some laboratories include potassium: AG = (Na+ + K+) - (Cl- + HCO3-), which gives a normal range of 10-20 mEq/L. The formula represents the difference between measured cations and measured anions, with the "gap" reflecting unmeasured anions like albumin, phosphate, sulfate, and organic acids. An elevated AG above 12 indicates the accumulation of unmeasured anions, usually from metabolic acidosis.
What causes an elevated anion gap?
The MUDPILES mnemonic identifies the major causes: Methanol poisoning, Uremia (kidney failure), Diabetic ketoacidosis (DKA), Propylene glycol toxicity, Isoniazid/Iron poisoning, Lactic acidosis (the most common cause, accounting for about 25% of cases), Ethylene glycol poisoning, and Salicylate (aspirin) toxicity. Each condition produces unmeasured organic acids that widen the gap. An AG above 20 mEq/L requires urgent clinical evaluation to identify and treat the underlying cause.
What is the normal anion gap range?
The normal anion gap range is 3-12 mEq/L when calculated without potassium (the most common method). An AG of 12-20 mEq/L is mildly to moderately elevated and warrants investigation. An AG above 20 mEq/L is significantly elevated and typically indicates a serious underlying condition requiring urgent evaluation. Note that normal ranges can vary slightly by laboratory method: ion-selective electrode methods give 3-12, while older techniques may give 8-16 mEq/L.
Why is albumin correction important for the anion gap?
Albumin is a negatively charged protein that accounts for a significant portion of the unmeasured anions in the anion gap. When albumin is low (hypoalbuminemia, common in 50-60% of ICU patients), the baseline AG decreases by approximately 2.5 mEq/L for every 1 g/dL drop below 4.0 g/dL. Without correction, a patient with albumin of 2.0 g/dL could have a "normal" AG of 11 while actually having a corrected AG of 16, masking a clinically significant acidosis. The correction formula improves diagnostic sensitivity by approximately 25%.
What is the delta-delta ratio?
The delta-delta ratio (or delta ratio) compares the change in anion gap to the change in bicarbonate: Delta Ratio = (AG - 12) / (24 - HCO3). A ratio between 1 and 2 suggests a pure anion gap metabolic acidosis. A ratio below 1 indicates a concurrent non-anion gap metabolic acidosis (mixed disorder). A ratio above 2 suggests a concurrent metabolic alkalosis. This calculation helps clinicians detect mixed acid-base disorders that would be missed by looking at the anion gap alone.