top of page

Gastroenterology

Pyloric stenosis: diagnosis and management

Clinical Overview and When to Suspect Pyloric Stenosis

Infantile hypertrophic pyloric stenosis (IHPS) is progressive hypertrophy and hyperplasia of the pyloric muscle causing gastric outlet obstruction.

Incidence: ~2–5 per 1,000 live births; most common surgical cause of nonbilious vomiting in infancy
Classic age of onset: 2–6 weeks of life (rarely presents before 1 week or after 12 weeks)
Male-to-female ratio: 4–5:1; firstborn males at highest risk
Board pearl: Vomiting is NONBILIOUS and progressively projectile — bilious vomiting suggests a different and more emergent diagnosis (malrotation with midgut volvulus)
Risk factors: male sex, firstborn status, family history (especially maternal hx of pyloric stenosis ↑ risk significantly), macrolide exposure (erythromycin/azithromycin) in first 2 weeks of life, maternal smoking
When to suspect: infant 2–8 weeks old with escalating forceful vomiting after feeds, hungry immediately after emesis ("hungry vomiter"), weight loss or poor weight gain, dehydration
Solid White Background
History Taking — Characterizing the Vomiting Pattern

A detailed feeding and emesis history is the cornerstone of early suspicion.

— Nonbilious (clear or white/curdled milk) — this is the single most important qualifier

— Initially may appear like simple reflux/spit-up; becomes progressively forceful/projectile over days to weeks

— Occurs during or shortly after feeds

— Infant is eager to re-feed immediately after vomiting ("hungry vomiter")

Vomiting characteristics:
Feeding history: breast vs formula, volume, frequency — parents often report infant feeds well but "can't keep anything down"
Output: decreasing wet diapers, constipation (decreased stool frequency due to inadequate enteral intake)
Weight trajectory: may show initial adequate gain followed by plateau or weight loss; compare current weight to birth weight
Medication exposure: ask specifically about macrolide antibiotics given to infant OR mother if breastfeeding
Key distinction: GERD is common at this age but does not cause progressive projectile vomiting, dehydration, or weight loss
Solid White Background
Physical Exam — Classic Findings

Physical examination in IHPS ranges from subtle early on to dramatic when presentation is delayed.

— "Olive-shaped" mass in the right upper quadrant/epigastrium — palpable in ~60–80% of cases by experienced examiners

— Best felt after the infant vomits (stomach decompressed) or with NGT decompression, with the infant calm and hips flexed

— Visible gastric peristaltic waves moving left-to-right across the upper abdomen after a feed

General appearance: infant may appear well initially; with progression → dehydration (dry mucous membranes, sunken fontanelle, decreased skin turgor, tachycardia)
Abdomen:
Nutritional status: weight below birth weight if presentation is delayed; assess for muscle wasting
Clinical tip: If the classic olive is palpated by an experienced examiner in the right clinical context, some centers proceed to surgery without imaging — but ultrasound confirmation is standard practice
Board pearl: A palpable olive + nonbilious projectile vomiting in a 3–5 week-old male infant is a classic board stem — the answer is ultrasound to confirm, then surgical referral
Solid White Background
Diagnostic Workup — Laboratory Findings

The metabolic derangement in IHPS is highly predictable and a favorite board topic.

— Mechanism: loss of gastric acid (HCl) → ↓ Cl⁻, ↓ H⁺ → metabolic alkalosis

— Kidneys attempt to retain H⁺ by excreting K⁺ → hypokalemia

— Severe cases: paradoxical aciduria — kidneys reabsorb Na⁺ in exchange for H⁺ when K⁺ is depleted, producing acidic urine despite systemic alkalosis

Classic electrolyte pattern: hypochloremic, hypokalemic metabolic alkalosis
BMP findings: ↓ Cl⁻ (often <100 mEq/L), ↓ K⁺, ↑ HCO₃⁻ (often >30 mEq/L), ↑ BUN (pre-renal from dehydration)
Unconjugated hyperbilirubinemia may be present in up to 2–5% — likely due to decreased hepatic glucuronyl transferase activity from starvation; resolves after pyloromyotomy
Board pearl: The combination of metabolic alkalosis + hypochloremia + hypokalemia in a vomiting young infant = pyloric stenosis until proven otherwise
Labs should be drawn BEFORE imaging to guide fluid resuscitation priorities
Solid White Background
Diagnostic Workup — Imaging

