Anion Gap Calculator (Using CO2) | Clinical Tool


Anion Gap Calculator (Using CO2/Bicarbonate)

A clinical tool for assessing acid-base balance from electrolyte values.


Enter serum sodium level in mEq/L.


Enter serum chloride level in mEq/L.


Enter serum bicarbonate or total CO2 level in mEq/L.


Calculated Anion Gap

mEq/L


Sodium (Cation)

Chloride (Anion)

Bicarb/CO2 (Anion)

Formula: Anion Gap = [Na+] – ([Cl-] + [HCO3-])

Bar chart of Cations vs. Anions This chart visually compares the measured cations (Sodium) against the measured anions (Chloride + Bicarbonate). The difference illustrates the anion gap. Cations Anions

Visual representation of measured cations vs. measured anions. The unit for all values is mEq/L.

Deep Dive into Calculating Anion Gap Using CO2

What is the Anion Gap?

The anion gap (AG) is a calculated value derived from a standard electrolyte panel lab test. It represents the difference between the measured primary cations (positively charged ions) and the measured primary anions (negatively charged ions) in the blood. In clinical practice, this value is a crucial tool for diagnosing and differentiating types of metabolic acidosis. When calculating anion gap using CO2, the total CO2 value from a lab report is used as a proxy for the bicarbonate (HCO3-) concentration, as the vast majority of CO2 in the blood exists in this form. A high anion gap suggests that there are unmeasured anions in the bloodstream, often acidic compounds, pointing towards specific medical conditions.

Anion Gap Formula and Explanation

The most common formula for calculating the anion gap excludes potassium for simplicity, as its concentration is relatively low and stable. The formula used by this calculator is:

Anion Gap = [Na+] – ([Cl-] + [HCO3-])

In this equation, [HCO3-] can be substituted with the total CO2 measurement from a basic metabolic panel (BMP). This calculation essentially subtracts the main measured anions from the main measured cation to find the “gap” of unmeasured anions.

Variables in the Anion Gap Calculation
Variable Meaning Unit Typical Normal Range
[Na+] Serum Sodium Concentration mEq/L 136–145
[Cl-] Serum Chloride Concentration mEq/L 98–106
[HCO3-]/CO2 Serum Bicarbonate or Total CO2 mEq/L 22–28
Anion Gap Calculated Result mEq/L 4–12 (can vary by lab)

Practical Examples

Example 1: Diabetic Ketoacidosis (High Anion Gap)

A patient presents with symptoms of diabetic ketoacidosis. Their lab results are:

  • Sodium (Na+): 138 mEq/L
  • Chloride (Cl-): 95 mEq/L
  • Bicarbonate (CO2): 10 mEq/L

Using the formula: AG = 138 – (95 + 10) = 138 – 105 = 33 mEq/L. This significantly elevated anion gap is consistent with the presence of unmeasured ketoacids, confirming a high anion gap metabolic acidosis.

Example 2: Normal Result

A patient has routine lab work done with the following results:

  • Sodium (Na+): 140 mEq/L
  • Chloride (Cl-): 102 mEq/L
  • Bicarbonate (CO2): 25 mEq/L

Using the formula: AG = 140 – (102 + 25) = 140 – 127 = 13 mEq/L. This result is at the high end of the normal range and is generally not considered clinically significant without other signs or symptoms. See our guide on the interpretation of blood gas results for more.

How to Use This Anion Gap Calculator

  1. Enter Sodium Value: Input the patient’s serum sodium (Na+) level in mEq/L into the first field.
  2. Enter Chloride Value: Input the serum chloride (Cl-) level in mEq/L into the second field.
  3. Enter Bicarbonate/CO2 Value: Input the serum bicarbonate (HCO3-) or total CO2 level in mEq/L into the third field.
  4. Review the Results: The calculator automatically provides the calculated anion gap in the results section. The primary result is displayed prominently, along with the input values for verification.
  5. Interpret the Chart: The bar chart provides a visual comparison of the primary measured cation (sodium) against the sum of the measured anions (chloride + bicarbonate), helping to visualize the “gap.”

Key Factors That Affect the Anion Gap

  • Lactic Acidosis: Strenuous exercise, shock, or sepsis can cause a buildup of lactic acid, leading to a high anion gap.
  • Ketoacidosis: Poorly controlled diabetes, alcoholism, or starvation can lead to the production of ketoacids, raising the anion gap. This is a common use for our bicarbonate deficit calculator.
  • Kidney Failure (Uremia): Impaired kidney function prevents the excretion of acids like sulfates and phosphates, increasing the anion gap.
  • Toxic Ingestions: Ingesting substances like methanol, ethylene glycol (antifreeze), or high doses of aspirin can cause a severe high anion gap metabolic acidosis.
  • Hypoalbuminemia: Low levels of albumin, a major unmeasured anion, can artificially lower the anion gap. A correction may be needed. Consider using a corrected calcium calculator which also involves albumin.
  • Dehydration: Can concentrate serum electrolytes, potentially altering the anion gap, although this is usually less dramatic than in acidosis.

Frequently Asked Questions (FAQ)

1. Why is CO2 used instead of bicarbonate for calculating the anion gap?

On a basic metabolic panel (BMP), the “Total CO2” measurement is a proxy for bicarbonate (HCO3-). It includes HCO3- and dissolved CO2, but since HCO3- makes up about 95% of the total, it’s a clinically accepted and convenient substitute for direct bicarbonate measurement.

2. What is considered a high anion gap?

While lab ranges vary, an anion gap above 12 mEq/L is generally considered elevated. A value over 20 mEq/L is a strong indicator of a significant metabolic acidosis that requires investigation. The causes of metabolic acidosis are numerous.

3. What does a normal anion gap mean in the presence of acidosis?

This is known as non-anion gap metabolic acidosis (NAGMA). It typically occurs when there is a loss of bicarbonate (e.g., from severe diarrhea) that is compensated by an increase in chloride, keeping the gap normal. This is sometimes called hyperchloremic metabolic acidosis.

4. Can the anion gap be low?

Yes, a low anion gap (less than 4 mEq/L) is uncommon but can occur. The most common cause is low albumin (hypoalbuminemia). It can also be caused by multiple myeloma or severe hypercalcemia.

5. Do I need to use a unit switcher?

No, the standard unit for these electrolyte measurements worldwide is milliequivalents per liter (mEq/L). For the ions used in this calculation (Na+, Cl-, HCO3-), this value is equivalent to millimoles per liter (mmol/L). The calculator assumes mEq/L for all inputs.

6. What is the anion gap formula with potassium?

A less common variation includes potassium: AG = ([Na+] + [K+]) – ([Cl-] + [HCO3-]). This results in a slightly higher normal range (approx. 8-16 mEq/L). However, the formula without potassium is more widely used for clinical simplicity.

7. What does “closing the gap” mean?

In the context of treating a condition like diabetic ketoacidosis, “closing the gap” refers to the goal of treatment. As the underlying cause is corrected (e.g., with insulin), the unmeasured anions are metabolized, bicarbonate levels rise, and the calculated anion gap returns to the normal range.

8. How accurate is calculating anion gap using CO2 from a venous sample?

It is very accurate for clinical purposes. While an arterial blood gas (ABG) is the gold standard for acid-base status, a venous blood sample (like that used in a BMP) provides a reliable estimation of bicarbonate and is far more common for routine electrolyte monitoring.

Related Tools and Internal Resources

For a comprehensive analysis of a patient’s metabolic state, consider using these related tools and resources:

© 2026 Your Website Name. All information is for educational purposes only and should not be considered medical advice.



Leave a Reply

Your email address will not be published. Required fields are marked *