Anion Gap Calculator
Enter serum chemistry values in mmol/L (albumin in g/dL). This tool estimates the anion gap and optionally provides albumin-corrected values.
Optional Formula (with potassium): AG = (Na + K) − (Cl + HCO3)
Albumin Correction: Corrected AG = AG + 2.5 × (4.0 − Albumin)
What Is the Anion Gap?
The anion gap (AG) is a quick bedside calculation used to evaluate acid-base disorders, especially metabolic acidosis. It estimates the concentration of “unmeasured” ions in the blood by comparing commonly measured cations and anions. In everyday clinical use, it helps clinicians narrow down the cause of low bicarbonate and identify serious conditions early.
In simple terms, the anion gap is not a directly measured lab test—it is derived from electrolyte values already present on a basic or comprehensive metabolic panel. Because of that, it is fast, inexpensive, and widely used in emergency medicine, internal medicine, nephrology, and critical care.
Anion Gap Formula and Core Inputs
Standard formula (most common)
AG = Na − (Cl + HCO3)
- Na (sodium): primary measured cation
- Cl (chloride): major measured anion
- HCO3 (bicarbonate): metabolic buffer, often reported as total CO₂
Alternative formula including potassium
Some clinicians include potassium: AG = (Na + K) − (Cl + HCO3). Since potassium values are relatively small, many labs and institutions omit it for consistency.
How to Interpret the Result
Interpretation depends on local reference intervals. A common framework is:
- Without K: roughly 8 to 12 mmol/L
- With K: roughly 12 to 16 mmol/L
Values above the upper range suggest high anion gap metabolic acidosis (HAGMA), while low values are less common and may indicate laboratory artifact or specific clinical states.
High Anion Gap Metabolic Acidosis (HAGMA)
Frequent causes include:
- Lactic acidosis (shock, sepsis, tissue hypoxia)
- Ketoacidosis (diabetic, alcoholic, starvation)
- Renal failure/uremia
- Toxin exposures (for example methanol, ethylene glycol, salicylates)
Normal Anion Gap (Hyperchloremic) Metabolic Acidosis
If bicarbonate is low but the anion gap is normal, consider bicarbonate loss or reduced renal acid excretion:
- Diarrhea
- Renal tubular acidosis
- Large-volume normal saline administration
Low Anion Gap
A low AG is less common but clinically relevant. Potential explanations include:
- Hypoalbuminemia (most common physiological reason)
- Paraproteinemia (for example multiple myeloma)
- Lab error or assay interference
- Rarely, significant increases in unmeasured cations
Why Albumin Correction Matters
Albumin is a major unmeasured anion. When albumin is low, the measured anion gap can appear deceptively normal despite clinically significant acid accumulation. To reduce this bias, clinicians often use:
Corrected AG = AG + 2.5 × (4.0 − albumin in g/dL)
Example: If AG is 10 and albumin is 2.0 g/dL, corrected AG = 10 + 2.5 × (2.0) = 15. This may reclassify the patient from “normal AG” to “elevated AG.”
Step-by-Step: Using the Calculator Above
- Enter sodium, chloride, and bicarbonate values.
- Optionally check “Include potassium” and enter potassium.
- Optionally enter albumin for corrected AG.
- Click Calculate Anion Gap.
- Review AG value, interpretation, and corrected value if albumin is provided.
Clinical Context and Safety Notes
The anion gap should never be interpreted in isolation. For complete acid-base assessment, correlate with:
- Arterial or venous blood gas
- Serum lactate and ketones when indicated
- Renal function and osmolar gap if toxicity is suspected
- Trends over time, not just one data point
If a patient is critically ill, has altered mental status, severe dyspnea, persistent vomiting, or suspected poisoning, urgent medical evaluation is essential.
Quick FAQ
Is a “normal” anion gap always reassuring?
Not always. Hypoalbuminemia can mask a truly elevated gap. That is why corrected AG can be helpful.
Should potassium always be included?
Most modern references and many labs report AG without potassium. Follow your institution's convention for consistency.
Can lab variation change interpretation?
Yes. Different analyzers and reference ranges can shift expected normal values. Always use local lab ranges when available.