Neurosity
Open Menu
Guide

Your Gut Bacteria Are Shaping Your Mood Right Now

AJ Keller
By AJ Keller, CEO at Neurosity  •  February 2026
The gut microbiome, the trillions of bacteria living in your digestive tract, produces neurotransmitters, modulates the immune system, and communicates directly with the brain through the vagus nerve. This gut-brain axis has a measurable influence on mood, anxiety, and mental health.
The mood-microbiome connection is one of the fastest-moving frontiers in neuroscience and mental health research. Studies in both animals and humans have shown that the composition of gut bacteria can influence depression, anxiety, stress reactivity, and even cognitive function. Understanding this connection is reshaping how we think about mental health, from a purely brain-centered model to one that includes the entire body.
Explore the Crown
The brain-computer interface built for developers

There's a Second Brain in Your Body. And It's Full of Bacteria.

Here's a number that should reframe how you think about yourself. Your body contains roughly 38 trillion bacterial cells. That's about the same number as your human cells. By cell count, you are approximately half bacteria.

Most of these bacteria live in your gut, particularly in the large intestine, where they form an ecosystem so complex that scientists have given it its own name: the microbiome. This isn't just a passive collection of hitchhikers. These trillions of organisms are metabolically active. They digest food your own enzymes can't break down. They produce vitamins. They train your immune system. They synthesize neurotransmitters.

And here's the part that's been turning neuroscience on its head for the past fifteen years: they talk to your brain.

Not metaphorically. Through actual physical and chemical signaling pathways, the bacteria in your gut communicate with your central nervous system, influencing your mood, your stress response, your anxiety levels, and possibly even your personality. This is the mood-microbiome connection, and it's one of the most important discoveries in mental health research this century.

The implications are staggering. If gut bacteria influence mood, then mental health isn't purely a brain problem. It's a whole-body problem. And some of the most effective interventions for mood disorders might involve not just changing brain chemistry, but changing the ecosystem in your intestines.

The vagus nerve: A Superhighway Between Your Gut and Your Brain

The first question anyone asks about the gut-brain connection is reasonable: how? How do bacteria in your intestines communicate with neurons in your skull? They're separated by meters of tissue.

The answer starts with the vagus nerve, and it's one of the most underappreciated structures in human anatomy.

The vagus nerve is the tenth cranial nerve, and it's enormous. It's the longest cranial nerve in the body, extending from the brainstem all the way down through the chest and into the abdomen, branching into the heart, lungs, and the entire digestive tract. "Vagus" comes from the Latin word for "wandering," which is appropriate. This nerve wanders through your torso like an information superhighway, carrying signals in both directions between the brain and the body's organs.

Here's the critical detail. Approximately 80% of the vagus nerve's fibers are afferent, meaning they carry information from the body to the brain, not the other way around. Your gut is sending far more messages to your brain than your brain is sending to your gut.

Gut bacteria can stimulate vagus nerve endings in the intestinal wall through several mechanisms. They produce metabolites that activate receptors on vagal sensory neurons. They trigger the release of gut hormones that stimulate vagal fibers. They influence immune cells in the gut wall that, in turn, signal to the vagus nerve.

The evidence that the vagus nerve is a critical link in the mood-microbiome connection is strong. In a landmark study, researchers showed that a specific strain of Lactobacillus (L. rhamnosus) reduced anxiety-like behavior and stress hormone levels in mice. But when the vagus nerve was surgically cut (vagotomy), the effect disappeared completely. The bacteria were still in the gut. They were still producing the same metabolites. But without the vagus nerve to relay the signal, the brain never got the message.

This isn't an isolated finding. Multiple studies have confirmed that vagotomy blocks the behavioral effects of probiotic bacteria, demonstrating that the vagus nerve is a primary channel through which gut bacteria influence the brain.

The Neurotransmitter Factory in Your Intestines

Here's a fact that startles almost everyone who hears it for the first time. Approximately 90 to 95% of your body's serotonin is produced in your gut, not in your brain.

Serotonin, the neurotransmitter most commonly associated with mood regulation (and the target of SSRI antidepressants), is overwhelmingly a gut molecule. It's produced primarily by specialized cells in the intestinal lining called enterochromaffin cells, and gut bacteria directly influence how much serotonin these cells produce.

