Gut-Brain Connection — How Your Microbiome Affects Thinking
You have had the experience even if you have never named it. A bad meal and you cannot concentrate. A course of antibiotics and for days afterward your thinking feels slower, your mood flatter, your ability to hold a thread of thought slightly off. You blame the illness, the stress, the weather. You do not blame your gut, because nobody taught you that your gut has opinions about how you think.
It does. It has roughly 500 million of them, each one a neuron, wired together into a network so complex that neuroscientists call it the second brain. And the conversation between that second brain and the one inside your skull is turning out to be one of the most important discoveries in cognitive science this century.
What the second brain actually is
The enteric nervous system — the neural network embedded in the walls of your gastrointestinal tract — contains more neurons than your spinal cord. It can operate independently from the central nervous system, coordinating digestion, sensing the chemical environment of your intestines, and making moment-to-moment decisions about how food moves through you. But it does not operate in isolation.
The vagus nerve is the primary highway between your gut and your brain. It is a mixed nerve composed of roughly 80 percent afferent fibres — meaning the vast majority of its traffic flows upward, carrying information from the gut to the brain, not the other way around. Your brain is listening to your gut far more than it is talking to it.
This is the gut-brain axis: a bidirectional communication system linking the enteric nervous system, the gut microbiota, the immune system, and the central nervous system through neural, hormonal, and immunological pathways. Emeran Mayer, founding director of the Goodman Luskin Microbiome Center at UCLA, has spent four decades building the scientific case for this connection. His work has shown that the dialogue between gut and brain influences not just digestion but mood, decision-making, and cognitive function in ways that conventional medicine is only beginning to take seriously.
Your gut makes most of your serotonin
Here is the statistic that changes how you think about brain chemistry: approximately 90 percent of the body's serotonin is produced in the digestive tract. Not in the brain. In the gut.
In 2015, Elaine Hsiao and her team at Caltech published a landmark study in Cell showing that indigenous spore-forming bacteria from the gut microbiota directly regulate serotonin biosynthesis in intestinal enterochromaffin cells. When they tested germ-free mice — animals raised without any gut bacteria — they found that these mice produced roughly 60 percent less serotonin than mice with normal bacterial colonies. When the germ-free mice were recolonised with normal gut microbes, serotonin levels recovered.
The researchers identified approximately 20 species of spore-forming bacteria that were sufficient to elevate serotonin to normal levels, and they pinpointed specific metabolites — products of bacterial metabolism — that triggered the serotonin production in enterochromaffin cells.
Serotonin produced in the gut does not cross the blood-brain barrier directly to act as a neurotransmitter in the brain. But it profoundly influences brain function through the vagus nerve, through immune signalling, and through its effects on the tryptophan pool available for central serotonin synthesis. When gut serotonin production is disrupted, the downstream effects on mood, stress reactivity, and cognitive function are measurable.
Serotonin is not the only neurotransmitter the gut produces. Various bacterial species including Lactobacillus, Bifidobacterium, Bacillus, and Escherichia can produce or stimulate the production of dopamine, norepinephrine, and GABA — the four neurotransmitters that between them regulate mood, motivation, attention, and the ability to filter cognitive noise.
How gut bacteria talk to your brain through the vagus nerve
The landmark study that proved this pathway was not theoretical came from John Cryan's lab at University College Cork. In 2011, Javier Bravo and colleagues published a study in Proceedings of the National Academy of Sciences showing that chronic treatment with a single bacterial strain — Lactobacillus rhamnosus JB-1 — altered GABA receptor expression across multiple brain regions in mice. The bacteria increased GABA receptors in the cortex and hippocampus, reduced anxiety and depression-related behaviour, and lowered stress-induced corticosterone levels.
The critical finding was what happened when they cut the vagus nerve. In vagotomised mice, every neurochemical and behavioural effect disappeared. The bacteria were still in the gut. The metabolites were still being produced. But without the vagus nerve to carry the signal, the brain never received the message.
This study established that the vagus nerve is not a passive cable. It is the essential conduit through which gut bacteria influence brain chemistry. Cut the line and the conversation stops.
Cryan and his colleague Ted Dinan, also at UCC, went on to coin the term "psychobiotics" in a 2013 paper in Biological Psychiatry — defined as live organisms that, when ingested in adequate amounts, produce a health benefit in patients suffering from psychiatric illness. The definition has since expanded to include any intervention targeting the microbiome that affects brain function.
"If microbes are controlling the brain, then microbes are controlling everything." — John Cryan, University College Cork
Short-chain fatty acids and the blood-brain barrier
When gut bacteria ferment dietary fibre, they produce short-chain fatty acids — primarily acetate, butyrate, and propionate. These molecules are emerging as some of the most important mediators of the gut-brain axis.
Butyrate can cross the blood-brain barrier in small amounts, where it influences gene expression through a mechanism called histone deacetylase inhibition — essentially altering which genes are switched on and off in brain cells. In the central nervous system, short-chain fatty acids play roles in neurogenesis, neurotransmitter production, microglial maturation, and memory consolidation. Animal studies have linked them to improvements in learning, mood, and neuroprotection.
Perhaps most critically, short-chain fatty acids help maintain the integrity of the blood-brain barrier itself — the selective membrane that controls what gets into the brain from the bloodstream. When SCFA production drops — because fibre intake is low, or because the bacterial species that produce them have been depleted — the blood-brain barrier becomes more permeable. Substances that should stay out get in. Inflammation that should remain peripheral reaches the brain.
This is the mechanism that connects what you eat to how well your brain is protected. A fibre-poor diet does not just change your digestion. It changes the permeability of the barrier your brain depends on.
When the gut leaks, the brain fogs
Intestinal permeability — colloquially known as leaky gut — describes a state in which the tight junctions between intestinal epithelial cells loosen, allowing molecules that should stay inside the gut to cross into the bloodstream. Among the most damaging of these molecules are lipopolysaccharides, or LPS, fragments of gram-negative bacterial cell walls.
LPS in the bloodstream acts as a potent immune activator. It triggers the release of pro-inflammatory cytokines — TNF-alpha, IL-1beta, IL-6 — that cross the blood-brain barrier and activate microglia, the brain's resident immune cells. Activated microglia produce their own inflammatory cascade: oxidative stress, mitochondrial dysfunction, and impaired neurotransmitter metabolism. The subjective experience is what millions of people call brain fog — slowed thinking, difficulty concentrating, trouble finding words, mental fatigue that no amount of coffee resolves.
Research in Alzheimer's disease and mild cognitive impairment has found elevated serum levels of zonulin — a protein that regulates intestinal permeability — in affected patients. Higher zonulin levels predict progression from mild cognitive impairment to Alzheimer's disease, suggesting that gut barrier dysfunction is not merely correlated with cognitive decline but may actively drive it.
If you have noticed that sugar and ultra-processed food leave you foggy, the gut-brain axis offers a second mechanism beyond glycemic volatility. These foods also feed pro-inflammatory bacterial populations and degrade the intestinal barrier, creating a double hit: metabolic instability and immunological infiltration, both converging on the same cognitive systems.
Which cognitive dimensions the microbiome shapes most
The research points to three of the seven cognitive dimensions that a profile like CognitionType measures as particularly sensitive to microbiome composition.
Emotional regulation — the capacity to manage emotional intensity and navigate transitions between affective states — is the dimension with the strongest evidence base. The gut produces the raw materials for serotonin synthesis and directly modulates GABA, the brain's primary inhibitory neurotransmitter. When the microbiome is depleted or imbalanced, serotonin precursor availability drops and GABAergic signalling weakens, creating a profile of heightened emotional reactivity, mood instability, and difficulty recovering from stress. The Bravo 2011 study showed this in mice with a single bacterial strain. Human trials of psychobiotics have consistently found effects on anxiety, stress reactivity, and depression symptoms — all expressions of emotional dysregulation in the cognitive profiling framework.
Attention and rhythm — the regulatory system that determines what you attend to and for how long — is influenced by the microbiome through dopamine and norepinephrine production in the gut, and through the inflammatory pathways that modulate prefrontal cortex function. Research on the gut microbiome in ADHD has found significant alterations in bacterial composition compared with neurotypical controls, including reduced levels of Faecalibacterium — one of the primary butyrate producers — and elevated levels of pro-inflammatory species. A 2024 study published in Molecular Psychiatry documented that children with ADHD showed both gut dysbiosis and decreased short-chain fatty acid profiles, suggesting that the microbiome may contribute to the attentional differences rather than merely coexisting with them.
Memory and sequencing — working memory and the ability to hold, order, and manipulate information — is shaped by the microbiome through several converging pathways. Short-chain fatty acids support hippocampal neurogenesis. Gut-derived inflammation impairs the hippocampus preferentially. And BDNF — brain-derived neurotrophic factor, essential for synaptic plasticity and new learning — is modulated by the microbiome. A 2024 Tulane University study found that rats fed a Mediterranean-style diet developed distinctly different gut bacteria profiles and performed significantly better on maze challenges testing memory, learning, and cognitive flexibility compared with rats on a Western diet. Lead author Rebecca Solch-Ottaiano concluded that dietary choices influence cognitive performance by reshaping the gut microbiome.
Your microbiome is probably less diverse than your grandparents'
The human gut microbiome in Western industrialised populations is dramatically less diverse than in traditional and rural societies. Studies comparing the gut microbiota of Americans and Europeans with those of indigenous Amazonian, Malawian, and hunter-gatherer populations consistently find a striking compression of microbial diversity in the industrialised groups.
The causes compound across generations. Antibiotics, caesarean delivery, reduced breastfeeding, sanitation practices, and — most significantly — the modern Western diet have progressively reduced the number and variety of bacterial species that inhabit the human gut. The critical dietary factor is the collapse of microbiota-accessible carbohydrates — the complex fibres from diverse plant sources that feed beneficial bacterial populations. The average Western adult eats roughly 15 grams of fibre per day. Traditional diets supply 50 to 100 grams.
A 2017 study published in Microbiome found that the Westernised dietary pattern had an effect size of 0.22 on gut microbiota diversity — a greater impact than body mass index, which had an effect size of only 0.16. What you eat shapes your microbiome more powerfully than how much you weigh.
The health implications of this narrowing are not subtle. The progressive reduction of individual gut microbial diversity in Western urban populations has been linked to the rising incidence of chronic inflammatory and autoimmune conditions — and, increasingly, to cognitive and neurological outcomes. A depleted microbiome produces fewer short-chain fatty acids, maintains a weaker intestinal barrier, synthesises fewer neurotransmitter precursors, and sustains a higher baseline of systemic inflammation. Every one of these effects reaches the brain.
What the psychobiotics research actually shows
The term "psychobiotics" has expanded from Cryan and Dinan's original 2013 definition to encompass a growing body of clinical trial evidence. A 2025 systematic review and meta-analysis of randomised clinical trials, published in BMC Complementary Medicine and Therapies, found that probiotic supplementation produced significant improvements in global cognitive function, delayed memory, attention, and visuospatial abilities across multiple populations.
A double-blind randomised placebo-controlled crossover trial testing a multi-species probiotic containing Lactobacillus rhamnosus and Bifidobacterium lactis in healthy older adults found improvements in planning, problem-solving, selective attention, cognitive flexibility, and inhibitory control. A separate trial of Bifidobacterium longum BB68S in healthy older adults, published in Nutrients, found significant improvements in immediate memory, attention, and delayed memory over a 12-week supplementation period.
A 2025 study in patients with mild cognitive impairment found that probiotic supplementation improved clinical measures of cognition — one of the first trials to show benefit in a population already experiencing cognitive decline rather than simply preventing it in healthy individuals.
The effect sizes are modest. This is not a miracle cure. But the consistency across trials — different strains, different populations, different cognitive outcome measures — points to a real and reproducible signal. The microbiome is not the only input that shapes cognition. But it is an input, and unlike your genes, it is one you can change.
How to feed your second brain
The dietary pattern most consistently associated with a healthy, diverse microbiome — and with better cognitive outcomes mediated through the gut-brain axis — is the Mediterranean diet. A 2026 systematic review in Frontiers in Molecular Neuroscience confirmed that Mediterranean diet adherence is associated with increased abundance of beneficial bacteria like Faecalibacterium prausnitzii and Bifidobacterium, increased short-chain fatty acid production, and an 11 to 30 percent lower risk of cognitive impairment and Alzheimer's disease.
The practical changes are specific:
Eat more fibre from diverse plant sources. Aim for 30 or more grams per day from vegetables, legumes, whole grains, nuts, and seeds. Diversity matters as much as quantity — different fibres feed different bacterial populations. The goal is breadth.
Include fermented foods regularly. Yoghurt, kefir, sauerkraut, kimchi, miso, and kombucha introduce live bacterial cultures that can transiently shift the microbiome composition. A 2021 Stanford study led by Justin Sonnenburg found that a diet high in fermented foods increased microbiome diversity and decreased markers of inflammation over a 10-week period — a faster and more consistent effect than high-fibre diets alone.
Reduce ultra-processed foods. Emulsifiers, artificial sweeteners, and other additives common in processed foods have been shown to disrupt the intestinal barrier and reduce microbial diversity. The cognitive effects of sugar and processed food operate through the microbiome as well as through direct metabolic pathways.
Eat oily fish. The omega-3 fatty acids in fish not only support neuronal membrane integrity but also positively modulate the gut microbiome, increasing the abundance of anti-inflammatory bacterial species. The brain and gut benefits are synergistic.
Be cautious with unnecessary antibiotics. A single course of broad-spectrum antibiotics can reduce gut microbial diversity for months. When antibiotics are medically necessary, they are necessary. But the casual use of antibiotics for conditions that would resolve on their own carries a cognitive cost that is rarely discussed.
Understanding your own cognitive starting point
The gut-brain axis does not affect everyone equally. Its impact depends on which cognitive dimensions are already under the most pressure in your particular brain. If your emotional regulation is an area of relative strength, a microbiome disruption might barely register as a mood change. If it is already an area of vulnerability, the same disruption could be the difference between a difficult week and a crisis.
This is where knowing your own cognitive profile matters. A tool like CognitionType can help you map where your specific strengths and vulnerabilities sit across dimensions including emotional regulation, attention and rhythm, and memory and sequencing — the three dimensions most directly influenced by the microbiome. That map does not replace clinical assessment, but it gives you a framework for understanding which interventions are likely to matter most for your specific brain.
The microbiome is not destiny. It is an environment — one that you shape through daily choices about food, movement, stress, and sleep. The research is still young, and the field is honest about what it does not yet know. But the direction is clear. Your gut and your brain are not separate systems with separate problems. They are one system, in constant conversation, and what you feed one, you feed both.
CognitionType is an informational cognitive assessment, not a clinical diagnosis. If you are experiencing persistent brain fog, mood changes, digestive issues, or cognitive difficulties, we encourage you to seek formal evaluation from a qualified healthcare professional.