The Gut-Brain Axis: How Your Gut Shapes Your Mind

Table of Contents
The idea that digestive health and mental health are connected is ancient — every culture has intuitions about it, expressed in phrases like “gut feelings,” “butterflies in the stomach,” and the physical sensations of fear and excitement in the belly. For most of medical history, these were treated as figures of speech rather than evidence of a real biological connection.
Research over the past two decades has shown that the connection is real. The gut and brain communicate continuously, in both directions, through nerves, hormones, the immune system, and substances produced by gut bacteria — so closely that scientists now talk about a single “gut-brain axis.” Digestive conditions such as irritable bowel syndrome are now classified as disorders of gut-brain interaction, and the role of the gut in mental health has become one of the most active areas of research in medicine.
It’s also one of the most hyped. Much of the most striking evidence comes from animal studies, and research in people is still catching up. This page covers what’s well established, what’s promising, and what it means for the eating and lifestyle habits covered in our nutrition and wellbeing sections.
The Enteric Nervous System: The Second Brain
The gut contains its own extensive network of nerve cells — somewhere between 200 and 600 million neurons, more than a mouse has in its entire brain. This network, the enteric nervous system (ENS), is embedded in the walls of the digestive tract and runs much of digestion on its own, without needing instructions from the brain.
The ENS controls the muscular contractions that move food through the gut, the release of digestive secretions, and aspects of gut immune function. It works so independently that the gut keeps functioning even when the vagus nerve connecting it to the brain is cut — which is why researcher Michael Gershon popularized the term “the second brain.”
The ENS uses many of the same neurotransmitters as the brain, including serotonin, dopamine, acetylcholine, and GABA. About 90% of the body’s serotonin is made in the gut, by specialized cells in the intestinal lining. This gut serotonin can’t cross into the brain, so it doesn’t directly affect mood — but it regulates digestion and gut immune responses, and influences the signals the gut sends to the brain.
Communication runs mostly upward. Around 80% of the fibers in the vagus nerve carry information from the gut and other organs to the brain, rather than the other way around. In that sense, the gut is constantly reporting to the brain — a reversal of the intuitive picture of the brain simply giving the gut orders.
The Vagus Nerve: The Highway Between Gut and Brain
The vagus nerve is the main physical connection between the gut and the brain. It runs from the brainstem through the neck, chest, and abdomen to the heart, lungs, and digestive organs, and it’s the main nerve of the calming parasympathetic nervous system.
Signals traveling up the vagus nerve carry information about what’s in the gut, how stretched the gut walls are, the state of the gut’s immune system, and substances produced by the gut microbiome. The brain uses this information in regulating appetite, and research suggests it also influences mood, the stress response, and mental performance in ways scientists are still working out.
“Vagal tone” — the strength of the vagus nerve’s calming influence, usually estimated through heart rate variability — is associated with better stress and emotional regulation. Lower vagal tone is linked with chronic stress, poor sleep, and inactivity, and some studies have found it in people with gut conditions such as irritable bowel syndrome — although whether it reflects the quality of gut-brain communication specifically isn’t clear.
The best-supported ways to strengthen vagal activity are regular aerobic exercise and slow, controlled breathing; practices such as yoga, which combine movement with slow breathing, may help too. Other popular methods, such as cold water exposure or humming, have weaker or shorter-lived effects. Whether these practices improve gut-brain communication specifically is still an open question, but their benefits for stress and wellbeing are well established.
The Gut Microbiome
The gut microbiome — the community of roughly 38 trillion bacteria, along with fungi, viruses, and other microbes, living in the digestive tract — is the newest and most intensively studied part of the gut-brain story. These microbes aren’t passive passengers: they produce substances that affect the body, help train the immune system, and influence the signals the gut sends to the brain. Animal studies show that they can affect behavior, stress responses, and brain chemistry; research in people suggests some similar connections, although the evidence is earlier-stage.
Neuroactive compounds. Some gut bacteria produce substances that act on the nervous system. Certain Lactobacillus and Bifidobacterium species produce GABA, and gut bacteria influence how much serotonin the gut lining makes. These substances act mainly in the gut and on the nerves that signal to the brain, rather than entering the brain directly.
Short-chain fatty acids (SCFAs) — produced when gut bacteria ferment dietary fiber — are among the microbiome’s most important contributions to health. The main ones are butyrate, propionate, and acetate. Butyrate is the main fuel for the cells lining the colon and helps maintain the gut barrier, which helps keep inflammation in check. SCFAs also help regulate the immune system, and in animal studies, some reach the brain and influence its immune cells. A diet rich in fiber from a variety of plant foods is the main way to increase SCFA production.
The immune system. A large share of the body’s immune tissue — often estimated at around 70% — is located in and around the gut, in constant contact with the microbiome. The microbiome helps train the immune system to respond to genuine threats without staying in a state of chronic low-level activation. Disruptions to the microbiome are linked with immune imbalances and chronic inflammation — and inflammation, in turn, is linked with depression in a subset of people, as well as with cognitive decline.
The stress system. The microbiome also interacts with the HPA axis — the hormonal stress system covered on our biology of stress page. In a landmark 2004 study, mice raised completely free of gut bacteria showed exaggerated hormonal stress responses, which normalized when a particular Bifidobacterium species was introduced early in life. How strongly the microbiome influences human stress hormones such as cortisol is still being researched.
The Gut-Brain Axis in Mental Health
The links between the gut microbiome and mental health have prompted a new research field — “psychobiotics,” the study of how microbiome-targeted approaches might affect psychological wellbeing. It’s promising, but still early.
Depression is the most studied condition. Many studies have found differences in the gut microbiomes of people with depression compared with healthy people, although the specific differences vary from study to study. One of the most robust findings comes from a large 2019 Belgian study, which found that two types of bacteria, Coprococcus and Dialister, were consistently depleted in people with depression. In animal experiments, transferring gut bacteria from depressed people into germ-free rodents produced depression-like behavior — suggesting the microbiome may play a causal role. The relationship almost certainly runs both ways: depression changes diet, activity, sleep, and stress hormones, all of which alter the microbiome, while microbiome changes may in turn worsen mood.
Probiotics are the most obvious way to act on these findings, but the human evidence is mixed. Some small trials have found reductions in stress or low mood, and research reviews suggest probiotics may modestly help depression when used alongside standard treatment. But meta-analyses have generally found little effect on anxiety in people, and benefits in healthy people are inconsistent. Effects also vary between bacterial strains, so results from one product can’t be assumed for another.
Mental performance may be influenced by the microbiome too — through inflammation, neuroactive compounds, and SCFAs. Some studies link greater microbiome diversity with better cognitive performance, but whether improving the microbiome improves attention or memory in people hasn’t been clearly shown.
Diet and mood is where some of the strongest human evidence lies — whether or not it works mainly through the gut. In the 2017 SMILES trial, adults with moderate to severe depression who received coaching to follow a Mediterranean-style diet were far more likely to reach remission over 12 weeks than those who received social support instead — 32% compared with 8%. Diets rich in vegetables, fruit, whole grains, legumes, fish, and olive oil are linked with lower rates of depression in observational studies, too.
Intestinal Permeability and Inflammation
One proposed route from gut to brain is intestinal permeability — how easily substances pass from the inside of the gut into the bloodstream.
The gut lining is just one cell thick — a remarkably thin barrier between the gut’s contents and the rest of the body. Normally, it’s selectively permeable: nutrients pass through, while bacteria, bacterial products, and undigested food particles are kept out, held back by “tight junctions” between the cells.
Several things can loosen this barrier, including certain gut diseases, heavy alcohol use, some medications such as anti-inflammatory painkillers, and stress — in one study, the stress of public speaking measurably increased gut permeability in healthy volunteers. When the barrier becomes more permeable, bacterial products such as lipopolysaccharide (LPS) can enter the bloodstream and trigger inflammation. Inflammation can affect the brain: in experiments, giving healthy volunteers a tiny dose of LPS produced temporary low mood and feelings of social disconnection.
That makes a plausible pathway from diet, through the gut, to mental health. A caution, though: “leaky gut syndrome,” as promoted online, isn’t a recognized medical diagnosis, and tests sold to detect it — such as zonulin tests — aren’t reliable. Increased permeability is a real feature of some conditions, such as celiac disease and inflammatory bowel disease, but it hasn’t been shown to cause the wide range of symptoms it’s often blamed for. The practical advice is the same either way: a diet rich in fiber, regular fermented foods, limited ultra-processed food, and moderate alcohol supports a healthy gut lining.
Stress and the Gut: The Other Direction
The gut-brain axis runs both ways: the brain strongly influences the gut, and the stress response explains several of the most familiar gut-brain experiences.
Acute stress redirects blood away from the gut and changes how it moves — slowing the stomach, which can cause nausea or a feeling of fullness, while often speeding up the colon, which is why nerves can send people running to the bathroom. These responses make sense in a genuine emergency, when digestion can wait. But with chronic stress, they can contribute to ongoing gut symptoms — and stress is a well-known trigger for flare-ups of irritable bowel syndrome.
Stress also affects the microbiome itself. In animal studies, chronic stress changes the balance of gut bacteria, and those changes can in turn influence stress responses — suggesting a possible cycle in which stress disrupts the microbiome and the disrupted microbiome amplifies stress. How strong this cycle is in people isn’t yet known, but it’s one more reason managing stress and caring for your gut go hand in hand.
Irritable Bowel Syndrome: Where the Axis Is Clearest
Irritable bowel syndrome (IBS) — recurring abdominal pain with changes in bowel habits — is the clearest everyday example of the gut-brain axis at work. It’s now classified as a disorder of gut-brain interaction, involving an oversensitive gut, altered gut-brain signaling, and often stress. One of the strongest pieces of evidence for the brain’s influence on the gut is that psychological treatments — including cognitive behavioral therapy and gut-directed hypnotherapy — significantly reduce IBS symptoms in clinical trials.
If you have IBS, be aware that some of the prebiotic fibers recommended below — such as onions, garlic, and legumes — can trigger bloating and pain. A dietitian can help with a structured approach, such as the low-FODMAP diet. And persistent or worrying gut symptoms — blood in your stool, unexplained weight loss, waking at night with symptoms, or a lasting change in bowel habits, especially after age 50 — always deserve a doctor’s assessment.
Supporting the Gut-Brain Axis
The habits that support a healthy gut also support your overall health — so they’re worth adopting whatever the final verdict on the microbiome and mental health turns out to be.
Eat a wide variety of plant foods. Different plant foods feed different bacteria, so variety supports a more diverse microbiome. In the large American Gut Project, people who ate more than 30 different types of plant foods a week had more diverse gut bacteria than those who ate fewer than 10 — a useful target that counts vegetables, fruits, legumes, whole grains, nuts, seeds, herbs, and spices. Bacteria that produce butyrate particularly benefit from the fibers in legumes, oats, and resistant starch.
Include fermented foods. Yogurt, kefir, sauerkraut, kimchi, and kombucha contain live bacteria. In a 2021 Stanford study led by Hannah Wastyk, ten weeks of eating more fermented foods increased gut microbiome diversity and reduced markers of inflammation, while a high-fiber diet over the same period didn’t increase diversity in most participants — suggesting fermented foods may be a particularly effective complement to a fiber-rich diet.
Eat prebiotic foods. Prebiotics are fibers that beneficial bacteria particularly like to ferment. They include inulin (in onions, garlic, leeks, and Jerusalem artichokes), fructooligosaccharides (in asparagus, bananas, and chicory), and resistant starch (in cooked and cooled potatoes, slightly unripe bananas, and legumes). If you’re not used to them, increase them gradually to limit gas and bloating.
Limit things that disrupt the gut. Antibiotics are lifesaving when needed, but they can disrupt the microbiome for months, so use them only when necessary. Heavy alcohol use reduces microbial diversity and loosens the gut barrier. Ultra-processed foods, and some artificial sweeteners and emulsifiers, have been shown in animal and early human studies to alter the microbiome.
Manage stress. Because stress affects gut function and possibly the microbiome, enough sleep, regular exercise, and calming practices such as mindfulness and slow breathing support your gut as well as your mind.
Exercise regularly. Exercise appears to benefit the microbiome in its own right. In one study, six weeks of endurance training increased SCFA-producing bacteria in previously inactive people — and the changes faded when they stopped exercising — while studies of athletes have found more diverse microbiomes, though diet differences make those harder to interpret.
How the Gut-Brain Axis Affects the Mind
The gut-brain axis broadens what can support mental health. If the gut and its microbes influence mood, stress, and mental performance — as the evidence increasingly suggests — then eating well and caring for your gut are part of looking after your mind, alongside sleep, exercise, and stress management.
That doesn’t mean diet or probiotics can treat serious mental health conditions on their own. If you’re struggling with persistent low mood or anxiety, talk to a doctor or mental health professional — effective treatments exist, and diet works best as part of a broader plan, not as a replacement for care.
The practical takeaway: if you’ve sorted out your training and sleep but eat a low-fiber diet with few plant foods, no fermented foods, and lots of ultra-processed food, your diet is a sensible next place to look — for your gut, your overall health, and quite possibly your mood.
Gut-Brain Axis – The General Health Picture
The gut-brain axis connects diet, the gut microbiome, the gut barrier, and inflammation in ways that may matter for long-term brain health. Researchers are investigating the gut’s role in neurological conditions — for example, there’s growing interest in whether Parkinson’s disease may begin in the gut in some people, since its characteristic protein deposits can appear in gut nerves years before symptoms. These are promising lines of research rather than settled conclusions.
The gut-brain axis is also one of the clearest illustrations of why the Body and Mind sections of this site describe different aspects of one integrated system. The eating habits that support physical health and performance — plenty of fiber, varied plant foods, fermented foods, and little ultra-processed food — are the same habits that support a healthy gut, and through it, potentially your mood, stress resilience, and mental performance. The connection runs through the vagus nerve, the enteric nervous system, the immune system, and the substances your gut microbes produce, all day, every day.
The Bottom Line
The gut-brain axis gives biological substance to a connection that human intuition has always sensed. The gut communicates with the brain through the vagus nerve, the enteric nervous system, the immune system, and substances made by gut microbes. The brain communicates with the gut through the nervous system and stress hormones — which is why stress is felt so strongly in the belly. The microbiome, shaped by diet, sleep, exercise, and stress, is one promising way to influence this system — though much of the research in people is still early.
Feed your gut well — with plenty of varied plant foods, regular fermented foods, and less ultra-processed food. Your body benefits for certain, and your mind very likely does too.
