Skip to content

Diet and Anxiety: Is What You Eat Contributing to Your Anxiety?

woman struggling with worry, stress, and anxiety concerned about diet and anxiety
Concerned about diet and anxiety?

Medically reviewed by Dr. Pamela Frank, BSc(Hons), ND Nov 2026

Can Your Diet Cause Anxiety? The Gut-Brain Connection, Diet and Anxiety

Anxiety is influenced by many factors, including genetics, hormones, stress, sleep, lifestyle and overall health. One factor that deserves more attention is diet and anxiety.

What you eat can influence several biological processes involved in brain function and emotional health. These include blood sugar regulation, inflammation, neurotransmitter production, nutrient availability and communication between your digestive system and brain.

Research into the relationship between nutrition and mental health is expanding rapidly. Although dietary changes are not a cure for anxiety, improving nutritional status and addressing dietary factors that may aggravate symptoms can be a valuable part of a comprehensive approach to mental wellness.

Let’s explore how your diet and anxiety are linked and what you can do about it.

1. Blood Sugar Fluctuations and Anxiety

One of the most overlooked connections between diet and anxiety involves blood sugar regulation.

When you eat foods containing carbohydrates, your digestive system breaks them down into glucose, which enters your bloodstream. Your pancreas releases insulin to help transport glucose into your cells, where it can be used for energy.

Meals containing large amounts of refined carbohydrates or added sugar can produce relatively rapid increases in blood glucose. The subsequent decline in blood glucose can contribute to symptoms such as:

  • Shakiness or trembling
  • Irritability
  • Sweating
  • Difficulty concentrating
  • A racing heartbeat
  • Feeling nervous or unsettled

These physical sensations can resemble anxiety and may aggravate anxiety symptoms in susceptible individuals.

People who experience reactive hypoglycemia can be particularly sensitive to changes in blood glucose following meals.

How to support healthy blood sugar regulation

The composition of your meals can influence how quickly glucose enters your bloodstream.

Try these strategies:

  • Include protein with meals: Eggs, fish, poultry, tofu, Greek yogurt and legumes provide protein that helps make meals more satisfying.
  • Choose high-fibre carbohydrates: Vegetables, berries, beans, and lentils provide fibre that slows digestion and supports more gradual glucose absorption.
  • Include healthy fats: Avocado, nuts, seeds and extra virgin olive oil contribute to a balanced meal.
  • Avoid relying on sugary snacks: Frequent consumption of sweets, sweetened beverages and highly refined carbohydrates can make it harder to maintain consistent eating habits.
  • Eat regularly: Avoid long periods without food if these leave you feeling shaky, irritable or unwell.

A balanced breakfast containing protein, fibre and healthy fats can be a particularly useful starting point.

2. Caffeine, Diet and Anxiety

Caffeine is a stimulant that acts on the central nervous system. It works primarily by blocking adenosine receptors. Adenosine is a chemical messenger that promotes relaxation and sleepiness.

By blocking these receptors, caffeine increases alertness and can stimulate the release of stress-related neurotransmitters.

For some people, caffeine can contribute to:

  • Nervousness and restlessness
  • A racing heartbeat
  • Increased feelings of worry
  • Difficulty relaxing
  • Sleep disturbances
  • Heightened sensitivity to stress

The effects depend on individual sensitivity, the amount consumed and the timing of consumption.

People who already experience anxiety may find that caffeine makes their symptoms more noticeable. Energy drinks and large amounts of coffee can be particularly problematic.

How much caffeine is too much?

There is considerable variation in caffeine tolerance. Some people experience anxiety symptoms after relatively small amounts.

If you experience anxiety, consider reducing your caffeine intake and observing whether your symptoms improve. Pay particular attention to coffee, tea, energy drinks, cola and chocolate.

Caffeine can also interfere with sleep, particularly when consumed later in the day. Poor sleep can increase emotional reactivity and make anxiety harder to manage.

