Skip to content
All lessons
Foundational Sciences · Embryology

GI Embryology: Foregut, Midgut & Hindgut

A Step 1 walkthrough of GI development — how the gut tube is divided into foregut, midgut, and hindgut by blood supply, what each segment becomes, and the four morphogenetic events (recanalization, herniation/rotation, pancreatic fusion, cloacal partition) whose failures produce the board-classic malformations: TEF, duodenal atresia, malrotation/volvulus, omphalocele vs gastroschisis, Meckel, and Hirschsprung — each with mechanism and presentation.

15 min readHigh yield

The gut tube and its three divisions

The primitive gut tube forms in week 4 as craniocaudal and lateral body folding incorporates the dorsal part of the endoderm-lined yolk sac into the embryo, producing a tube lined by endoderm (epithelium and glands) and wrapped in splanchnic mesoderm (smooth muscle, connective tissue, serosa). It is divided into three segments by blood supply, not by organ — a distinction the boards love:

  • Foregut → celiac trunk (T12)
  • Midgut → superior mesenteric artery / SMA (L1)
  • Hindgut → inferior mesenteric artery / IMA (L3)

The junctions are clinically load-bearing. The foregut–midgut boundary sits in the 2nd part of the duodenum at the major duodenal papilla (ampulla of Vater / bile duct entry); the midgut–hindgut boundary lies at the junction of the proximal 2/3 and distal 1/3 of the transverse colon (the SMA/IMA watershed near the splenic flexure). This gives you a free localizer: obstruction above the ampulla → non-bilious vomiting; below it → bilious vomiting.

Must-know derivatives + defect buzzwords

Highest-yield derivatives

  • Foregut endoderm → esophagus, stomach, duodenum proximal to the ampulla, plus the outpouchings: respiratory (lung) bud, liver, gallbladder, and pancreas (ventral + dorsal buds). Supplied by the celiac trunk.
  • Spleen is a trap: it arises from mesoderm of the dorsal mesentery (dorsal mesogastrium), NOT foregut endoderm — but it is supplied by the celiac (splenic) artery.
  • Midgut → duodenum distal to the ampulla, jejunum, ileum, cecum, appendix, ascending colon, proximal 2/3 of transverse colon. Supplied by the SMA.
  • Hindgut → distal 1/3 transverse colon, descending + sigmoid colon, rectum, and anal canal above the pectinate line. Supplied by the IMA.
  • Pectinate (dentate) line = the hindgut endoderm/ectoderm boundary. Above: visceral innervation, superior rectal artery (IMA), internal iliac nodes, columnar epithelium. Below: somatic innervation (inferior rectal/pudendal → painful), inferior rectal artery, superficial inguinal nodes, squamous epithelium.
  • Localizer: bilious vomiting = obstruction distal to the ampulla (midgut and beyond); non-bilious = at or above the pylorus.

Highest-yield congenital defects (instant recall)

  • Duodenal atresia → "double bubble" + bilious vomiting + Down syndrome (failed recanalization).
  • Esophageal atresia + distal TEF (~85%) → polyhydramnios, coiled NG tube, gastric air bubble; screen VACTERL.
  • Malrotation + midgut volvulusbilious vomiting = surgical emergency (Ladd bands, incomplete 270° rotation).
  • Hirschsprungaganglionic rectum (always involved), no meconium in 48 h, Down / RET.
  • Meckel diverticulumpainless GI bleed from ectopic gastric mucosa; persistent vitelline duct.
  • Omphalocele (midline, covered, chromosomal) vs gastroschisis (right of umbilicus, uncovered, not chromosomal).

Segment → blood supply → derivatives

Gut segmentArtery (vertebral level)Endodermal derivatives
ForegutCeliac trunk (T12)Esophagus, stomach, duodenum (proximal to ampulla), liver, gallbladder, pancreas, respiratory bud
MidgutSMA (L1)Duodenum (distal to ampulla), jejunum, ileum, cecum, appendix, ascending colon, proximal 2/3 transverse colon
HindgutIMA (L3)Distal 1/3 transverse colon, descending + sigmoid colon, rectum, upper anal canal (above pectinate line)

Four morphogenetic events — and their signature failures

Most GI birth defects tested on Step 1 are failures of four dynamic developmental events. Learn the event and the malformation writes itself:

  1. Duodenal recanalization. The duodenal lumen is transiently obliterated by proliferating epithelium (~weeks 5–6) and must recanalize (~weeks 8–10). Failure → duodenal atresia/stenosis.
  2. Physiologic midgut herniation & rotation. Around week 6 the rapidly elongating midgut loop herniates through the umbilical ring; it rotates a total of 270° counterclockwise around the SMA axis (90° while herniated, then 180° on return) and retracts by ~week 10. Failure to return → omphalocele; incomplete/abnormal rotation → malrotation ± midgut volvulus with obstructing Ladd bands.
  3. Pancreatic bud fusion. The ventral bud swings posteriorly around the duodenum to fuse with the dorsal bud, and their ducts join. Abnormal ventral migration encircling the duodenum → annular pancreas; failure of the two ducts to fuse → pancreas divisum.
  4. Cloacal partition. The urorectal septum divides the cloaca into an anterior urogenital sinus and a posterior anorectal canal, and the anal membrane then perforates. Errors → imperforate anus / anorectal malformations.

Two more high-yield failures don't fit the four but are pure Step 1: failure of neural crest cell migration into the distal hindgut wall → Hirschsprung disease, and persistence of the vitelline (omphalomesenteric) ductMeckel diverticulum.