A 2015 study by Elaine Hsiao's lab at Caltech demonstrated this beautifully. They showed that germ-free mice (mice raised in sterile conditions with no gut bacteria at all) had significantly lower levels of gut serotonin than normal mice. When they colonized the germ-free mice with a specific cocktail of spore-forming bacteria, serotonin levels normalized. The bacteria were acting as a signal for serotonin production.

Gut Serotonin Doesn't Cross the Blood-Brain Barrier

An important nuance: serotonin produced in the gut does not directly cross the blood-brain barrier to reach the brain. So how does gut serotonin affect mood? Through several indirect routes. Gut serotonin activates vagus nerve endings, which signal to the brain. It influences the immune system, which communicates with the brain through inflammatory signaling. And gut bacteria affect the availability of tryptophan, the amino acid precursor to serotonin, in the bloodstream. Tryptophan does cross the blood-brain barrier, and its availability determines how much serotonin the brain can produce. So gut bacteria influence brain serotonin levels, just not by shipping serotonin directly.

But serotonin is just the beginning. Gut bacteria also produce or influence the production of:

GABA (gamma-aminobutyric acid), the brain's primary inhibitory neurotransmitter and a key regulator of anxiety. Certain Lactobacillus and Bifidobacterium species produce GABA directly.

Dopamine, the neurotransmitter central to motivation, reward, and pleasure. About 50% of the body's dopamine is produced in the gut.

Norepinephrine, involved in alertness, arousal, and the stress response. Gut bacteria can modulate norepinephrine levels in the gut and, indirectly, in the brain.

Short-chain fatty acids (SCFAs), particularly butyrate, propionate, and acetate. These aren't neurotransmitters, but they're produced when gut bacteria ferment dietary fiber, and they have profound effects on brain function. Butyrate, for instance, crosses the blood-brain barrier, has anti-inflammatory properties, supports the integrity of the blood-brain barrier itself, and influences the expression of genes involved in brain-derived neurotrophic factor (BDNF), a protein critical for neuroplasticity and mood regulation.

Your gut isn't just digesting food. It's running a neurochemical factory that directly influences the chemical environment of your brain.

Germ-Free Mice: What Happens When There's No Microbiome at All

Some of the most compelling evidence for the mood-microbiome connection comes from germ-free mice, animals raised in completely sterile environments so they never develop a gut microbiome.

These mice are profoundly different from normal mice. And the differences are not primarily digestive. They're behavioral and neurological.

Germ-free mice show exaggerated stress responses. When exposed to mild stress (being placed in a new environment, for example), their hypothalamic-pituitary-adrenal (HPA) axis produces dramatically higher levels of stress hormones than normal mice. Their baseline anxiety-like behavior is altered (interestingly, some studies show decreased anxiety, which may reflect an abnormally blunted emotional response rather than genuine calm). Their social behavior is impaired. Their learning and memory show deficits.