3. Inflammation, Diet and Anxiety

Inflammation is part of the body’s normal immune response. It helps protect us against infection and supports tissue repair.

Chronic, low-grade inflammation is a different matter. It has been associated with several health conditions, including metabolic disorders and certain mental health conditions.

Researchers are increasingly interested in the relationship between inflammation, the immune system and brain function.

Inflammatory signalling molecules called cytokines can communicate with the central nervous system and influence processes involved in mood, stress responses and behaviour.

Diet is one factor that can influence inflammatory activity.

Dietary patterns and inflammation

Diets containing substantial amounts of highly processed foods, refined carbohydrates and processed meats are often associated with poorer metabolic health and higher inflammatory markers.

A diet rich in vegetables, fruit, fibre, nuts, seeds, fish and minimally processed foods is associated with better overall health and more favourable metabolic markers.

The types of dietary fats you consume also matter.

Understanding fats in your diet and anxiety

Fat is an essential nutrient. It contributes to cell membrane structure, hormone production, nutrient absorption and healthy brain function.

Different types of fat have different physiological effects.

Omega-3 fatty acids

Omega-3 fatty acids are particularly important for brain health. EPA and DHA are involved in neuronal membrane structure and influence inflammatory signalling.

Good food sources include:

  • Salmon
  • Sardines
  • Mackerel
  • Herring
  • Trout
  • Chia seeds
  • Flaxseeds
  • Walnuts

Fatty fish provides the long-chain omega-3 fatty acids EPA and DHA. Plant foods provide ALA, which the body can convert to EPA and DHA, although conversion is limited.

Omega-6 fatty acids

Omega-6 fatty acids are essential fats involved in cell structure, immune function and signalling pathways.

Sources include sunflower seeds, pumpkin seeds, walnuts and many vegetable oils.

Omega-6 fats are an important part of a healthy diet. Their effects depend on the specific fatty acid and the overall dietary pattern.

Monounsaturated fats

Monounsaturated fats are found in:

  • Extra virgin olive oil
  • Avocados
  • Almonds
  • Pecans
  • Hazelnuts

These fats are associated with favourable cardiovascular and metabolic health outcomes.

Saturated fats

Saturated fats occur naturally in foods such as butter, fatty meats, coconut oil and full-fat dairy products.

Replacing some saturated fat with unsaturated fat can improve blood lipid profiles and support cardiovascular health.

Trans fats

Industrial trans fats have been associated with adverse cardiovascular effects. Minimizing foods containing partially hydrogenated oils is a sensible dietary practice.

Foods to emphasize for brain and metabolic health

Consider incorporating more of the following:

  • Fatty fish
  • Avocados
  • Nuts and seeds
  • Extra virgin olive oil
  • Leafy green vegetables
  • Berries
  • Beans and lentils
  • Eggs

These foods provide a range of nutrients that support normal brain function and overall health.

4. The Gut-Brain Connection: How Your Digestive System Influences Your Mood

Your digestive system and brain communicate continuously through what is known as the gut-brain axis.

This communication network involves the nervous system, immune system, hormones and the trillions of microorganisms living in your digestive tract.

The gut microbiome plays an important role in digestion, nutrient metabolism, immune function and the production of various signalling compounds.

Researchers are increasingly investigating how changes in gut microbial composition may influence stress responses and mental health.

What does serotonin have to do with gut health?

Serotonin is a neurotransmitter involved in mood regulation, sleep, appetite and digestive function.

A large proportion of the body’s serotonin is produced in the gastrointestinal tract, primarily by specialized intestinal cells.

However, serotonin produced in the gut does not simply travel into the brain. Serotonin itself cannot cross the blood-brain barrier.

The gut and brain have separate serotonin systems that communicate through other signalling pathways.

Gut microorganisms can influence the metabolism of tryptophan, an amino acid used to produce serotonin. They may also influence immune signalling and communication through the vagus nerve.

