How the Gut Works: A Science-Based Guide to the Body's Most Underrated Organ
What's actually happening between bites, and why everything you do (sleep, stress, diet, movement, medication) measurably affects it.
Quick Summary
The human gut is not passive plumbing. It runs its own nervous system, hosts roughly 70 percent of the body's immune machinery by weight, and talks to the brain through the vagus nerve more than the brain talks back to it.1,2,3 It also houses an ecosystem of roughly 38 trillion bacteria whose metabolites measurably shape inflammation, immunity, and metabolism.4 The gut's lining is a single cell thick, sealed by a network of proteins called tight junctions; that thin barrier is where most of the modern "gut health" conversation lives, including the legitimate science behind intestinal hyperpermeability and the much messier wellness framing of "leaky gut syndrome."5,6 Understanding how the gut actually works changes the practical conversation. Sleep, stress, alcohol, NSAIDs, food choices, and movement all measurably affect gut function, and most of the levers that help are the unglamorous ones: protect sleep, manage stress, eat for diversity, allow some space between meals, move daily.
Key Terms
Enteric Nervous System (ENS): The independent neural network embedded in the gut wall, sometimes called the "second brain." Estimates of total neurons range from roughly 100 to 500 million, with more than the spinal cord across all current estimates.1,2
Gut-Associated Lymphoid Tissue (GALT): The immune infrastructure built into the gut wall, including Peyer's patches and IgA-producing plasma cells. GALT makes up about 70 percent of the immune system by weight.6
Tight junctions: Protein structures (occludin, claudins, zonula occludens) that seal the gaps between intestinal epithelial cells and regulate what crosses the gut barrier.5
Migrating Motor Complex (MMC): The fasting-phase housekeeping wave that sweeps the small intestine clean between meals. Eating, even a small snack, resets it.7
Intestinal hyperpermeability ("leaky gut"): A measurable increase in how readily molecules pass between gut epithelial cells. It is documented in IBD, IBS, obesity, and type 2 diabetes. It is not the same as the contested wellness term "leaky gut syndrome."5,8
The Gut, Technically Speaking
A small biological technicality worth knowing: the inside of your gut is not really inside your body. The intestinal lumen, the hollow channel running through the digestive tract, is continuous with the outside environment. Food, water, and microbes enter at the mouth, travel through the system, and exit. What separates "outside" from "inside" is a single layer of cells, the intestinal epithelium, that decides what crosses into circulation.5
This is part of why the gut barrier matters so much. It is not a sturdy wall. It is one cell thick. Those cells are held together by tight junctions, multi-protein complexes that include occludin, claudins, and a family of proteins called zonula occludens.5 When tight junctions are working well, water and small nutrients pass through, and bacteria, larger food fragments, and bacterial cell-wall pieces stay out. When they are not working well, the wrong things start to leak through, and the immune system reacts to molecules it was never meant to see.
The total surface area of the small intestine, when villi and microvilli are accounted for, is roughly the size of a tennis court. That entire surface is exposed to whatever you eat, and underneath that surface sits roughly 70 percent of your immune system. None of that is metaphor. It is anatomy.6
A Second Nervous System Inside Your Body
The gut has its own brain. Not a metaphorical one.
The Enteric Nervous System (ENS) is an extensive neural network embedded in the gut wall, running from the esophagus to the anus. Estimates of how many neurons it contains have varied. Older sources widely cite 500 million; a 2022 study using standardized immunohistochemistry estimated closer to 168 million. The honest range is between 100 and 500 million neurons, with the consistent through-line that the ENS contains more neurons than the spinal cord across all current estimates.1,2
What makes the ENS unusual is that it can operate on its own. It coordinates peristalsis, regulates secretion, and adjusts blood flow without input from the central nervous system. Cut the connection to the brain in animal models and the gut still moves food along, still secretes enzymes, still responds to what's inside it. That autonomy is unusual in the body's neural architecture and is part of why the ENS earned the "second brain" nickname.
One caveat: the ENS does not "think" in the higher-order sense. It manages gut-specific processes very well. It is not a parallel cognitive system. The wellness internet sometimes blurs this line and the resulting overclaim ("your gut decides what you feel") tends to outrun the science.
The Gut-Brain Conversation Is Mostly One-Way (Upward)
The gut and the brain are connected by the vagus nerve, a major component of the parasympathetic nervous system that runs from the brainstem to the abdomen. Most people, if asked which way that conversation flows, would guess the brain talks down to the gut. The opposite is closer to the truth.
Roughly 80 percent of vagus nerve fibers are afferent, meaning they carry signals from the gut up to the brain. About 20 percent are efferent, carrying signals from the brain down to the gut.3 The gut sends more information upward than it receives.
This reframes "gut feelings" as something more biologically specific. Sensations from the gut (distension, irritation, microbial metabolites, immune signaling) are continuously being reported to the brain. The brain integrates that input alongside everything else it processes. Some of what people call intuition is, mechanically, an aggregated stream of internal sensing.
The gut's contribution to mood is frequently overstated, though. About 90 to 95 percent of the body's serotonin is produced in the gut, by specialized cells called enterochromaffin cells.9 This fact gets shared widely as if it explains depression. It mostly does not. Gut-made serotonin primarily governs gut motility and local signaling. It does not readily cross the blood-brain barrier. The brain's serotonin pool is largely separate from the gut's. Whatever the gut microbiome's influence on mood turns out to be (the evidence is real but largely indirect), it does not run through gut serotonin walking up to the brain and changing how you feel.
Gut Immunity: The Body's Largest Training Ground
The gut hosts more immune machinery than anywhere else in the body.
Gut-associated lymphoid tissue (GALT) makes up about 70 percent of the immune system by weight. The often-shared claim that "70 percent of your immune cells are in the gut" is a slight mistranslation. The accurate version is that GALT, by mass, is the largest immune compartment in the body.6
GALT includes Peyer's patches (lymphoid clusters in the small intestine), M cells (specialized cells that sample microbial antigens from the gut lumen), and IgA-producing plasma cells in the lamina propria. These structures form the body's main interface with the largest collection of foreign material it ever encounters, namely, the gut microbiome and everything that passes through with food.
This interface has a job that goes beyond defense. The gut is where the immune system learns the difference between a commensal microbe (something to tolerate) and a pathogen (something to attack). That training begins in early life and continues through it. A reasonable amount of microbial exposure, paired with a functioning gut barrier, produces a calibrated immune system. Disruption of either input (a barrier that's lost integrity, or a gut microbiome that has lost diversity) is associated with broader immune dysregulation, which is part of why "gut health" has become a useful shorthand for systemic-immune health.6
The Between-Meals Cleanup
The small intestine has a mechanism most people have never heard of, and it is one of the more interesting things going on inside an unfed body.
The Migrating Motor Complex (MMC) is a wave of muscular contractions that sweeps through the small intestine during fasting periods. It begins roughly 90 minutes after the last meal and a full cycle takes 90 to 120 minutes.7 Its job is to move residual food, dead cells, and bacteria along the small intestine and out toward the colon. The growling sound that an empty stomach makes is largely the MMC at work, audible through the abdominal wall.
Eating, even a small snack, switches the MMC off. The system reverts to digestion mode. After a roughly 90-minute pause from the most recent food, it can resume the housekeeping cycle.
The practical implication is that constant grazing prevents the small intestine from being cleared. Disrupted MMC function is associated with small intestinal bacterial overgrowth (SIBO), a condition where bacteria accumulate where they should be sparser.7 The causal direction is debated; SIBO may also disrupt the MMC. Either way, the principle holds: the small intestine has a cleaning cycle, and the cycle only runs between meals.
None of this argues for skipping meals or going hungry. It does suggest that "graze all day" and "eat constantly" are not always neutral choices for gut function.
Leaky Gut, Honestly
This is the most contested part of any modern gut conversation, and the place where popular content has overshot the science.
The phenomenon is real. Intestinal hyperpermeability, a measurable increase in how readily molecules pass through the gut barrier between epithelial cells, has been documented in inflammatory bowel disease (Crohn's disease, ulcerative colitis), in some forms of irritable bowel syndrome, in obesity, in type 2 diabetes, and in celiac disease.5,8 It can be measured with biomarkers including zonulin (a protein discovered by Dr. Alessio Fasano that regulates tight junction opening) and lactulose-mannitol urinary excretion ratios.5
The wellness framing is where things get messier. "Leaky gut syndrome" as a standalone clinical diagnosis is not recognized by mainstream gastroenterology.8 The reason is not that doctors are dismissing the underlying biology. It is that the syndrome framing tends to apply the label to almost any combination of symptoms (fatigue, bloating, brain fog, food sensitivity, joint pain, skin issues), and the supplements marketed to "heal" it rarely have human RCT evidence for the outcomes they imply. Intestinal hyperpermeability shows up in well-defined disease contexts; "leaky gut syndrome" tends to be applied much more broadly than the underlying evidence supports.8
The honest position: increased intestinal permeability is a real, measurable thing that happens in real diseases. It is not a one-line explanation for every symptom you have ever Googled. And no specific supplement, bone broth recipe, or protocol has been shown in human trials to "seal" the gut lining within a defined timeframe.
What Actually Disrupts the Gut Barrier
The list of things that measurably weaken intestinal barrier function is shorter and less exotic than the wellness internet suggests.
Chronic stress. Sustained stress and elevated cortisol reduce expression of tight junction proteins, including claudin-1 and occludin, by binding to glucocorticoid receptors that regulate those genes' transcription.10 This is one of the better-described mechanisms behind the everyday observation that stressful periods bring on more bloating, more reflux, and more gut symptoms in general.
Alcohol, including in moderate amounts. A 2026 Harvard / Beth Israel Deaconess study found that even a single binge-drinking episode (roughly four to five drinks in two hours) triggers neutrophil extracellular trap formation in the upper small intestine and weakens the barrier, allowing bacterial toxin translocation.11 Heavier and chronic drinking compounds the effect.
NSAIDs. Nonsteroidal anti-inflammatory drugs (ibuprofen, naproxen, aspirin at higher doses) inhibit cyclooxygenase enzymes that the gut also uses to maintain its lining. Frequent or high-dose use is associated with small intestinal erosions and barrier dysfunction.
Some food emulsifiers, in preclinical models. Polysorbate 80, polysorbate 20, carboxymethylcellulose, and carrageenan have been shown to disrupt tight junctions and shift microbiome composition in animal and in vitro studies.12 Human clinical evidence at typical dietary exposure is limited and emerging. This is a real signal worth tracking, not yet a settled conclusion.
Antibiotics, with persistent effects. A 2026 Nature Medicine analysis of nearly 15,000 individuals found that certain antibiotic classes (clindamycin, fluoroquinolones, flucloxacillin) are associated with measurable changes in gut microbiome composition that can persist for more than four years after exposure.15 This is not an argument against using antibiotics when needed; it is an argument for stewardship.
The pattern across all of these is the same: the gut barrier is dynamic. It responds to inputs you control and inputs you do not, and the inputs you control are mostly the obvious ones.
The Microbiome: 38 Trillion Tenants
The gut microbiome is the largest ecosystem in the human body.
A 2016 reanalysis estimated that the average adult carries roughly 38 trillion bacterial cells, distributed across hundreds of species.4 The older "10 microbes for every human cell" figure was based on outdated math; the actual ratio is closer to 1 to 1. Either way, the gut microbiome is a small population's worth of organisms doing real metabolic and immune work.
Their main outputs that affect human physiology are short-chain fatty acids (SCFAs), particularly butyrate, propionate, and acetate, produced when gut bacteria ferment dietary fiber. Butyrate is the primary fuel for colonocytes (the cells lining the colon) and helps maintain tight junction integrity from the gut side of the equation. Propionate participates in glucose regulation. Acetate enters circulation and influences appetite and energy metabolism.
Diversity matters more than the presence of any single "good" species. A microbiome with many different bacterial species generally fares better against environmental insults than a microbiome that has lost diversity. There is no current consensus list of "the right bacteria to have"; the science is more about ecological resilience than about crowning specific strains.
A few things consistently show up in studies as supporting microbiome diversity: dietary variety (especially across plant foods), fermented foods, regular movement, sleep, and not killing the ecosystem with avoidable antibiotic exposure. None of those is dramatic. All of them are true.
A note on probiotics. Most commercial probiotics are transient passengers. They pass through the gut, exert local effects while present, and rarely permanently colonize. Some strains in some conditions have meaningful clinical evidence. Most do not. Strain matters; product brand matters; framing a probiotic as a "gut healer" tends to outrun the data.
Habits That Actually Help
The evidence-supported list is shorter than the wellness market suggests and more useful.
Eating for diversity. The American Gut Project, now the Microsetta Initiative at UC San Diego, ran a large self-reported analysis showing that people consuming 30 or more different plant foods per week tended to have more diverse gut microbiomes than people eating fewer than 10.13 One caveat: this comes from a single large self-reported analysis, not a randomized intervention trial. The number "30" is a heuristic from observational data, not a clinical prescription. The directional point (more variety, more microbial diversity) is well-supported even if the precise number is not a hard target.
Fermented foods. A 2021 Stanford randomized controlled trial (n=36) found that a 10-week diet rich in fermented foods (yogurt, kefir, kimchi, sauerkraut, kombucha, fermented cottage cheese) increased microbiome diversity and decreased inflammatory markers compared to a high-fiber control diet.14 Effect sizes were modest. The trial is small. The signal was clean enough to be worth taking seriously.
Some space between meals. Allowing fasting windows of at least a few hours between meals lets the MMC do its housekeeping work. This does not require dramatic time-restricted eating; it requires not snacking continuously through the afternoon.
Daily movement. Gut motility increases within a minute or two of walking. Regular moderate exercise consistently improves intestinal motility and reduces constipation. Movement is one of the better-evidenced and cheapest interventions for gut function generally.
Sleep. Short-term human studies show that severe sleep restriction reduces microbiome richness, and the broader literature consistently links sleep to multiple gut-relevant systems (immune function, motility, hormonal regulation).
Probiotic supplementation, used carefully. A strain-validated probiotic such as WonderBiotics Probiotics for Gut Health can be one supporting habit alongside the others; it is not a substitute for sleep, diet, stress management, or movement, and current human evidence does not support framing any consumer probiotic as a treatment for intestinal hyperpermeability or any specific disease.
Practical Takeaways
A short list of levers with real evidence behind them.
- Protect your sleep. Aim for seven to nine hours, and treat consistency as part of the dose. The microbiome and the gut barrier both depend on it.
- Lower the chronic stress floor where you can. Cortisol's effect on tight junctions is real; recovery time is not optional.
- Watch your alcohol pattern. Even occasional binge-pattern drinking shows measurable gut barrier effects in human research.11
- Use NSAIDs only as needed. Frequent over-the-counter use is not the bargain it seems for gut function.
- Eat for variety, not for a number. A wide range of plant foods supports microbial diversity. Thirty per week is a useful directional heuristic from observational data, not a clinical target.13
- Include fermented foods regularly. Yogurt, kefir, kimchi, sauerkraut, kombucha. The Stanford RCT signal was real.14
- Allow fasting windows. Some space between meals lets the MMC do its work.
- Move daily. It is one of the better-evidenced gut interventions on the menu.
- Talk to a clinician for persistent symptoms. Bloating, irregularity, pain, or weight changes that persist deserve a real evaluation, not a self-diagnosed wellness syndrome.
The Bigger Picture
The gut is not a tube of plumbing that occasionally misbehaves. It is a layered organ system: a single-cell-thick barrier, an independent nervous system, the body's largest immune training ground, a between-meals cleaning cycle, and an ecosystem of trillions of microbes whose metabolites measurably shape human physiology. Most of what makes that system work well is not exotic. Sleep, stress management, diet variety, occasional fasting windows, daily movement. The wellness industry is much more profitable when these levers stay invisible. The science is much clearer when they do not.
Understanding how the gut actually works changes the practical conversation. It moves it from miracle protocols toward a small set of inputs that, taken seriously and consistently, produce the kind of slow improvement that does not look dramatic in a marketing photo. That's the honest version of "gut health," and it is the only version with evidence behind it.
Related Reading
- For the broader story of the microbial city you are hosting, read Understanding the Human Microbiome.
- If you are weighing whether a probiotic is worth taking and how to read the label, see What Are Probiotics? Benefits, Risks, and How to Choose the Right Supplement.
- For the nutrient that actually feeds your gut bacteria, read Fiber for Gut Health.
- Curious about a single bacterium that helps maintain the gut lining itself? Read Akkermansia muciniphila and Inflammatory Bowel Disease.
- And if you have ever wondered why a night out wreaks havoc the next morning, here's the cleaner explanation: Does Alcohol Make You Poop?
References
- Queensland Brain Institute. Enteric Nervous System. https://qbi.uq.edu.au/brain/brain-anatomy/peripheral-nervous-system/enteric-nervous-system
- Schemann M, et al. How big is the little brain in the gut? Neuronal numbers in the enteric nervous system of mice, guinea pig, and human. Neurogastroenterology & Motility. 2022. https://onlinelibrary.wiley.com/doi/10.1111/nmo.14440
- Breit S, Kupferberg A, Rogler G, Hasler G. Vagus Nerve as Modulator of the Brain-Gut Axis in Psychiatric and Inflammatory Disorders. Frontiers in Neuroscience. 2018. https://www.frontiersin.org/journals/neuroscience/articles/10.3389/fnins.2018.00049/full
- Sender R, Fuchs S, Milo R. Revised Estimates for the Number of Human and Bacteria Cells in the Body. Cell. 2016. https://pmc.ncbi.nlm.nih.gov/articles/PMC4991899/
- Fasano A. Zonulin and Its Regulation of Intestinal Barrier Function: The Biological Door to Inflammation, Autoimmunity, and Cancer. Physiological Reviews. 2010. https://journals.physiology.org/doi/abs/10.1152/physrev.00003.2008
- Wikipedia. Gut-Associated Lymphoid Tissue (GALT) overview. https://en.wikipedia.org/wiki/Gut-associated_lymphoid_tissue
- Deloose E, et al. The migrating motor complex: control mechanisms and its role in health and disease. Nature Reviews Gastroenterology & Hepatology / Gutivate clinical explainer. https://gutivate.com/blog/migrating-motor-complex
- Camilleri M. Leaky Gut: Mechanisms, Measurement and Clinical Implications in Humans. Gastroenterology & Hepatology. 2024. https://www.gastroenterologyandhepatology.net/archives/may-2024/leaky-gut-syndrome-myths-and-management/
- Yano JM, et al. (Caltech press summary). Microbes Help Produce Serotonin in Gut. Cell. 2015. https://www.caltech.edu/about/news/microbes-help-produce-serotonin-gut-46495
- Zheng G, et al. Chronic stress and intestinal barrier dysfunction: glucocorticoid receptor and HES1 regulate claudin-1 expression. Scientific Reports. 2017. https://www.nature.com/articles/s41598-017-04755-w
- Minchenberg S, et al. Binge drinking triggers gut damage. Alcohol: Clinical and Experimental Research. Reported via Harvard Gazette. 2026. https://news.harvard.edu/gazette/story/2026/01/binge-drinking-triggers-gut-damage-finds-new-study/
- Ogulur I, et al. Mechanisms of gut epithelial barrier impairment caused by food emulsifiers polysorbate 20 and polysorbate 80. Allergy. 2023. https://onlinelibrary.wiley.com/doi/10.1111/all.15825
- Microsetta Initiative / American Gut Project. How dietary variety and gut microbiome diversity are associated. UC San Diego. https://microsetta.ucsd.edu/30-plants-per-week/
- Wastyk HC, Sonnenburg JL, et al. Gut-microbiota-targeted diets modulate human immune status. Cell. 2021. https://med.stanford.edu/news/all-news/2021/07/fermented-food-diet-increases-microbiome-diversity-lowers-inflammation.html
- Björk J, et al. Antibiotic use and gut microbiome composition links from individual-level prescription data of 14,979 individuals. Nature Medicine. 2026. https://www.nature.com/articles/s41591-026-04284-y
Taylor Cottle, PhD
Dr. Cottle is a scientific communicator, speaker, and biotechnology entrepreneur whose work focuses on scientific messaging and advancing next-generation life science products.
Read more
Fluffy Poop Causes, Diarrhea, and Stress: What Your Gut Is Trying to Tell You
Fiber for Gut Health: What It Does, Why It Matters, and How Much You Need
Does Alcohol Make You Poop? The Gut Science Behind Your Hangover Bathroom Emergency