Abdominal ultrasound is the gold-standard imaging study for IHPS.

— Pyloric muscle thickness ≥3 mm (measured wall thickness, single wall)

— Pyloric channel length ≥15 mm (some sources use ≥17 mm)

— Failure of the pyloric channel to open during real-time observation

— Upper GI series (UGI) can be performed as second-line

— Classic UGI findings: "string sign" (elongated, narrowed pyloric channel), "shoulder sign" (pyloric mass indenting the antrum), "double track sign," delayed gastric emptying

Ultrasound criteria for pyloric stenosis:
Sensitivity and specificity both >95%
Should be performed with the infant in the right lateral decubitus position; a small amount of glucose water may be given to distend the stomach
If ultrasound is equivocal:
Board pearl: Ultrasound is the FIRST imaging study — never start with UGI; UGI is reserved for equivocal US or when malrotation needs to be excluded
Plain abdominal radiograph: nonspecific; may show gastric distension with a paucity of distal bowel gas — not diagnostic
Solid White Background
Management — Preoperative Fluid Resuscitation

Pyloric stenosis is a medical emergency before it is a surgical one — correction of dehydration and electrolyte abnormalities MUST precede surgery.

— Cl⁻ correction is the primary driver of alkalosis resolution

— K⁺ replacement is essential but ONLY after confirming adequate renal function (urine output)

— Cl⁻ ≥100 mEq/L

— K⁺ ≥3.5 mEq/L

— HCO₃⁻ ≤30 mEq/L

— Adequate urine output

Initial fluid bolus: normal saline (0.9% NaCl) 20 mL/kg boluses for hemodynamic instability or significant dehydration
Maintenance/replacement IV fluid: D5 + 0.45–0.9% NaCl with 20–40 mEq/L KCl once urine output is established (≥1 mL/kg/hr)
Goals before surgery:
Typical resuscitation takes 12–48 hours
Board pearl: Operating on an infant with uncorrected alkalosis ↑ risk of post-anesthesia apnea — electrolyte correction is the FIRST priority, NOT rushing to the OR
NPO status; NG tube placement for gastric decompression if significant gastric distension
Solid White Background
Management — Surgical Treatment (Pyloromyotomy)

Definitive treatment is surgical — the Ramstedt pyloromyotomy.

— Can be performed via open (right upper quadrant or periumbilical incision) or laparoscopic approach

— Both approaches have excellent outcomes; laparoscopic may have shorter recovery and improved cosmesis

— Vomiting in the first 24–48 hours postop is COMMON and expected (up to 80% of infants) — due to gastric atony/edema; does not indicate surgical failure

Procedure: longitudinal incision through the hypertrophied pyloric muscle down to the submucosa WITHOUT entering the mucosa
Success rate: >98%; recurrence is exceedingly rare (<1%)
Intraoperative concern: mucosal perforation — tested by instilling air or saline into stomach; if perforation occurs, it is repaired primarily and the myotomy is completed on the opposite side
Postoperative feeding: most protocols begin ad lib feeds within 4–6 hours post-surgery
Board pearl: Postoperative emesis ≠ incomplete pyloromyotomy — reassure family and continue advancing feeds
Average hospital stay: 1–2 days
Solid White Background
Management — Postoperative Care and Follow-Up

Postoperative management focuses on rapid return to full enteral feeding and ensuring weight recovery.

— Begin breast milk or formula within hours of surgery

— Ad lib feeding (allowing infant to set pace) has been shown to be superior to graduated/slow feeding protocols → shorter time to full feeds, shorter hospital stay

— Assess for persistent emesis >48 hours postop → consider incomplete myotomy (very rare)

— Wound care: watch for signs of infection, dehiscence

— Recheck weight prior to discharge and at first outpatient visit

— Confirm adequate weight gain (expect ~30 g/day)

— Review feeding patterns, assess for resolution of vomiting

— Ensure incision healing

Feeding advancement:
Monitoring:
Follow-up: typically within 1–2 weeks post-discharge
Long-term prognosis: excellent; no long-term GI sequelae after successful pyloromyotomy
Clinical tip: Families should be counseled that some degree of spitting/GERD-like behavior may persist temporarily but will resolve as the infant grows
Solid White Background
Age-Specific Considerations — Why Age Matters in IHPS

IHPS has a narrow window of presentation that makes age a powerful diagnostic clue.