These mechanisms are part of an active area of research into the relationship between gut health and emotional wellbeing.

Can an unhealthy gut contribute to anxiety?

Research suggests that gut microbiome composition may be associated with anxiety and stress responses.

Animal studies have demonstrated that altering gut bacteria can influence behaviour and the hypothalamic-pituitary-adrenal (HPA) axis, which regulates the body’s response to stress.

Human research is also emerging. However, there is considerable variation between studies, and researchers are still working to establish which microbial changes are clinically meaningful.

Digestive symptoms such as bloating, constipation, diarrhea and abdominal discomfort can also contribute to psychological distress, particularly when they are persistent.

Supporting digestive health is therefore a worthwhile part of a comprehensive approach to wellness.

5. How to Support a Healthy Gut Microbiome

Your gut bacteria rely on dietary components, particularly fibre, to produce beneficial metabolites that support intestinal and metabolic health.

Several dietary habits can help maintain a diverse and healthy gut microbiome.

Eat more fibre

Dietary fibre provides nourishment for beneficial gut bacteria.

Certain types of fibre are fermented by intestinal microorganisms, producing short-chain fatty acids such as butyrate. These compounds help support the intestinal barrier and influence immune and metabolic function.

Good sources include:

  • Asparagus
  • Broccoli
  • Brussels sprouts
  • Artichokes
  • Chia seeds
  • Flaxseeds
  • Beans and lentils
  • Berries
  • Apples

Increase fibre gradually, particularly if you are prone to bloating.

Include fermented foods

Fermented foods can provide live microorganisms and beneficial fermentation products.

Examples include:

  • Plain yogurt with live cultures
  • Kefir
  • Sauerkraut
  • Kimchi
  • Fermented vegetables

Individual products vary in their microbial content. Look for products that contain live cultures where appropriate.

Eat a variety of plant foods

Different gut microorganisms utilize different types of fibre and plant compounds.

Eating a variety of vegetables, fruits, legumes, nuts and seeds provides a broader range of substrates for the microbiome.

Consider probiotics carefully

Probiotics are live microorganisms that may provide health benefits when consumed in adequate amounts.

Some clinical studies have investigated specific probiotic strains for their potential effects on stress and anxiety.

For example, a randomized controlled trial published in 2019 investigated Lactobacillus plantarum DR7 in adults and reported improvements in certain measures of stress and anxiety.

The findings are interesting, although probiotic effects are strain-specific. Results from one strain cannot automatically be applied to another product.

Probiotics are best considered on an individual basis, taking digestive health, clinical history and the available evidence into account.

6. Nutritional Deficiencies That May Affect Mental Health

Your brain requires a continuous supply of vitamins, minerals, amino acids and essential fatty acids to maintain normal function.

Several nutrients participate in neurotransmitter synthesis, nerve signalling, energy metabolism and regulation of the nervous system.

Inadequate intake or deficiency of certain nutrients can contribute to neurological and psychological symptoms.

Important nutrients to consider include:

Magnesium, Diet and Anxiety:

Magnesium participates in hundreds of enzymatic reactions, including those involved in nerve transmission and muscle function.

It also plays a role in regulating NMDA receptors and other pathways involved in nervous system activity.

Low magnesium status has been associated with various symptoms, including fatigue, muscle cramps and irritability.

Food sources include pumpkin seeds, almonds, spinach, legumes and dark chocolate.

Vitamin B6, Diet and Anxiety

Vitamin B6 is required for the synthesis of several neurotransmitters, including serotonin, dopamine and GABA.

GABA is the brain’s primary inhibitory neurotransmitter and helps regulate neuronal activity.

Good food sources include poultry, fish, potatoes, bananas and chickpeas.

Vitamin B12, Diet and Anxiety

Vitamin B12 is essential for normal nerve function, red blood cell production and DNA synthesis.

Deficiency can cause neurological symptoms, fatigue and cognitive changes.

