ABG Interpretation Calculator with A-a Gradient
Enter pH, PaCO2 and HCO3 to find the primary acid-base disorder and check compensation with the official formulas. Add PaO2, FiO2, age and atmospheric pressure for the alveolar gas equation and the A-a gradient for age.
For exam study, not for clinical use.
How it works
Step 1. pH
pH below 7.35 = acidemia; above 7.45 = alkalemia. If the pH is within 7.35 to 7.45, use 7.40 as the cutoff (7.37 counts as the acid side, 7.42 as the alkaline side).
Source: Arterial Blood Gas Analysis: Fundamentals, Interpretation, and Clinical Utility (NCBI Bookshelf, NIH) [1]
Step 2. Primary disorder
Acid side: PaCO2 above 40 mm Hg = respiratory acidosis; HCO3 below 24 mEq/L = metabolic acidosis. Alkaline side: PaCO2 below 40 = respiratory alkalosis; HCO3 above 24 = metabolic alkalosis. The value that matches the pH is the primary disorder; the other one shows compensation. If both match the pH, two disorders are present (mixed).
If pH, PaCO2 and HCO3 are all inside the official USMLE reference ranges (pH 7.35-7.45, Pco2 33-45 mm Hg, HCO3 22-28 mEq/L), the calculator reports no disorder.
Source: Arterial Blood Gas Analysis: Fundamentals, Interpretation, and Clinical Utility (NCBI Bookshelf, NIH) [1]; Anion Gap and Non-Anion Gap Metabolic Acidosis (NCBI Bookshelf, NIH) [2]; USMLE Step 1 Sample Test Questions: USMLE Laboratory Values, pages 7 to 9 (USMLE program, usmle.org) [3]
Step 3. Compensation: metabolic disorders
Metabolic acidosis (Winter’s formula): expected PaCO2 = 1.5 × HCO3 + 8 ± 2
Metabolic alkalosis: expected PaCO2 = 0.7 × HCO3 + 20 ± 5
PaCO2 higher than expected = an additional respiratory acidosis; lower = an additional respiratory alkalosis.
Source: Partial Pressure of Carbon Dioxide (NCBI Bookshelf, NIH) [4]; Physiology, Metabolic Alkalosis (NCBI Bookshelf, NIH) [5]
Step 3. Compensation: respiratory disorders
Respiratory acidosis: HCO3 rises about 1 mEq/L per 10 mm Hg rise in PaCO2 when acute, and 4 to 5 mEq/L per 10 mm Hg when chronic (after 3 to 5 days).
Respiratory alkalosis: HCO3 falls about 2 mEq/L per 10 mm Hg fall in PaCO2 when acute, and 4 to 5 mEq/L per 10 mm Hg when chronic.
The change is counted from a PaCO2 of 40. Because the patient’s own starting bicarbonate is unknown, the calculator applies the change to the whole official HCO3 range (22 to 28 mEq/L) and reports whether the measured value fits the acute range, the chronic range, both, or neither (a possible extra metabolic disorder).
Source: Partial Pressure of Carbon Dioxide (NCBI Bookshelf, NIH) [4]; Hypocarbia (NCBI Bookshelf, NIH) [6]; USMLE Step 1 Sample Test Questions: USMLE Laboratory Values, pages 7 to 9 (USMLE program, usmle.org) [3]
Step 4. Oxygenation: alveolar gas equation and A-a gradient
PAO2 = FiO2 × (Patm − 47) − PaCO2 / 0.8 (47 mm Hg = water vapour; 0.8 = respiratory quotient). At sea level on room air with a PaCO2 of 40: (760 − 47) × 0.21 − 40 / 0.8 = 99.7 mm Hg.
A-a gradient = PAO2 − PaO2. Expected for age = (age + 10) / 4.
Higher than expected: a problem at the alveolar-capillary unit, such as V/Q mismatch, shunt or diffusion impairment (for example pneumonia). Hypoxemia from hypoventilation keeps a normal A-a gradient. The age equation assumes room air; the A-a gradient rises about 5 to 7 mm Hg for every 10% rise in FiO2.
Source: Partial Pressure of Oxygen (NCBI Bookshelf, NIH) [7]; Alveolar Gas Equation (NCBI Bookshelf, NIH) [8]; Physiology, Alveolar to Arterial Oxygen Gradient (NCBI Bookshelf, NIH) [9]; Arterial Blood Gas Analysis: Fundamentals, Interpretation, and Clinical Utility (NCBI Bookshelf, NIH) [1]
Worked example
StatPearls example: pH 7.39, PaCO2 51 mm Hg, HCO3 30 mEq/L, PaO2 59 mm Hg, room air. (We added an age of 60 to show the A-a gradient.)
- pH 7.39 is in the normal range but below 7.40, so the acid side.
- PaCO2 51 (above 40) matches the pH: primary respiratory acidosis. The high HCO3 is metabolic compensation, which takes days: a non-acute picture.
- Expected HCO3: acute 23.1 to 29.1, chronic 26.4 to 33.5. Measured 30 fits the chronic range only.
- PAO2 = 0.21 × 713 − 51 / 0.8 = 86.0; A-a gradient = 86.0 − 59 = 27.0 mm Hg, higher than the 17.5 expected at age 60.
Press Example: StatPearls ABG above to load it.
Source: Arterial Blood Gas Analysis: Fundamentals, Interpretation, and Clinical Utility (NCBI Bookshelf, NIH) [1]; Physiology, Alveolar to Arterial Oxygen Gradient (NCBI Bookshelf, NIH) [9]
FAQ
What should the A-a gradient be?
A normal A-a gradient for age is about (age + 10) / 4 mm Hg on room air: about 7.5 mm Hg at 20 and 17.5 mm Hg at 60. It rises with a higher FiO2, about 5 to 7 mm Hg for every 10% increase.
Source: Physiology, Alveolar to Arterial Oxygen Gradient (NCBI Bookshelf, NIH) [9]; Alveolar Gas Equation (NCBI Bookshelf, NIH) [8]
What hypoxemic respiratory failure causes have a normal A-a gradient?
Hypoventilation, for example from CNS depression, neuromuscular disease such as myasthenia gravis, or chest wall problems such as kyphoscoliosis. Alveolar and arterial oxygen fall together, so the gradient stays normal. Problems of the alveolar-capillary unit, such as pneumonia, raise it.
Source: Physiology, Alveolar to Arterial Oxygen Gradient (NCBI Bookshelf, NIH) [9]
How do you interpret an ABG step by step?
1. pH: acidemia below 7.35, alkalemia above 7.45 (use 7.40 if it is in between). 2. Primary disorder: the PaCO2 or HCO3 that matches the pH. 3. Compensation: is the other value moving the expected amount? 4. Oxygenation: PaO2 and the A-a gradient.
Source: Arterial Blood Gas Analysis: Fundamentals, Interpretation, and Clinical Utility (NCBI Bookshelf, NIH) [1]
What are normal ABG values?
On the official USMLE table, on room air: pH 7.35-7.45, Pco2 33-45 mm Hg, Po2 75-105 mm Hg. Serum bicarbonate is 22-28 mEq/L. See the full NBME lab values table.
Source: USMLE Step 1 Sample Test Questions: USMLE Laboratory Values, pages 7 to 9 (USMLE program, usmle.org) [3]
How do you tell acute from chronic respiratory acidosis?
By the bicarbonate. Acute: HCO3 rises about 1 mEq/L per 10 mm Hg rise in PaCO2. Chronic (3 to 5 days, once the kidneys compensate): 4 to 5 mEq/L per 10 mm Hg.
Source: Partial Pressure of Carbon Dioxide (NCBI Bookshelf, NIH) [4]
What is the alveolar gas equation?
PAO2 = FiO2 × (Patm − 47) − PaCO2 / 0.8. At sea level on room air with a PaCO2 of 40 mm Hg it gives about 99.7 mm Hg.
Source: Alveolar Gas Equation (NCBI Bookshelf, NIH) [8]; Partial Pressure of Oxygen (NCBI Bookshelf, NIH) [7]
Sources
Every formula, cutoff and reference value on this page comes from the official sources below. Click any source to check it yourself.
- Arterial Blood Gas Analysis: Fundamentals, Interpretation, and Clinical Utility. StatPearls (updated 5 July 2026) (NCBI Bookshelf, NIH)
- Anion Gap and Non-Anion Gap Metabolic Acidosis. StatPearls (updated 6 August 2025) (NCBI Bookshelf, NIH)
- USMLE Step 1 Sample Test Questions: USMLE Laboratory Values, pages 7 to 9 (PDF updated 2 April 2026, retrieved 24 October 2026) (USMLE program, usmle.org)
- Partial Pressure of Carbon Dioxide. StatPearls (updated 26 September 2022) (NCBI Bookshelf, NIH)
- Physiology, Metabolic Alkalosis. StatPearls (updated 17 July 2023) (NCBI Bookshelf, NIH)
- Hypocarbia. StatPearls (updated 31 January 2026) (NCBI Bookshelf, NIH)
- Partial Pressure of Oxygen. StatPearls (updated 11 April 2026) (NCBI Bookshelf, NIH)
- Alveolar Gas Equation. StatPearls (updated 11 September 2024) (NCBI Bookshelf, NIH)
- Physiology, Alveolar to Arterial Oxygen Gradient. StatPearls (updated 5 June 2023) (NCBI Bookshelf, NIH)
Last checked: 24 October 2026. Spotted a mistake? Please tell us on the Corrections page.
For exam study, not for clinical use. This tool is for learning how the formulas work. It is not medical advice. See the Medical disclaimer.
More free tools
- NBME Lab Values: Searchable table of the official USMLE laboratory reference ranges, with conventional and SI units.
- Anion Gap Calculator: Anion gap, albumin correction, delta ratio and Winter’s formula.
- Sensitivity and Specificity Calculator: 2×2 table: sensitivity, specificity, PPV, NPV, likelihood ratios, plus RR, OR, ARR and NNT.
- Free USMLE Step 1 practice questions