<2 weeks: IHPS is extremely uncommon this early; consider other diagnoses — GERD, overfeeding, milk protein allergy, sepsis, metabolic disease, increased intracranial pressure
2–6 weeks: PEAK presentation; this is the classic window — any infant in this age range with progressive nonbilious projectile vomiting should be evaluated for IHPS
6–12 weeks: still possible but incidence declines; maintain suspicion but broaden differential
>12 weeks: exceedingly rare; consider other diagnoses (malrotation, intussusception, metabolic disease)
Premature infants: may present at a later corrected gestational age — use corrected age when considering the diagnosis; presentation may be atypical
Board pearl: A vomiting 3-day-old is NOT pyloric stenosis — think anatomic malformations (intestinal atresia, malrotation), sepsis, inborn errors of metabolism, or cow's milk protein intolerance
The age at presentation combined with the vomiting character (nonbilious, progressive, projectile) creates a near-pathognomonic pattern
Solid White Background
Neonatal vs Infant Vomiting — Framing IHPS in Context

Understanding IHPS requires knowing what else causes vomiting in this age group and how each differs.

Day 1 of life: esophageal atresia (drooling, inability to pass NG tube), intestinal atresia (bilious vomiting, double-bubble on X-ray)
Week 1: malrotation with volvulus (bilious vomiting — surgical EMERGENCY), meconium ileus (CF), Hirschsprung disease (delayed meconium passage)
Weeks 2–6: IHPS classic window; also GERD (non-progressive, non-projectile), overfeeding, cow's milk protein allergy
Months 2–12: intussusception (colicky pain, currant-jelly stool), incarcerated hernia, GERD
At ANY age in infancy: sepsis, UTI, increased ICP (bulging fontanelle, irritability), inborn errors of metabolism (lethargy, poor feeding, metabolic acidosis), adrenal insufficiency (salt-wasting CAH — hyperkalemia, hyponatremia)
Key distinction: Bilious vomiting at ANY age in infancy = malrotation with volvulus until proven otherwise → emergent UGI series
Board pearl: The single most important question: "Is the vomiting bilious or nonbilious?" This separates surgical emergency (volvulus) from IHPS
Solid White Background
Complications of IHPS and When to Escalate Care

Most complications arise from delayed diagnosis or inadequate preoperative resuscitation.

— Mucosal perforation (1–2%)

— Incomplete myotomy (<1%) → persistent vomiting >48 hr postop

— Wound infection, incisional hernia

Dehydration: may be severe with hemodynamic compromise in late presentations; ↑ BUN, ↑ urine specific gravity, metabolic alkalosis severity correlates with dehydration
Electrolyte derangements: profound hypochloremic hypokalemic metabolic alkalosis → can cause apnea, lethargy, seizures if uncorrected
Failure to thrive: prolonged vomiting → weight loss, malnutrition; may cross multiple percentile lines
Aspiration pneumonia: risk from forceful vomiting and gastric distension
Unconjugated hyperbilirubinemia: "icteropylorospasm" — starvation-related; resolves post-surgery
Surgical complications (rare):
Board pearl: If an infant with known pyloric stenosis becomes lethargic, has irregular breathing, or develops apnea — suspect severe alkalosis → check ABG/VBG and electrolytes stat → correct before ANY anesthesia
Solid White Background
When to Hospitalize and Surgical Timing

Every infant with confirmed or strongly suspected IHPS requires hospitalization.

— All confirmed pyloric stenosis

— Clinically suspected PS with dehydration or electrolyte abnormality even if awaiting ultrasound confirmation

— Any young infant with progressive projectile vomiting and poor intake/output

— IHPS is URGENT but NOT emergent — there is time to resuscitate

— Surgery should proceed once electrolytes are corrected (Cl⁻ ≥100, K⁺ ≥3.5, HCO₃⁻ ≤30) and dehydration is addressed

— Typically within 24–48 hours of admission

Admit for:
Surgical timing:
Escalate/consult pediatric surgery: as soon as diagnosis is confirmed or highly suspected
Clinical tip: Do NOT delay ultrasound for a fasting period — US can be performed at any time; unlike UGI, no special prep is required
Board pearl: IHPS is never a "take to the OR immediately" scenario — unlike malrotation with volvulus, which IS a true surgical emergency requiring immediate laparotomy
Solid White Background
Key Differentials — Distinguishing IHPS from Mimics

Several conditions share features with IHPS; systematic comparison is high-yield.

