Acid-Base (ABG) Calculator

Interpret an arterial blood gas: calculated pH, anion gap, Winter’s formula compensation check, and primary disorder.

100% FreeNo sign-upPrivate — runs in your browser
—

Calculated pH

Anion gap
—
Expected PaCO2 (Winter's)
—
Primary disorder
—

Copied to clipboard

How to use this tool

1
Enter PaCO2 and HCO3

These two values determine the calculated pH and the primary disorder.

2
Add sodium and chloride

They give the anion gap, which separates high-gap from normal-gap metabolic acidosis.

3
Check Winter's formula

In metabolic acidosis, compare actual PaCO2 with the expected range to spot a second respiratory disorder.

4
Use albumin if available

A low albumin falsely lowers the anion gap; the corrected value is shown in Advanced options.

Formula & worked example

Henderson–Hasselbalch: pH = 6.1 + log10(HCO3 ÷ (0.03 × PaCO2)). Anion gap = Na − (Cl + HCO3). Winter's formula (metabolic acidosis compensation): expected PaCO2 = 1.5 × HCO3 + 8 ± 2 mmHg. Albumin-corrected anion gap = AG + 2.5 × (4 − albumin g/dL). Standard textbook ABG method; normal pH 7.35–7.45.

PaCO2 40 mmHg and HCO3 24 mEq/L give pH 7.40 by Henderson–Hasselbalch, with an anion gap of 16 (Na 140, Cl 100) — a normal gas.

Limitations — read this before you rely on it

Calculated pH assumes standard constants and a correctly measured gas; it does not replace a measured pH or clinical context (oxygenation, lactate, ketones, renal function, drugs). Compensation rules are approximations. This tool is not medical advice — ABG interpretation must be done by a clinician.

Frequently asked questions

In metabolic acidosis, the lungs should compensate by lowering PaCO2 to 1.5 × HCO3 + 8 (±2). If PaCO2 is higher, there is also respiratory acidosis; if lower, respiratory alkalosis.

Above about 12 mEq/L (lab-dependent). Common causes include lactic acidosis, ketoacidosis, renal failure and toxic alcohols.

Albumin is a major unmeasured anion, so low albumin lowers the gap and can hide a high-gap acidosis; the correction adds 2.5 per 1 g/dL below 4.

Yes — mixed disorders can cancel out, and compensated disorders bring pH near normal while HCO3 and PaCO2 stay abnormal.

No — it calculates pH from PaCO2 and HCO3. If your gas includes a measured pH, compare the two; a large mismatch suggests a measurement or entry error.