7 Foods That May Help Prevent Migraines
Discover evidence-based foods that may help reduce migraine frequency and support brain health in migraine sufferers.

Migraines are more than just strong headaches—they’re a complex neurological condition with severe pain, nausea, and sensitivity to light or sound. While genetics, environment, and hormones all play roles, recent research confirms that the foods you eat can significantly influence migraine onset and frequency. Eating a diverse, nutrient-rich diet may help to prevent attacks or at least make them less frequent and severe. Below, we’ll explore seven foods that may help prevent migraines and the science behind their effects.
Understanding Migraines and Diet
Migraines affect roughly 1 in 7 people globally and are a leading cause of disability. Typical symptoms include throbbing pain, often on one side of the head, visual disturbances (known as aura), light and sound sensitivity, and sometimes nausea or vomiting.
Diet is increasingly recognized as influential in migraine management, with evidence suggesting both certain foods can trigger attacks, and others can offer protection. Positive dietary changes may help reduce migraine frequency and severity.
Foods to Include for Migraine Prevention
Not all migraine triggers and remedies are the same for everyone, but these seven foods (and food types) are especially promising for many people:
1. Magnesium-Rich Foods
Why it helps: Magnesium plays critical roles in nerve transmission, muscle relaxation, and blood vessel regulation. Deficiency has been linked to increased migraine frequency and intensity.
- Leafy greens: Spinach, kale, collard greens
- Nuts & seeds: Almonds, cashews, pumpkin seeds, chia seeds
- Beans: Black beans, kidney beans, edamame
- Avocado
- Bananas
Studies show adults with low magnesium intake experience more migraines. Supplementing with magnesium or increasing these foods can reduce attack frequency for some individuals.
2. Omega-3 Fatty Acids
Why it helps: Omega-3 fatty acids have anti-inflammatory benefits and support brain and vascular health. Chronic inflammation is a known factor in migraine.
- Oily fish: Salmon, mackerel, sardines, trout
- Seeds: Chia seeds, flaxseed
- Walnuts
- Soybeans (edamame)
Research indicates diets high in omega-3s, particularly EPA and DHA found in fish, may help reduce migraine frequency and severity.
3. Fiber-Rich Foods
Why it helps: Fiber promotes stable blood sugar and gut health. Dramatic blood sugar dips can trigger headaches or make migraines worse.
- Whole grains: Brown rice, quinoa, whole wheat bread, oats
- Fruits: Pears, apples, berries
- Vegetables: Carrots, broccoli, sweet potatoes
- Legumes: Beans, lentils, chickpeas
- Potatoes
A 2022 study found that a higher fiber intake is associated with fewer severe headaches or migraines in adults.
4. Water & Hydration Support
Why it helps: Even mild dehydration is a common migraine trigger. Adequate hydration supports vascular and neural stability, reducing risk of headaches.
- Water (aim for at least 8 glasses a day)
- Coconut water: Provides electrolytes (potassium, magnesium)
- Water-rich fruits/veggies: Cucumber, watermelon, celery, berries
Staying hydrated, along with eating water-rich foods, may help prevent migraine attacks or lessen their severity.
5. Foods Rich in Riboflavin (Vitamin B2)
Why it helps: Riboflavin supports mitochondrial energy metabolism. Clinical studies show it may reduce both the number and duration of migraines.
- Eggs
- Dairy: Yogurt, milk, cheese
- Mushrooms
- Lean meats
Regular intake from foods or supplements has been shown to prevent migraines and support overall brain health.
6. Healthy Fats and Protein
Why it helps: High fat (especially healthy fats) and protein help stabilize blood sugar, preventing dips that could trigger headaches, while providing essential building blocks for neurotransmitter production.
- Lean meats: Chicken, turkey
- Seafood
- Eggs
- Nuts and seeds
- Avocado
- Non-starchy vegetables: Asparagus, artichokes
Some individuals benefit from low-carbohydrate or Mediterranean-style diets that emphasize whole, unprocessed protein and plant foods for migraine prevention.
7. Whole, Minimally Processed Foods
Why it helps: Highly processed foods often contain additives, preservatives, and excess sodium—all common migraine triggers. Opting for whole, minimally processed foods naturally limits these exposures and supports overall well-being.
- Fresh fruits and vegetables
- Whole grains
- Legumes
- Nuts and seeds
- Unprocessed meats and seafood
A diet rich in unprocessed foods provides nutrients and phytochemicals that may support brain health and reduce migraine risk.
Foods and Habits to Avoid
Just as some foods can help, others are common migraine triggers for many people:
- Alcohol (especially red wine and beer)
- Cured meats (high in nitrates and preservatives)
- Aged cheese
- Smoked fish
- Chocolate*
- Processed foods (high in sodium, MSG, artificial additives or sweeteners)
- Caffeine: Some is safe, but withdrawal or overconsumption can be a trigger.
*Some debate exists regarding chocolate—while it’s a magnesium source, it can trigger migraines in some individuals. Track your own responses if you suspect a connection.
Additional Migraine Prevention Tips
- Maintain steady eating patterns. Skipping meals can trigger migraines. Eat at regular intervals (or try five small meals a day to keep blood sugar stable).
- Avoid highly processed foods. Choose foods labeled ‘low sodium’ and limit packaged snacks.
- Stay hydrated. Drink water steadily through the day—don’t wait for thirst.
- Pair carbohydrates with protein or healthy fat at meals and snacks for blood sugar control.
Sample Migraine-Friendly Meal Plan
Meal | Migraine-Preventive Foods |
---|---|
Breakfast | Oatmeal with chia seeds, sliced banana, and almond milk |
Snack | Greek yogurt with blueberries and walnuts |
Lunch | Grilled salmon on mixed greens (spinach, kale), quinoa, and cherry tomatoes |
Snack | Carrot sticks and hummus, or a hard-boiled egg |
Dinner | Chicken stir-fry with broccoli, asparagus, and brown rice |
Migraine Prevention: What the Research Says
- People with migraines may benefit from diets rich in magnesium, omega-3 fatty acids, and fiber.
- Staying well hydrated and maintaining blood sugar stability is crucial.
- Certain vitamins, such as riboflavin (B2) and CoQ10, show promise in reducing migraine attacks, especially when included as part of a balanced diet.
- Whole, unprocessed foods and minimizing common triggers is often more effective than focusing on a single “miracle” food.
Frequently Asked Questions (FAQs) About Migraine Prevention Through Diet
Q: Can specific foods cure migraines entirely?
A: No foods can guarantee a complete cure for migraines, but a balanced diet with certain nutrients can help reduce the frequency and severity of attacks for many individuals.
Q: How long does it take to notice diet-related changes in migraine patterns?
A: It can take several weeks to months for dietary changes to fully influence migraine patterns. Keeping a food and migraine diary can help track patterns and benefits.
Q: Are there any supplements recommended for migraine prevention?
A: Magnesium, riboflavin (B2), and CoQ10 are among supplements that have supportive evidence. Always consult a healthcare professional before starting supplements, as higher doses may require monitoring.
Q: Is there a one-size-fits-all diet for migraines?
A: No. Migraine triggers and preventives are individual. Some people benefit from high-fat, low-carb diets, while others need more complex carbohydrates. Experimentation and tracking are key.
Q: Should I avoid all trigger foods if I have migraines?
A: Not necessarily. Many people tolerate typical trigger foods without issues. Use a food and symptom diary to identify your unique triggers instead of cutting everything at once.
Key Takeaways: Migraine-Safe Nutrition for Everyday Health
- Eat a variety of magnesium- and omega-3-rich foods daily.
- Choose whole grains, legumes, and produce to boost fiber and stabilize blood sugar.
- Stay hydrated; supplement electrolytes if needed (e.g., coconut water, potassium-rich foods).
- Include riboflavin- and protein-rich foods for cellular and brain health.
- Avoid or minimize highly processed, sodium-rich, and trigger-prone foods as much as possible.
- Personalize your approach: what works for one person may not work for another.
By making thoughtful dietary choices and paying attention to your individual responses, you can help manage your migraines and improve your overall well-being. For persistent or severe migraines, consult a healthcare professional for a comprehensive treatment plan.
References
- https://www.healthline.com/health/migraine/what-to-eat-when-you-have-a-migraine
- https://www.medicalnewstoday.com/articles/323161
- https://www.hydroassoc.org/can-diet-help-with-headaches/
- https://www.brgeneral.org/news-blog/2021/june/foods-that-can-help-prevent-migraines
- https://pmc.ncbi.nlm.nih.gov/articles/PMC8689122/
- https://americanmigrainefoundation.org/resource-library/diet/
- https://pmc.ncbi.nlm.nih.gov/articles/PMC7496357/
- https://health.ucdavis.edu/otolaryngology/Health%20Information/Oto-migraine-diet-table.pdf
- https://www.ccjm.org/content/86/11/741
- https://americanmigrainefoundation.org/resource-library/migraine-and-diet/
Read full bio of Sneha Tete