Magnesium, omega-3 fatty acids, and keto-friendly foods may all help relieve or prevent migraine attacks. Consider adding foods like dark leafy greens, avocado, and fish to your diet.
Nearly everyone has a headache from time to time. But for people with migraine, the pain can be much more severe and occur with other symptoms.
Recent research suggests that food and diet may play a part in managing migraine. Making changes to your diet may help prevent migraine attacks or reduce their frequency.
Keep reading for more on how this works and which foods to eat or avoid.
Certain foods contain high amounts of minerals, vitamins, and fatty acids that may help prevent migraine attacks. Some drinks may also ease symptoms or prevent migraine triggers.
Magnesium-rich foods
Research from 2021 discovered a link between migraine frequency and U.S. adults ages 20 to 50 years who weren’t getting enough magnesium in their diet. Other research from 2021 involving mostly white females suggests that magnesium may offer migraine relief.
dark leafy greensavocadotunabananas
Dark chocolate is also rich in magnesium, but there’s some debate over whether other components in it may trigger migraine attacks. According to a 2020 review, there’s not enough evidence to suggest that it does, but everyone’s experience is different.
Omega-3 fatty acids
fish such as mackerel and salmonseedslegumes
Fiber-rich foods
A 2022 study found that an increase in dietary fiber correlated with a decrease in frequency of severe headaches or migraine attacks.
The study authors stressed the need for more research before making universal dietary recommendations, but the potential role of dietary fiber is noteworthy.
High fiber foods include:
whole grainsfruitsvegetablespotatoesbeans
Water
Staying hydrated may help prevent migraine and reduce symptoms, as dehydration can be a migraine trigger.
A 2020 study involving 256 adult women ages 45 years and under found that drinking more water each day decreased both the severity and frequency of migraine headaches.
Certain teas may also have additional benefits, such as reducing nausea or headache symptoms.
Whole foods
Avoiding processed foods in favor of whole, unprocessed foods is generally good advice for everyone. Whole, unprocessed foods include fruits, vegetables, grains, legumes, and nuts and seeds.
Still, it’s challenging to avoid processed foods entirely. If you find that additives like artificial flavorings, sweeteners, or preservatives are migraine triggers for you, try to avoid them in the bulk of your diet.
Food and the chemicals in it may trigger migraine attacks. Right now, there’s no definite list of foods or beverages that do or don’t cause a migraine attack. Migraine triggers and food sensitivities may differ for people.
However, many people anecdotally claim that certain foods and drinks trigger their migraine attacks. Some foods and drinks noted in research include:
nitrate-rich foods, such as cured meats and hot dogsmonosodium glutamate (MSG), an additive often found in processed foodsartificial sweeteners, especially aspartame and sucralosetyramine, a chemical found in fermented foods, aged cheeses, and some kinds of fresh-baked breadphenylethylamine, an amino acid found in chocolate, nuts, citrus fruits, soy foods, and vinegaralcoholic beverages like wine and beerdairy products and ice creamcaffeine-containing beverages like coffeecertain vegetables, including tomatoes and onionshistamine-containing foods, including alcohol, fermented foods, dried fruits, and othersgluten, a protein found in wheat
Some studies suggest that the foods themselves might not be the problem. Instead, food cravings and hunger may be the real root of the trigger.
When people have food cravings due to low blood sugar and then eat something, it’s often too late — they may already be beginning to experience the symptoms of a migraine attack.
More research is needed to understand if hunger, food, or a combination of these is the actual cause.
There’s no one diet that’s best for people with migraine. However, research suggests that several different types of eating plans may help reduce the frequency of migraine attacks. Examples include:
Keto and modified Atkins diets may help reduce migraine attacks compared with a standard diet.
Ketosis, the process of fueling the brain with ketones instead of glucose (sugar), may be responsible for this protective effect. These diets involve eating foods low in carbohydrates and high in fat, like seafood, nonstarchy vegetables, and eggs.
Be careful, though: Some keto-friendly foods may trigger migraine attacks. Always speak with a doctor or a registered dietitian before starting a keto diet, as there are risks.
Keto diets may not be an option for people concerned about their heart health. However, heart-healthy diets like the Mediterranean and DASH diets may also help reduce migraine symptoms, according to 2022 research. However, research is limited.
There’s also increasing evidence that plant-based diets, like a vegan diet, may help with migraine. A 2023 study found a link between plant-based diets and lower migraine headache frequency. Still, more research is needed.
Regardless of which diet you choose, it’s important to make sure you’re still consuming enough calories to meet your daily energy needs. Some diets, including many of the diets mentioned above, can often be too restrictive and prevent you from getting enough nutrition. Be sure to talk with a doctor about an eating plan that’s right for you.
Certain dietary patterns, like keto and plant-based diets, may help prevent migraine attacks. Dietary behaviors like choosing unprocessed foods and drinking lots of water can also help.
If you think that specific foods or drinks may contribute to your migraine attacks, keeping a food journal to track what may be triggering attacks can help. Share it with a doctor so you can work together on a more personalized treatment plan.
If you’re looking to connect with other people with migraine, resources like Healthline’s Bezzy Migraine offer an online safe space for community, peer and expert guidance, and support.