GERD: most common mimic; nonbilious vomiting but NOT progressive/projectile, infant is gaining weight, no electrolyte abnormalities, no palpable mass; responds to positional/feed modifications
Malrotation with midgut volvulus: BILIOUS vomiting (green), acute onset, infant appears ILL, can occur at any age (most <1 year); → emergent UGI series → surgery
Cow's milk protein allergy/intolerance: vomiting ± bloody/mucousy stools, eczema, irritability; improves with hydrolyzed or amino acid formula
Pylorospasm: transient pyloric spasm without hypertrophy; US shows normal pyloric measurements; resolves spontaneously
Gastric web/antral web: rare congenital partial obstruction; may mimic IHPS but present earlier or later; UGI shows linear filling defect
Board pearl: If vomiting is BILIOUS — stop thinking about pyloric stenosis. Bilious = distal to ampulla of Vater = think malrotation/volvulus and act immediately
Solid White Background
IHPS vs Other Causes of Gastric Outlet Obstruction and Metabolic Alkalosis
Adrenal crisis (salt-wasting CAH): presents at 1–3 weeks; vomiting + dehydration BUT metabolic profile is opposite: hyperkalemia, hyponatremia, METABOLIC ACIDOSIS; ambiguous genitalia in females → check 17-hydroxyprogesterone
Board pearl: CAH and IHPS both present at 2–4 weeks with vomiting in males. The electrolyte pattern is the distinguishing feature: IHPS → alkalosis with ↓K⁺; CAH → acidosis with ↑K⁺
Inborn errors of metabolism (urea cycle defects, organic acidemias): lethargy, poor feeding, vomiting; metabolic ACIDOSIS (with ↑ anion gap), hyperammonemia
Increased intracranial pressure: vomiting may be forceful; look for bulging fontanelle, irritability, altered consciousness, ↑ head circumference, sunsetting eyes
Urinary tract infection/sepsis: vomiting + fever + ill-appearing; UA, blood cultures → treatment with antibiotics
Clinical tip: In a vomiting infant with metabolic ACIDOSIS (not alkalosis), pyloric stenosis is essentially excluded — look for sepsis, IEM, renal tubular acidosis, or CAH
Solid White Background
Preventive Considerations and Risk Reduction

There is no screening test for IHPS, but awareness of risk factors enables early recognition.

— Macrolide antibiotic exposure: erythromycin given to neonates (especially <2 weeks of age) ↑ IHPS risk ~8-fold; avoid if possible; azithromycin carries lower but still elevated risk

— Maternal macrolide use during breastfeeding in first 2 weeks postpartum → modest ↑ risk

— Counsel against unnecessary antibiotic use in neonates

— If macrolides must be used (e.g., pertussis prophylaxis in neonates), counsel family about symptoms of IHPS and ensure close follow-up

— Educate parents of all newborns about warning signs of persistent vomiting requiring evaluation

Modifiable risk factors:
Non-modifiable risk factors: male sex, firstborn status, family history, white race
Anticipatory guidance for providers:
Board pearl: Erythromycin exposure in the first 2 weeks of life is a classic board question trigger → answer: ↑ risk of pyloric stenosis; prefer azithromycin if macrolide is needed (still some risk but lower), and counsel/monitor
Solid White Background
Screening, Follow-Up, and Growth Monitoring

Post-treatment surveillance ensures complete recovery and normal growth trajectory.

— Visit at 1–2 weeks: assess wound healing, feeding adequacy, weight gain

— Visit at 1 month: confirm return to appropriate growth velocity (~30 g/day)

— Routine well-child visits thereafter per AAP schedule

— Persistent projectile vomiting >48–72 hours → consider incomplete myotomy (rare) → repeat US or UGI

— Persistent poor weight gain → evaluate for concomitant GERD, cow's milk protein allergy, or feeding difficulties

No universal screening for IHPS exists; diagnosis is clinical + ultrasound
Post-surgical follow-up schedule:
Growth catch-up: most infants demonstrate rapid catch-up growth within weeks of pyloromyotomy; plot on WHO growth charts for children <2 years
When to investigate further postop:
Clinical tip: Many infants with IHPS also have some degree of physiologic GERD; after successful pyloromyotomy, mild spit-up is common and resolves with maturation
Board pearl: Do NOT delay immunizations — surgery is not a contraindication; catch up on the standard schedule
Solid White Background
Family Counseling and Psychosocial Considerations