And their brains are physically different. Germ-free mice have altered levels of BDNF in the hippocampus and amygdala. They show differences in the expression of serotonin receptors. Their microglial cells (the brain's immune cells) are abnormally shaped and poorly developed, suggesting that the gut microbiome plays a role in brain immune system maturation.

The remarkable thing is that many of these effects are reversible. Colonizing germ-free mice with normal gut bacteria during a critical early window can normalize their stress responses and behavior. This has led to the concept of a "critical period" for microbiome-brain development, a window during early life when the presence of the right gut bacteria is necessary for normal brain development.

FeatureGerm-Free MiceNormal MiceAfter Bacterial Colonization
Stress hormone (corticosterone) responseDramatically elevatedNormalNormalized (if colonized early)
BDNF levels in hippocampusReducedNormalPartially restored
Anxiety-like behaviorAltered (often reduced)Normal rangeNormalized
Social behaviorImpairedNormalImproved
Microglia developmentImmature, abnormal morphologyNormal, matureImproved with colonization
Blood-brain barrier integrityIncreased permeabilityNormalRestored
Feature
Stress hormone (corticosterone) response
Germ-Free Mice
Dramatically elevated
Normal Mice
Normal
After Bacterial Colonization
Normalized (if colonized early)
Feature
BDNF levels in hippocampus
Germ-Free Mice
Reduced
Normal Mice
Normal
After Bacterial Colonization
Partially restored
Feature
Anxiety-like behavior
Germ-Free Mice
Altered (often reduced)
Normal Mice
Normal range
After Bacterial Colonization
Normalized
Feature
Social behavior
Germ-Free Mice
Impaired
Normal Mice
Normal
After Bacterial Colonization
Improved
Feature
Microglia development
Germ-Free Mice
Immature, abnormal morphology
Normal Mice
Normal, mature
After Bacterial Colonization
Improved with colonization
Feature
Blood-brain barrier integrity
Germ-Free Mice
Increased permeability
Normal Mice
Normal
After Bacterial Colonization
Restored

These animal studies raised an obvious question. If removing gut bacteria from mice produces such dramatic effects on mood and behavior, what happens when you manipulate gut bacteria in humans?

The Human Evidence: From Correlations to Clinical Trials

The human research on the mood-microbiome connection has progressed from intriguing correlations to controlled clinical trials, and the results are increasingly hard to dismiss.

The correlational evidence came first. Studies comparing the gut microbiomes of people with depression against healthy controls consistently found differences. People with depression tend to have reduced microbiome diversity (fewer species of bacteria) and altered proportions of specific bacterial groups. Notably, populations of Faecalibacterium and Coprococcus, two bacterial genera that produce the anti-inflammatory short-chain fatty acid butyrate, tend to be depleted in depressed individuals.

Neurosity Crown
The Neurosity Crown gives you real-time access to your own brainwave data across 8 EEG channels at 256Hz, with on-device processing and open SDKs.
See the Crown

A massive 2019 study in the journal Nature Microbiology, called the Flemish Gut Flora Project, analyzed the gut microbiomes of over 1,000 people alongside their mental health data. The researchers found that butyrate-producing bacteria (Faecalibacterium and Coprococcus) were consistently associated with higher quality of life indicators, while their depletion was associated with depression, even after controlling for the confounding effects of antidepressant medication.

But correlations can't prove causation. Maybe depression changes the gut microbiome (through stress, altered eating patterns, and medication effects) rather than the other way around.

This is where the intervention studies become critical.

In a landmark 2017 clinical trial published in the journal Gastroenterology, researchers gave participants with irritable bowel syndrome (IBS) either a specific probiotic (Bifidobacterium longum NCC3001) or a placebo for six weeks. The probiotic group showed significantly reduced depression scores compared to the placebo group. And here's what makes it relevant: fMRI scans revealed that the probiotic group showed altered activity in limbic brain regions (amygdala, frontal, and temporal areas) associated with emotional processing.

The bacteria changed the gut. The gut changed the brain. The brain changed the mood. And brain imaging caught it happening.

A 2019 randomized controlled trial at the University of Basel gave healthy volunteers either a multi-strain probiotic or a placebo for four weeks and then measured their brain responses to emotional stimuli using fMRI. The probiotic group showed reduced reactivity in a network of brain regions involved in emotional and self-referential processing, suggesting that even in healthy people, gut bacteria can modulate how the brain responds to emotional information.

The Inflammation Highway: How Gut Bacteria Regulate Your Brain's Immune System

There's a second major pathway connecting gut bacteria to mood, and it runs through the immune system.

This might seem like an odd connection. What does immunity have to do with depression? Quite a lot, as it turns out. The neuroinflammation hypothesis of depression has been gaining support for decades. People with depression consistently show elevated levels of inflammatory markers (C-reactive protein, interleukin-6, TNF-alpha) in their blood. Giving healthy people inflammatory cytokines (as part of treatment for hepatitis or certain cancers) reliably produces depressive symptoms. And anti-inflammatory medications have shown antidepressant effects in clinical trials.

The gut microbiome is the single largest interface between the immune system and the outside world. Your gut lining, if you spread it flat, covers roughly 32 square meters of surface area. It's lined with the densest concentration of immune cells in the body. And the bacteria living on the other side of that lining are in constant dialogue with those immune cells.

When the gut microbiome is healthy and diverse, it maintains the integrity of the intestinal barrier and promotes a balanced, anti-inflammatory immune state. When the microbiome is disrupted (a state called dysbiosis), the intestinal barrier can become compromised. Bacterial components like lipopolysaccharide (LPS) can leak into the bloodstream, triggering systemic inflammation. This inflammation reaches the brain, where it activates microglia, disrupts neurotransmitter metabolism, and impairs the production of BDNF.

The sequence goes like this: dysbiosis leads to gut barrier damage leads to systemic inflammation leads to neuroinflammation leads to mood disruption. Each link in this chain has been demonstrated independently. And the whole chain can, at least partially, be reversed by restoring a healthy microbiome.

Stress Changes Your Microbiome (And Your Microbiome Changes Your Stress)

The gut-brain axis isn't a one-way street. Just as gut bacteria influence the brain, the brain influences the gut. And this bidirectional communication creates feedback loops that can either protect mental health or undermine it.

Psychological stress alters the gut microbiome through several mechanisms. Stress activates the HPA axis, releasing cortisol. Cortisol changes the gut environment by modifying mucus production, altering gut motility, increasing intestinal permeability, and changing the pH and oxygen content of the intestinal environment. These changes shift the composition of gut bacteria, typically reducing diversity and favoring bacterial species that thrive in stressful conditions.

This creates a vicious cycle. Stress damages the microbiome. A damaged microbiome produces less of the anti-inflammatory metabolites and neurotransmitters that help regulate the stress response. The weakened regulation leads to more stress. Which further damages the microbiome.

The Stress-Microbiome Feedback Loop

Chronic stress triggers a self-reinforcing cycle. The brain activates the HPA axis, releasing cortisol. Cortisol disrupts the gut environment, reduces beneficial bacterial populations, and increases intestinal permeability. The disrupted microbiome produces fewer anti-inflammatory short-chain fatty acids and less GABA. Reduced anti-inflammatory signaling leads to increased systemic and neuroinflammation. Neuroinflammation impairs prefrontal cortex function and enhances amygdala reactivity. The brain becomes more reactive to stress, which further activates the HPA axis. Breaking this cycle may require intervention at multiple points, including both psychological stress management and microbiome-targeted approaches.

But the cycle can also work in the other direction. Positive interventions at any point in the loop can create virtuous cycles. Reducing stress through meditation or therapy improves gut microbiome composition. Improving microbiome composition through diet or probiotics reduces inflammation and supports neurotransmitter production. Better neurotransmitter levels improve stress resilience. This is why the most effective approaches to the mood-microbiome connection are likely to be multi-modal, addressing both the brain and the gut simultaneously.

What This Means for Your Brain (And How to Measure It)

The mood-microbiome connection reframes mental health in a way that's both humbling and empowering. Humbling because it means mood isn't just a matter of willpower or even brain chemistry. It's influenced by trillions of organisms that we're only beginning to understand. Empowering because it means there are new levers to pull, new approaches to mood regulation that don't require medication or years of therapy, though they may work best alongside both.

The dietary evidence is the most actionable. A 2017 randomized controlled trial called the SMILES trial took people with moderate to severe depression and put half of them on a Mediterranean-style diet (high in fiber, fermented foods, vegetables, fruits, nuts, legumes) while the other half received social support sessions. After 12 weeks, the diet group showed significantly greater improvement in depression symptoms. The number needed to treat was 4.1, meaning that for roughly every four people put on the dietary intervention, one achieved remission. That's a better number than many pharmaceutical trials.

The mechanism almost certainly involves the microbiome. Dietary fiber is the primary fuel for beneficial gut bacteria. When fiber intake increases, populations of butyrate-producing bacteria expand. Butyrate reduces inflammation, supports the gut barrier, and enhances BDNF production. The whole gut-brain cascade shifts in a positive direction.

And this is where brain monitoring becomes genuinely useful. The mood-microbiome connection operates over days and weeks, not minutes. You change your diet. Your microbiome shifts over days. The neurochemical effects accumulate over weeks. But how do you know it's working? Subjective mood reports are unreliable. People are notoriously bad at detecting gradual changes in their own emotional baseline.

EEG offers an objective window. Stress and calm produce distinct brainwave signatures. Frontal alpha asymmetry (the balance of alpha brainwaves power between left and right frontal regions) is a well-established EEG marker of emotional valence, with greater left frontal alpha associated with positive approach motivation and greater right frontal alpha associated with withdrawal and negative affect. Frontal theta activity correlates with anxiety and rumination. The overall ratio of alpha to beta power reflects the balance between relaxed and stressed states.

The Neurosity Crown measures these patterns in real time, with sensors at F5 and F6 positioned directly over the frontal regions where these asymmetry markers are most pronounced. Tracking these brainwave patterns over days and weeks as you implement dietary and lifestyle changes creates an objective record of how your brain's mood-related activity shifts, something gut feeling alone (pun intended) can't provide.

Developers using the Neurosity SDK can build applications that correlate dietary logs, sleep data, and other lifestyle variables with brainwave patterns, creating personalized dashboards that reveal how changes to the body's ecosystem show up as changes in the brain's electrical activity. The Crown's on-device processing through the N3 chipset means this data stays private, processed locally with hardware-level encryption.

The Ecosystem You Carry With You

Here's the thought I want to leave you with.

For most of the history of neuroscience, the brain was studied as an isolated organ. It sat in its skull, received sensory inputs, produced motor outputs, and did its thinking in between. Mental health was a brain problem. Full stop.

The mood-microbiome connection fundamentally challenges this view. Your brain is not isolated. It's embedded in a body that hosts an ecosystem of trillions of organisms, and that ecosystem is in constant communication with your neural circuitry. The boundary between "you" and "your bacteria" is blurrier than anyone imagined twenty years ago.

This isn't a reason to feel helpless. It's a reason to feel like you have more options than you thought. If you've ever changed your diet and noticed your mood shift a few weeks later, you weren't imagining it. There was a real, measurable chain of biological events connecting what you ate to how you felt. Fiber became butyrate. Butyrate reduced inflammation. Reduced inflammation supported serotonin and BDNF production. And your brain, responsive as always to its chemical environment, shifted.

You are not just a brain. You're a brain embedded in a body that contains a rainforest. And the health of that rainforest, it turns out, has a lot to do with whether the sun is shining in your head.

Stay in the loop with Neurosity, neuroscience and BCI
Get more articles like this one, plus updates on neurotechnology, delivered to your inbox.
Frequently Asked Questions
Can gut bacteria really affect your mood?
Yes. Multiple lines of evidence support this. Germ-free mice (raised without any gut bacteria) show abnormal stress responses and altered behavior that normalizes when gut bacteria are introduced. In humans, clinical trials have shown that specific probiotic strains can reduce symptoms of depression and anxiety. The mechanisms include bacterial production of neurotransmitters like serotonin and GABA, modulation of the immune system and inflammatory signaling, and direct communication with the brain through the vagus nerve.
What percentage of serotonin is made in the gut?
Approximately 90-95% of the body's serotonin is produced in the gut, primarily by enterochromaffin cells in the intestinal lining. Gut bacteria influence this production by producing metabolites that stimulate these cells. However, gut-produced serotonin does not directly cross the blood-brain barrier. Instead, it influences the brain indirectly through vagus nerve signaling, immune system modulation, and effects on tryptophan availability (the amino acid precursor to serotonin).
What is the vagus nerve's role in the gut-brain connection?
The vagus nerve is the primary communication highway between the gut and the brain. It's the longest cranial nerve, running from the brainstem to the abdomen. About 80% of its fibers carry information from the gut to the brain (afferent signals), meaning the gut sends far more messages to the brain than the brain sends to the gut. Gut bacteria can stimulate vagus nerve endings in the intestinal wall, and studies show that cutting the vagus nerve blocks many of the mood-altering effects of probiotic bacteria.
Can probiotics treat depression?
The evidence is promising but not yet definitive. Several randomized controlled trials have shown that specific probiotic strains (particularly Lactobacillus and Bifidobacterium species) can reduce depressive symptoms in people with mild to moderate depression. A 2023 meta-analysis in JAMA Psychiatry found a small but significant effect of probiotics on depression symptoms. However, probiotics are not a replacement for established treatments. They may work best as an adjunct to therapy and medication, and the optimal strains, doses, and treatment durations are still being determined.
How does stress affect the gut microbiome?
The gut-brain axis is bidirectional. Psychological stress alters gut microbiome composition, increases intestinal permeability (sometimes called 'leaky gut'), and shifts the balance of bacterial species. Stress activates the HPA axis, which releases cortisol. Cortisol changes the gut environment by altering pH, reducing mucus production, and modifying immune activity in the intestinal wall. These changes can reduce beneficial bacteria and increase populations of potentially harmful bacteria, creating a feedback loop where stress worsens gut health and poor gut health worsens stress responses.
What foods support a healthy gut-brain connection?
Dietary fiber from diverse plant sources is the most consistently supported intervention. Gut bacteria ferment fiber into short-chain fatty acids (SCFAs) like butyrate, which have anti-inflammatory properties and support the gut barrier. Fermented foods (yogurt, kefir, kimchi, sauerkraut) provide beneficial bacteria directly. Polyphenol-rich foods (berries, dark chocolate, green tea) promote growth of beneficial bacterial species. A diverse diet supports a diverse microbiome, and microbiome diversity is consistently associated with better mental health outcomes.
Copyright © 2026 Neurosity, Inc. All rights reserved.