Food sources include fish, meat, eggs and dairy products. People following vegan diets may require fortified foods or supplementation.

Folate

Folate is involved in DNA synthesis, cell division and one-carbon metabolism. It also participates in biochemical pathways involved in neurotransmitter metabolism.

Good food sources include leafy green vegetables, asparagus, legumes and avocado.

Zinc, Diet and Anxiety

Zinc supports immune function, cellular metabolism and normal neurological function.

It is involved in numerous processes related to brain signalling and neurotransmitter regulation.

Food sources include oysters, beef, pumpkin seeds, nuts and legumes.

Iron, Diet and Anxiety

Iron is essential for oxygen transport and energy production. It is also involved in enzymes required for neurotransmitter synthesis.

Iron deficiency can contribute to fatigue, reduced concentration, irritability and other symptoms that may overlap with anxiety.

Good food sources include meat, seafood, lentils, beans, tofu and leafy green vegetables.

Vitamin D

Vitamin D has several functions involving immune regulation, bone health and cellular signalling.

Vitamin D receptors are present in various areas of the brain. Researchers continue to investigate its relationship with mental health.

Food sources include fatty fish, egg yolks and fortified foods. Sunlight exposure also contributes to vitamin D production.

An important consideration: Nutrient deficiencies can contribute to symptoms affecting mental and physical health, but taking additional vitamins and minerals does not necessarily improve anxiety when nutritional status is already adequate. Identifying through a thorough assessment and testing, then addressing deficiencies is more useful than indiscriminate supplementation.

7. Foods That Support Healthy Brain Function

A varied, nutrient-dense diet provides the building blocks your brain needs to function.

Here are some particularly useful foods to incorporate regularly.

Fatty fish: Salmon, sardines, trout and mackerel provide EPA and DHA omega-3 fatty acids.

Eggs: Provide protein, choline, vitamin B12 and other nutrients involved in normal brain function.

Leafy green vegetables: Spinach, kale and Swiss chard provide folate, magnesium and other micronutrients.

Berries: Blueberries, strawberries and raspberries provide fibre and polyphenols, which have antioxidant and other biological activities.

Nuts and seeds: Walnuts, almonds, pumpkin seeds and chia seeds provide healthy fats, magnesium, zinc and fibre.

Legumes: Lentils, chickpeas and beans provide protein, fibre, folate and minerals.

Fermented foods: Yogurt, kefir, kimchi and sauerkraut can contribute to dietary microbial diversity.

Extra virgin olive oil: Provides monounsaturated fats and polyphenols.

A Mediterranean-style dietary pattern incorporates many of these foods and is associated with favourable health outcomes. Research examining its specific effects on anxiety remains less conclusive.

8. Practical Dietary Strategies to Help Manage Anxiety

Making changes to your diet can feel overwhelming, particularly when you are already dealing with stress.

Start with a few manageable habits.

  1. Eat a protein-rich breakfast. Include eggs, yogurt, tofu or another source of protein to support satiety and help maintain steady energy levels.
  2. Include vegetables with your meals. Aim for a variety of colours and types to increase fibre and micronutrient intake.
  3. Choose minimally processed foods more often. Build meals around vegetables, fruit, protein sources, nuts, seeds and fibre-rich carbohydrates.
  4. Include omega-3-rich foods. Eat fatty fish regularly if you enjoy it, or include plant sources such as chia seeds and walnuts.
  5. Reduce excessive caffeine. Monitor whether coffee, energy drinks or other caffeinated beverages aggravate your symptoms.
  6. Stay hydrated. Inadequate fluid intake can contribute to fatigue, headaches and changes in concentration and mood.
  7. Support your gut microbiome. Include a variety of fibre-rich plant foods and fermented foods that you tolerate.
  8. Prioritize sleep. Sleep deprivation can increase stress sensitivity and make anxiety symptoms harder to manage.

Consistency matters. Small dietary improvements maintained over time can support overall health and provide a foundation for better metabolic and digestive function.

