The two nervous systems and why the gut is called the second brain
The gut contains its own independent nervous system. It is called the enteric nervous system and it runs the full length of the gastrointestinal tract, from oesophagus to rectum. It contains approximately 500 million neurons, more than the spinal cord. It regulates digestion, gut motility, secretion, and blood flow through the gut wall, and it does all of this without any instruction from the brain.
This is not a metaphor. The enteric nervous system is a genuinely autonomous neural network. It evolved before the central nervous system and in many respects is the older of the two systems. When scientists refer to the gut as the second brain, they are describing a literal neural architecture, not a poetic one.
What makes this relevant to anxiety and mood is what happens when the enteric nervous system communicates with the central nervous system via the vagus nerve. The vagus nerve is the primary physical connection between the gut and the brain. It carries signals in both directions, but the traffic is asymmetric: approximately 80 to 90 per cent of the signals travelling along the vagus nerve run upward from gut to brain rather than downward from brain to gut.
This means the gut is sending far more information to the brain than the brain sends to the gut. The state of the gut is being continuously reported upward. When that state is one of chronic irritation, inflammation, or microbiome disruption, the report being delivered to the brain reflects that state. The brain interprets these incoming signals and they influence emotional processing, threat perception, and stress reactivity.
A 2024 review in Frontiers in Neuroscience systematically confirmed that the microbiota-gut-brain axis is the primary communication pathway for anxiety disorders, with neural signalling, endocrine mechanisms, and immune regulation all playing significant roles. The review identified probiotics, prebiotics, and dietary interventions as showing meaningful potential for modifying gut microbiota and improving psychological wellbeing. View source →
Where serotonin actually comes from
Serotonin is widely understood as the brain's mood chemical. Antidepressants that target serotonin pathways, particularly SSRIs, are among the most prescribed medications globally. The assumption embedded in that framing is that serotonin is primarily a brain phenomenon. The numbers tell a different story.
Approximately 90 per cent of the body's serotonin is produced in the gut. Specialised cells in the gut lining called enterochromaffin cells synthesise serotonin in response to signals from gut bacteria, food intake, and mechanical stimulation of the gut wall. This serotonin plays a critical role in regulating gut motility, secretion, and pain signalling within the gut. It also influences mood and emotional processing through the signals it triggers in the vagus nerve and the enteric nervous system.
The implication is significant. If the gut lining is compromised, if the enterochromaffin cells are in a disrupted environment, if the gut microbiome is dysbiotic, serotonin production is affected. Not in a way that is dramatic or obvious, but in a way that is persistent and cumulative. A gut that has been under sustained stress for months or years is producing serotonin in a compromised environment. The downstream effects on mood and anxiety are real, even if they are not immediately traceable to the gut.
"90 per cent of the body's serotonin is made in the gut. The brain's mood chemistry is, in substantial part, a gut health story."
Research published in PMC in 2024 identified that stress-related increases in gut permeability cause a diversion of tryptophan metabolism away from serotonin production and toward the kynurenine pathway. This means that when the gut barrier is compromised under stress, less tryptophan is converted to serotonin and more is converted to kynurenine metabolites, some of which have directly anxiogenic and neurotoxic effects. View source →
The vagus nerve and how gut signals reach the brain
The vagus nerve is one of the longest nerves in the body. It connects the brainstem to the heart, lungs, and most of the digestive tract. It is the primary physical highway of the gut-brain axis and the mechanism through which the enteric nervous system communicates with the central nervous system in real time.
The vagus nerve transmits several categories of information from the gut upward. These include mechanosensory signals about the physical state of the gut wall, chemosensory signals about the chemical environment inside the gut, and immune signals about the inflammatory state of the gut tissue. All of these arrive at the brainstem and influence processing in the areas of the brain responsible for threat detection, emotional regulation, and stress response.
How gut permeability drives anxiety through the immune system
There is a second, parallel pathway through which gut health affects anxiety. It does not travel via the vagus nerve. It travels through the immune system and the bloodstream, and it involves a class of molecules called inflammatory cytokines.
When the gut barrier becomes more permeable than it should be, bacterial fragments called lipopolysaccharides can cross into the bloodstream. The immune system identifies these molecules as a threat and mounts an inflammatory response. This response involves the release of inflammatory cytokines including interleukin-6 and tumour necrosis factor alpha. These cytokines cross the blood-brain barrier and directly affect the function of brain regions involved in mood regulation and threat processing.
This process, metabolic endotoxaemia, is not a dramatic acute event in most people. It is a low-level, persistent process that runs continuously when the gut barrier is chronically compromised. The immune system is operating in a state of sustained low activation. The inflammatory cytokines it produces maintain a neuroinflammatory environment in the brain that is directly associated with increased anxiety and depressive symptoms.
A comprehensive 2025 review in PMC confirmed that gut microbiota dysbiosis is a causative factor in anxiety rather than merely a consequence of it, with decreased gut microbial diversity impairing enteroendocrine cell activity and disrupting peptide secretion in ways that directly increase vulnerability to anxiety. The researchers identified the immune-inflammatory pathway as a primary mechanism connecting gut disruption to anxiety disorders. View source →
How microbiome disruption affects mood directly
The gut microbiome produces, modulates, and responds to a broad range of neuroactive compounds. These are not peripheral to mood and anxiety: they are direct inputs into the biochemical environment in which the brain operates.
GABA is the brain's primary inhibitory neurotransmitter. It reduces neural excitability and is central to anxiety regulation. Several gut bacteria, including species of Lactobacillus and Bifidobacterium, produce GABA directly. When these populations are disrupted, through antibiotic use, poor diet, or chronic stress, GABA production from the gut is reduced. The brain's calming chemistry is quietly diminished.
Tryptophan is the amino acid precursor to serotonin. In a healthy gut, tryptophan is largely converted to serotonin. Under conditions of gut inflammation and barrier disruption, the enzyme IDO is activated and tryptophan is diverted to the kynurenine pathway instead. Some kynurenine metabolites are neurotoxic and directly increase anxiety. The stress-gut-anxiety connection is biochemically specific: a stressed and inflamed gut is producing anxiety-increasing compounds from the same raw material that should be producing serotonin.
The gut microbiome ferments dietary fibre to produce short-chain fatty acids, principally butyrate, propionate, and acetate. These compounds have systemic effects beyond gut health: they regulate the blood-brain barrier, modulate neuroinflammation, influence the production of brain-derived neurotrophic factor (BDNF), and affect the function of the hypothalamic-pituitary-adrenal axis that governs the stress response. A microbiome producing reduced levels of short-chain fatty acids, as seen consistently in people with dysbiosis, creates a measurably less stable neurological environment.
The stress and gut damage loop most people are stuck in
One of the reasons the gut-anxiety connection is so difficult to break is that stress damages the gut, and a damaged gut creates anxiety, and the anxiety creates more stress. This bidirectionality is not theoretical. It is the daily experience of most people dealing with both gut and mental health symptoms simultaneously.
Cortisol, the primary stress hormone, has direct effects on the gut. It reduces prostaglandin production and thins the mucosal lining. It alters gut motility, typically accelerating it. It reduces the diversity of the gut microbiome through its effects on gut immune function. It increases intestinal permeability by disrupting the tight junction proteins that hold the gut lining together. Every one of these effects is a direct pathway from stress into gut dysfunction.
The gut responds to that dysfunction by sending distress signals upward through the vagus nerve and the immune system. Those signals increase anxiety and stress reactivity in the brain. The heightened anxiety generates more cortisol. The cortisol further damages the gut. The loop continues.
This is not a vicious cycle in a casual sense. It is a specific physiological feedback loop with identifiable mechanisms at each stage. Breaking it requires working on both sides simultaneously: reducing the gut disruption that is feeding anxiety upward, and reducing the stress response that is feeding gut damage downward.
What this means practically for people with both gut and anxiety symptoms
Understanding the gut-brain connection at a mechanistic level is useful precisely because it changes the practical approach. Rather than treating gut symptoms and anxiety as two separate problems requiring two separate tracks of intervention, it becomes possible to address them as an interconnected system.
- Supporting the gut lining directly reduces the permeability that allows inflammatory molecules to enter the bloodstream and drive neuroinflammation. This is the structural repair component of the approach and it requires specific nutrients rather than dietary changes alone.
- Supporting the gut microbiome restores the microbial populations responsible for producing GABA, maintaining tryptophan-to-serotonin conversion, and generating the short-chain fatty acids that stabilise the stress response and protect the blood-brain barrier.
- Addressing the stress response is not a soft recommendation. Sustained cortisol elevation is directly damaging to the gut lining through the prostaglandin and tight junction pathways described above. Stress management is as mechanistically relevant to gut health as diet or supplementation.
- Sleep matters specifically and centrally. Microbial depletion through antibiotics disrupts rhythmic gene expression in the hippocampus and amygdala and alters corticosterone rhythmicity, and similarly, disrupted sleep alters the circadian rhythms that govern both gut microbiome composition and the stress-anxiety axis. Poor sleep perpetuates both gut dysfunction and anxiety through overlapping biological mechanisms.
- Diet diversity directly supports the microbiome diversity that underpins healthy neurotransmitter production and gut barrier function. The gut produces its neuroactive compounds from dietary raw materials. A diverse, fibre-rich diet provides the substrate for a microbiome capable of producing stable, mood-supporting outputs.