Pyloric Stenosis

General and Gastrointestinal Surgery › Pyloric stenosis

Pyloric Stenosis in Babies: Projectile Vomiting, Surgery and Recovery

Medically reviewed by Dr. Koushik Herle, MCh, DNB (Paediatric Surgery), Consultant Pediatric Surgeon and Pediatric Urologist, on 31 October 2026

Newborns often spit up a little milk. But your baby, a few weeks old, now vomits forcefully, and the milk shoots across the room or out of the mouth and nose. Straight after, the baby is hungry again. The ultrasound report says pyloric stenosis. What happens now?

Pyloric stenosis is a thickening of the muscle at the exit of the stomach, which blocks milk from passing into the bowel. It cannot be treated with formula changes or medicines. An operation called pyloromyotomy fixes it, and recovery is usually quick.

Key points for parents

  • Pyloric stenosis causes forceful, projectile vomiting of milk in a baby usually between 2 and 8 weeks old.
  • The vomit is milk, not green. The baby is hungry again straight after vomiting.
  • An ultrasound of the tummy confirms the diagnosis.
  • Persistent vomiting causes dehydration and a salt imbalance, so fluids are given first and the operation is done once they are corrected.
  • The operation splits the thickened muscle and is done by keyhole surgery or through a small cut at the belly button.
  • Feeds restart within hours, and most babies go home within a day or two feeding normally.

Green vomiting is an emergency. Do not wait. Green or yellow-green vomit can mean a blocked or twisted bowel, which is a different problem (see malrotation and volvulus). Take your baby to a hospital with a pediatric surgeon at once. Also seek care promptly if your baby is sleepy, has very few wet nappies or has a sunken soft spot on the head.

What is pyloric stenosis?

The stomach connects to the small bowel through a ring of muscle called the pylorus. It works like a gate that opens to let milk pass. In pyloric stenosis, this muscle grows thick in the first weeks of life, and the gate stays nearly shut. Milk collects in the stomach until the stomach pumps it back up.

Why it happens

The exact cause is not known. It is more common in boys and in first-born babies, and it sometimes runs in families. It is not caused by anything you fed your baby or did.

The cycle of hunger, vomiting and dehydration

  1. The baby is hungry and cries for a feed.
  2. The baby feeds.
  3. Because the gate is blocked, the milk is vomited forcefully. It is usually plain or curdled milk, not green.
  4. The milk never reached the bowel, so the baby is hungry again at once.

As this repeats, the baby loses fluid and stomach acid. This leads to dehydration and a salt imbalance (low chloride and low potassium, with the blood becoming too alkaline). These need to be corrected before surgery.

Signs parents notice

  • Forceful, projectile vomiting soon after feeds, usually from about 2 to 8 weeks of age.
  • Vomit that is milk or curdled milk, not green.
  • A baby who is hungry again right after vomiting.
  • Fewer wet nappies, constipation, and poor weight gain or weight loss.
  • If vomiting goes on, the baby becomes sleepy and dehydrated.

Tests

  • Examination during a feed: the doctor may feel a small olive-shaped lump in the upper tummy.
  • Ultrasound of the tummy: confirms the diagnosis by measuring the thickness and length of the pylorus muscle. It does not hurt the baby.
  • Blood tests: check for dehydration and the salt imbalance that persistent vomiting causes.

Does every baby need surgery?

Yes, in almost all cases. Pyloric stenosis in infants is treated by surgery, which is the standard treatment and is very effective. Medical treatment has been tried in some places, but it takes longer and is less reliable, and it is not routinely used.

First, fluids

Pyloric stenosis is urgent, but the operation is not done straight away. The baby first gets fluids through a drip to correct dehydration and the salt balance. A small tube may be placed to drain the stomach. This may take 24 to 48 hours, and it is what makes anaesthesia and surgery safe.

How the decision is made

Pediatric surgeons decide the timing by the blood test results, not the clock. Once the salts are back to normal and the baby is well hydrated, the operation goes ahead.

The operation: pyloromyotomy

