How the Gut-Brain Axis Works: Why Your Stomach Affects Your Mood

The gut-brain axis is a bidirectional communication network linking the digestive system and the brain through nerves, hormones, and the immune system. Learn how gut bacteria influence mood, anxiety, and cognition.

The InfoNexus Editorial TeamMay 10, 20269 min read

The Second Brain

The gut contains its own nervous system — the enteric nervous system (ENS) — consisting of approximately 500 million neurons embedded in the walls of the gastrointestinal tract, from the esophagus to the rectum. This is more neurons than are found in the spinal cord. The ENS can operate independently of the central nervous system (CNS): it regulates gut motility, secretion, and blood flow without requiring instructions from the brain. This autonomy is why it is sometimes called the second brain, and why gut contractions and secretions continue normally after the vagus nerve (the main highway between gut and brain) is severed.

However, the enteric nervous system does not operate in isolation. The gut-brain axis is a bidirectional communication system through which the gut and brain continuously exchange signals. Information flows from the brain down to the gut (affecting motility, permeability, and immune function) and from the gut up to the brain (influencing mood, stress responses, appetite, and cognition). The signaling channels include the autonomic nervous system (especially the vagus nerve), the enteroendocrine system (gut hormone-producing cells), the immune system, and the gut microbiome.

The Vagus Nerve: The Highway Between Gut and Brain

The vagus nerve is the longest cranial nerve in the body, running from the brainstem to the abdomen and innervating the heart, lungs, and digestive tract. Crucially, it is predominantly afferent — about 80 to 90 percent of the fibers carry information from the gut and other organs to the brain, rather than carrying commands the other way. This anatomical fact is remarkable: the gut is continuously sending sensory information about its chemical environment, pH, nutrient content, immune status, and microbial activity upward to the brainstem and ultimately to higher brain centers.

The brainstem receives this sensory input and integrates it with emotional and cognitive processing. Vagal afferents project to the nucleus tractus solitarius in the brainstem, which in turn connects to the limbic system (including the amygdala and hippocampus, key regions for emotion and memory) and the prefrontal cortex. This anatomical connectivity provides a direct pathway through which gut state influences emotional state. The nauseating anxiety of stage fright, the gut-wrenching sensation of grief, and the butterflies of excitement are all manifestations of this connection.

The Gut Microbiome: Microbes That Shape the Brain

The human gut contains approximately 38 trillion bacteria (roughly equal to the number of human cells in the body), along with archaea, fungi, and viruses. This microbial ecosystem — the gut microbiome — is metabolically active, producing thousands of compounds that enter the bloodstream and affect distant organs, including the brain. Its influence on brain function and mental health is one of the most active frontiers in biomedical research.

Gut bacteria produce or modulate several signaling molecules relevant to the brain. Approximately 90% of the body's serotonin is produced in the gut, primarily by enterochromaffin cells stimulated by gut bacteria. While most gut serotonin does not cross the blood-brain barrier (it acts locally to regulate intestinal movement), it influences vagal afferent signaling. Gut bacteria also produce gamma-aminobutyric acid (GABA), the brain's main inhibitory neurotransmitter, and short-chain fatty acids (SCFAs) — particularly butyrate, propionate, and acetate — which can cross the blood-brain barrier and directly influence brain cell function.

Evidence From Germ-Free Animal Studies

Some of the most striking evidence for gut-brain communication comes from studies of germ-free mice — animals raised in sterile conditions with no gut bacteria. These mice show exaggerated stress responses, increased anxiety-like behavior in open-field tests, and dysregulated HPA (hypothalamic-pituitary-adrenal) axis activity compared to conventionally housed mice. When germ-free mice are colonized with normal gut bacteria, their stress responses normalize — but only if colonization occurs early in life, suggesting that gut microbiota shape the developing brain during a sensitive window.

Transfer experiments are particularly illuminating: when gut bacteria from anxious mouse strains are transplanted into germ-free mice with low-anxiety genetics, the recipients develop more anxious behavior. When bacteria from depressed human donors are transplanted into germ-free rats, the rats develop depressive-like behaviors. These findings establish a causal role of the microbiome in behavior, rather than merely an association, though translating mouse findings to humans requires caution.

The Gut-Brain Axis and Mental Health Disorders

In humans, associations between gut microbiome composition and mental health conditions are increasingly documented. Patients with major depression show distinct microbiome profiles compared to healthy controls, with lower abundance of certain Lactobacillus and Bifidobacterium species and higher abundance of pro-inflammatory bacteria. People with anxiety disorders show altered microbiome diversity and composition. Patients with autism spectrum disorder have a higher prevalence of gastrointestinal symptoms and distinct gut microbiome profiles, though whether the microbiome differences are a cause, consequence, or independent correlate of ASD remains unclear.

These associations are complicated by the difficulty of establishing causation in humans and by the many confounders (diet, medication, stress, sleep) that simultaneously affect both microbiome and mental health. Antibiotic treatment — which dramatically disrupts the microbiome — has been associated with increased risk of depression and anxiety in large epidemiological studies, though antibiotics also affect the brain directly, confounding the interpretation.

Can Probiotics Improve Mental Health?

The hypothesis that modifying gut bacteria could improve mood — using what some researchers call psychobiotics — has attracted significant research interest. Clinical trials of probiotic supplementation in healthy volunteers show modest reductions in perceived stress and negative mood in some studies. In patients with depression, a few small randomized controlled trials show antidepressant effects of probiotic supplements (typically Lactobacillus and Bifidobacterium strains), though effect sizes are generally smaller than those of conventional antidepressants and many trials are methodologically limited.

Dietary interventions targeting the microbiome have also been studied. A 2017 randomized controlled trial (the SMILES trial) found that a Mediterranean-style diet (high in vegetables, legumes, whole grains, and olive oil, low in processed foods) reduced depression scores significantly compared to social support alone in people with moderate to severe depression. Diet is one of the most powerful determinants of microbiome composition, and the mental health benefits of dietary patterns may be partly mediated through the gut-brain axis.

Open Questions and the Future of Research

The gut-brain axis is one of the most exciting areas in biomedical research, but major questions remain. The specific bacterial species, metabolites, and neural pathways responsible for different behavioral effects in humans are poorly characterized. Most human evidence is associative rather than causal. The microbiome is extraordinarily complex — containing thousands of species with vast functional redundancy — making it difficult to identify specific therapeutic targets. Delivery of probiotics to specific gut locations, engineering bacteria to produce specific brain-relevant compounds, and developing dietary interventions that reliably shift microbiome composition in beneficial directions are all active areas of research. What is already clear is that the gut is not merely a digestive organ but an active participant in brain function and mental health — a fact that will reshape how both gastroenterology and psychiatry are practiced over the coming decades.

NeuroscienceGut HealthMental Health

Related Articles