The gut-brain connection: Why what you eat shapes how you feel

"Trust your gut" turns out to be more literal than anyone intended. Your gut and your brain are in constant, bidirectional conversation, a relationship researchers call the microbiota-gut-brain axis. It's an active and fast-growing area of nutritional psychiatry research, and the evidence shows just how directly the food on your plate feeds into it.

What is the gut-brain axis, actually?

The gut-brain axis is the two-way communication system linking your gut microbiota to your central nervous system, working through neural, endocrine and immune pathways. Your brain doesn't just tell your gut what to do (think of nerves and an upset stomach). Your gut microbiota signals back too, shaping stress reactivity, mood and cognitive function along the way.

That communication runs along several routes.

Microbial metabolites. When your gut bacteria ferment fibre, the resulting short-chain fatty acids (SCFAs), butyrate especially, make up the vast majority of these microbial metabolites. SCFAs fuel the cells lining your gut, but they also influence inflammation and gene expression through effects on immune signalling. People with mental health conditions consistently show lower levels of key butyrate-producing bacteria alongside raised inflammatory markers.

Serotonin and tryptophan. More than 90% of the body's serotonin is made in the gut, not the brain, largely by cells lining the gut wall. That gut-based serotonin can't cross into the brain itself, but its building block, the amino acid tryptophan, can, and gut bacteria play a role in how much tryptophan is available for this route. The bigger piece is that around 90% of dietary tryptophan is broken down through an entirely different pathway (the kynurenine pathway), tightly controlled by the immune system and producing compounds that act on the brain directly. This pathway looks different in people with mental health conditions and shifts back toward normal as symptoms improve.

The vagus nerve. This is the direct physical nerve connecting your gut and brainstem, and it's a two-way channel. Animal studies have shown certain gut bacteria can shift emotional behaviour specifically via this nerve, an effect that disappears once the nerve is cut. Diets high in fat and sugar have been shown to disrupt this signalling, partly by increasing gut permeability and triggering inflammation.

The HPA axis (your stress-response system). Your gut microbiota helps calibrate your hypothalamic-pituitary-adrenal (HPA) axis, the system that governs your cortisol response to stress. Gut microbes appear essential for this system to develop properly in early life, and ongoing imbalance has been linked to altered stress reactivity in adulthood. In one human trial, delivering a mix of SCFAs directly to the colon measurably reduced the cortisol response to a stressful task, though butyrate alone didn't reproduce the effect. That suggests it's the combination of microbial metabolites doing the work, not any single one.

Why whole foods, fibre and antioxidants especially, matter here

Fibre is the primary fuel for SCFA-producing bacteria. The type DOES matter: fermentable fibres (found in resistant starch, oats, legumes, and many fruits and vegetables) are what actually get converted into SCFAs. A mixed prebiotic fibre blend has been shown to reduce inflammation and improve mood in adults with metabolic syndrome, and SCFAs delivered together have measurably blunted the cortisol stress response in healthy adults.

Fibre intake from whole foods tend to perform better than an isolated fibre in a supplement. Population studies consistently link higher total fibre intake to lower rates of depression and anxiety, but trials testing an isolated fibre supplement on its own have mostly come back null or inconsistent. The likely explanation: fibre delivered inside its natural food matrix, alongside the polyphenols and micronutrients that travel with it in a piece of fruit, a wholegrain, or a legume, behaves differently to fibre in isolation. Worth knowing too that this isn't universal. People with a low starting abundance of SCFA-producing bacteria have, in some studies, shown a pro-inflammatory response to a sudden jump in fibre intake, which is a good reason to build fibre up gradually rather than overhauling everything overnight.

Antioxidant-rich foods, particularly the polyphenols in berries, olive oil, tea and coffee, work in a related but different way. Only 5–10% of dietary polyphenols are absorbed in the small intestine. The rest travels on to the colon, where gut bacteria convert them into active compounds, and in the process are themselves encouraged to grow (including several of the same beneficial, SCFA-producing bacteria that fibre feeds). Diets richer in polyphenols have been linked to better mood and cognitive function, and polyphenol supplementation specifically has been shown in meta-analyses to reduce depressive symptoms, with less consistent effects for anxiety.

Basically: a varied, whole-food approach, plenty of different fibres and colourful plant foods, delivered as food rather than supplements, gives this whole communication system the raw material it needs.

Which parts of mental health seem most gut-sensitive?

‍The conditions with the most consistent evidence base are depression, anxiety, bipolar disorder, schizophrenia spectrum disorders, and ADHD. Across these, a recurring pattern shows up: a depletion of certain beneficial, often SCFA-producing bacteria, alongside an increase in bacteria linked to inflammation.

Depression has by far the deepest evidence base, including randomised controlled trials (not just observational data) showing that improving diet quality alone can measurably reduce depressive symptoms. One trial found effects strong enough to be comparable to a full course of psychotherapy. Anxiety, stress reactivity, and cognitive function all show similar, if slightly less mature, associations. Bipolar disorder, schizophrenia spectrum disorders and ADHD are also linked to distinct gut microbiota patterns, though the science here is earlier-stage.