The operation is called the Ramstedt pyloromyotomy, after the German surgeon Conrad Ramstedt, who described it in 1911. Under general anaesthesia, the thickened muscle is split along its length, down to the inner lining, so the outlet opens up. The stomach lining itself is not cut. According to the usual account, Ramstedt began a longer operation, found that splitting the muscle alone was enough, and left out the rest.

  • Keyhole (laparoscopic): through two or three tiny cuts.
  • Through the belly button: a small cut at the edge of the navel.

The operation usually takes under an hour. Our page on keyhole surgery in children explains more.

Hospital stay and feeding after surgery

WhenWhat to expect
About 6 to 8 hours after surgerySmall volumes of clear saline feeds.
About 12 to 16 hoursSmall volumes of breast milk or formula.
About 24 hoursMost babies are back to full feeds. If the bowel is slow to settle (a mild, short-lived ileus), this can take a little longer.
Going homeMost babies go home within 24 to 48 hours, once feeding well.

Plans differ between hospitals and babies, and the team explains the schedule for your baby. A little spitting up for a day or two after surgery is common as the stomach settles.

Recovery at home

WhenWhat to expect
Days 1 to 2A little vomiting is common and usually settles. Feed as advised. Paracetamol for pain if needed.
Days 3 to 7Normal feeds. Keep the small wounds clean and dry. Sponge bath until the wounds are sealed.
Week 2Normal baths. Weight gain should pick up quickly.
Follow-upA wound check and weight review at the clinic.

Call the surgical team the same day if: your baby vomits green, vomiting becomes forceful again, the tummy swells, there is a fever, or a wound turns red or leaks.

Possible complications

Complications are uncommon. They include wound infection, the muscle not being split fully so that vomiting continues, and very rarely a small tear in the lining of the stomach outlet, which is repaired during the same operation. The surgeon explains these before the operation.

Follow-up and outlook

The muscle heals normally and does not affect future eating or growth. Once split, it does not usually thicken again, and there are no long-term diet restrictions. Babies go on to feed and grow normally.

Why a pediatric surgeon

Pyloromyotomy is an operation on a baby only a few weeks old. It needs a surgeon, anaesthetist and nursing team trained in the care of newborns and young infants, including correcting fluids and salts safely beforehand. It belongs to children’s gastrointestinal surgery.

Frequently asked questions

Is all vomiting in babies pyloric stenosis?

No. Most babies bring up small amounts of milk, called posseting or reflux, and grow well. Pyloric stenosis causes forceful vomiting after most feeds, in a hungry baby who is not gaining weight. See also reflux in children.

Can pyloric stenosis be treated without surgery?

Surgery is the standard treatment and is very effective. Medical treatment is slower and less reliable, so it is not routinely used.

Why is surgery not done straight away?

Vomiting drains fluid and salts. Operating before these are corrected makes anaesthesia less safe, so fluids come first.

Will my baby need another operation later?

Very rarely. Babies go on to feed and grow normally.

Is a premature or very small baby still suitable for surgery?

Yes, once fluids and salts have been corrected. Anaesthesia and nursing are planned for the baby’s size and age.

Can I breastfeed after the operation?

Yes. Breastfeeding usually restarts within hours of surgery.

Questions you may want to ask at your visit

  • How long will the drip fluids take before surgery?
  • Will the operation be keyhole or through the belly button?
  • When can I feed my baby after the operation?
  • How long will we stay in hospital?
  • What is normal vomiting after surgery, and what is not?
  • When should we come for the wound check?

Consult your pediatric surgeon early to understand your options. Rest assured, most babies feed normally within days of this operation.

Related pages

References

  1. Great Ormond Street Hospital. Pyloric stenosis.
  2. StatPearls (NCBI Bookshelf). Hypertrophic Pyloric Stenosis.

Clinic location

  • Manipal Hospital, Electronic City, Bengaluru.

Appointments: +91 8217553785

This page is educational information and is not a substitute for individual medical advice. Drafted with AI assistance and medically reviewed by Dr. Koushik Herle.

Quick Links

Book Appointment