What Is a Migraine Diet? Foods That Help or Hurt

A migraine diet is an eating approach designed to reduce the frequency and severity of migraine attacks by avoiding known food triggers, stabilizing blood sugar, and emphasizing nutrients that calm inflammation in the brain. There isn’t one single “migraine diet” that works for everyone. Instead, the term covers a set of dietary strategies, from simple trigger avoidance to structured elimination protocols, that you can tailor to your own patterns.

Common Food Triggers

Certain foods and additives show up repeatedly as migraine triggers, though sensitivity varies widely from person to person. The most frequently reported culprits include aged cheeses, cured meats (like hot dogs, bacon, and salami), red wine, chocolate, and foods containing MSG. Fermented and pickled foods also make the list.

The tricky part is that not every trigger affects every person, and the connection isn’t always obvious. A food might only provoke an attack when combined with other factors like poor sleep, stress, or hormonal changes. This is why blanket avoidance of every possible trigger food isn’t the best starting point for most people. A more targeted approach, like an elimination diet, tends to be more useful.

How Histamine Plays a Role

Some migraine sufferers are particularly sensitive to histamine, a compound found naturally in many foods. Blood histamine levels are significantly higher in people with migraines than in those without, and levels spike even further during an active attack. Histamine acts on the central nervous system in ways that can trigger the heightened skin sensitivity and light sensitivity characteristic of migraines.

High-histamine foods include aged cheese, fermented vegetables like sauerkraut, smoked fish, cured meats, vinegar, and alcoholic beverages (especially red wine and beer). Some people have reduced activity of diamine oxidase, the enzyme responsible for breaking down histamine from food. For these individuals, a low-histamine diet can make a noticeable difference. If you suspect histamine is a factor, keeping a food diary alongside a headache log for several weeks can help you spot the pattern before committing to broader dietary changes.

The Elimination Diet Approach

An elimination diet is the most systematic way to identify your personal triggers. The process works in two phases. First, you remove all suspected trigger foods for four to six weeks while monitoring whether your migraine frequency improves. Then you slowly reintroduce each food group one at a time, watching for any return of symptoms. Once you identify the specific food that provokes attacks, you eliminate that item long-term while keeping the rest of your diet intact.

This method takes patience, but it prevents you from unnecessarily restricting foods that aren’t actually a problem for you. Many people discover they only have one or two real dietary triggers rather than the long list they feared.

Blood Sugar and Meal Timing

Skipping meals is one of the most consistent and well-documented migraine triggers. When you miss a meal, particularly breakfast, your blood sugar drops. That drop triggers the release of stress hormones like cortisol and adrenaline, which increase the excitability of neurons in the brain and can set off a migraine. The majority of research on irregular eating patterns points to this low blood sugar mechanism as a reliable trigger.

The practical takeaway is straightforward: eat at regular intervals throughout the day and don’t skip breakfast. You don’t need to follow a rigid schedule, but going more than four or five hours without eating during the day is worth avoiding. Choosing meals that combine protein, fat, and complex carbohydrates helps keep blood sugar stable between meals, rather than relying on simple sugars that cause a spike followed by a crash.

Caffeine: A Double-Edged Sword

Caffeine has a uniquely complicated relationship with migraines. In small amounts, it can actually help relieve headache pain, which is why it’s included in some over-the-counter pain medications. But regular intake above 200 mg per day (roughly two standard 8-ounce cups of coffee) is associated with increased migraine risk. And if you regularly consume more than 200 mg daily for two or more weeks, suddenly stopping can trigger a withdrawal headache on its own.

The safest approach for migraine sufferers is to keep daily caffeine below 200 mg and, critically, to keep your intake consistent from day to day. The pattern of drinking three cups on weekdays and none on weekends is a classic setup for weekend migraines. If you want to reduce your intake, taper gradually over a week or two rather than quitting abruptly.

Hydration Matters More Than You Think

Even mild dehydration lowers your pain threshold. Brain imaging studies show that dehydrated people have heightened activation in the brain’s pain-processing networks compared to when they’re well-hydrated. The prevailing theory is that inadequate fluid intake causes the brain to lose a small amount of volume, pulling on the pain-sensitive membranes and blood vessels surrounding it. While these imaging studies were conducted in healthy adults, the implication for migraine sufferers is clear: if dehydration amplifies pain signaling in a normal brain, it likely lowers the threshold for triggering an attack in a migraine-prone one.

There’s no magic number for daily water intake, but paying attention to urine color (pale yellow is the goal) and drinking consistently throughout the day, rather than trying to catch up all at once, is a practical strategy.

Omega-3 Fats and Inflammation

One of the strongest pieces of dietary evidence for migraine prevention comes from a randomized controlled trial published in The BMJ. Participants who increased their omega-3 fatty acid intake (from fish like salmon, sardines, and mackerel) to 1.5 grams per day while simultaneously reducing omega-6 fatty acids (found in vegetable oils like corn, soybean, and sunflower oil) experienced the greatest reduction in headache days per month. The group that boosted omega-3s while also cutting omega-6s saw two fewer headache days per month compared to the group that only increased omega-3s, suggesting that both changes together matter more than either one alone.

In practical terms, this means eating fatty fish two to three times a week, cooking with olive oil instead of seed oils, and reducing processed and fried foods, which tend to be high in omega-6 fats. This isn’t about achieving a precise ratio. It’s about shifting the overall balance of your diet toward more anti-inflammatory fats and fewer pro-inflammatory ones.

The Ketogenic Diet Option

A ketogenic diet, which is very low in carbohydrates and high in fat, has shown promising results for migraine prevention. In one clinical study, patients following a ketogenic diet saw their monthly headache days drop from an average of 12.5 to 6.7. Nearly 65% of participants experienced at least a 50% reduction in headache days, and their use of acute pain medication dropped significantly as well. The diet likely works through multiple pathways: stabilizing blood sugar, reducing inflammation, and altering brain energy metabolism.

That said, a ketogenic diet is restrictive and difficult to maintain long-term. It’s worth considering if other dietary approaches haven’t helped and you’re motivated to try something more intensive, but it’s not a necessary first step for most people.

Supplements That Support a Migraine Diet

Certain nutrients play a direct role in migraine prevention, and dietary intake alone sometimes falls short. Magnesium is the best-studied supplement for migraines. The American Migraine Foundation notes that magnesium oxide at 400 to 600 mg per day is commonly used for prevention. Many migraine sufferers have lower magnesium levels than average, and magnesium-rich foods like dark leafy greens, nuts, seeds, and whole grains are worth emphasizing in your diet regardless of whether you supplement.

Riboflavin (vitamin B2) and CoQ10 are two other supplements with evidence supporting their use in migraine prevention, though they work best as part of a broader dietary strategy rather than as standalone fixes.

Putting It All Together

A migraine diet doesn’t require overhauling everything you eat at once. The highest-impact starting points are eating regular meals (especially breakfast), staying hydrated, keeping caffeine under 200 mg per day, and increasing omega-3 rich foods while reducing processed vegetable oils. From there, if you suspect specific food triggers, a structured elimination diet over four to six weeks gives you the clearest answers. Supplements like magnesium can fill nutritional gaps. More intensive approaches like a ketogenic or strict low-histamine diet are reasonable next steps if simpler changes don’t provide enough relief.