molecalculator

Moles & Molar Mass

ABG Analysis Calculator: How to Interpret Blood Gases

Calculator No. 01-9898 · Updated · Formula and assumptions shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

An ABG analysis calculator works out the key values from an arterial blood gas report—pH, PaCO2, HCO3−, and base excess—and classifies the acid-base disorder as respiratory or metabolic, acidosis or alkalosis, and whether it is compensated. You enter the measured blood gas values and the calculator returns the primary disturbance, the expected compensation, and whether compensation is adequate. This page explains the arithmetic behind that interpretation and shows you how to do it by hand.

Formula

The ABG calculator uses two core relationships. First, the Henderson-Hasselbalch equation links pH, PaCO2, and HCO3−:

pH = 6.1 + log10( [HCO3−] / (0.03 × PaCO2) )

where [HCO3−] is in mmol/L, PaCO2 is in mmHg, and 0.03 is the solubility coefficient of CO2 in plasma at 37 °C (mmol/L per mmHg). The 6.1 is the pKa of carbonic acid at body temperature.

Second, the expected compensation rules predict what the other variable should be if the body has responded appropriately:

  • Metabolic acidosis: expected PaCO2 = 1.5 × HCO3− + 8 ± 2 (Winter’s formula)
  • Metabolic alkalosis: expected PaCO2 = 0.7 × HCO3− + 20 ± 5
  • Acute respiratory acidosis: expected HCO3− increases by 1 mmol/L per 10 mmHg rise in PaCO2
  • Chronic respiratory acidosis: expected HCO3− increases by 3.5 mmol/L per 10 mmHg rise in PaCO2
  • Acute respiratory alkalosis: expected HCO3− decreases by 2 mmol/L per 10 mmHg fall in PaCO2
  • Chronic respiratory alkalosis: expected HCO3− decreases by 5 mmol/L per 10 mmHg fall in PaCO2

The anion gap is calculated as Na+ − (Cl− + HCO3−), with a normal range of 8–12 mmol/L when using the standard method (some labs use K+ and report 12–16).

Worked Example

Using the default values from the calculator block:

  • pH = 7.32, PaCO2 = 48 mmHg, HCO3− = 22 mmol/L, Na+ = 140 mmol/L, Cl− = 102 mmol/L

Step 1: Classify the primary disorder. pH 7.32 is below 7.35 (acidemia). PaCO2 is 48 mmHg, above 45 (high), so the primary problem is respiratory acidosis. The HCO3− is 22, which is normal, so there is no primary metabolic acidosis.

Step 2: Check compensation. For an acute respiratory acidosis, expected HCO3− = 24 + (48 − 40)/10 × 1 = 24 + 0.8 = 24.8 mmol/L. The measured 22 is slightly below that, but within the acute range (usually 22–26). For chronic, expected = 24 + (48 − 40)/10 × 3.5 = 24 + 2.8 = 26.8 mmol/L. The measured 22 is below the chronic expectation, so this is more consistent with acute or early acute-on-chronic respiratory acidosis.

Step 3: Anion gap = 140 − 102 − 22 = 16 mmol/L. This is elevated above 12, suggesting a concurrent metabolic acidosis (e.g., lactic acidosis) even though the primary disorder is respiratory. This is a mixed disorder.

The calculator’s first output gives “Respiratory acidosis” because pH < 7.35 and PaCO2 > 45. The expected PaCO2 output is 1.5 × 22 + 8 = 41 mmHg (but this applies only if the primary were metabolic acidosis, so it is not used here). The anion gap is 16 mmol/L.

Assumptions

  • Blood gas values are measured at 37 °C and corrected for patient temperature if needed.
  • The Henderson-Hasselbalch equation assumes a constant pKa of 6.1 and CO2 solubility of 0.03, which hold for normal plasma protein and electrolyte concentrations.
  • Compensation formulas assume the patient has no mixed disorder and that renal or respiratory responses are intact.
  • The anion gap calculation assumes standard ion measurements; abnormal proteins or unmeasured ions can alter the gap.

How to Read the ABG Report

An arterial blood gas report gives you pH, PaCO2, PaO2, HCO3−, base excess, and sometimes lactate and electrolytes. The pH tells you if the blood is acidemic (<7.35) or alkalemic (>7.45). PaCO2 is the respiratory component; HCO3− is the metabolic component. Base excess (BE) reflects the metabolic component as a deviation from zero; a BE of −5 means a metabolic acidosis of 5 mmol/L.

To interpret, first look at the pH. If it is abnormal, decide which component matches the direction of the pH change. If pH is low and PaCO2 is high, it is respiratory acidosis. If pH is low and HCO3− is low, it is metabolic acidosis. If pH is high and PaCO2 is low, it is respiratory alkalosis. If pH is high and HCO3− is high, it is metabolic alkalosis. Then check if the other component is moving in the expected direction for compensation. If both components are abnormal in the same direction as the pH, it is a mixed disorder (e.g., respiratory acidosis plus metabolic acidosis).

