Evolution and life stagesDigestive system
How the Digestive System Develops: From Embryo Gut Tube to Adult
For general education about how the body works, not medical advice. Medical disclaimer.

The digestive system begins as a simple tube made from the embryo’s endoderm. By birth the tube has been divided into organs, from the mouth to the anus, described in the digestive system profile. Most major changes happen in the first two trimesters.
Contents
What the digestive tract is made from
Development of the digestive system starts with gastrulation, in the third week after fertilization. During this stage the embryo forms three germ layers, the ectoderm, mesoderm and endoderm. The endoderm forms the lining of the gut tube and the epithelium of the organs that grow from it, including the liver and pancreas. The muscle and connective tissue of the gut wall mostly come from the surrounding mesoderm, and the nerves of the enteric nervous system come from neural crest cells that migrate into the gut wall.
The endoderm first forms a flat sheet on the surface of the yolk sac. As the embryo folds in the fourth week, the sheet curls inward and closes into a tube. The front end of the tube lies near the future mouth, and the back end lies near the future anus. Two temporary membranes, the oropharyngeal and cloacal membranes, close each end until the openings form later.
Foregut, midgut and hindgut
The gut tube is divided into three parts along its length. The foregut forms the pharynx, esophagus, stomach, the first part of the duodenum up to the entry of the bile duct, the liver and the pancreas. The midgut forms the rest of the duodenum, the small intestine, and the colon up to about the first two-thirds of the transverse colon. The hindgut forms the rest of the transverse colon, the descending and sigmoid colon, the rectum, and the upper part of the anal canal.
Each part receives its blood supply from a different artery. The celiac trunk supplies the foregut, the superior mesenteric artery supplies the midgut, and the inferior mesenteric artery supplies the hindgut. This division of blood supply matches the division of the gut into parts, and it is still used in adult anatomy to describe the regions of the abdomen.
The liver and pancreas start as outgrowths of the foregut. The liver bud grows out from the duodenal part of the foregut in the fourth week, and it forms a mass of cells that will become the liver and gallbladder. The pancreas starts as two buds, one dorsal and one ventral. The ventral bud rotates and fuses with the dorsal bud by about the seventh or eighth week, and the two ducts join to form the main pancreatic duct.
The midgut loop and the umbilical cord
By about the sixth week, the midgut has grown too quickly for the abdominal cavity. It forms a loop that pushes out through the umbilical cord. This temporary herniation is normal, and the loop stays in the cord while the abdomen grows. The loop is attached to the yolk sac by a narrow stalk called the vitelline duct.
Around the tenth or eleventh week, the midgut returns to the abdomen. During its return, the loop rotates counterclockwise by about 270 degrees, so the colon ends up in its adult position. The cecum, the first part of the large intestine, descends from the upper abdomen into the right lower abdomen. The small intestine coils and takes its place in the central abdomen, and the large intestine forms its outer frame around it.
The vitelline duct normally shrinks and disappears. A small part of it sometimes remains as a pouch on the small intestine called a Meckel diverticulum, which is present in a minority of people and is usually found by chance.
Growth, swallowing and the newborn gut
From about the third month, the fetus starts to swallow amniotic fluid. The fluid moves through the stomach and intestine and is absorbed or excreted. This swallowing helps the gut muscles and nerves mature, and it is one of the first functional movements of the digestive system. Fetal kidneys produce urine that enters the amniotic fluid, so the cycle of swallowing and excretion repeats throughout pregnancy.
Meconium forms in the fetal intestine during the later stages of pregnancy. It is made from intestinal cells, mucus, bile and swallowed fluid, and it is dark green and sticky. A newborn usually passes meconium within the first days after birth. The stool changes color over the next few days as milk or formula enters the gut.
At birth the gut has no bacteria, and colonization starts quickly. Bacteria from the birth canal, the skin and the environment begin to settle in the intestine, and the community changes over the first years as the diet and surroundings change. The adult microbial community is more varied than the early one. Its composition still differs from person to person.
Comparison with other vertebrates
Most vertebrate embryos form a gut tube from endoderm and divide it into foregut, midgut and hindgut. Fish, birds and mammals show the same basic plan, so the developmental pattern is ancient. Differences appear in the size of the yolk sac and the timing of the midgut loop. Birds and reptiles have a large yolk sac that carries nutrients to the embryo. Mammals rely on the placenta for most nutrients, and the yolk sac becomes small and temporary.
The pattern of tube formation and organ budding links the human gut to the guts of other animals. This helps scientists compare embryos across species and find which steps are shared and which are specific to mammals.
What scientists still debate
Researchers still debate the mechanical forces that drive the midgut loop to rotate and return to the abdomen. Growth of the gut, changes in the shape of the cells and pressure from surrounding tissues are all thought to play a part. The exact balance between these factors is still under study.
Scientists also study how the enteric nervous system spreads through the gut wall. Neural crest cells migrate along the gut from the upper end to the lower end, and the signals that guide them along the full length of the tube are still being mapped in detail.
Finally, the role of early fetal swallowing in the maturation of the gut is still not fully mapped. Researchers agree that swallowing occurs, but they continue to study how much of the process is needed for the normal growth and function of the digestive tract.
Frequently asked questions
How does the digestive system develop in the embryo?
The digestive tract starts as a flat layer of cells called endoderm. Around the fourth week the embryo folds and this layer curls into a tube, which is divided into the foregut, midgut and hindgut.
What is meconium?
Meconium is the first stool of a newborn. It is a dark green, sticky material made from intestinal cells, mucus, bile and swallowed amniotic fluid, and it is usually passed within the first days after birth.
Does a fetus swallow amniotic fluid?
Yes, a fetus swallows amniotic fluid from about the third month of pregnancy. The fluid passes through the gut, and the fetal kidneys later release urine back into it.
Why does the midgut go into the umbilical cord?
The midgut grows faster than the abdominal cavity in the embryo, so part of the loop moves temporarily into the umbilical cord. It returns to the abdomen in the later part of the first trimester.
When do bacteria first enter the newborn gut?
The newborn gut is sterile before birth, and bacteria begin to colonize it during and after birth. The gut microbial community changes over the first years of life as the diet and environment change.
Sources and further reading
- OpenStax, "Anatomy and Physiology 2e"
- Gray's Anatomy (Susan Standring, ed.)
- Encyclopaedia Britannica, "Digestive system"
Cite this page
“How the Digestive System Develops: From Embryo Gut Tube to Adult.” Body Atlas, https://body.bigworldlist.com/evolution/how-the-digestive-system-develops/.
Digestive system: more questions and guides
- ProfileDigestive System: Organs, Functions and How Digestion Works
- QuestionAre Humans Omnivores? What Our Teeth and Gut Anatomy Show
- Evolution and life stagesBig Brain, Small Gut? The Expensive Tissue Hypothesis Explained
- ListDigestive Enzymes: Types, Where They Are Made and What They Do
- ListDigestive System for Kids: The Journey of Your Food
- ListGerm Layers: Ectoderm, Mesoderm and Endoderm and What They Form
- ListHow Body Systems Work Together: 10 Examples of Teamwork
- Evolution and life stagesHow Did the Stomach Evolve? Why Some Animals Have No Stomach
- QuestionHow Does Digestion Work? Step by Step Through the Digestive Tract