Neonatal Acid–Base Simulator

AIIMS Neonatal Ventilation Workshop 2026 · Practice tool

Neonatal acid–base simulator

Dr Deepak Chawla · Government Medical College Hospital, Chandigarh

How to use it

  1. Pick a scenarioUse the Scenario menu, or press Open on an exercise further down. The story and a suggestion appear under the menu. The baby starts at the moment of presentation; the dashed line on the map shows how it got there.
  2. Read the gas firstThe live printout is on the right; the interpretation sits under the map. To test yourself, untick Show interpretation, decide, then tick it again.
  3. Run the clockNothing changes while time is paused. Press ▶ Run (choose 5 min/s, 30 min/s or 4 h/s) or jump with +15 min, +6 h, +1 day. Lungs act in minutes to hours, kidneys over days.
  4. Give a treatmentThe buttons in the left panel change with the situation: ventilation, circulation, drugs, fluids and the cause. Hold the pointer on a button to read what it does. Then run the clock again.
  5. Set the ventilatorOnce ventilated, move Rate and Tidal volume. The box above shows the arithmetic, V̇A = rate × (VT − dead space), and the PaCO₂ it will settle at in about 15–20 minutes.
  6. Watch the organsThe Lungs, Blood and Kidney cards under the simulator say what each is doing. The Over time tab plots pH, PCO₂ and HCO₃⁻ with each treatment marked. Reset starts the scenario again.

Works in any modern browser on a laptop, tablet or phone (best on a laptop or a tablet held sideways). No installation and no internet needed for the downloaded file.

Practice exercises

Each Open button loads the scenario (and any first steps) into the simulator above. Try the task, then open What you should see.

1 · Lungs fast, kidneys slow

Perinatal asphyxia at 15 minutes of life. Run the clock for 6 hours, then look at the Over time tab.

What you should see

PCO₂ falls into the metabolic-acidosis band within an hour (the lungs compensate), but pH stays below 7.40 until the liver clears lactate over 12–24 hours. Compensation never overshoots.

2 · Intubating a baby with RDS

30-week baby on CPAP with PCO₂ ~70. Press Intubate & ventilate, then +15 min. Give surfactant, +15 min. Adjust rate and tidal volume to reach PaCO₂ 45–55.

What you should see

PaCO₂ ~69 → ~48 after ventilation, → high 30s after surfactant (V/Q improves, less dead space). Then lower the rate to avoid hypocapnia. HCO₃⁻ barely moved: an acute respiratory acidosis.

3 · You are the compensation

Septic shock, ventilated and paralysed, 6 hours later. Compare the PCO₂ with the expected value (ΔPCO₂ = SBE). Raise the rate to close the gap, then Restore perfusion.

What you should see

Base excess keeps falling but PCO₂ stays where the ventilator holds it (~34) when the acidosis now calls for ~29: a paralysed baby cannot add breaths, and the Lungs card says "Cannot compensate". A higher rate closes the gap; only restoring perfusion stops the lactate.

4 · Bicarbonate makes CO₂

The same paralysed baby given NaHCO₃ 2 mmol/kg with a fixed ventilator rate. Watch PCO₂ over the next hour.

What you should see

Base excess improves, but PCO₂ jumps because the bicarbonate buffers H⁺ into CO₂ that must be breathed out; sodium rises too. The acid keeps coming until perfusion is restored.

5 · Late metabolic acidosis of prematurity

25-week baby on PN with sodium chloride. Interpret the gas (look at the anion gap), then press Acetate for chloride in PN and run 2 days.

What you should see

A normal-gap (hyperchloraemic) acidosis: chloride high, lactate normal. Replacing chloride with acetate lets base excess recover over days without any bicarbonate bolus.

6 · Pyloric stenosis

5-week-old with 4 days of vomiting. Give NaCl + KCl and watch the Kidney card, then Stop the cause and run a day.

What you should see

Hypochloraemic, hypokalaemic metabolic alkalosis with a raised PCO₂ (compensation). While chloride is low the kidney is "stuck" and cannot excrete bicarbonate; replacing chloride lets it.

7 · Post-hypercapnic alkalosis

Ventilated ex-preterm with chronic PCO₂ ~68. Raise the rate to 55 and press +1 h a few times.

What you should see

pH swings alkaline: the kidney kept bicarbonate for the old high PCO₂ and takes 1–2 days to excrete it, longer if chloride is low. Bring PCO₂ down gradually.

8 · The normal-pH trap

BPD on furosemide. Untick Show interpretation and decide what is going on before you look. Then give NaCl + KCl.

What you should see

pH near normal with PCO₂ ~65 and HCO₃⁻ ~45: chronic respiratory acidosis plus a chloride-depletion metabolic alkalosis from the diuretic. A normal pH with abnormal numbers is a mixed disorder.

9 · Two encephalopathic babies

Open each and compare the gases: a urea cycle defect and an organic acidaemia.

What you should see

Baby A: respiratory alkalosis (ammonia drives breathing). Baby B: high-anion-gap acidosis with only a modest lactate (organic anions). Send ammonia with the first gas of any encephalopathic newborn.

10 · Over-ventilation after surfactant

28-week baby on pressure-limited ventilation, one hour after surfactant. Bring PaCO₂ back to 45–55 with the sliders.

What you should see

PCO₂ ~25: acute respiratory alkalosis (hypocapnia reduces cerebral blood flow). Lowering tidal volume and rate brings it back within 15–20 minutes of simulated time.

How the model works

PartRule used
pHHenderson–Hasselbalch: pH = 6.1 + log (HCO₃⁻ ÷ 0.03 × PCO₂). Metabolic state is kept as standard base excess, built from sodium, chloride, albumin, lactate and other anions (Berend 2018), so the anion gap behaves naturally.
PaCO₂Set by alveolar ventilation: V̇A = rate × (VT − dead space). Normal V̇A ≈ 112 mL/kg/min gives PaCO₂ 40; halve V̇A and PaCO₂ doubles. Settles over 15–20 minutes.
Dead spaceAirway and circuit (2.2 term, 2.4 preterm, 2.6 extremely preterm mL/kg) plus ventilation wasted by diseased lung (e.g. RDS 0.7). Surfactant removes about two-thirds of the disease part.
LungsRespond to a metabolic change within hours: ΔPCO₂ = SBE in acidosis, 0.6 × SBE in alkalosis. Full response when breathing alone, half on patient-triggered ventilation, none when paralysed.
KidneysRespond to a respiratory change over 2–5 days: SBE moves towards 0.4 × ΔPCO₂ (smaller and slower in preterm babies). They cannot excrete bicarbonate when chloride is low, and never move bicarbonate in a direction that worsens pH.
TreatmentsRestoring perfusion stops lactate production (the liver clears it with a half-life of a few hours). NaHCO₃ adds sodium and a CO₂ load; THAM buffers without CO₂; saline adds chloride; NaCl + KCl replace chloride and potassium.

The model reproduces the published secondary-response rules (Berend K et al. N Engl J Med 2014;371:1434–45; Berend K. N Engl J Med 2018;378:1419–28). These were derived in adults; neonatal data are limited.