— Pyloromyotomy is one of the safest and most commonly performed neonatal surgeries

— Brief procedure (~30 minutes), short hospital stay (1–2 days)

— Postoperative vomiting is normal and expected — does NOT mean the surgery failed

Validate parental concern: parents often report that "something is wrong" before IHPS is diagnosed — acknowledge that their instinct was correct
Explain the diagnosis: pyloric stenosis is a thickened muscle blocking the stomach outlet; it is NOT caused by anything the parents did; it is NOT related to feeding technique
Surgery expectations:
Feeding guidance: breastfeeding can resume within hours of surgery; no restriction on breast milk or standard formula
Recurrence risk counseling: risk is ~5–20% in offspring of an affected individual (higher if mother was affected)
Emotional support: parents may feel guilt about "missing" the diagnosis early; reassure that IHPS develops gradually and timely diagnosis followed by surgery leads to full cure
Board pearl: Educate parents that long-term outcomes are excellent — no dietary restrictions, no GI medications needed, no increased risk of GI disease later in life
Solid White Background
High-Yield Associations and Rapid-Fire Board Facts
Male:female ratio = 4–5:1; firstborn males = highest risk
Classic age: 3–5 weeks (range 2–8 weeks)
Classic electrolytes: hypochloremic, hypokalemic metabolic ALKALOSIS
Paradoxical aciduria: kidneys excrete H⁺ to retain Na⁺ when K⁺ is severely depleted
Olive mass palpable in RUQ/epigastrium; visible peristaltic waves L→R
US criteria: muscle thickness ≥3 mm, channel length ≥15 mm
UGI backup: string sign, shoulder sign, double-track sign
Erythromycin in first 2 weeks of life → ↑ IHPS risk ~8×
Resuscitate BEFORE surgery: Cl⁻ ≥100, K⁺ ≥3.5, HCO₃⁻ ≤30
Fluid of choice: NS boluses → D5 + 0.45–0.9% NaCl + KCl (once UOP established)
Ramstedt pyloromyotomy: >98% cure rate
Postop vomiting is expected up to 48 hours
Unconjugated hyperbilirubinemia resolves after surgery
Board pearl: IHPS = alkalosis; CAH = acidosis — both present with vomiting in young male infants at similar ages
Solid White Background
One-Line Recap
Infantile hypertrophic pyloric stenosis classically presents at 2–6 weeks of life in a firstborn male with progressive nonbilious projectile vomiting, a hungry demeanor post-emesis, an "olive" mass on exam, hypochloremic hypokalemic metabolic alkalosis on labs, pyloric muscle thickness ≥3 mm and channel length ≥15 mm on ultrasound — and is managed by first correcting electrolytes and dehydration with IV saline ± KCl (Cl⁻ ≥100, K⁺ ≥3.5, HCO₃⁻ ≤30) and THEN performing a Ramstedt pyloromyotomy, which is curative in >98% of cases — always distinguish from malrotation (bilious vomiting = surgical emergency) and CAH (metabolic acidosis + hyperkalemia).
Solid White Background
Board Question Stem Patterns
4-week-old firstborn male with 5 days of progressively projectile nonbilious vomiting, hungry after emesis, olive mass palpated → diagnosis: IHPS → next step: abdominal ultrasound → then: correct electrolytes → then: pyloromyotomy
Same infant + labs show pH 7.52, HCO₃⁻ 36, K⁺ 2.8, Cl⁻ 88 → classic hypochloremic hypokalemic metabolic alkalosis → next step: IV fluid resuscitation with NS + KCl BEFORE surgery
3-week-old with bilious (GREEN) vomiting and abdominal distension → NOT pyloric stenosis → think malrotation/volvulus → emergent UGI series → immediate surgical exploration
10-day-old started on erythromycin for pertussis prophylaxis → what to counsel? → ↑ risk of IHPS → monitor for vomiting symptoms over next several weeks
Infant post-pyloromyotomy vomiting at 18 hours → reassurance; expected postop emesis → continue feeding advancement
3-week-old male with vomiting + hyponatremia + hyperkalemia + metabolic acidosis → NOT IHPS → think salt-wasting CAH → 17-OHP, cortisol, electrolytes
US shows pyloric muscle 2 mm thick, channel 10 mm → normal → does NOT meet criteria → consider pylorospasm, GERD, or repeat US in 1 week if symptoms persist
Solid White Background
Previous Item
Next Item
bottom of page