Complete Guide to the Anion Gap Calculator
The anion gap is a practical bedside chemistry calculation used to evaluate metabolic acidosis and narrow differential diagnosis. This anion gap calculator is designed for fast use in emergency medicine, critical care, nephrology, internal medicine, and exam preparation. It supports the conventional formula, an optional potassium-inclusive formula, and albumin correction to improve interpretation in hypoalbuminemia.
What this page covers
What Is the Anion Gap?
The anion gap (AG) estimates the concentration of unmeasured anions in blood. In routine chemistry panels, the major measured cations are sodium (and sometimes potassium), while major measured anions are chloride and bicarbonate. Because plasma is electrically neutral, any difference between measured cations and measured anions reflects unmeasured ions.
Clinically, this is useful because a rising anion gap often indicates accumulation of acids such as lactate, ketones, or toxins. In contrast, normal-gap (hyperchloremic) acidosis usually indicates bicarbonate loss or impaired renal acid handling without major increase in unmeasured anions.
How to Calculate the Anion Gap
Most labs and clinicians use the potassium-excluded formula:
AG = Na − (Cl + HCO₃)
Some include potassium:
AG = (Na + K) − (Cl + HCO₃)
Because potassium is usually low relative to sodium, excluding potassium keeps interpretation simpler and is commonly preferred. The most important rule is consistency: use the same formula your lab uses for reference ranges.
| Input | Unit | Role in formula |
|---|---|---|
| Sodium (Na⁺) | mEq/L | Main measured cation |
| Potassium (K⁺) | mEq/L | Optional measured cation (smaller contribution) |
| Chloride (Cl⁻) | mEq/L | Major measured anion |
| Bicarbonate (HCO₃⁻) | mEq/L | Major measured anion |
| Albumin | g/dL | Needed for corrected AG in hypoalbuminemia |
Corrected Anion Gap: Why Albumin Matters
Albumin is a major unmeasured anion. If albumin is low, the measured anion gap can look deceptively normal even when unmeasured acids are present. That is why albumin correction is clinically valuable.
Common correction formula:
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 reveal clinically important high anion gap acidosis that would otherwise be missed.
How to Interpret Anion Gap Results
Interpretation should be integrated with pH, PaCO₂, bicarbonate, lactate, glucose, ketones, renal function, and clinical scenario. A simple framework:
- High AG metabolic acidosis: suggests accumulation of unmeasured acids.
- Normal AG metabolic acidosis: usually bicarbonate loss or reduced acid excretion with compensatory chloride rise.
- Low AG: less common; consider lab artifact, hypoalbuminemia, paraproteinemia, or unusual cation excess.
Always verify sample quality and repeat labs when results do not fit the clinical picture.
Common Causes of High Anion Gap Metabolic Acidosis
A useful modern mnemonic is GOLD MARK:
- Glycols (ethylene glycol, propylene glycol)
- Oxoproline (chronic acetaminophen-related pyroglutamic acidosis)
- L-lactate (shock, sepsis, hypoxia, ischemia)
- D-lactate (short bowel states)
- Methanol
- Aspirin (salicylates)
- Renal failure (uremic acids)
- Ketoacidosis (diabetic, alcoholic, starvation)
In real practice, lactic acidosis, ketoacidosis, renal failure, and toxic alcohols are key diagnostic priorities in acutely ill patients.
Causes of Normal Anion Gap (Hyperchloremic) Metabolic Acidosis
- Gastrointestinal bicarbonate loss (for example diarrhea)
- Renal tubular acidosis
- Early renal insufficiency
- Acetazolamide effect
- Large-volume chloride-rich fluid administration
These states reduce bicarbonate but often increase chloride proportionally, so the anion gap remains near normal.
What Can Cause a Low Anion Gap?
- Hypoalbuminemia (most frequent reason)
- Lab or measurement issues (always consider repeat testing)
- Paraproteinemia (e.g., positively charged immunoglobulins)
- Lithium or other unmeasured cation excess (rare)
- Marked hyperchloremia or analyzer interference
A persistently low anion gap should not be ignored, especially if accompanied by suggestive clinical findings.
Delta Ratio: Looking for Mixed Disorders
When high anion gap acidosis exists, the delta ratio helps screen for concurrent metabolic disorders:
Delta ratio = (AG − 12) / (24 − HCO₃)
- <0.4: suggests pure normal-gap acidosis
- 0.4–0.8: mixed high-gap + normal-gap acidosis may be present
- 0.8–2.0: typical range for isolated high-gap acidosis
- >2.0: consider concurrent metabolic alkalosis or chronic respiratory acidosis compensation
These cutoffs are approximate and should support—not replace—full acid-base analysis.
Practical Clinical Workflow
- Confirm acidemia/alkalemia on blood gas.
- Assess primary process (metabolic vs respiratory).
- Calculate anion gap and corrected anion gap.
- If AG elevated, check lactate, ketones, renal function, osmolar gap, toxicology as indicated.
- Use delta ratio to evaluate potential mixed metabolic disorders.
- Correlate all findings with patient history, medication exposure, perfusion status, and organ function.
FAQ: Anion Gap Calculator
Is potassium required in the anion gap formula?
No. Most institutions use a potassium-excluded formula. If potassium is included, reference ranges shift upward.
Can a normal anion gap still be dangerous?
Yes. Patients can have clinically serious normal-gap metabolic acidosis, especially with severe diarrhea, renal tubular acidosis, or saline-related hyperchloremia.
Why did corrected AG become high when AG looked normal?
Low albumin lowers the measured AG baseline. Correcting for albumin can unmask hidden accumulation of unmeasured acids.
What is the best “normal range” to use?
Use your local laboratory’s range and ensure your formula matches that range (with or without potassium).
Does this calculator diagnose disease?
No. It is a decision-support aid. Diagnosis requires clinical evaluation and confirmatory testing.
Conclusion
An anion gap calculator is one of the fastest tools for acid-base triage. Used correctly, it helps identify high anion gap metabolic acidosis, supports differential diagnosis, and flags mixed disorders with delta ratio analysis. Albumin correction is essential whenever hypoalbuminemia is possible. Pair this calculation with blood gas interpretation and clinical context for safe, high-quality care.