Diagram of the midgut loop herniating through the umbilical ring and rotating counterclockwise around the superior mesenteric artery, with the cecum migrating from the left to the right side of the abdomen.
Physiologic midgut herniation and 270° counterclockwise rotation about the SMA. Failure to return causes omphalocele; incomplete rotation causes malrotation with risk of midgut volvulus. · Wikimedia Commons — Soffers, J.H., Hikspoors, J.P., Mekonen, H.K. et al.Cropped and stages moved closer and into square format by User:SUM1. — CC BY 4.0, via Wikimedia Commons

Defect → mechanism → presentation

DefectMechanismClassic presentation
Esophageal atresia + distal TEF (~85%)Faulty division of foregut by the tracheoesophageal septumPolyhydramnios; drooling, choking/cyanosis with feeds; NG tube coils in blind pouch; gastric air bubble; screen VACTERL
Duodenal atresiaFailed recanalization of the duodenumBilious vomiting; "double bubble" x-ray; polyhydramnios; Down syndrome
Jejunal/ileal ("apple-peel") atresiaVascular accident (SMA branch occlusion) in uteroBilious vomiting; assoc. maternal smoking/cocaine (vasoconstriction)
Hypertrophic pyloric stenosis (postnatal, not embryologic)Postnatal hypertrophy of pyloric muscularis2–6 wk firstborn male; projectile non-bilious vomiting; palpable "olive"; hypochloremic hypokalemic metabolic alkalosis; assoc. macrolides
Annular pancreasVentral bud encircles the 2nd duodenumDuodenal obstruction; can mimic a double bubble
Pancreas divisumDorsal + ventral ducts fail to fuseUsually asymptomatic; may cause pancreatitis
OmphaloceleMidgut fails to return to abdomenMidline, herniation covered by peritoneum + amnion; assoc. trisomies 13/18/21, Beckwith-Wiedemann
GastroschisisFailure of lateral body-wall fold closurePara-umbilical (usually right), no covering membrane; NOT chromosome-linked
Meckel diverticulumPersistent vitelline duct (true diverticulum)Painless lower-GI bleed/melena (ectopic gastric mucosa); pertechnetate (Meckel) scan; "Rule of 2s"
Malrotation ± volvulusIncomplete 270° rotationBilious vomiting, Ladd bands, bowel ischemia
Hirschsprung diseaseFailed neural crest migration → aganglionosisNo meconium in 48 h, distension; rectum always involved; RET; Down; suction biopsy
Imperforate anusAbnormal urorectal septum / unperforated anal membraneAbsent anal opening ± fistula; VACTERL
Vignette — esophageal atresia with distal TEF

A term newborn develops coughing, choking, and cyanosis with the first feeding and has copious oral secretions (drooling). The pregnancy was complicated by polyhydramnios. A nasogastric tube cannot be advanced — it coils in the upper chest on film, yet the stomach is gas-filled.

Diagnosis: esophageal atresia with a distal tracheoesophageal fistula — the most common (~85%) type. The blind proximal pouch explains the drooling and coiled tube; the distal fistula lets air reach the stomach (and refluxed acid reach the lungs). The failed structure is the tracheoesophageal (respiratory) septum that should divide the foregut. Always screen for VACTERL. Contrast: pure atresia (no fistula) → gasless abdomen; H-type isolated fistula → recurrent aspiration pneumonias presenting later, not at the first feed.

Diagram of the anatomic types of esophageal atresia and tracheoesophageal fistula, including esophageal atresia with a distal fistula and the isolated H-type fistula.
Types of esophageal atresia/TEF; the most common (~85%) is proximal atresia with a distal fistula, allowing air into the stomach while the NG tube coils in the blind pouch. · Wikimedia Commons — Jmarchn — CC BY-SA 3.0, via Wikimedia Commons
Vignette — duodenal atresia (the double bubble)

A neonate with trisomy 21 features begins bilious vomiting within the first day of life; prenatal ultrasound had shown polyhydramnios. Abdominal x-ray shows the "double bubble" sign — a distended, air-filled stomach and proximal duodenum with no distal bowel gas.

Diagnosis: duodenal atresia from failed recanalization of the duodenum (~weeks 8–10). Because the block sits distal to the ampulla of Vater, the vomiting is bilious. High-yield association: Down syndrome. Note that an annular pancreas can produce an identical double bubble by extrinsically encircling the duodenum — same picture, different mechanism.

Vignette — Hirschsprung disease

A full-term newborn fails to pass meconium within the first 48 hours, then develops abdominal distension and bilious vomiting. On digital rectal exam there is an explosive gush of gas and stool. Contrast enema shows a narrow distal segment with dilated proximal bowel (a transition zone).

Diagnosis: Hirschsprung disease — arrest of neural crest cell migration leaving the distal bowel aganglionic (absent Meissner submucosal and Auerbach myenteric plexuses), so it cannot relax. The rectum is ALWAYS involved, with disease extending a variable distance proximally. Associations: Down syndrome and RET proto-oncogene mutations. Gold-standard diagnosis: rectal suction biopsy showing absent ganglion cells; treatment resects the aganglionic segment.

Genuine memory hooks
  • VACTERL — screen for these whenever you see TEF or imperforate anus: Vertebral defects, Anal atresia, Cardiac, Tracheo-Esophageal fistula, Renal, Limb.
  • Meckel diverticulum — "Rule of 2s": ~2% of people, 2 feet from the ileocecal valve, 2 inches long, presents by age 2, 2:1 male, 2 ectopic tissue types (gastric + pancreatic), and ~2% become symptomatic.
  • Midgut rotation = 270° counterclockwise around the SMA (90° while herniated + 180° on return) — hold "counterclockwise, as viewed from the front."

Practice Embryology now

Board-style questions, spaced-repetition flashcards, and a Socratic AI tutor — free to start.