Pediatrics

Pyloric Stenosis

5-week-old with projectile vomiting and a palpable olive. Why you fix the electrolytes before you cut.

Pediatrics

Pyloric Stenosis

5-week-old with projectile vomiting and a palpable olive. Why you fix the electrolytes BEFORE you cut.

What's Going On?

A 5-week-old boy. Four days of vomiting after every feed. He's hungry again immediately after. Something is wrong.

5-week-old male, born at 36 weeks. His parents brought him in because he vomits after every feed for the past 4 days. Not just spitting up. We're talking projectile vomiting that hits the wall. The milk is undigested. No bile. He's hungry again the moment it stops.

On exam: a firm, 2 cm olive-shaped mass in the epigastrium. You can see visible peristaltic waves moving across his abdomen left to right before each vomiting episode. Ultrasound shows an elongated, thickened pylorus.

What is the next best step?

C is right, and this is the trap everyone falls into. The diagnosis is already made by ultrasound. The kid needs surgery. But you cannot take a baby with metabolic alkalosis and hypokalemia to the OR right now. The anesthesiologist will refuse, and rightfully so. You fix the labs first, THEN you cut. Surgery is not an emergency here because pyloric stenosis is not a vascular emergency. The obstruction is mechanical, not ischemic. Two days of IV fluids and electrolyte replacement will not hurt this baby. An unexpected metabolic crisis on the table will.

Why This Happens

Muscle hypertrophy you can feel with your fingers. That's rare in medicine. Appreciate it.

The The ring of muscle between the stomach and the small bowel. When it contracts, food passes. When it's too thick, nothing gets through.pyloric muscle starts hypertrophying in the first few weeks of life. By weeks 3-6, it's thick enough to almost completely block the passage of food from the stomach into the duodenum. The stomach fills, fills, fills, and then launches its contents outward.

Here is the key word: nonbilious. Bile comes from the common bile duct, which enters at the The first section of the small intestine, right after the stomach. Bile and pancreatic enzymes enter here via the ampulla of Vater.duodenum. The obstruction is at the pylorus, BEFORE bile can mix in. So what comes up is pure, undigested milk. If you ever see bilious vomiting in a newborn, your brain should immediately jump to something distal to the duodenum.

🔧 Pyloric muscle hypertrophy begins at birth but takes 3-6 weeks to become symptomatic. That's why this is a 3-6 week old problem, not a day-one problem. The muscle grows into obstruction. 🔑Takes 3-6 weeks to grow thick enough. Pyloric = Progressive
🔢 Firstborn males have the highest risk. Also: maternal macrolide antibiotic exposure in the first 2 weeks of life, family history. Not understood why males, but males are more common by 4:1.
2 / 5

Normal vs. Hypertrophied Pylorus

Tap to compare. The ultrasound findings become obvious once you know what normal looks like.

STOMACH Full of milk PYLORUS DUODENUM Length <15mm Wall <3mm Food flows freely

Normal pylorus: thin muscle wall (<3mm), short channel (<15mm). Food passes without resistance. No olive. No drama.

STOMACH Overdistended THICK PYLORUS Wall >3mm Length >15mm X Blocked Projectile! Olive sign = this mass

Pyloric stenosis: the muscle wall is thickened (>3mm) and elongated (>15mm). The channel is nearly obliterated. Stomach contents have nowhere to go except back up, fast.

ULTRASOUND IMAGE (schematic) Wall >3mm Target sign / Donut sign LUMEN (narrow) Hypertrophied muscle (gray) Length view rotated 90 deg >15mm

Ultrasound cross-section: the "donut" or "target" sign. Thick gray muscle ring surrounds a tiny lumen. Measure the wall (>3mm) and length (>15mm) to confirm. This is the diagnostic test of choice. No radiation. No barium.

See It to Know It

The imaging and anatomy boards expect you to recognize. Tap to expand.

2 / 5

Why the Labs Are a Disaster