9. Could Your Anxiety Have an Underlying Nutritional or Hormonal Component?

Anxiety can have many contributing factors. In some individuals, physical health issues may contribute to symptoms or make existing anxiety more difficult to manage.

A comprehensive health assessment may help identify all of the relevant factors.

Depending on your symptoms and medical history, areas worth investigating may include:

Thyroid dysfunction, for example, can produce symptoms such as nervousness, restlessness, palpitations and sleep disturbances.

Hormonal changes during perimenopause and menopause can also influence sleep, mood and stress responses.

Women experiencing changes in their menstrual cycles, sleep patterns, mood or energy levels may benefit from an assessment of their overall hormonal health.

Testing should be selected according to individual symptoms, risk factors and clinical findings. Appropriate interpretation is essential when deciding whether a result requires further investigation or treatment.

10. Take a Comprehensive Approach to Diet and Anxiety

The relationship between diet and anxiety is complex. Research into the gut-brain axis, inflammation, blood sugar regulation and nutritional psychiatry continues to expand our understanding of the factors that influence mental health.

Improving dietary quality, addressing nutritional deficiencies, supporting digestive health and identifying potential physiological contributors can all form part of a comprehensive wellness plan.

If you experience persistent anxiety, seek an appropriate assessment from a qualified healthcare professional. Psychological therapies and medical treatments can be important components of care. Nutritional strategies can complement these approaches.

At my Toronto naturopathic practice, I take a comprehensive approach to investigating factors that may be affecting health and wellbeing. This can include a detailed health history, appropriate laboratory testing, nutritional assessment and individualized recommendations.

If you are struggling with anxiety and would like to explore whether nutritional, digestive, metabolic or hormonal factors may be contributing, I invite you to book an appointment.

By Dr. Pamela Frank, BSc(Hons), ND
Naturopathic Doctor in Toronto
In practice since 1999


Diet and Anxiety References and Further Reading

  1. Abukmail E, et al. Moderate- to Long-Term Effect of Dietary Interventions for Depression and Anxiety: A Systematic Review and Meta-analysis. Annals of Internal Medicine. 2025;178(7):987-999. https://doi.org/10.7326/ANNALS-24-03016
  2. Aucoin M, et al. Diet and Anxiety: A Scoping Review. Nutrients. 2021;13(12):4418. https://doi.org/10.3390/nu13124418
  3. Movva N, et al. Dietary Eating Patterns, Dairy Consumption, and Anxiety: A Systematic Literature Review. PLOS ONE. 2023;18(12). https://doi.org/10.1371/journal.pone.0295975
  4. Chong HX, et al. Lactobacillus plantarum DR7 Alleviates Stress and Anxiety in Adults: A Randomised, Double-Blind, Placebo-Controlled Study. Beneficial Microbes. 2019;10(4):355-373. https://doi.org/10.3920/BM2018.0135
  5. Fenton A, et al. Nutrition for Mental Health: Guidance for Clinical Practice. The Journal for Nurse Practitioners. 2024. https://doi.org/10.1016/j.nurpra.2024.105209
  6. Mayo Clinic. Coping with Anxiety: Can Diet Make a Difference? December 17, 2024. https://www.mayoclinic.org/diseases-conditions/generalized-anxiety-disorder/expert-answers/coping-with-anxiety/faq-20057987
  7. Ruth Ann Luna, Jane A Foster, Gut-Brain Axis: Diet Microbiota Interactions and Implications for Modulation of Anxiety and Depression, Curr Opin Biotechnol. 2015 Apr;32:35-41. doi: 10.1016/j.copbio.2014.10.007. Epub 2014 Nov 21.
  8. Sophie Dutheil, Kristie T Ota, Eric S Wohleb, Kurt Rasmussen, Ronald S Duman. High-Fat Diet Induced Anxiety and Anhedonia: Impact on Brain Homeostasis and Inflammation. Neuropsychopharmacology. Tyuog 2016 Jun;41(7):1874-87. doi: 10.1038/npp.2015.357. Epub 2015 Dec 14
  9. Carla J Santos, Adaliene V M Ferreira, Ana L Oliveira, Marina C Oliveira, Julia S Gomes, Daniele C Aguiar. Carbohydrate-enriched Diet Predispose to Anxiety and Depression-Like Behavior After Stress in Mice. Nutr Neurosci. 2018 Jan;21(1):33-39. doi: 10.1080/1028415X.2016.1213529. Epub 2016 Jul 29.
  10. Ricard Farré, Marcello Fiorani, Saeed Abdu Rahiman, Gianluca Matteoli. Intestinal Permeability, Inflammation and the Role of Nutrients. Nutrients. 2020 Apr 23;12(4):1185. doi: 10.3390/nu12041185.
  11. M Vodička, P Ergang, T Hrnčíř, A Mikulecká, P Kvapilová, K Vagnerová, B Šestáková, A Fajstová, P Hermanová, T Hudcovic, H Kozáková, J Pácha. Microbiota Affects the Expression of Genes Involved in HPA Axis Regulation and Local Metabolism of Glucocorticoids in Chronic Psychosocial Stress. Brain Behav Immun. 2018 Oct;73:615-624. doi: 10.1016/j.bbi.2018.07.007. Epub 2018 Jul 7.
  12. H X Chong, N A A Yusoff, Y-Y Hor, L-C Lew, M H Jaafar, S-B Choi, M S B Yusoff, N Wahid, M F I L Abdullah, N Zakaria, K-L Ong, Y-H Park, M-T Liong. Lactobacillus plantarum DR7 Alleviates Stress and Anxiety in Adults: A Randomised, Double-Blind, Placebo-Controlled Study. Benef Microbes. 2019 Apr 19;10(4):355-373. doi: 10.3920/BM2018.0135. Epub 2019 Mar 18.

