What Food Is Good for Migraines? Top Choices

Several foods can help reduce the frequency and severity of migraines, primarily by supplying magnesium, omega-3 fatty acids, riboflavin, and compounds that stabilize blood sugar. The strongest evidence points toward magnesium-rich foods, fatty fish, and a generally low-glycemic eating pattern as the most effective dietary strategies.

Magnesium-Rich Foods

Magnesium is the single most studied nutrient for migraine prevention. It plays a role in nerve signaling and blood vessel function, and people who get migraines tend to have lower magnesium levels than those who don’t. Clinical studies using 400 to 600 mg of supplemental magnesium daily have found that migraines occurred less frequently over a 12-week period compared to placebo.

You don’t necessarily need a supplement to boost your intake. Pumpkin seeds are one of the most concentrated food sources available: a single ounce of hulled, roasted pumpkin seeds delivers 150 mg of magnesium. Chia seeds provide 111 mg per ounce, and one tablespoon of whole flaxseed adds another 40 mg. Other strong sources include almonds, spinach, black beans, and dark chocolate. Building these into your daily meals can meaningfully close the gap between what most people eat and what appears to help prevent attacks.

Fatty Fish and Omega-3s

An NIH-funded trial of 182 people who experienced migraines 5 to 20 days per month tested what happened when participants increased their intake of the omega-3 fats found in fatty fish. After 16 weeks, those eating more omega-3s had fewer total headache hours, fewer hours of moderate-to-severe pain per day, and fewer headache days per month compared to the control group eating a typical American diet.

The study also found that reducing intake of omega-6 fats (common in vegetable oils like soybean, corn, and sunflower oil) amplified the benefit. Participants who both increased omega-3s and decreased omega-6s had the fewest headache days of any group. In practical terms, this means eating more salmon, mackerel, sardines, and trout while cutting back on fried foods and processed snacks made with cheap vegetable oils. The ratio between these two types of fat appears to matter as much as the total amount of omega-3s you eat.

Riboflavin (Vitamin B2)

Riboflavin helps your cells produce energy more efficiently, and migraine-prone brains seem to benefit from higher-than-normal amounts. In clinical settings, 400 mg of riboflavin daily cut headache frequency from 4 days per month to 2 days per month over a 3- to 6-month period. That’s a level difficult to reach through food alone, but dietary riboflavin still contributes to your overall intake and supports the same energy pathways.

The richest food sources include beef liver, fortified cereals, eggs, lean beef, mushrooms, and dairy products like yogurt and milk. If you’re considering a supplement to reach the 400 mg threshold used in studies, riboflavin is water-soluble, meaning your body excretes what it doesn’t use rather than storing it, which makes high doses relatively safe for most people.

Ginger

Ginger has surprisingly strong evidence behind it. A randomized clinical trial of 100 migraine patients compared ginger powder head-to-head with sumatriptan, one of the most commonly prescribed migraine medications. Two hours after treatment, both groups experienced a significant and statistically comparable reduction in headache severity. Ginger produced fewer side effects and similar patient satisfaction scores.

Fresh ginger, ginger tea, and ground ginger in cooking all count. While the study used a concentrated powder form, regularly incorporating ginger into your diet gives you a low-risk tool that may help blunt an attack when one starts.

Low-Glycemic Foods for Blood Sugar Stability

Blood sugar crashes are a well-known migraine trigger, and the mechanism involves more than just feeling hungry. Spikes in insulin can increase levels of CGRP, a protein directly involved in migraine pain signaling. When blood sugar rises sharply and then drops, it creates a neurochemical environment that lowers your threshold for an attack.

A low-glycemic eating pattern keeps blood sugar steady by favoring carbohydrates that digest slowly. The best options include lentils, chickpeas, whole grains like oats and barley, bran cereals, peas, and carrots. Pairing carbohydrates with protein or fat at every meal slows digestion further. If you notice that skipping meals or eating sugary foods tends to precede your migraines, this is one of the most actionable changes you can make.

Hydration

Dehydration lowers your pain threshold. Brain imaging studies on dehydrated subjects show heightened activation in pain-processing networks and reduced tolerance to painful stimuli compared to the same people in a well-hydrated state. When your body loses too much water, the brain can physically contract slightly and pull on pain-sensitive membranes surrounding it, which may directly trigger headache.

Aiming for 2 to 3 liters of water per day is a reasonable target for most adults. Electrolytes matter too: potassium-rich foods like bananas, avocados, and sweet potatoes, along with adequate salt intake, help your body retain the water you drink rather than simply flushing it through. If your migraines tend to occur on days when you’ve been busy and forgot to drink, consistent hydration may be the simplest intervention available.

CoQ10 From Food

Coenzyme Q10 is a compound your cells use to generate energy, and supplementing with it has shown promise for reducing migraine frequency and duration. The catch with food sources is that while meat, fish, and nuts all contain CoQ10, the amounts are generally too small to replicate what’s used in supplement studies. It typically takes about three months of consistent supplementation before people notice a difference.

That said, organ meats (especially heart and liver), sardines, mackerel, peanuts, and broccoli are among the richer dietary sources. Even if food alone won’t deliver a therapeutic dose, these foods overlap heavily with other migraine-friendly nutrients like omega-3s and magnesium, making them smart additions regardless.

Putting It Together

The most effective dietary approach to migraines isn’t about any single food. It’s a pattern: high in magnesium and omega-3s, low in processed vegetable oils and refined sugar, built around whole foods that keep blood sugar stable, and supported by consistent hydration. A day that includes pumpkin seeds or almonds as a snack, salmon or sardines at one meal, plenty of vegetables and lentils, some ginger in your cooking, and 2 to 3 liters of water covers most of the evidence-backed bases. These changes won’t replace medical treatment for severe or chronic migraines, but for many people they meaningfully reduce how often attacks occur and how intense they feel.