MDSteps Library Preview
You’ve viewed 0 of 3 free topics. Test the next topic with a free MDSteps reasoning diagnostic.
Try Free Diagnostic
MDSteps- USMLE® Reference Library

Pyloric Stenosis - Ultrasound Diagnosis and Preoperative Resuscitation

System: Pediatrics • Reviewed: Aug 15, 2026 • Step 1Step 2Step 3
Written by: Keemia Heidari, MD • Reviewed by: Puneet Agarwal, MD

Synopsis:

Hypertrophic pyloric stenosis causes progressive nonbilious projectile vomiting in young infants and is diagnosed primarily by ultrasound. The emergency priority is not immediate surgery but correction of dehydration, chloride and potassium depletion, and metabolic alkalosis. Once volume and electrolytes are normalized, pyloromyotomy provides definitive treatment.

Medical library → exam application

In pediatrics, age is often the deciding clue.

Review the topic here, then practice how age, development, vitals, vaccine status, safety, and red flags change the answer.

Age clue used Red flag checked Next step explained
Answer free sample questions and see how MDSteps identifies the decision patterns costing you points.

Key Points

  • Progressive projectile nonbilious vomiting in a young infant is the classic presentation.
  • Bilious emesis is not typical of pyloric stenosis and requires urgent evaluation for another obstruction.
  • Ultrasound is the first-line diagnostic test.
  • Hypochloremic, hypokalemic metabolic alkalosis is classic but may be absent with early diagnosis.
  • Correct volume, chloride, potassium, and alkalosis before anesthesia and pyloromyotomy.
  • Pyloric stenosis is a medical resuscitation problem before it is a surgical timing problem.
  • Mild postoperative emesis can occur and does not necessarily indicate treatment failure.

Algorithm

  1. Assess feeding history, emesis color, hydration, weight trend, and perfusion.
  2. Obtain electrolytes and renal function and perform pyloric ultrasound.
  3. If bilious vomiting or another red flag is present, evaluate urgently for malrotation or other obstruction.
  4. Keep the infant NPO and restore volume with isotonic chloride-containing fluid.
  5. Replace potassium after urine output is established and repeat electrolytes until alkalosis and chloride deficit are corrected.
  6. Proceed to pyloromyotomy once adequately resuscitated.
  7. Restart feeds postoperatively according to the surgical protocol and monitor for expected versus persistent vomiting.
  8. Discharge when feeding and hydration are adequate with surgical follow-up arranged.

Clinical Synopsis & Reasoning

Hypertrophic pyloric stenosis results from progressive thickening and elongation of the pyloric muscle, producing gastric-outlet obstruction. It most often presents between roughly 2 and 8 weeks of age, with progressive forceful nonbilious vomiting after feeds. The infant often remains hungry immediately after vomiting. Poor weight gain, decreased urine output, constipation, and lethargy develop as dehydration worsens. Because the obstruction is proximal to the ampulla, truly bilious emesis is not expected and should redirect the evaluation toward malrotation with volvulus or another distal obstruction.

Examination may reveal visible gastric peristaltic waves and a firm mobile olive-like mass in the epigastrium or right upper abdomen, but absence of a palpable olive does not exclude disease. Prolonged vomiting produces loss of hydrochloric acid and volume, classically causing hypochloremic, hypokalemic metabolic alkalosis. Modern diagnosis often occurs before the full laboratory pattern develops, so normal electrolytes do not exclude pyloric stenosis. Paradoxical aciduria can occur in advanced volume and potassium depletion when the kidney retains sodium in exchange for hydrogen despite systemic alkalosis.

Ultrasound is the preferred diagnostic test. Diagnostic measurements vary slightly by institution and patient size, but increased pyloric muscle thickness and channel length with failure of gastric contents to pass are characteristic. Equivocal ultrasound can be repeated after hydration or followed by an upper GI study when the diagnosis remains uncertain. The differential includes gastroesophageal reflux, overfeeding, cow's-milk protein intolerance, infection, increased intracranial pressure, metabolic disease, and anatomic obstruction. Bilious vomiting is a surgical emergency until malrotation and volvulus are excluded.


Treatment Strategy & Disposition

Stop oral feeds initially, establish IV access, and correct dehydration with isotonic crystalloid. The infant may require one or more boluses when perfusion is impaired, followed by maintenance and deficit replacement with chloride-containing fluid. Recheck chloride, potassium, bicarbonate, and renal function during resuscitation. Potassium is added after adequate urine output is established. The immediate preoperative target is restoration of euvolemia and correction of the alkalosis and electrolyte deficit, not merely making the serum sodium normal. Severe alkalosis increases the risk of postoperative apnea because cerebrospinal-fluid alkalosis can persist after serum values begin to improve.

Nasogastric decompression is not mandatory in every stable infant but is useful when vomiting is persistent, the stomach is markedly distended, or aspiration risk is high. Definitive treatment is pyloromyotomy, performed laparoscopically or by open technique after metabolic stabilization. Pyloric stenosis is not generally an operation that should occur before resuscitation; several hours of correction are safer than rushing an alkalotic, dehydrated infant to anesthesia.

