Ask Tes Ai

Migraine Diet: Foods to Eat and Avoid

April 21, 2026Published date
April 21, 2026Last reviewed
Clinically reviewed by Physicians
Migraine Diet: Foods to Eat and Avoid

Outline

Some foods can trigger migraines while others may help prevent attacks. Learn which foods to avoid, what to eat, and how diet changes can help manage migraines.

Key Takeaways

  • Nearly 27% of people with migraines identify food as a contributing trigger, according to the American Migraine Foundation (2022).
  • Aged cheeses, red wine, processed meats, MSG, caffeine withdrawal, and skipping meals are the most consistently reported dietary migraine triggers.
  • Magnesium deficiency is common in people with migraines, making magnesium-rich foods such as spinach, almonds, and black beans particularly important for migraine prevention.
  • Omega-3 fatty acids found in fatty fish, flaxseeds, and walnuts have anti-inflammatory properties that may reduce migraine frequency by lowering neuroinflammation.
  • Keeping a food and migraine diary for 4 to 6 weeks is the most reliable way to identify personal dietary triggers before making significant dietary changes.

How Does Diet Affect Migraines?

Food also plays an important role in managing migraines. Nearly 27% of migraines report food as a trigger to their migraine attack. Some of the foods and beverages that can bring on a migraine act via tyramine buildup, the dilation of blood vessels, the reduction of serotonin levels and falling blood glucose levels.Equally, specific nutrients and dietary patterns are associated with reduced migraine frequency. Building a migraine-friendly diet requires identifying personal food triggers and incorporating protective nutrients consistently.

Food and drink influence migraines through several biological mechanisms.

  • The buildup of tyramine: Tyramine occurs naturally in ripened, aged, fermented and processed foods. The high concentration of tyramine influences norepinephrine (a brain chemical controlling blood pressure and awareness) triggering migraine in susceptible individuals
  • Blood vessel alteration: Specific compounds such as alcohol, nitrates and histamine induce dilatation of blood vessels in the brain, triggering the pain-sensitive nerve endings
  • Serotonin level variation: Certain food types are associated with precipitous fluctuations of the level of serotonin (a brain chemical controlling mood and pain) lowering migraine threshold
  • Blood sugar drops: Skipping meals or consuming high-sugar foods causes blood sugar spikes and crashes, a well-documented migraine trigger

Foods to Avoid With Migraines

Aged and Fermented Foods

  • Aged cheeses such as cheddar, parmesan, blue cheese, brie, and camembert
  • Fermented foods like sauerkraut, kimchi, soy sauce, and miso
  • Pickled foods such as pickles, olives, and pickled herring

Processed and Cured Meats

  • Salami, pepperoni, hot dogs, bacon, and deli meats containing nitrates and nitrites (preservatives that cause blood vessel dilation)

Alcohol

  • Red wine is the most frequently reported alcoholic trigger due to its high tyramine, histamine, and tannin content
  • Beer, particularly dark beer, contains tyramine and sulfites (preservatives)
  • Spirits such as whiskey and bourbon contain congeners (alcohol fermentation byproducts) associated with increased migraine risk

Food Additives

  • MSG (monosodium glutamate): Found in fast food, instant noodles, chips, and processed snacks. MSG overstimulates glutamate receptors (nerve cell receptors involved in pain signaling) in the brain
  • Aspartame: An artificial sweetener in diet sodas and sugar-free products that affects serotonin levels
  • Sulfites: Preservatives in wine, dried fruits, and packaged foods

Caffeine

  • Frequent, consistent consumption of high-caffeine results in tolerance andwithdrawal syndrome is associated with rebound migraines at 12-24 hours
  • Limit caffeine consumption to < 200mg/day (~2 regular cups of coffee)

Skipping Meals

  • Going more than 4 to 5 hours without eating drops blood sugar levels, activating the stress response and directly triggering migraines
  • Intermittent fasting and prolonged calorie restriction increase migraine risk in susceptible individuals

Foods to Eat for Migraine Prevention

Magnesium-Rich Foods

Magnesium deficiency is common in people with migraines. Magnesium stabilizes nerve cell activity and reduces trigeminal nerve excitability (the main pain pathway in migraines).

  • Spinach, kale, and dark leafy greens
  • Almonds, pumpkin seeds, and sunflower seeds
  • Black beans, lentils, and chickpeas
  • Avocado and banana
  • Brown rice and whole grains

Omega-3 Fatty Acid-Rich Foods

Omega-3 fatty acids have anti-inflammatory properties that may reduce migraine frequency by lowering neuroinflammation (inflammation in the nervous system).

  • Fatty fish such as salmon, mackerel, sardines, and tuna
  • Flaxseeds and chia seeds
  • Walnuts
  • Omega-3 fortified eggs

