Anion Gap Calculator

Use this clinical tool to calculate the serum anion gap and determine the underlying cause of metabolic acidosis. This calculator includes options for potassium adjustment and albumin correction for more accurate clinical insights.

Electrolyte Balance Visualization

Cations Measured Anions Anion Gap
Serum Anion Gap
11.0 mEq/L
Status: Normal

A) What is the Anion Gap?

The anion gap is a calculated value used in clinical medicine to help identify the cause of metabolic acidosis. It represents the difference between measured cations (positively charged ions) and measured anions (negatively charged ions) in the serum.

In a healthy state, the body maintains electrical neutrality. However, not all ions are routinely measured in a standard basic metabolic panel (BMP). The "gap" represents these unmeasured anions—primarily proteins (like albumin), phosphates, sulfates, and organic acids.

B) Formula and Explanation

The standard formula for calculating the anion gap is based on the principle of electroneutrality. Since the concentration of cations must equal the concentration of anions, we focus on the primary players:

Standard Formula:

Anion Gap = Sodium - (Chloride + Bicarbonate)

Formula with Potassium:

Some clinicians prefer to include potassium, though it is often omitted because its concentration is low and relatively stable:

Anion Gap = (Sodium + Potassium) - (Chloride + Bicarbonate)

Albumin Correction:

Since albumin is the primary unmeasured anion, low albumin levels (hypoalbuminemia) can artificially lower the anion gap. The corrected formula is:

Corrected AG = Observed AG + 2.5 × (Normal Albumin [4.0] - Observed Albumin)

C) Practical Examples

Scenario Na+ Cl- HCO3- Result Interpretation
Normal Patient 140 104 24 12 Normal Range
Diabetic Ketoacidosis 135 95 15 25 High Anion Gap (HAGMA)
Severe Diarrhea 140 112 16 12 Normal Gap (NAGMA)

D) How to Use the Calculator

  1. Enter Sodium (Na+): Found in your BMP or electrolyte panel.
  2. Enter Chloride (Cl-): The major measured anion.
  3. Enter Bicarbonate (HCO3-): Often listed as CO2 on lab reports.
  4. (Optional) Enter Albumin: Crucial for patients with liver disease or malnutrition to get the corrected anion gap.
  5. Review interpretation: The tool will automatically flag if the gap is high, normal, or low based on standard clinical thresholds.

E) Key Factors Influencing Results

  • MUDPILES: A mnemonic for causes of High Anion Gap Metabolic Acidosis (Methanol, Uremia, DKA, Propylene glycol, Iron/INH, Lactic acidosis, Ethylene glycol, Salicylates).
  • Hypoalbuminemia: For every 1 g/dL drop in serum albumin, the anion gap decreases by approximately 2.5 mEq/L.
  • Lab Errors: Hypernatremia or severe hyperlipemia can sometimes interfere with accurate ion measurements.

F) Frequently Asked Questions (FAQ)

1. What is a normal anion gap range?
The typical normal range is 8 to 12 mEq/L if potassium is not used in the calculation. If potassium is included, the range shifts to 12 to 16 mEq/L.
2. What does a high anion gap mean?
A high anion gap (HAGMA) indicates the presence of unmeasured acid anions, such as ketoacids (diabetes), lactate (sepsis/shock), or exogenous toxins (ethylene glycol).
3. Can you have acidosis with a normal anion gap?
Yes, this is called Normal Anion Gap Metabolic Acidosis (NAGMA). It usually involves the loss of bicarbonate, common in severe diarrhea or renal tubular acidosis.
4. Why do we correct for albumin?
Albumin is negatively charged. If a patient has very low albumin, the "measured gap" will look small even if there are dangerous acids present. Correction reveals the true gap.
5. Is the anion gap the same as the osmolar gap?
No. The anion gap measures electrolyte balance, while the osmolar gap compares measured vs. calculated serum osmolality to find alcohols or glycols.
6. Does dehydration affect the anion gap?
Dehydration can increase sodium and chloride levels, but since it usually affects them proportionally, the gap itself might stay stable unless there is associated lactic acidosis.
7. What causes a low anion gap?
Low anion gaps are rare but can be caused by hypoalbuminemia, multiple myeloma (due to positively charged IgG proteins), or lithium toxicity.
8. What is the Delta-Delta ratio?
It is a calculation (Change in AG / Change in HCO3) used to determine if a mixed acid-base disorder is present alongside a high anion gap acidosis.