Postoperatively, feeds are restarted according to the surgical pathway. Small episodes of emesis are common during early refeeding and do not automatically mean the operation failed. Persistent projectile vomiting beyond the expected recovery period can indicate incomplete myotomy or another diagnosis and warrants reassessment. Most infants can be discharged once they tolerate feeds, have adequate pain control, and remain clinically hydrated. Families should receive reassurance that the underlying obstruction has been corrected and that long-term feeding and growth are usually normal.


Epidemiology / Risk Factors

  • Pyloric stenosis is more common in male infants and often presents in the first two months of life.
  • Family history increases risk.
  • Macrolide exposure early in infancy has been associated with increased risk.
  • Earlier recognition has reduced the frequency of profound metabolic alkalosis at presentation.

Investigations

TestRole / RationaleTypical FindingsNotes
Abdominal ultrasoundConfirms pyloric muscle hypertrophy and obstructionThickened muscle and elongated channel with poor passagePreferred diagnostic study
Basic metabolic panelAssesses dehydration and electrolyte lossLow chloride, low potassium, elevated bicarbonate in classic diseaseMay be normal early
Blood gasQuantifies alkalosis when severeMetabolic alkalemiaUseful for significant electrolyte disturbance
Upper GI contrast studyEvaluates equivocal cases or alternative anatomyDelayed gastric emptying and narrowed pyloric channelUse when ultrasound is nondiagnostic
Weight and urine outputAssess chronicity and response to resuscitationWeight loss or reduced urineRepeat during correction

Typical Lab Pattern

FindingExplanation
HypochloremiaLoss of gastric hydrochloric acid
Elevated bicarbonateMetabolic alkalosis from acid loss and volume contraction
HypokalemiaRenal and gastrointestinal potassium depletion
Paradoxical aciduriaLate renal hydrogen excretion during severe sodium and potassium depletion

Pharmacology

MedicationMechanismOnsetRole in TherapyLimitations
0.9% sodium chlorideRestores extracellular volume and chlorideMinutesInitial resuscitation and chloride replacementReassess volume status
Potassium chlorideReplaces potassium deficitHoursAdded after urine output is establishedAvoid in anuria or significant hyperkalemia
AcetaminophenAnalgesia after surgeryWithin an hourPostoperative pain controlWeight-based dosing

Prognosis / Complications

  • Pyloromyotomy is highly effective and long-term prognosis is excellent.
  • Untreated disease can cause severe dehydration, electrolyte disturbance, failure to thrive, and rarely shock.
  • Postoperative apnea risk is higher when significant alkalosis has not been corrected.
  • Incomplete myotomy and mucosal perforation are uncommon surgical complications.

Patient Education / Counseling

  • Parents should report green or bilious vomiting immediately because that is not expected with pyloric stenosis.
  • Explain that IV fluid correction before surgery is an important safety step, not an avoidable delay.
  • After surgery, small spit-ups can occur during refeeding, but recurrent projectile vomiting requires review.
  • Track weight gain and feeding at routine pediatric follow-up.
  • Review signs of dehydration such as markedly reduced wet diapers, dry mouth, and unusual sleepiness.

Notes

The classic board-exam phrase hypochloremic hypokalemic metabolic alkalosis is useful, but real infants are often diagnosed before they develop it. The higher-value clinical rule is progressive nonbilious projectile vomiting with hunger and poor weight gain in the typical age range, confirmed by ultrasound.

The second high-value rule is that pyloromyotomy can wait for metabolic safety. Correcting chloride and volume reverses the alkalosis and reduces anesthesia risk. A few hours of deliberate resuscitation in a stable infant is appropriate treatment, not procrastination.


References

  1. American College of Radiology Appropriateness Criteria: Vomiting in Infants — Link
  2. American Pediatric Surgical Association resources on pyloric stenosis — Link
Turn review into score movement

Turn pediatric review into age-based decisions.

Most students do not plateau because they refuse to study. They plateau because their review does not show the exact reasoning error behind repeated misses. MDSteps turns topic review into targeted blocks, explanations, flashcards, and readiness signals.

  • Full access to 1,100+ medical reference articles linked directly to relevant QBank concepts
  • 16,000+ USMLE-style questions across Step 1, Step 2 CK, and Step 3
  • Depth-on-Demand™ explanations that isolate the pivot clue, distractor trap, and decision point
  • CCS cases with live vitals, order timing, reassessment, and after-action feedback
Age clue used Red flag checked Next step explained

You’ve reached your MDSteps Library preview limit

Unlock the full Medical Library and use it the way it was built to work: alongside your QBank review, CCS practice, and personalized study tools.

  • Full access to 1,100+ medical reference articles linked directly to relevant QBank concepts
  • 16,000+ USMLE-style questions across Step 1, Step 2 CK, and Step 3
  • Depth-on-Demand™ explanations that isolate the pivot clue, distractor trap, and decision point
  • CCS cases with live vitals, order timing, reassessment, and after-action feedback