From the Lab

Can Food Cause Anxiety and Depression? What the Research Shows

May 13, 2026 · By Zavier King · Resources

Food is rarely the only cause of anxiety or depression, but it can make them better or worse. Diets heavy in ultra-processed food are linked to higher rates of depression and anxiety, and in one trial, improving diet helped people with depression. Some food dyes affect behavior in children. Food is one tool alongside treatment, sleep and exercise.

Is there a link between diet and mental health?

Yes. A large review of studies covering almost 10 million people found that eating more ultra-processed food was linked to higher risk of common mental disorders like depression and anxiety, along with heart disease and early death (Lane et al., 2024). These studies show a link, not proof that the food caused it. People who are struggling also tend to eat worse.

Stronger evidence comes from a trial where adults with depression got 12 weeks of help moving to a Mediterranean-style diet. Their symptoms improved more than a group that got social support instead (Jacka et al., 2017).

How could food affect your mood?

A few ways researchers think it works:

  • Blood sugar swings from sugary drinks and refined snacks can leave you shaky, irritable and tired.
  • Your gut and brain talk constantly. Most of the body’s serotonin is made in the gut, though gut serotonin does not travel straight to the brain. A diet high in fiber and fermented foods supports gut bacteria linked to better health.
  • Nutrient gaps in omega-3s, iron, B12, folate or vitamin D can affect energy and mood.
  • Alcohol is a depressant and worsens sleep and anxiety for many people.
  • Too much caffeine can trigger or worsen anxiety in sensitive people.

Do food dyes and additives affect behavior?

For some children, yes. In a UK trial, drinks containing a mix of artificial food colors and the preservative sodium benzoate increased hyperactive behavior in 3 year olds and 8 to 9 year olds from the general population (McCann et al., 2007). Evidence for adults is much weaker.

An older version of this post listed dozens of additives as causes of anxiety. I trimmed that list because the evidence does not support most of those specific claims. The simpler and more useful advice is to eat mostly whole foods, which takes care of most additives without needing to memorize codes.

Which additives are worth limiting?

If you want to cut back, these are reasonable places to start:

  • Artificial food colors in candy, sports drinks and bright cereals
  • Processed meats with nitrites, like ham, hot dogs and deli meats, which are also linked to cancer risk
  • Sugary drinks, which are the easiest swap for most people
  • Heavily fried snack foods

What should I eat for better mental health?

  • Plenty of vegetables, fruit, beans and whole grains
  • Fatty fish like salmon or sardines twice a week
  • Nuts, seeds and olive oil
  • Fermented foods like yogurt and kefir
  • Protein at every meal to steady blood sugar
  • Less alcohol and fewer ultra-processed snacks

This is close to the diet used in the trial above.

Does exercise help too?

A lot. A large review found walking, jogging, yoga and strength training all reduced depression, with stronger effects at higher intensity (Noetel et al., 2024).

When should I get help?

If anxiety or low mood lasts more than two weeks, gets in the way of work or relationships, or you have thoughts of harming yourself, talk to a doctor or mental health professional. In the US you can call or text 988 any time to reach the Suicide and Crisis Lifeline. The NIMH lists more ways to find help. Diet changes can support treatment. They should not replace it.

For more, read important foods for improved gut health and why ultra-processed foods will always be a problem. If you want a plan that supports your energy and mood, take the XPL quiz.

Unlocked

Frequently asked questions

Can sugar cause anxiety?

Sugar does not cause anxiety disorders, but big blood sugar swings can make you feel jittery and irritable.

Does caffeine make anxiety worse?

For many people, yes, especially above 400 mg a day or on an empty stomach.

Can changing my diet replace medication?

No. Never stop medication without talking to your doctor. Written by Zavier King, personal trainer in Houston and online coach at XPL. ISSA Certified Personal Trainer and NASM Nutrition Coach. This article is general education, not medical advice.

Zavier King

Founder, XPERFORMANCELAB

I do not shape muscle. I shape structure. The person you become is the person you construct.

Continue Reading

Related Insights

Resources

The Power of Your Subconscious Mind

Why Should I read The Power of Your Subconscious Mind The Power of Your Subconscious Mind , teaches us how to tap into the power of our...

Read Article →

Leave a Comment

Your email address will not be published. Required fields are marked *