Riboflavin or Vitamin B2-Rich Foods

Riboflavin (vitamin B2) has clinical evidence for reducing migraine frequency by improving mitochondrial energy metabolism (the process by which cells produce energy) in the brain.

  • Eggs, lean chicken, and turkey
  • Dairy products including milk and yogurt
  • Lean beef and organ meats such as liver
  • Leafy greens such as spinach and asparagus

Anti-Inflammatory Foods

Chronic neuroinflammation lowers the migraine threshold over time. An anti-inflammatory dietary pattern reduces overall migraine susceptibility.

  • Berries such as blueberries, strawberries, and cherries
  • Turmeric, containing curcumin (a potent anti-inflammatory compound)
  • Ginger, which has both anti-inflammatory and anti-nausea properties
  • Olive oil, rich in oleocanthal (a natural anti-inflammatory compound)
  • Green tea, which contains antioxidants and low levels of caffeine

Foods That Support Stable Blood Sugar

Maintaining stable blood sugar is one of the most practical dietary strategies for migraine prevention.

  • Oats and whole grain bread for slow-release energy
  • Sweet potatoes and legumes for sustained blood sugar stability
  • Nuts and seeds as between-meal snacks to prevent blood sugar drops
  • Protein-rich foods such as eggs, chicken, and fish at every meal

Migraine Diet: Foods at a Glance

Practical Dietary Tips for Migraine Prevention

  • Eat regular meals every 3 to 4 hours to maintain stable blood sugar throughout the day
  • Drink a minimum of 8 glasses of water every day, even more if it is hot or during intense exercise
  • Reduce caffeine intake slowly rather than giving it up completely; cold turkey will often trigger a withdrawal headache
  • Read ingredient lists carefully, looking out for sneaky MSG, nitrates, aspartame and sulfites in pre-prepared and packaged food.
  • Keep a food and migraine diary for 4 to 6 weeks to identify personal dietary triggers before making significant dietary changes
  • Work with a registered dietitian for a structured elimination diet if multiple dietary triggers are suspected

When Should You See a Doctor or Dietitian?

  • Dietary changes alone are not reducing migraine frequency after 8 to 12 weeks
  • Multiple food triggers are suspected and a structured elimination diet is needed
  • Nutritional deficiencies such as low magnesium or riboflavin are identified through blood tests
  • Migraines are occurring more than 4 days per month despite dietary management

Conclusion

Diet is an important and modifiable component in migraine prevention. Dietary triggers most consistently reported are aged cheeses, alcohol, processed meats, msg, caffeine withdrawal, and eating late or skipping meals. Dietary sources rich in magnesium, omega-3 fatty acids, riboflavin and anti-inflammatory diets are implicated in migraine frequency reduction.Consistent meal timings, staying hydrated, using a food/migraine diary and working with a registered dietitian for individual food recommendations are important.

Frequently Asked Questions

What foods most commonly trigger migraines?

Common migraine triggers include aged cheese, red wine, processed meats, MSG, caffeine withdrawal, aspartame, and skipping meals. Triggers vary, so personal food tracking is important.

Can drinking more water prevent migraines?

Yes. Dehydration is a well-recognized migraine trigger. Drinking a minimum of 8 glasses of water daily and increasing fluid intake during hot weather or physical activity can meaningfully reduce dehydration-related migraines in susceptible individuals.

Is caffeine good or bad for migraines?

Caffeine can help or trigger migraines. Small amounts may relieve pain, but high intake leads to dependence and withdrawal headaches. Limiting intake to under 200 mg per day is recommended.

Does magnesium in food help prevent migraines?

Yes. Magnesium deficiency is common in migraines and may increase nerve sensitivity. Eating magnesium-rich foods like spinach, almonds, pumpkin seeds, and beans can help prevent migraines.

Should I follow an elimination diet for migraines?

Use an elimination diet by removing suspected triggers for 4-8 weeks, then reintroducing foods one at a time to identify triggers. Do this under a registered dietitian’s guidance.

Chat with Tes to get personalized medical insights on Migraine

What symptoms should I look for?
Tes
Hi! I'm here to support your health journey. Here are some symptoms you should watch for a persistent cough, shortness of breath

Disclaimer: The content published on this website is intended to be a substitute for professional medical diagnosis, advice or treatment. Always seek the advice of your physician or other qualified healthcare providers with any questions you may have regarding your symptoms and medical condition for accurate medical diagnosis. Do not delay in seeking or disregarding medical advice because of something you have read on this website. Reliance on any provided medical advice completely depends on factors like age or gender.