Acid-Base Calculator

Interpret arterial blood gas (ABG) results and calculate the anion gap. Identifies acid-base disorders, evaluates compensation, and computes the delta-delta ratio.

Arterial Blood Gas Values
Normal: 7.35 – 7.45
Normal: 35 – 45 mmHg
mmHg
Normal: 22 – 26 mEq/L
mEq/L
Electrolytes (for Anion Gap)
Normal: 136 – 145 mEq/L
mEq/L
Normal: 98 – 106 mEq/L
mEq/L
Normal: 3.5 – 5.5 g/dL. For corrected AG.
g/dL

Results

Anion Gap (AG)
Corrected AG (for albumin)
Delta Gap (Delta-Delta)
Expected PaCO₂ (Winter's)

Acid-Base Diagnosis

What is Acid-Base Balance?

The body maintains blood pH within a remarkably narrow range of 7.35 to 7.45. This precise regulation is essential because even small deviations can impair enzyme function, alter protein structure, and disrupt cellular processes. The body uses three main systems to maintain acid-base balance:

The relationship between these components is described by the Henderson-Hasselbalch equation:

pH = 6.1 + log([HCO₃⁻] / (0.03 × PaCO₂))

This equation shows that pH depends on the ratio of bicarbonate (metabolic component) to dissolved CO₂ (respiratory component). Disturbances in either component lead to acid-base disorders.

Arterial Blood Gas (ABG) Basics

An arterial blood gas is a laboratory test performed on blood drawn from an artery (usually the radial artery at the wrist). It provides several critical measurements:

ParameterNormal RangeWhat It Measures
pH7.35 – 7.45Overall acid-base status of the blood
PaCO₂35 – 45 mmHgPartial pressure of CO₂ — respiratory component
HCO₃⁻22 – 26 mEq/LBicarbonate concentration — metabolic component
PaO₂75 – 100 mmHgPartial pressure of oxygen (oxygenation status)
SaO₂95 – 100%Oxygen saturation of hemoglobin
Base Excess-2 to +2 mEq/LAmount of acid/base needed to normalize pH

The Four Primary Acid-Base Disorders

DisorderpHPrimary ChangeCompensation
Metabolic Acidosis< 7.35HCO₃⁻ decreasedPaCO₂ decreases (hyperventilation)
Metabolic Alkalosis> 7.45HCO₃⁻ increasedPaCO₂ increases (hypoventilation)
Respiratory Acidosis< 7.35PaCO₂ increasedHCO₃⁻ increases (renal retention)
Respiratory Alkalosis> 7.45PaCO₂ decreasedHCO₃⁻ decreases (renal excretion)
Check pH < 7.35 > 7.45 ACIDEMIA ALKALEMIA Low HCO₃⁻ High CO₂ High HCO₃⁻ Low CO₂ Metabolic Acidosis Respiratory Acidosis Metabolic Alkalosis Respiratory Alkalosis Check Anion Gap AG Elevated (MUDPILES) AG Normal (HARDUPS)

Figure 1: Systematic approach to ABG interpretation — start with pH, identify the primary disorder, then assess compensation and anion gap.

The Anion Gap

The anion gap (AG) represents the difference between measured cations and measured anions in the blood. It exists because not all ions are routinely measured — the "gap" is filled by unmeasured anions (albumin, phosphate, sulfate, organic acids).

Anion Gap = Na⁺ − (Cl⁻ + HCO₃⁻)

Normal range: 8 – 12 mEq/L

An elevated anion gap indicates the presence of excess unmeasured anions, typically from an acid that has been added to the blood (such as lactic acid, ketoacids, or toxic alcohols). The mnemonic MUDPILES helps remember causes of elevated AG metabolic acidosis:

A normal AG metabolic acidosis (also called hyperchloremic metabolic acidosis) is caused by bicarbonate loss or impaired renal acid excretion. The mnemonic HARDUPS helps:

Corrected Anion Gap

Albumin is the major unmeasured anion contributing to the normal anion gap. In hypoalbuminemic patients (common in critically ill, liver disease, nephrotic syndrome), the AG may be falsely normal even when excess unmeasured acids are present. The corrected AG adjusts for this:

Corrected AG = Measured AG + 2.5 × (4.0 − Albumin)

(Where albumin is in g/dL)

For every 1 g/dL decrease in albumin below 4.0, the expected anion gap decreases by about 2.5 mEq/L. The corrected AG "adds back" this hidden gap.

Compensation Rules

When a primary acid-base disorder occurs, the body attempts to compensate to minimize the pH change. Compensation never fully corrects the pH back to normal (if pH is exactly 7.40, consider a mixed disorder).

Primary DisorderCompensationExpected Response
Metabolic AcidosisRespiratory (hyperventilation)PaCO₂ = 1.5 × HCO₃⁻ + 8 ± 2 (Winter's)
Metabolic AlkalosisRespiratory (hypoventilation)PaCO₂ = 0.7 × HCO₃⁻ + 21 ± 2
Respiratory Acidosis (acute)Metabolic (renal)HCO₃⁻ rises 1 mEq/L per 10 mmHg rise in CO₂
Respiratory Acidosis (chronic)Metabolic (renal)HCO₃⁻ rises 3.5 mEq/L per 10 mmHg rise in CO₂
Respiratory Alkalosis (acute)Metabolic (renal)HCO₃⁻ drops 2 mEq/L per 10 mmHg drop in CO₂
Respiratory Alkalosis (chronic)Metabolic (renal)HCO₃⁻ drops 5 mEq/L per 10 mmHg drop in CO₂

Winter's Formula

Winter's formula predicts the expected PaCO₂ in the setting of a primary metabolic acidosis:

Expected PaCO₂ = 1.5 × [HCO₃⁻] + 8 (± 2)

Delta-Delta Ratio

The delta-delta ratio (also called the delta gap or delta ratio) is used in AG metabolic acidosis to detect a concurrent non-AG metabolic acidosis or metabolic alkalosis:

Delta-Delta = (AG − 12) / (24 − HCO₃⁻)
Delta-Delta ValueInterpretation
< 1Concurrent non-AG metabolic acidosis (excess HCO₃⁻ loss beyond what AG acids explain)
1 – 2Pure AG metabolic acidosis (the AG increase fully accounts for the HCO₃⁻ decrease)
> 2Concurrent metabolic alkalosis (HCO₃⁻ is higher than expected — a metabolic alkalosis is "hiding")

Systematic ABG Interpretation

Follow these steps to systematically interpret any ABG:

  1. Assess the pH: Is the patient acidemic (< 7.35) or alkalemic (> 7.45)?
  2. Identify the primary disorder: Which component (respiratory or metabolic) explains the pH change?
  3. Evaluate compensation: Is the other component changing in the expected direction and magnitude?
  4. Calculate the anion gap: If metabolic acidosis is present, is the AG elevated?
  5. Apply Winter's formula: In metabolic acidosis, is the respiratory compensation appropriate?
  6. Calculate the delta-delta: In AG metabolic acidosis, is there a concurrent metabolic disorder?
  7. Consider mixed disorders: If compensation is inadequate or excessive, suspect a mixed acid-base disturbance.

Common Causes of Acid-Base Disorders

Metabolic Acidosis

Elevated AG: Lactic acidosis (sepsis, shock, seizures), diabetic ketoacidosis, renal failure (uremia), toxic ingestion (methanol, ethylene glycol, salicylates)

Normal AG: Diarrhea, renal tubular acidosis (RTA), saline resuscitation (dilutional), acetazolamide use, ureteral diversion

Metabolic Alkalosis

Chloride-responsive (urine Cl < 25): Vomiting, NG suction, diuretic use (post-effect), post-hypercapnia

Chloride-resistant (urine Cl > 40): Hyperaldosteronism, Cushing syndrome, Bartter/Gitelman syndrome, severe hypokalemia

Respiratory Acidosis

Acute: Airway obstruction, pneumothorax, pulmonary edema, drug overdose (opioids, benzodiazepines), neuromuscular paralysis

Chronic: COPD, obesity hypoventilation syndrome, neuromuscular disease, chest wall deformity

Respiratory Alkalosis

Common causes: Anxiety/hyperventilation, pain, fever, sepsis, pulmonary embolism, pregnancy, salicylate toxicity (early), high altitude, mechanical ventilation (overventilation)

Frequently Asked Questions

What does a normal pH with abnormal PaCO₂ and HCO₃⁻ mean?

A normal pH (7.35–7.45) with abnormal PaCO₂ and HCO₃⁻ typically indicates either: (1) a fully compensated acid-base disorder, or (2) a mixed acid-base disorder where opposing disturbances cancel out. Look at which value is most abnormal and consider the clinical context. Chronic disorders have more time for compensation and may achieve near-normal pH.

Can a patient have multiple acid-base disorders simultaneously?

Yes, mixed acid-base disorders are common, especially in critically ill patients. For example, a patient with sepsis may have both a lactic acidosis (metabolic acidosis) and a respiratory alkalosis from hyperventilation. The anion gap, delta-delta ratio, and comparison of measured vs. expected compensation help identify mixed disorders.

What is the normal anion gap?

The normal anion gap is typically 8–12 mEq/L. Some labs use a normal range of 10–12 mEq/L. The exact normal value depends on the lab's methodology and whether potassium is included in the calculation. Always compare to your laboratory's reference range.

Why is albumin important for the anion gap?

Albumin is a negatively charged protein that constitutes a significant portion of the unmeasured anions making up the normal anion gap. In critically ill patients, albumin levels are frequently low (hypoalbuminemia). This can mask an elevated anion gap acidosis — the AG may appear "normal" even though excess acids are present. The corrected anion gap accounts for this by adding 2.5 mEq/L to the AG for every 1 g/dL decrease in albumin below 4.0.

What is base excess?

Base excess (BE) is the amount of strong acid (in mEq/L) needed to return blood pH to 7.40 at a PaCO₂ of 40 mmHg and 37°C. A positive BE indicates excess base (metabolic alkalosis), while a negative BE (also called base deficit) indicates excess acid (metabolic acidosis). Normal BE is -2 to +2 mEq/L. It provides a pure measure of the metabolic component independent of respiratory effects.