The gut-brain connection: How food affects your mood
You have probably experienced a “gut feeling” at some point in your life, or felt butterflies in your stomach before a big event. These sensations are not just metaphors. Your gut and your brain are in constant communication through a complex network of nerves, hormones, and biochemical signals. What you eat directly influences this conversation, and emerging research suggests that your diet may play a far bigger role in your mental health than most people realize.
What Is the Gut-Brain Axis?
The gut-brain axis is a bidirectional communication system that links your central nervous system (your brain and spinal cord) to your enteric nervous system (the network of neurons lining your gastrointestinal tract). This enteric nervous system is sometimes called the “second brain” because it contains roughly 500 million neurons and can operate independently from the brain in your head.
The primary physical link between these two systems is the vagus nerve, the longest cranial nerve in the body. It runs from the brainstem all the way down to the abdomen and acts as a two-way highway, transmitting signals in both directions. When your gut senses something, it sends signals up the vagus nerve to the brain, and vice versa. This is why stress can trigger digestive issues and why digestive problems can contribute to anxiety and low mood.
But the vagus nerve is only part of the story. Your gut also communicates with your brain through the immune system, through the production of short-chain fatty acids, and through the release of neurotransmitters produced by your gut microbiome.
Your Microbiome: A Serotonin Factory
Your gut is home to trillions of microorganisms collectively known as the gut microbiome. These bacteria, fungi, and other microbes do far more than aid digestion. They actively produce neurotransmitters, the chemical messengers that regulate mood, sleep, and cognition.
Perhaps the most striking fact is that approximately 95% of the body’s serotonin is produced in the gut, not the brain. Serotonin is often called the “feel-good” neurotransmitter because of its role in regulating mood, happiness, and anxiety. Gut bacteria also produce gamma-aminobutyric acid (GABA), which helps calm nervous activity, as well as dopamine and norepinephrine, both of which play roles in motivation and alertness.
When your microbiome is diverse and well-nourished, it supports healthy neurotransmitter production. When it is imbalanced, a condition known as dysbiosis, the downstream effects can include increased inflammation, impaired serotonin production, and heightened stress responses.
Diet and Mental Health: What the Research Shows
A growing body of research supports the link between diet quality and mental health outcomes. One landmark study, the SMILES trial published in BMC Medicine in 2017, found that participants with moderate to severe depression who switched to a modified Mediterranean diet showed significantly greater improvement in their symptoms over 12 weeks compared to a control group receiving social support alone. About a third of the diet group achieved remission from their depression.
Other research has identified specific dietary patterns and nutrients associated with better mental health:
-
Fiber feeds beneficial gut bacteria and promotes the production of short-chain fatty acids like butyrate, which has anti-inflammatory properties and supports the integrity of the gut lining. A healthy gut lining prevents harmful substances from leaking into the bloodstream and triggering systemic inflammation, a known contributor to depression.
-
Omega-3 fatty acids, found in fatty fish like salmon, sardines, and mackerel, have been shown in multiple meta-analyses to have a modest but meaningful effect on reducing symptoms of depression. They are thought to work by reducing neuroinflammation and supporting cell membrane fluidity in the brain.
-
Fermented foods like yogurt, kefir, sauerkraut, kimchi, and miso introduce beneficial bacteria directly into the gut. A 2021 study published in Cell found that a diet high in fermented foods increased microbiome diversity and decreased markers of inflammation in participants over a 10-week period.
-
The Mediterranean diet, rich in fruits, vegetables, whole grains, legumes, nuts, olive oil, and fish, has been consistently associated with a 25-35% lower risk of depression in observational studies. Its benefits likely come from its combined anti-inflammatory, antioxidant, and microbiome-supporting properties.
Foods That Support the Gut-Brain Connection
Building a diet that nourishes both your gut and your brain does not require a complete overhaul of how you eat. Focus on incorporating more of these foods regularly:
-
Prebiotic-rich foods such as garlic, onions, leeks, asparagus, bananas, and oats. Prebiotics are types of fiber that feed beneficial gut bacteria and help them thrive.
-
Probiotic-rich foods such as natural yogurt, kefir, kombucha, sauerkraut, kimchi, and tempeh. These introduce live beneficial bacteria into your digestive system.
-
Omega-3 sources including salmon, mackerel, sardines, walnuts, flaxseeds, and chia seeds. Aim for at least two servings of fatty fish per week.
-
Polyphenol-rich foods such as berries, dark chocolate (70% cocoa or higher), green tea, and extra virgin olive oil. Polyphenols act as antioxidants and are also metabolized by gut bacteria into beneficial compounds.
-
Whole grains like brown rice, quinoa, barley, and whole wheat. These provide fiber and B vitamins, both of which support energy production and nervous system function.
Foods That Can Harm the Gut-Brain Connection
Just as certain foods support this system, others can disrupt it:
-
Added sugars and refined carbohydrates can promote the growth of harmful bacteria at the expense of beneficial ones. High sugar intake has also been linked to increased inflammation and higher rates of depression in prospective studies.
-
Artificial sweeteners like aspartame and sucralose have been shown in some research to alter the composition of the gut microbiome, potentially reducing populations of beneficial bacteria. While the evidence is still evolving, moderation is a reasonable approach.
-
Ultra-processed foods, which make up a significant portion of the modern Western diet, are associated with reduced microbiome diversity. A 2022 study in BMJ found that higher consumption of ultra-processed foods was associated with a greater risk of depression, even after controlling for overall diet quality.
-
Excessive alcohol can damage the gut lining and lead to increased intestinal permeability, sometimes referred to as “leaky gut.” This allows bacterial toxins to enter the bloodstream, triggering inflammation that can affect brain function and mood.
Understanding the connection between what you eat and how you feel is a powerful step toward better mental health. The EatWell app lets you track not just calories, but the nutrients that matter for your mind, including fiber, omega-3s, and overall diet quality. By spotting patterns in your nutrition, you can make informed choices that support both your body and your brain. Download EatWell app from the AppStore and try it today.
Practical Tips for Eating for Your Mood
Making changes to support your gut-brain connection does not need to be complicated. Here are some straightforward strategies to get started:
-
Add one fermented food per day. This could be a serving of yogurt at breakfast, a side of kimchi with lunch, or a glass of kefir as a snack.
-
Prioritize variety. A diverse diet leads to a diverse microbiome. Aim to eat 30 different plant foods per week, including fruits, vegetables, whole grains, legumes, nuts, and seeds.
-
Reduce ultra-processed foods gradually. You do not need to eliminate them entirely, but replacing one processed snack per day with a whole food alternative can make a meaningful difference over time.
-
Cook with herbs and spices. Turmeric, ginger, rosemary, and cinnamon have anti-inflammatory properties and add flavor without extra calories.
-
Be consistent rather than perfect. Long-term dietary patterns matter far more than any single meal. Focus on building habits you can sustain rather than following restrictive short-term diets.
-
Manage stress alongside diet. The gut-brain axis works both ways. Chronic stress can disrupt your microbiome regardless of what you eat. Combining dietary changes with stress management techniques like adequate sleep, movement, and mindfulness will yield the best results.
Final Thoughts
The science connecting food, the gut, and mental health is still relatively young, but the evidence is compelling. Your gut microbiome is not just a passive bystander in digestion. It is an active participant in your emotional and cognitive life, producing neurotransmitters, modulating inflammation, and communicating directly with your brain through the vagus nerve.
You do not need a specialized diet plan to benefit from this knowledge. By eating more whole foods, prioritizing fiber and fermented foods, including omega-3 sources, and reducing your intake of ultra-processed products, you can create an internal environment that supports both physical health and mental well-being. What you put on your plate genuinely shapes how you feel, and that is a powerful reason to eat thoughtfully.