How Digestion Works: The Gut, Microbiome, and the Second Brain

Photo: Monstera Production / Pexels
Your digestive system is roughly 9 meters (30 feet) of tube running from your lips to your lower intestine, lined with more immune cells than your blood and bones combined, and colonized by approximately 38 trillion microorganisms that outnumber your own cells. It does not just process food — it produces neurotransmitters, negotiates with your immune system, and holds a two-way conversation with your brain every hour of every day. The story of digestion is the story of how your body turns a slice of bread into a thought.
The Mouth: Where Chemistry Begins Before You Swallow
Most people locate digestion in the stomach. The real opening act is in the mouth, and it starts chemically before a single muscle contracts.
Salivary amylase — an enzyme secreted by the parotid, sublingual, and submandibular glands that cleaves the chemical bonds between glucose units in starch, beginning carbohydrate breakdown before swallowing.
The three pairs of salivary glands produce between 0.5 and 1.5 liters of saliva per day. That saliva contains amylase, which starts breaking starch into shorter sugar chains (maltose and dextrins) within seconds of contact. This is why a plain cracker held on the tongue long enough begins to taste faintly sweet — the enzyme is doing its work in real time.
Chewing is not purely mechanical. The act of grinding food increases surface area exposed to enzymes and acid by orders of magnitude. A cubic centimeter of unchewed meat presents far less enzyme-accessible surface than the same mass reduced to a paste. The tongue shapes the food into a cohesive mass called a bolus and pushes it to the back of the throat, triggering the swallowing reflex — a coordinated sequence involving more than 25 muscles that fires in under two seconds and simultaneously closes the airway.
Source: Marieb, E.N. & Hoehn, K., Human Anatomy and Physiology, 11th ed. (2019) — Comprehensive account of salivary composition, amylase function, and the swallowing reflex mechanics.
The Esophagus and Stomach: Acid, Churning, and Protein Attack
The esophagus adds nothing chemically to digestion — it is a muscular transit corridor approximately 25 cm (10 inches) long. What it does is demonstrate peristalsis: rhythmic, wave-like contractions of smooth muscle that propel the bolus toward the stomach regardless of gravity. Astronauts digest food in microgravity for exactly this reason. Peristalsis, not gravity, is what moves food through the entire digestive tract.
The stomach is a J-shaped muscular sac that can expand from roughly 75 mL empty to over 1 liter during a meal. Its lining secretes hydrochloric acid (HCl) at a pH between 1.5 and 3.5 — acidic enough to dissolve zinc metal. That acid serves two purposes: it kills most ingested bacteria, and it converts pepsinogen (an inactive precursor, or zymogen) into pepsin, the enzyme that begins protein digestion by cutting peptide bonds.
Pepsin — a protease enzyme active only at low pH that breaks proteins into shorter chains called peptides. It is released as an inactive precursor to prevent the stomach from digesting itself.
The stomach wall is protected from its own acid by a thick layer of mucus and a lining of tightly packed epithelial cells that replace themselves every three to five days. Even so, erosions occur — a peptic ulcer is what happens when the balance between acid production and mucosal protection fails, often triggered by the bacterium Helicobacter pylori, which survives at gastric pH by burrowing into the mucus layer.
Source: NIH National Institute of Diabetes and Digestive and Kidney Diseases (2023) — "Your Digestive System and How It Works" — confirms gastric pH range, pepsin activation mechanism, and gastric emptying times.
The stomach does not just soak food in acid. Its three muscle layers — longitudinal, circular, and oblique — churn the contents into a uniform semi-liquid called chyme. A typical mixed meal leaves the stomach in two to four hours, but fat slows gastric emptying substantially. A pure carbohydrate meal might clear the stomach in under 90 minutes; a fatty steak could take four to five hours. The pyloric sphincter regulates the trickle of chyme entering the small intestine, releasing no more than a few milliliters at a time.
The Small Intestine: Where Absorption Happens
The small intestine is the workhorse of digestion. At roughly 6 to 7 meters long, it is where approximately 90% of nutrient absorption occurs. Its interior surface is not smooth — it is covered in villi (finger-like projections) and microvilli (even smaller projections on each villus cell), collectively creating a total absorptive surface area estimated at 250 to 300 square meters — roughly the floor area of a tennis court — packed into a tube the width of a garden hose.
Villus — a small, finger-like projection on the inner wall of the small intestine, 0.5–1.6 mm tall, that dramatically increases surface area for nutrient absorption.
When chyme enters the duodenum (the first 25 cm of the small intestine), it triggers the release of two key hormones: secretin, which signals the pancreas to release bicarbonate-rich fluid to neutralize the acid, and cholecystokinin (CCK), which signals the pancreas to release digestive enzymes and the gallbladder to squirt bile.
The pancreas releases a suite of enzymes: pancreatic amylase (carbohydrates), lipase (fats), trypsin and chymotrypsin (proteins), and nucleases (DNA and RNA). Bile, produced by the liver and stored in the gallbladder, is not an enzyme — it is an emulsifier. It breaks large fat globules into smaller droplets, dramatically increasing the surface area available to lipase. Think of it like dish soap dispersing a grease slick.
Source: Guyton, A.C. & Hall, J.E., Textbook of Medical Physiology, 14th ed. (2021) — Detailed account of pancreatic enzyme secretion, bile emulsification, and intestinal absorption mechanisms.
Absorbed nutrients enter either the blood capillaries (glucose, amino acids, water-soluble vitamins, minerals) or the lacteals — lymphatic vessels at the center of each villus that carry fat-soluble nutrients and long-chain fatty acids into the lymphatic system before eventually reaching the bloodstream. The liver receives everything absorbed from the gut via the portal vein, processing, storing, or redistributing nutrients before they enter general circulation.
| Nutrient Class | Where Digestion Completes | Absorption Route |
|---|---|---|
| Carbohydrates (starch, sugars) | Duodenum / jejunum | Blood capillaries → portal vein |
| Proteins (amino acids) | Duodenum / jejunum | Blood capillaries → portal vein |
| Fats (fatty acids, glycerol) | Jejunum | Lacteals → lymphatic system |
| Water-soluble vitamins (B, C) | Small intestine | Blood capillaries |
| Fat-soluble vitamins (A, D, E, K) | Jejunum (with fats) | Lacteals → lymphatic system |
| Water | Small intestine + colon | Blood capillaries |
| Vitamin B12 | Terminal ileum | Blood (requires intrinsic factor) |
The Large Intestine: The Microbiome's Home
The large intestine (colon) receives whatever the small intestine could not absorb — mostly water, electrolytes, indigestible plant fibers, and dead cells shed from the gut lining. It is roughly 1.5 meters long, far shorter than the small intestine, but it houses the vast majority of your gut microbiome.
The human gut contains approximately 38 trillion bacteria, a figure that recent counting methods based on cell-by-cell direct counting (rather than the old genomic estimates) have established with considerably more precision than the earlier, oft-cited "10 times your own cells" figure.
Source: Sender, R. et al., Cell (2016) — "Revised Estimates for the Number of Human and Bacteria Cells in the Body" — establishes approximately 3.8 × 10^13 bacterial cells in the human body, roughly equal to the number of human cells.
Those bacteria are not passive passengers. They ferment dietary fiber that human enzymes cannot break down, producing short-chain fatty acids (SCFAs) — primarily acetate, propionate, and butyrate — that fuel the colonocytes (cells lining the colon), reduce intestinal inflammation, and influence systemic metabolism. Butyrate in particular is the preferred energy source for colonic epithelial cells, and its presence suppresses signals that could otherwise lead to abnormal cell growth.
The microbiome also synthesizes vitamin K2 and several B vitamins, contributes to the metabolism of bile acids that influence cholesterol regulation, and plays a central role in training and calibrating the mucosal immune system. Germ-free mice (raised with no gut bacteria) develop profoundly abnormal immune systems, with thin gut walls and reduced antibody production. The microbiome's influence on immunity is not incidental — it is structural.
Source: Valdes, A.M. et al., BMJ (2018) — "Role of the Gut Microbiota in Nutrition and Health" — reviews evidence for microbiome contributions to immune training, SCFA production, and metabolic health.
The Gut-Brain Axis: Why the Gut Is Called the Second Brain
The enteric nervous system (ENS) — the network of neurons embedded in the gut wall — contains between 200 and 600 million neurons, more than the spinal cord. It can coordinate gut contractions, secretions, and blood flow entirely independently of the brain. Cut the vagus nerve (the main cable connecting gut and brain), and the gut keeps working.
Enteric nervous system — a semi-autonomous division of the nervous system embedded in the walls of the gastrointestinal tract, capable of directing digestive function without input from the central nervous system.
The ENS communicates with the brain via the vagus nerve, which runs from the brainstem directly to the gut. Crucially, the communication is not balanced: roughly 80 to 90% of vagal fibers carry signals from the gut to the brain, not the other way around. The gut is reporting upward far more than it is receiving commands. This upward stream of information influences mood, appetite, stress responses, and potentially cognition.
The gut also produces approximately 95% of the body's serotonin — a neurotransmitter central to mood regulation. This gut-derived serotonin does not cross the blood-brain barrier in meaningful quantities, but it acts locally to regulate intestinal motility and communicate with the vagus nerve. Studies in germ-free mice show abnormal serotonin metabolism that normalizes when the microbiome is reintroduced, suggesting the bacteria themselves influence serotonin production.
Source: Cryan, J.F. et al., Physiological Reviews (2019) — "The Microbiota-Gut-Brain Axis" — extensive review establishing gut-to-brain signal dominance, serotonin production, and microbiome-behavior links.
Source: Furness, J.B., Nature Reviews Gastroenterology & Hepatology (2012) — "The enteric nervous system and neurogastroenterology" — confirms 200–600 million enteric neurons and independent gut function.
This bidirectional communication has real clinical weight. People with irritable bowel syndrome (IBS) have altered gut microbiome composition and elevated rates of anxiety and depression — not simply as a psychological response to a painful condition, but through measurable changes in vagal signaling and inflammatory cytokine production that reach the brain. The gut-brain relationship is not metaphorical. It is neurological.
The Microbiome: 38 Trillion Collaborators
The gut microbiome is not a single thing — it is an ecosystem. A healthy adult gut hosts between 500 and 1,000 distinct bacterial species, alongside archaea, fungi, and viruses, all in a dynamic relationship shaped by diet, antibiotic exposure, age, and early life environment. The two dominant bacterial phyla in a healthy Western gut are Firmicutes and Bacteroidetes, though the ratio between them and the diversity of species within each phylum varies considerably between individuals.
Diversity is the key metric. Low microbial diversity is consistently associated with obesity, type 2 diabetes, inflammatory bowel disease, and certain autoimmune conditions. High diversity, promoted by diets rich in plant fiber and fermented foods, correlates with better metabolic and immune health — though association and causation are still being untangled by ongoing microbiome research.
Source: Sonnenburg, J.L. & Bäckhed, F., Nature (2016) — "Diet-induced alterations in gut microflora contribute to lethal pulmonary damage in TLR2/TLR4-deficient mice" — and related reviews on diversity-health links.
Source: Zmora, N. et al., Cell (2018) — "Personalized Gut Mucosal Colonization Resistance to Empiric Probiotics Is Associated with Unique Host and Microbiome Features" — demonstrates individual variation in microbiome composition and response to dietary intervention.
One of the more striking findings from microbiome science: the microbiome of a newborn is established largely during birth, through contact with vaginal microbiota and breast milk oligosaccharides that specifically feed Bifidobacterium species. Infants delivered by cesarean section have measurably different early microbiomes — with higher Clostridium and lower Lactobacillus — though these differences largely equilibrate within the first two years of life.
The Gut-Brain Axis: How Your Microbiome Talks to Your Mind
The vagus nerve is the longest cranial nerve in the body — it runs from the brainstem all the way through the neck, chest, and abdomen, branching to reach the heart, lungs, and gut. For decades it was understood primarily as a command line: brain sends orders down, organs comply. That model was wrong. Detailed fiber-counting studies established that roughly 80 to 90% of vagal fibers carry signals upward — from gut to brain — not the other way around. The gut is doing most of the talking.
Vagus nerve — the tenth cranial nerve, running from the brainstem to the abdominal organs; in the gut-brain axis it serves primarily as an afferent (sensory) highway, relaying chemical, mechanical, and microbial signals from the gut to the brain.
What is the gut sending upward? An enormous quantity of chemosensory data: stretch signals from distended gut walls, pH readings from enteroendocrine cells, inflammatory cytokine levels, and — critically — information about the microbiome's metabolic activity. Specialized enterochromaffin cells in the gut lining produce approximately 90% of the body's total serotonin. This is not a rounding error: despite serotonin's reputation as the brain's "mood molecule," the gut manufactures the vast majority of it. Gut-derived serotonin does not cross the blood-brain barrier in meaningful quantities, but it activates vagal afferents locally, and those signals travel directly to brain regions involved in mood, appetite, and autonomic regulation.
The microbiome drives serotonin production more than most people realize. Germ-free mice — animals raised from birth in sterile conditions with no gut bacteria — show strikingly abnormal serotonin levels in the gut and measurably altered behavior: they are more anxious, more reactive to stress, and show impaired social behavior compared to conventionally colonized animals. When a normal microbiome is transplanted into germ-free mice early in life, these behavioral abnormalities largely reverse. Transplanted later, some effects persist — suggesting there is a developmental window during which the microbiome calibrates the brain.
Source: Yano, J.M. et al., Cell (2015) — "Indigenous bacteria from the gut microbiota regulate host serotonin biosynthesis" — demonstrates that specific gut bacterial species (primarily spore-forming Clostridia) drive colonic enterochromaffin cell serotonin production, with germ-free mice showing 60% lower colonic serotonin and behavioral differences that normalize after colonization.
The chemical mediators of microbiome-to-brain signaling extend well beyond serotonin. Short-chain fatty acids (SCFAs) — acetate, propionate, and butyrate produced when gut bacteria ferment dietary fiber — cross the blood-brain barrier and influence neuroinflammation. Propionate in particular can modulate dopamine and serotonin metabolism in the brain. Certain Lactobacillus and Bifidobacterium species synthesize gamma-aminobutyric acid (GABA), the brain's primary inhibitory neurotransmitter, though whether gut-produced GABA reaches the brain in clinically relevant quantities is still under active investigation. What is better established is that SCFAs stimulate the vagus nerve directly and regulate the production of gut hormones — glucagon-like peptide 1 (GLP-1) and peptide YY — that signal satiety and influence appetite circuits in the hypothalamus.
The clinical footprint of this axis is becoming clearer. People with major depressive disorder show reduced gut microbial diversity compared to healthy controls. Irritable bowel syndrome patients display altered gut microbiome profiles alongside elevated rates of anxiety — not merely as a psychological response to chronic pain, but through measurable changes in vagal signaling and systemic inflammatory markers. Fecal microbiota transplantation (FMT) studies in rodents have demonstrated that transplanting the microbiome from a depressed human donor into a germ-free rat produces depressive-like behavior in the recipient — one of the most striking pieces of evidence that the microbiome's influence on mood is causal, not correlational.
Source: Kelly, J.R. et al., Journal of Psychiatric Research (2016) — "Transferring the blues: Depression-associated gut microbiota induces neurobehavioral changes in the rat" — FMT from depressed patients into germ-free rats reproduces behavioral and metabolic signatures of depression, including altered tryptophan metabolism.
Common Misconceptions About Digestion
"Detox cleanses flush toxins from the gut." The gut does not accumulate toxins requiring periodic purging. The colon is not a sewage pipe that fills between cleanses — it continuously moves contents along via peristalsis and is fully evacuated regularly through normal bowel movements. The liver and kidneys handle toxin processing; the colon's job is water reabsorption and microbiome maintenance.
"Digestion is a one-way street." The gut communicates constantly upstream, with the enteric nervous system sending signals to the brain. The gut also recirculates bile salts through enterohepatic circulation — bile released into the small intestine is reabsorbed at the terminal ileum, returned to the liver via the portal blood, and recycled. Each bile salt molecule cycles 6 to 10 times per day.
"Stomach acid destroys all bacteria." The stomach kills most bacteria, but not all. H. pylori survives by embedding in mucus. Lactobacillus species are acid-tolerant. The transit time through the stomach is short enough that some bacteria survive, which is how oral probiotics reach the colon — and how foodborne pathogens occasionally reach it too.
Source: Cleveland Clinic (2023) — "Digestive System" — Overview of GI transit times, stomach acid function, and common digestive misconceptions.
Q: How long does food actually take to travel through the entire digestive system?
A: Total transit time ranges from 24 to 72 hours in healthy adults, with wide individual variation. Stomach emptying takes 2–4 hours; small intestine transit is 2–6 hours; the large intestine retains material for 10–59 hours depending on fiber intake, hydration, and individual gut motility.
Q: Does everyone have the same gut microbiome?
A: No. The gut microbiome is as individually distinct as a fingerprint. Diet, geography, birth method, antibiotic history, and genetics all shape composition. Two healthy people can have dramatically different dominant species while both being metabolically healthy.
Q: Why does eating affect mood?
A: The gut produces roughly 95% of the body's serotonin and communicates with the brain via the vagus nerve. Gut bacteria also produce short-chain fatty acids that cross the blood-brain barrier and influence neuroinflammation. The connection is neurological and biochemical, not just psychological.
Q: What does dietary fiber actually do if we can't digest it?
A: Indigestible fiber is fermented by gut bacteria into short-chain fatty acids (SCFAs), particularly butyrate. Butyrate fuels colonocyte health, reduces colonic inflammation, and influences gene expression in colon cells. Fiber also increases stool bulk, reduces transit time, and feeds diverse bacterial populations.
Q: Is it true that the gut has its own nervous system?
A: Yes. The enteric nervous system (ENS) contains 200–600 million neurons, operates autonomously, and can direct all digestive functions without the brain. It earns the name "second brain" not as a metaphor but as an anatomical description of a genuinely independent neural network.
Q: Why does stress cause digestive problems?
A: Stress activates the sympathetic nervous system, which reduces blood flow to the gut and slows peristalsis — diverting energy to muscles and the brain. Chronic stress also alters the gut microbiome composition and increases intestinal permeability. The gut-brain axis runs in both directions: just as the gut affects mood, the brain's stress signals reshape gut function.
The Takeaway
Digestion is not a simple input-output system. It is a multi-organ chemical process that begins in the mouth, hands off to increasingly specialized environments, and culminates in a colon that is less a waste pipe than an ecosystem hosting 38 trillion organisms in active collaboration with your immune system, your metabolism, and your brain. The gut earns the "second brain" label honestly: its independent neural network, its dominant upstream signaling to the brain, and its role as the body's largest serotonin factory make it a biological system whose influence extends far beyond the meal that triggered it.
Read next:
Follow new articles
Add SciHub101 to your feed reader to see new science and technology stories.
About the Author
SciHub101 is an independent science and technology publication founded and edited by Buğra Sözeri, a software engineer and app developer based in Türkiye. AI tools assist with drafting and research. Source documentation in the existing archive is uneven, and articles are being reviewed and corrected. The Editorial Team byline identifies editorial responsibility; it does not certify specialist or independent human review. Where we compare products, anything built by our own team is labelled as such — see the editorial guidelines and About page for how corrections and disclosures work.
Related Articles

