Can what you eat actually affect your mood?
You may have noticed that a stressful week sends your stomach into knots, or that you feel flat and short-tempered after days of skipped meals and quick snacks. You may also have seen headlines claiming that the right foods or a “gut reset” can lift low mood. It is reasonable to wonder how much of this holds up.
The short answer is that the gut and the brain are in constant two-way communication, and digestive symptoms and emotions are closely linked. What is much less clear is whether changing your diet can meaningfully change your mood, and for whom.
This article explains how the gut-brain connection works, what the research does and does not show, and which everyday eating habits are reasonable and low-risk. It will not recommend supplements, promise that food can treat a mental health condition, or replace advice from a doctor or registered dietitian. Much of this science is early-stage, and we flag that clearly where it matters.
In this article
- Can what you eat actually affect your mood?
- How the gut and the brain talk to each other
- Gut microbes and mood: what the studies have found
- Why the serotonin story is more complicated than it sounds
- What diet studies show, and where they fall short
- Stress, hunger and the everyday ups and downs
- Practical, low-risk ways to eat with your mood in mind
- When to talk to a professional
- Common questions
- The bottom line
How the gut and the brain talk to each other
Your digestive tract has its own large network of nerve cells, called the enteric nervous system. It runs from the oesophagus to the rectum and manages much of digestion without needing instructions from the brain, which is why it is sometimes nicknamed the “second brain”.
This network does not work in isolation. Researchers describe several overlapping routes, including the vagus nerve, chemical messengers and the gut microbiome, through which the gut and brain exchange information. Scientists call this system the gut-brain axis.
- The vagus nerve. This long nerve connects the brainstem to many organs in the abdomen. Most of its fibres carry signals upward, from the gut to the brain, rather than the other way round.
- Hormones and signalling molecules. Cells lining the gut release hormones that influence hunger, fullness and digestion, and some of these signals reach the brain.
- The immune system. A large share of the body’s immune tissue sits around the gut. When the immune system is activated, it releases messenger molecules that can affect how the brain functions.
- Gut microbes. Trillions of bacteria and other organisms live in the intestines. They break down fibre the body cannot digest on its own and produce compounds that interact with the other three routes.
A familiar example shows how real this connection is. When you have a bad cold or stomach bug, you often feel tired, withdrawn and low, a pattern researchers call sickness behaviour. Immune signals are thought to be part of what drives that shift in mood and energy.
The connection also runs from the top down. Worry, fear and stress can change how quickly food moves through the gut, how sensitive it feels and how much discomfort you notice.
Gut microbes and mood: what the studies have found
Interest in the gut-brain axis grew rapidly once researchers began studying the gut microbiome, the community of microbes living in the digestive tract. Much of the early evidence comes from animals, especially mice.
In laboratory studies, mice raised without any gut microbes show differences in how they respond to stress. Transferring microbes from one group of animals to another has, in some experiments, shifted their behaviour. These findings suggest microbes can influence the brain, but mice are not people, and results in animals often do not translate directly to humans.
Human research is growing. A large population study published in Nature Microbiology found that people who reported depression tended to have lower levels of certain groups of gut bacteria, even after the researchers allowed for several other factors. It was an important step because it looked at real people at scale rather than animals.
Even so, this type of study shows an association, not a cause. Depression often changes appetite, sleep, physical activity and food choices, and each of those can reshape the gut microbiome. The arrow could point from mood to microbes, from microbes to mood, or both ways at once.
A third factor could also be at work. Long-term stress, medications, physical illness and income can all affect both mood and gut bacteria, which makes it hard to untangle what is causing what.
Researchers are now trying to test the direction of these links more directly. For now, it is fair to say the gut microbiome is a promising area of study in mental health, and too early to say that changing your microbes will change how you feel.
Why the serotonin story is more complicated than it sounds
A fact you may have seen is that most of the body’s serotonin is made in the gut. That is broadly accurate, and Harvard Health notes that the gut produces most of the body’s serotonin as part of its explanation of nutritional psychiatry. It is often used to suggest that eating certain foods will boost the “happy chemical” in your brain.
The reality is less direct. Serotonin made in the gut does not cross into the brain in meaningful amounts, because the blood-brain barrier keeps it out. The brain makes its own serotonin separately.
Gut serotonin mainly helps control how the intestines move and respond to food. Scientists are exploring whether it might influence the brain indirectly, for example through signals carried by the vagus nerve, but this is an open research question rather than settled science.
It is also worth knowing that depression is not simply a matter of low serotonin. Researchers describe depression as having many possible causes, including genetic vulnerability, changes in how brain circuits work, stressful life events, medical conditions and some medications.
So a claim that a particular food will “raise your serotonin” and improve your mood oversimplifies both the gut and the brain. If you want to understand the wider picture, our guide to depression symptoms beyond sadness explains how the condition can show up in sleep, energy, concentration and appetite.
What diet studies show, and where they fall short
The idea that overall eating patterns might relate to mental health is sometimes called nutritional psychiatry. Most of the evidence so far comes from observational studies that compare what people eat with how they feel.
Many of these studies have found that people whose diets resemble traditional patterns, such as Mediterranean or Japanese diets rich in vegetables, fruit, whole grains, fish and legumes, tend to report lower rates of depression than people who eat a lot of highly processed food. That is an interesting pattern, but it cannot show that the food itself is responsible.
People who eat this way may also differ in income, stress levels, sleep, exercise, social support and physical health. Each of those affects mood, and researchers can only partly account for them.
Randomised controlled trials, where people are assigned to change their diet or not, give stronger evidence. One randomised trial in young adults with elevated depressive symptoms and relatively poor diets found that a brief, three-week change towards a Mediterranean-style diet was followed by lower self-reported symptoms compared with a group who kept eating as usual.
Findings like this are encouraging, but they have real limits. The trial was small and short, participants knew which group they were in, and symptoms were self-reported. Other diet trials have produced mixed results, and larger, longer studies are needed before firm conclusions can be drawn.
The table below summarises what different kinds of evidence in this field can and cannot tell us.
| Type of evidence | What it can suggest | What it cannot show |
|---|---|---|
| Animal studies | Possible mechanisms, such as microbes affecting stress responses | Whether the same thing happens in people |
| Observational studies in people | Links between diet, gut bacteria and mood across large groups | Which factor causes which, or whether something else explains both |
| Small, short diet trials | That changing diet may affect symptoms in specific groups over weeks | Whether effects last, apply to most people or are large enough to matter clinically |
| Large, long-term trials | The strongest evidence of cause and effect | Still limited in this area, which is why caution is needed |
You will also see a lot of interest in probiotics marketed for mood, sometimes called “psychobiotics”. Research here is early, studies are mostly small with mixed results, and products vary widely in what they contain. We do not offer supplement advice; if you are curious, it is worth speaking with a doctor or pharmacist, especially if you take medication or have a health condition.
Stress, hunger and the everyday ups and downs
Some of the most noticeable links between food and mood happen over hours rather than months. These short-term effects are easier to observe in your own life, even if the science behind them is still being refined.
Stress is a good starting point. When your body shifts into fight-or-flight mode, digestion slows down and gut sensitivity can change, which is why anxiety often brings butterflies, nausea, cramps or an urgent need for the toilet. If those physical sensations seem to arrive without an obvious trigger, our article on why you might feel anxious for no clear reason explores what may be going on.
Hunger matters too. Many people find that going long stretches without eating leaves them tired, unfocused and irritable, the experience often called being “hangry”. The exact role of blood sugar in people without diabetes is still debated, but regular meals are a simple way to rule hunger out as a factor in a bad mood.
Caffeine can sharpen alertness, but in larger amounts it can also cause jitteriness and a racing heart, sensations that some people experience as anxiety. Caffeine later in the day can also interfere with sleep, and poor sleep is closely tied to low mood.
Alcohol is often used to unwind, and it can feel relaxing at first. It is a depressant, though, and it tends to disrupt sleep later in the night, which can leave people feeling more anxious or low the next day.
The relationship also works in reverse. Stress and low mood can change appetite, leading some people to eat more, often reaching for comfort foods, and others to lose interest in eating. Occasional changes are normal, but a persistent shift in appetite is worth paying attention to.
Practical, low-risk ways to eat with your mood in mind
Given how early the research is, the most sensible approach is to focus on habits that are already recommended for general health. Any benefit to mood is a possible bonus, not a guarantee.
The World Health Organization’s healthy diet guidance recommends plenty of fruit, vegetables, legumes, nuts and whole grains, while limiting free sugars, salt and certain fats. These same foods tend to be the ones that feed a varied gut microbiome.
- Aim for variety in plant foods. Different fibres feed different microbes. If you are not used to much fibre, increasing it gradually and drinking enough water can reduce bloating.
- Eat at fairly regular times. If hunger makes you irritable or foggy, a steady rhythm of meals can take one source of mood swings off the table.
- Include fermented foods if you enjoy them. Yoghurt, kefir, sauerkraut and kimchi can be part of a varied diet. Evidence that they improve mood is early, so treat them as food, not treatment.
- Notice your caffeine and alcohol. Keeping an informal note of how much you have and how you feel afterwards can reveal patterns worth adjusting.
- Slow down at meals. Paying attention to hunger, fullness and how food makes you feel is the idea behind mindful eating, which can make eating feel less rushed and less loaded with guilt.
Food is one piece of a larger picture. Regular physical activity, enough sleep and time with people you care about have stronger evidence behind them for mood, and our guide to how exercise affects anxiety and depression explains what that research shows.
A note of caution is important here. Restrictive “gut cleanses”, detox plans or cutting out whole food groups without medical advice can backfire, leaving you hungrier, more preoccupied with food and short of key nutrients.
If you have a digestive condition such as irritable bowel syndrome or coeliac disease, diabetes, a history of disordered eating, or you take regular medication, talk to your doctor or a registered dietitian before making significant changes. Most importantly, try not to turn food into another source of pressure; eating to feel better should not become a reason to feel worse.
When to talk to a professional
Food choices can support wellbeing, but they are not a substitute for care when something more is going on. If low mood, loss of interest, hopelessness or anxiety lasts most of the day, nearly every day, for two weeks or more, NIMH describes these as possible signs of depression worth discussing with a clinician. Depression is treatable, commonly with talking therapy, medication or both.
Persistent digestive symptoms also deserve medical attention. Ongoing changes in bowel habits, unexplained weight loss, blood in your stool, difficulty swallowing or severe pain should be checked by a doctor rather than assumed to be stress.
It is also worth seeking help if your relationship with food feels rigid, frightening or out of control, or if eating has become closely tied to guilt and shame.
If you are having thoughts of suicide or self-harm, please reach out now. In the US, call or text 988; in the UK and Ireland, call Samaritans on 116 123. If you are in immediate danger, contact your local emergency number.
If you are already receiving treatment, healthy eating can sit alongside it. Do not stop or change any medication without speaking to the person who prescribed it.
Common questions
Can changing my diet treat depression?
There is no good evidence that diet alone can treat depression. A few small trials suggest that improving diet may help some people as part of a broader approach, but this does not replace professional assessment and treatment.
Should I take probiotics to improve my mood?
Research on probiotics and mood is early, mostly small and inconsistent, and we do not recommend any supplement. If you are considering one for any reason, a doctor or pharmacist can help you weigh it against your health and any medications you take.
Are there foods I should cut out to feel better?
No single food has been shown to cause low mood, and strict elimination diets carry their own risks. If cutting foods out is becoming a source of anxiety or control, it may help to know that eating disorders are serious but treatable illnesses, and early support makes a difference.
Why does my stomach hurt when I’m anxious?
The stress response directly affects digestion, changing how the gut moves and how sensitive it feels. This is a common and real physical experience, but if the pain is frequent, severe or comes with other symptoms, see a doctor to rule out other causes.
The bottom line
The gut and the brain are genuinely connected through nerves, hormones, the immune system and gut microbes. That connection helps explain why stress upsets your stomach and why illness can flatten your mood.
Whether specific foods or microbes can improve mental health is still an early-stage question, with interesting findings and many unknowns. A varied, mostly plant-rich diet, regular meals and attention to caffeine and alcohol are reasonable, low-risk habits, and if your mood is persistently low, a professional is the right next step.