This baby has been vomiting HCl for days. Build the chain yourself.

The baby loses stomach acid every time he vomits. Build the full metabolic chain.

Tap a step to select it, then tap its slot above to place it.

Stomach loses waiting…
Blood pH waiting…
Kidneys compensate waiting…
Paradoxical waiting…
HCl (H+ and Cl-)
pH rises (alkalosis)
pH falls (acidosis)
Retain H+, waste K+
Paradoxical aciduria
Lose Na+ only
Full chain: Vomiting HCl (H+ and Cl-) → blood loses acid → metabolic alkalosis (pH rises) → kidneys try to fix it by retaining H+ and excreting K+ to compensate → potassium crashes (hypokalemia) → paradoxical aciduria (the kidneys are making acid urine in an alkalotic patient, because they're desperately trying to hold onto base). Final labs: hypochloremic, hypokalemic metabolic alkalosis with paradoxical aciduria. You can also see hyponatremia because of volume depletion.
Hypochloremic, hypokalemic metabolic alkalosis is the classic metabolic derangement. This is why surgery is delayed. Operating on an alkalotic, hypokalemic infant is dangerous. Fix it first.

What You'll See

Every finding has a reason. Know the reason, own the board question.

Finding Why It Happens Board Value
Projectile vomiting Stomach contracts forcefully against obstruction, pressure builds, ejects contents Nonbilious = tells you the obstruction is ABOVE bile entry (pre-duodenal)
Hungry right after vomiting Child is actually starving. Nothing absorbed. Food never made it to intestines. Distinguishes from other causes. A sick, infected child doesn't want to eat.
Olive-shaped mass The hypertrophied pylorus is palpable as a firm, round, moveable mass in the RUQ/epigastrum Pathognomonic when present. Not always felt in large babies or if stomach is distended.
Visible peristaltic waves Stomach contracts, waves visible left to right across epigastrum as it tries to push food through Watch for them by standing back and observing. Best seen during feeding.
Age 3-6 weeks Muscle takes time to hypertrophy after birth A 1-day-old cannot have pyloric stenosis. The muscle hasn't had time to grow.
Male, firstborn Risk factor, not well-understood mechanistically 4:1 male predominance. Firstborn child more commonly affected.
3 / 5

Don't Get Fooled

Four babies. One has pyloric stenosis. The clues will eliminate the others one at a time.

Each clue narrows it down. Click the baby that should be eliminated based on the current clue. Last one standing is your diagnosis.

Loading clue...
GERD
Acid reflux, small spit-ups
Malrotation + Volvulus
Midgut twists, emergent
Pyloric Stenosis
Your answer
Intussusception
Bowel folds into itself

Four Diagnoses Walk In

Tap each card. Know what makes it different. Only one has an olive and metabolic alkalosis.

Your answer
Pyloric Stenosis
Age: 3-6 weeks
Vomiting: Nonbilious, projectile
Sign: Palpable olive mass, visible peristaltic waves
Labs: Hypochloremic hypokalemic metabolic alkalosis
Imaging: Ultrasound (wall >3mm, length >15mm)
Fix: Correct electrolytes first, then Ramstedt pyloromyotomy
Lookalike
GERD
Age: Any age, common in newborns
Vomiting: Small spit-ups, not projectile
Sign: Arching (Sandifer syndrome), no mass
Labs: Normal electrolytes
Key diff: Baby is uncomfortable, not hungry. No olive. No metabolic alkalosis.
Fix: Feed positioning, PPI if severe. No surgery.
Dangerous one
Malrotation + Volvulus
Age: First month of life (but any age)
Vomiting: Bilious (green-yellow) = emergency signal
Sign: Distended abdomen, inconsolable, shock
Labs: Metabolic acidosis, elevated lactate (ischemia)
Key diff: Green vomit in a neonate = midgut volvulus until proven otherwise
Fix: Emergent surgery (Ladd procedure). Hours matter.
Day-one finding
Duodenal Atresia
Age: Day 1 of life (not weeks)
Vomiting: Bilious, starts immediately after first feed
Sign: Double bubble on plain film (stomach + proximal duodenum)
Association: Down syndrome (trisomy 21)
Key diff: Day 1, bilious, double bubble. Pyloric stenosis is 3-6 weeks, nonbilious, olive.
Fix: Duodenoduodenostomy after stabilization.

Nonbilious Projectile Vomiting

Step through the clinical decision. Tap each box to follow the logic.

A baby vomiting after every feed. Walk the tree. Each step narrows the answer.

Nonbilious projectile vomiting in an infant

Where Everyone Gets Burned

🚫
Trap 1: Rushing to the OR

The question gives you a diagnosis and asks "next step." The answer is NOT pyloromyotomy. The answer is correct the metabolic derangement first. Pyloric stenosis is surgical, but it is NOT a surgical emergency. You have 24-48 hours to fix the labs before you cut. Anyone who takes this baby straight to the OR is putting them at risk for dangerous anesthetic complications.

🚫
Trap 2: Ordering Barium First

The old way was a barium swallow (upper GI series, looking for the "string sign" where barium squeezes through a narrow pylorus). The modern standard is ultrasound. No radiation, no aspiration risk, no barium prep. If the question asks which test diagnoses pyloric stenosis, the answer is ultrasound unless a specific historical context forces otherwise.

🚫
Trap 3: Bilious vs. Nonbilious Vomiting

This distinction decides your whole differential. Bilious vomiting in a neonate = surgical emergency until proven otherwise. Think malrotation with volvulus. Pyloric stenosis is always nonbilious because the block is proximal to where bile enters. If the vignette says bilious, you are not dealing with pyloric stenosis.

🚫
Trap 4: Getting the Metabolic Derangement Wrong

It's hypochloremic, hypokalemic, metabolic alkalosis. Not acidosis. Not hyperkalemia. The vomiting loses HCl, which raises pH (alkalosis). The kidney compensates by retaining H+ and dumping K+ (hypokalemia). The urine is paradoxically acidic in an alkalotic patient. If you can nail this chain, you will nail any question about vomiting-induced metabolic derangements forever.

Treatment: The Two-Step Rule

Never forget the order. The electrolytes come before the knife. Always.

Step 1: Correct First
IV fluids (normal saline or lactated Ringer's) with potassium replacement. Target serum chloride >100 mEq/L, potassium >3.5 mEq/L, and resolution of alkalosis (HCO3 <26). NPO while correcting. This takes 24-48 hours typically. Do not rush this step.
Step 2: Confirm Labs
Recheck electrolytes. Confirm the metabolic alkalosis has resolved. Confirm potassium is repleted. Confirm the anesthesiologist agrees the infant is safe for general anesthesia. Do not skip this check.
Step 3: Ramstedt Pyloromyotomy
Named after Conrad Ramstedt (1912). You cut the muscle longitudinally down to but not through the mucosa. The muscle springs apart, widening the channel. You do NOT remove anything. The muscle just stops being obstructive.Ramstedt pyloromyotomy: the surgeon cuts the thickened pyloric muscle longitudinally, releasing the obstruction. Does not remove the muscle. Does not reconstruct. Just splits it. The lumen widens immediately. Feeding restarts within 4-6 hours post-op.
Memory lock: Electrolytes before the knife. This is the most common board question about pyloric stenosis. The right answer is always to stabilize metabolically before operating. 🔑E before K: Electrolytes before the Knife (K = potassium, K = knife). Fix both before you cut.
4 / 5

Decision Tree: Pyloric Stenosis vs Other Causes of Infant Vomiting

Infant with vomiting. Work through the key features.

Infant with vomiting. What are the age and pattern?
5 / 6

Eight Babies Walk In

Don't kill them. Five questions per load, shuffled every visit.

6 / 6