How Hearing Works: Sound Waves, the Cochlea, and Why Hearing Loss Is Permanent
Your inner ear contains roughly 15,500 hair cells — each one tuned to a specific frequency — and they do not grow back. Lose them to noise, age, or disease, and the corresponding frequencies are gone permanently. Here is how they work, and why that loss is irreversible in mammals.

How Blood Works: Red Cells, Plasma, Clotting, and the 5 Liters Cycling Every Minute
Your body contains roughly 5 liters of blood, and every drop of it completes a full circuit through the heart and lungs in about 60 seconds. Blood is not a simple liquid — it is a suspension of at least four distinct components performing oxygen transport, immune defense, wound sealing, and chemical delivery simultaneously. Here is how it all works.

How the Digestive System Works: From Food to Fuel
The gut contains more neurons than your spinal cord and is lined by a surface area the size of a studio apartment — all to break down what you eat.

Why Does Your Stomach Growl? The Biology
Borborygmi explained: why your stomach growls when hungry, after meals, and in quiet rooms — plus when those sounds signal a real problem.

The Gut Microbiome Explained — Your Inner Ecosystem
Discover the 38 trillion bacteria living in your gut, how they shape immunity, mood, and disease risk — and what science says about improving them.

Stomach Growling Science: Hunger and Gut Motility
Stomach growling comes from a gut-wide muscular sweep called the migrating motor complex, not just an empty stomach — here is the mechanism.