Medical disclaimer: This article is intended for educational purposes and is not a substitute for individualized medical advice, diagnosis or treatment. Anxiety can have multiple contributing factors and should be assessed appropriately. Consult a qualified healthcare professional before making significant changes to your healthcare or starting nutritional supplements.

Related articles recommended for You

Anxiety

Hormone Imbalance and Anxiety

Anxiety and Neurotransmitter Balance

By Dr. Pamela Frank, BSc(Hons), Naturopathic Doctor

Dr. Pamela Frank, BSc, ND, is an award-winning Toronto naturopath who has been helping people improve their health since 1999. With more than 27 years of clinical experience, she combines a strong scientific foundation with a thoughtful, individualized approach to naturopathic care. Her 20-year background as a Medical Laboratory Technologist informs her interest in comprehensive testing, careful interpretation of laboratory results and understanding the factors that contribute to each person’s health concerns.

Dr. Frank has a practice focus in women’s health, including PCOS/PMOS, endometriosis, hormonal health, fertility, acne, hair loss and menopause. A published author and educator of other naturopathic doctors, she is passionate about making complex health information understandable and helping patients make informed decisions about their health.

Dr. Pamela Frank, BSc(Hons), ND

Dr. Pamela Frank, BSc(Hons), ND

Dr. Pamela Frank, BSc, ND, is an award-winning naturopathic doctor who has been practising since 1999. Her background as a Medical Laboratory Technologist, combined with four years of postgraduate nutrition training, provides a strong scientific foundation for her analytical, evidence-informed approach to healthcare. Her clinical areas of interest include PCOS, endometriosis, hormonal health, fertility, perimenopause, menopause, acne, hair loss and thyroid health. She has extensive experience helping women investigate and address factors contributing to hormonal and metabolic concerns. Outside her practice, Pamela enjoys kickboxing, yoga, podcasting and backcountry camping. [Connect with Dr. Pamela Frank on LinkedIn](https://www.linkedin.com/in/pamelafranknaturopathtoronto/)