The nutritional steps with the best support for everyday stress are simple: eat regular, balanced meals built on vegetables, fruit, whole grains and lean protein, get enough magnesium, omega-3 fats and B vitamins, and keep caffeine and alcohol in check. Supplements such as magnesium, B-complex vitamins, fish oil and ashwagandha have been studied for stress and mood, but the trials are mostly small and short, so food and daily habits come first.
Key Takeaways
- MedlinePlus advises a healthy diet for managing stress: fewer high-sugar snack foods and more vegetables, fruit, whole grains, low-fat dairy and lean protein.
- Magnesium, B vitamins and omega-3 fats have each been studied for stress or mood. Results lean positive in places, but the studies are small, short or of limited quality.
- Ashwagandha root extract has the most trials for perceived stress among herbs, mostly 6 to 8 weeks long and mostly done in India.
- For most adults, the FDA cites up to 400 mg of caffeine a day as an amount not generally linked to negative effects. People vary a lot in how sensitive they are.
- Alcohol can feel relaxing, but MedlinePlus lists it among stress habits that may hurt more than they help, and it advises avoiding it in the evening for better sleep.
- Food supports everyday well-being. If stress or low mood lasts for weeks or gets in the way of daily life, talk to a healthcare professional.
Evidence grade: Moderate. Systematic reviews and randomized trials in people point the same way for B vitamins, magnesium, omega-3s and ashwagandha on stress measures, but most trials are small, short, use different products and doses, and several were industry-funded.
How Stress and Eating Affect Each Other
Stress is how your brain and body respond to a challenge or demand. When you feel stressed, your body releases hormones that change how different parts of the body work. Short-term stress can be helpful, but stress that lasts a long time can affect your health.
Stress often changes how we eat. MedlinePlus notes that when people feel stressed, they may fall back on habits such as eating too much, drinking alcohol, or sleeping too much or too little. These may feel good at first but can hurt more than they help.
The Everyday Eating Pattern That Supports a Calmer Routine
MedlinePlus lists a healthy diet alongside sleep, activity and relaxation techniques as core ways to manage stress. Its advice is to skip the high-sugar snack foods and load up on vegetables, fruits, whole grains, low-fat or nonfat dairy, and lean proteins. A few practical habits build on that:
- Keep meals regular. A predictable rhythm of meals and snacks makes it easier to choose real food instead of whatever is closest when you are rushed.
- Eat earlier in the evening. MedlinePlus suggests avoiding heavy meals in the 2 hours before sleep, which helps protect the rest that stress tends to erode.
- Watch the drinks. Caffeine and alcohol are covered below.
For more on how sweets fit in, see our article on sugar and stress.
What a large diet trial measured
The best-known trial of diet and mood is the 2017 SMILES trial from Australia. It enrolled 67 adults diagnosed with moderate to severe depression, most of whom were already receiving therapy, medicine or both. For 12 weeks, one group had seven sessions with a clinical dietitian to improve their diet. The plan was a Mediterranean-style pattern built around vegetables, fruit, whole grains, legumes, nuts, fish and olive oil, with fewer sweets, fried foods, fast food and sugary drinks. The comparison group got social support visits on the same schedule.
The diet group improved more on the main mood rating scale, and 32% reached the researchers' remission threshold compared with 8% of the comparison group. The trial was small, participants knew which program they were in, and it tested diet alongside existing care, not instead of it. It does not show that food can replace professional care. If you are struggling with your mood, please talk to a doctor or mental health professional.
Nutrients Studied for Stress and Mood
| Nutrient or herb | Good food sources | What human research found | Evidence strength |
|---|---|---|---|
| Magnesium | Leafy greens such as spinach, legumes, nuts, seeds, whole grains | A 2017 review of 18 studies found some positive effects on self-reported anxiety in people prone to it, but rated study quality as poor; no study used a validated stress measure | Emerging |
| B vitamins (3 or more) | Varied whole-food diet | A 2019 meta-analysis of 16 trials found a small benefit for stress scores, but not for low-mood or anxiety scores | Moderate |
| Omega-3 fats (EPA and DHA) | Salmon, mackerel, tuna, herring, sardines; ALA in flaxseed, chia, walnuts | A 12-week trial in 68 medical students found 2.5 g a day lowered anxiety scores by 20% versus placebo during exam stress | Emerging |
| Ashwagandha | Not a food; taken as a root or root-and-leaf extract | A 2021 review of 7 trials (491 adults) found lower stress scores and lower cortisol versus placebo after 6 to 8 weeks | Moderate |
Magnesium
Magnesium is a cofactor in more than 300 enzyme systems in the body. Good food sources include green leafy vegetables such as spinach, legumes, nuts, seeds and whole grains, and the body absorbs roughly 30% to 40% of the magnesium in food.
A 2017 systematic review from the University of Leeds looked at 18 studies of magnesium, alone or with a few other ingredients, on self-reported anxiety and stress. Every study recruited people who were already prone to anxious feelings, for example people with premenstrual symptoms or mild anxiety. About half of the studies in mildly anxious groups reported a benefit. The authors called the evidence "suggestive" but rated its quality as poor, and noted that no study used a validated stress questionnaire. For food ideas, see our list of magnesium-rich foods.
B vitamins
A 2019 meta-analysis pooled 16 randomized trials with 2,015 participants that gave at least three B vitamins daily for four weeks or more. B-vitamin supplements produced a small but statistically significant improvement in stress scores. They did not significantly change low-mood scores, and they had no effect on anxiety scores. The benefit seemed larger in people with poor nutrient status or poor mood at the start. Several of the authors had received funding from the supplement industry. Read more in B vitamins and stress.
Omega-3 fats
Cold-water fatty fish such as salmon, mackerel, tuna, herring and sardines are rich in the long-chain omega-3s EPA and DHA. Flaxseed, chia seeds and walnuts provide ALA, a plant omega-3.
In a 2011 trial at Ohio State University, 68 healthy medical students took either 2.5 g a day of omega-3s (mostly EPA) or a placebo for 12 weeks, with blood samples taken during calmer periods and before exams. The omega-3 group had a 20% reduction in anxiety symptom scores and lower production of an inflammatory marker compared with placebo, with no change in low-mood scores. It was one small trial at a fairly high dose. See our guide to the benefits of omega-3 fatty acids.
Ashwagandha and Everyday Stress
Ashwagandha (Withania somnifera) is an evergreen shrub whose root has been used in the traditional Ayurvedic and Unani systems of India. According to the NIH Office of Dietary Supplements, research suggests that ashwagandha extracts may lower stress and cortisol levels.
A 2021 systematic review summarized by the NIH included seven trials with 491 adults, all in India, who reported high stress or had a diagnosed anxiety condition. Over 6 to 8 weeks, people taking ashwagandha (240 to 1,250 mg a day of extract in most studies) had lower stress ratings, less sleeplessness and fatigue, and lower blood cortisol than people taking a placebo. Benefits appeared greater at 500 to 600 mg a day in several studies, and most trials published since then also found improvements in perceived stress.
Studies used different extracts, plant parts and doses, which the NIH says makes firm recommendations hard. Ashwagandha appears well tolerated for up to about 3 months, but its long-term safety is not known.
If you want to try it as part of a daily routine, OPA Ashwagandha with Black Pepper provides 1,300 mg of ashwagandha and 10 mg of black pepper per two-capsule serving, taken once daily. It is designed to support relaxation and balance. Read the safety notes below first.
Caffeine and Alcohol: What to Limit When You Are Stressed
Caffeine
For most adults, the FDA cites 400 mg of caffeine a day, about two to three 12-ounce cups of coffee, as an amount not generally associated with negative effects. People vary widely in how sensitive they are and how fast they clear caffeine. MedlinePlus lists avoiding too much caffeine as a stress-management step and suggests avoiding caffeinated drinks in the evening. Our article on caffeine and sleep covers timing in more detail.
Alcohol
A drink can feel like a way to unwind, but MedlinePlus lists drinking alcohol among the unhealthy ways people try to relieve stress, which may feel better at first but hurt more than they help. It also advises avoiding alcohol in the evening for better sleep. If you notice that you are drinking more often than usual because of stress, MedlinePlus advises getting help right away.
When Food Is Not Enough
Eating well supports everyday resilience, but it has limits. MedlinePlus advises talking to a healthcare provider if you have severe symptoms for two weeks or more, such as trouble sleeping, changes in eating that cause unwanted weight changes, trouble focusing, losing interest in things you usually enjoy, or not being able to do your usual activities. Get help right away if stress makes you feel you cannot cope or you have thoughts of suicide. A provider may refer you to a mental health professional such as a psychologist or social worker.
Safety and Interactions
- Magnesium: the upper limit for magnesium from supplements and medicines is 350 mg a day for adults. High doses can cause diarrhea, nausea and abdominal cramping. Magnesium can interact with oral bisphosphonates and tetracycline and quinolone antibiotics, and diuretics and proton pump inhibitors can affect magnesium status. People with kidney problems should talk to a clinician before taking magnesium.
- Omega-3s: fish oil can have antiplatelet effects at high doses and might raise clotting-time measures in people taking warfarin. If you take warfarin or another blood thinner, talk to your doctor or pharmacist first.
- Ashwagandha: common side effects are mild stomach upset, loose stools, nausea and drowsiness. Rare cases of liver injury have been reported. Ashwagandha might affect thyroid hormone levels and might interact with thyroid hormone medicines, diabetes medicines, blood pressure medicines, immunosuppressants and sedatives, so talk to your doctor or pharmacist if you take any of these. Some experts advise against it during pregnancy, and it might not be safe for men with hormone-sensitive prostate cancer. Long-term safety is unknown.
- Caffeine: some conditions and medicines make people more sensitive to caffeine. If you are pregnant, trying to become pregnant or breastfeeding, the FDA suggests checking with your healthcare provider about caffeine.
Frequently Asked Questions
Can what I eat really affect my mood and stress levels?
Diet is one of several factors, along with sleep, activity and support from others. MedlinePlus includes a healthy diet among its core stress-management steps. Diet trials on mood are encouraging but small, so think of food as support for your well-being, not a fix on its own.
Which foods should I limit when I am stressed?
The clearest candidates are high-sugar snack foods, too much caffeine, alcohol, and heavy meals close to bedtime. These are the items MedlinePlus singles out in its stress and sleep guidance.
Which foods are linked to a better mood?
The diet tested in the SMILES trial emphasized vegetables, fruit, whole grains, legumes, fish, olive oil and nuts. Those foods also supply magnesium, B vitamins and omega-3 fats, the nutrients most often studied for stress. No single "mood food" has strong evidence by itself.
Does magnesium help with stress?
Possibly, especially for people whose intake is low. A 2017 review found some positive results on self-reported anxious feelings in people prone to them, but rated the quality of the evidence as poor. Food sources come first, and supplemental magnesium should stay at or below 350 mg a day unless your doctor advises otherwise.
How long does ashwagandha take to work for stress?
Most trials measured results after 6 to 8 weeks of daily use. Results varied with the extract and dose. Because long-term safety is unknown and ashwagandha can interact with several medicines, check with your healthcare provider before you start.
Is caffeine bad for stress?
Moderate caffeine is fine for most adults. The FDA cites up to 400 mg a day as generally not linked to negative effects. Sensitivity varies, so if you feel jittery or sleep poorly, cut back and avoid caffeine in the evening.
Sources
- NIH Office of Dietary Supplements. Ashwagandha: Fact Sheet for Health Professionals. Updated 2025.
- NIH Office of Dietary Supplements. Magnesium: Fact Sheet for Health Professionals. Updated 2026.
- NIH Office of Dietary Supplements. Omega-3 Fatty Acids: Fact Sheet for Health Professionals. Updated 2025.
- Jacka FN, O'Neil A, Opie R, et al. A randomised controlled trial of dietary improvement for adults with major depression (the 'SMILES' trial). BMC Medicine. 2017.
- Boyle NB, Lawton C, Dye L. The effects of magnesium supplementation on subjective anxiety and stress: a systematic review. Nutrients. 2017.
- Young LM, Pipingas A, White DJ, Gauci S, Scholey A. A systematic review and meta-analysis of B vitamin supplementation on depressive symptoms, anxiety, and stress: effects on healthy and 'at-risk' individuals. Nutrients. 2019.
- Kiecolt-Glaser JK, Belury MA, Andridge R, Malarkey WB, Glaser R. Omega-3 supplementation lowers inflammation and anxiety in medical students: a randomized controlled trial. Brain, Behavior, and Immunity. 2011.
- U.S. Food and Drug Administration. Spilling the Beans: How Much Caffeine Is Too Much? 2024.
- MedlinePlus Medical Encyclopedia. Learn to manage stress. U.S. National Library of Medicine. 2024.
- MedlinePlus. Stress. U.S. National Library of Medicine.
- MedlinePlus Medical Encyclopedia. Changing your sleep habits. U.S. National Library of Medicine. 2026.
Disclosure: OPA Nutrition sells supplements, including products mentioned in this article. This content is for education only and is not medical advice. Statements about dietary supplements have not been evaluated by the Food and Drug Administration. These products are not intended to diagnose, treat, cure, or prevent any disease. Talk to your healthcare provider before using any supplement, especially if you take medication or have a medical condition.
Written and reviewed by Michael Gonzales, Founder, OPA Nutrition · Last reviewed: · How OPA researches and writes