Common Mistakes and Pitfalls

  • Forgetting to check the anion gap in metabolic acidosis. A high gap indicates unmeasured anions (lactate, ketones, toxins), while a normal gap suggests bicarbonate loss (diarrhea, renal tubular acidosis).
  • Using the wrong compensation formula. Winter’s formula applies only to metabolic acidosis, not to respiratory disorders.
  • Ignoring the chronicity. Acute respiratory acidosis raises HCO3− by only 1 mmol/L per 10 mmHg, while chronic raises it by 3.5. Using the wrong one leads to misclassifying compensation.
  • Mixing up units. PaCO2 is usually reported in mmHg, but some labs use kPa. To convert, multiply kPa by 7.5 to get mmHg.
  • Rounding too early. In the Henderson-Hasselbalch equation, a small rounding error in HCO3− can change the pH by 0.01–0.02, which matters clinically.

Limits of the Calculator

This calculator is a study aid and clinical planning tool, not a substitute for a physician’s interpretation. It assumes the blood gas values are accurate and that the patient has a single primary disorder unless the anion gap suggests otherwise. It does not account for:

  • Mixed disorders that are not detectable from pH, PaCO2, and HCO3− alone (e.g., respiratory acidosis plus metabolic alkalosis with normal pH).
  • Abnormal protein levels (e.g., hypoalbuminemia) that lower the anion gap.
  • Renal or respiratory failure that blunts compensation.
  • Patient temperature, which affects the solubility of CO2 and the pKa.

Always interpret the ABG in the context of the patient’s history, physical exam, and other labs. The calculator gives you the arithmetic, not the diagnosis.

Frequently Asked Questions

What is a normal anion gap? The normal anion gap is 8–12 mmol/L when calculated as Na+ − (Cl− + HCO3−). If your lab uses K+ in the formula, the normal range is 12–16 mmol/L. A gap above 12 suggests metabolic acidosis from unmeasured anions like lactate, ketones, or toxins.

How do I know if compensation is adequate? Compare the measured PaCO2 or HCO3− to the expected value from the compensation formula. If the measured value falls within the expected range (usually ±2 for Winter’s formula), compensation is adequate. If it is outside, there is a mixed disorder.

What is the difference between acute and chronic respiratory acidosis? Acute respiratory acidosis occurs over minutes to hours, and the kidneys have not had time to retain bicarbonate. The expected HCO3− increase is only 1 mmol/L per 10 mmHg rise in PaCO2. Chronic respiratory acidosis (e.g., COPD) allows the kidneys to compensate fully, with an increase of 3.5 mmol/L per 10 mmHg. The distinction matters for treatment.

Can I use this calculator for venous blood gas? No. Venous blood gas values are different from arterial. Venous pH is typically 0.03–0.05 lower, and venous PCO2 is 4–6 mmHg higher. The compensation formulas are derived from arterial blood, so using venous values will misclassify the disorder.

What does base excess mean? Base excess (BE) is the amount of strong acid or base needed to titrate the blood back to pH 7.40 at a PaCO2 of 40 mmHg. A negative BE indicates metabolic acidosis, and a positive BE indicates metabolic alkalosis. It is a useful quick check but does not replace the full interpretation.

Why does the calculator show a mixed disorder when pH is normal? A normal pH can occur with two opposing disorders, such as respiratory acidosis and metabolic alkalosis. The calculator flags this only if the anion gap is abnormal or if the compensation formulas are violated. Always check the components even if pH is in the normal range.

Related

Formula used
in pHv | Arterial pH | - | 7.32 | 6.80 | 7.80
in pco2 | PaCO2 | mmHg | 48 | 10 | 150
in hco3 | HCO3- | mmol/L | 22 | 5 | 60
in na | Na+ | mmol/L | 140 | 110 | 160
in cl | Cl- | mmol/L | 102 | 70 | 140
out primary | Primary disorder | - | (pHv < 7.35 && pco2 > 45) ? "Respiratory acidosis" : (pHv > 7.45 && pco2 < 35) ? "Respiratory alkalosis" : (pHv < 7.35 && hco3 < 22) ? "Metabolic acidosis" : (pHv > 7.45 && hco3 > 26) ? "Metabolic alkalosis" : "Mixed or normal" | 0
out expected_pco2 | Expected PaCO2 (metabolic acidosis) | mmHg | 1.5 * hco3 + 8 | 1
out ag | Anion gap | mmol/L | na - cl - hco3 | 1

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Moles & Molar Mass section →