It's worth noting that much of this evidence is still observational: diet is a promising, evidence-backed complement to mental health care, not a replacement for appropriate treatment or professional support.

Where IBS fits into this picture

IBS is classified as a disorder of gut-brain interaction, and it turns out to be unusually common across all of the mental health conditions above, tending to make those conditions' symptoms more severe, a clear sign the same underlying axis is involved in both.

That's not a dismissal of how real or disruptive IBS symptoms are. If anything, it explains a lot: why stress so reliably triggers a flare-up, and why gut-directed approaches (such as gut-directed hypnotherapy) so often bring digestive and day-to-day wellbeing improvements together.

In summary

You don't need to wait for the science to fully mature to act on its most consistent finding: a varied, fibre- and polyphenol-rich whole-food diet supports the gut-brain communication system that keeps stress response, mood and cognition on an even keel, and it's the whole food, not an isolated supplement, that seems to make the most difference. It's one more reason "eat more plants, more variety" keeps showing up as some of the most useful advice in nutrition, for your gut and your head alike.

If you'd like to go deeper on the everyday side of this, the specific foods and habits that support this system day to day, that's exactly what we cover in Every Day Gut Health, our upcoming guide. And if IBS is part of your picture, the Good Gut Plan is built with this exact gut-brain relationship in mind.

References

  • Bravo JA, et al. (2011). Ingestion of Lactobacillus strain regulates emotional behavior and central GABA receptor expression in a mouse via the vagus nerve. PNAS, 108, 16050–16055. doi.org/10.1073/pnas.1102999108

  • Sudo N, et al. (2004). Postnatal microbial colonization programs the hypothalamic-pituitary-adrenal system for stress response in mice. Journal of Physiology, 558, 263–275. doi.org/10.1113/jphysiol.2004.063388

  • Dalile B, et al. (2020). Colon-delivered short-chain fatty acids attenuate the cortisol response to psychosocial stress in healthy men. Neuropsychopharmacology, 45, 2257–2266. doi.org/10.1038/s41386-020-0732-x

  • Dalile B, et al. (2024). Colonic butyrate administration modulates fear memory but not the acute stress response in men. Progress in Neuro-Psychopharmacology and Biological Psychiatry, 131, 110939. doi.org/10.1016/j.pnpbp.2024.110939

  • Hall CV, et al. (2024). Effects of a diverse prebiotic fibre blend on inflammation, the gut microbiota and affective symptoms in metabolic syndrome. British Journal of Nutrition, 132, 1002–1013. doi.org/10.1017/S0007114524002186

  • Aslam F, et al. (2023). Fiber intake and fiber intervention in depression and anxiety: a systematic review and meta-analysis. Nutrition Reviews, 82, 1678–1695. doi.org/10.1093/nutrit/nuad143

  • Wastyk HC, et al. (2021). Gut-microbiota-targeted diets modulate human immune status. Cell, 184, 4137–4153. doi.org/10.1016/j.cell.2021.06.019

  • Lamport DJ, Williams CM. (2020). Polyphenols and cognition in humans: an overview of current evidence. Brain Plasticity, 6, 139–153. doi.org/10.3233/BPL-200111

  • Lin K, et al. (2021). Effects of polyphenol supplementations on improving depression, anxiety, and quality of life in patients with depression. Frontiers in Psychiatry, 12, 765485. doi.org/10.3389/fpsyt.2021.765485

  • Donoso F, et al. (2020). Polyphenols selectively reverse early-life stress-induced behavioural, neurochemical and microbiota changes in the rat. Psychoneuroendocrinology, 116, 104673. doi.org/10.1016/j.psyneuen.2020.104673

  • Zhang T, et al. (2024). Genetic associations and potential mediators between psychiatric disorders and irritable bowel syndrome. Frontiers in Psychiatry, 15, 1279266. doi.org/10.3389/fpsyt.2024.1279266

  • Jacka FN, et al. (2017). A randomised controlled trial of dietary improvement for adults with major depression (the "SMILES" trial). BMC Medicine, 15, 23. doi.org/10.1186/s12916-017-0791-y

  • O'Neil A, et al. (2024). Clinical and cost-effectiveness of remote-delivered, online lifestyle therapy versus psychotherapy for reducing depression (the CALM trial). Lancet Regional Health – Western Pacific, 49, 101142.

  • Gheorghe CE, et al. (2019). Focus on the essentials: tryptophan metabolism and the microbiome-gut-brain axis. Current Opinion in Pharmacology, 48, 137–145. doi.org/10.1016/j.coph.2019.08.004

  • Brum M, et al. (2023). Phase- and disorder-specific differences in peripheral metabolites of the kynurenine pathway in major depression, bipolar affective disorder and schizophrenia. World Journal of Biological Psychiatry, 24, 564–577. doi.org/10.1080/15622975.2023.2169348

Next
Next

Are you getting enough protein in your diet? Part 2: Protein and muscle health