Download on the App Store
Back to blog

Migraine and Food: Which Foods Trigger or Protect Against Attacks?

10 min
migrainefoodtyraminehistaminetriggers

If you're searching "foods to avoid for migraine" or "what triggers my migraines," food shows up quickly in your investigation. And for good reason: roughly 20-30% of migraine sufferers identify at least one food trigger in their attacks.

But the topic is tricky. Many lists circulate online, mixing real, documented triggers, persistent myths (chocolate...) and confusion with the premonitory symptoms of an oncoming attack (the sugar cravings).

This article gives you the precise list of foods that actually trigger migraines, explains the biochemical mechanisms involved (tyramine, histamine, nitrites, MSG), and most importantly gives you a rigorous method to identify YOUR personal triggers — because they vary dramatically from person to person.

The trap of "universal trigger foods"

First, an important warning: there's no universal "anti-migraine diet."

Clinical studies show that fewer than 30% of migraineurs have identifiable food triggers. And among those who do, the foods involved vary strongly between individuals. Red wine triggers attacks for some people, not for others. Chocolate is a myth for most, a real trigger for some.

The classic trap: cutting out 15 different foods "just in case," depriving yourself unnecessarily, and missing the actual trigger (which might be something completely different: sleep, stress, hormones).

The right approach: identify YOUR triggers through tracking, not by following generic lists.

Chocolate: trigger or premonitory symptom?

The most stubborn myth. Many migraineurs say "I eat chocolate → I get a migraine a few hours later." Conclusion: chocolate triggers migraines.

The scientific reality is more nuanced. Several double-blind studies (placebo vs. chocolate) have shown that chocolate does NOT trigger attacks in most migraineurs. So why this persistent association?

Because sugar cravings are part of the prodrome phase of an attack. 6 to 24 hours before the headache, your migraine-prone brain enters the prodrome phase. Possible symptoms: irritability, fatigue, intense craving for sugar or chocolate, yawning, stiff neck.

So you eat chocolate because a migraine is already on the way, not the other way around. Chocolate is the consequence, not the cause.

That said, for some people, chocolate is a real trigger (probably via beta-phenylethylamine or tyramine in fermented cocoa). Hence the importance of individual tracking.

Our article on the phases of a migraine details the prodrome phase and its typical symptoms.

The actually documented food triggers

Here are foods actually documented as triggers in some migraineurs. Important: they don't trigger everyone, and the effect is often dose-dependent.

1. Tyramine

The most solidly documented food trigger. Tyramine is a natural compound that forms when protein-rich foods age, ferment, or are stored.

Foods high in tyramine:

  • Aged cheeses: cheddar, blue cheese, Stilton, Camembert, Swiss, feta, Parmesan, Roquefort
  • Cured meats: salami, pepperoni, dry sausages, aged ham, prosciutto
  • Smoked or fermented fish: pickled herring, smoked salmon, anchovies, caviar
  • Some alcoholic drinks: red wine (especially), beer, sparkling wines
  • Fermented vegetables: sauerkraut, kimchi, pickles
  • Chocolate (moderate, depends on individuals)
  • Yeast extracts (Marmite, Vegemite, brewer's yeast)

Lower-tyramine alternatives (better tolerated): fresh dairy products (yogurt, cottage cheese, cream cheese), fresh meats, mild non-aged cheeses (American, ricotta).

Important detail: tyramine content increases as food ages, even in the fridge. So avoid leftovers that have been stored for several days, and don't eat foods that have been left at room temperature for a long time at parties or in offices.

2. Histamine

Compound involved in inflammatory reactions. Naturally present in some foods, especially fermented or aged ones.

Foods high in histamine:

  • Wines (especially red, but also white and rosé), beer, champagne
  • Aged cheeses
  • Cured meats
  • Fish: tuna, mackerel, sardines (especially canned)
  • Tomatoes and derivatives (tomato sauce, ketchup, paste)
  • Eggplant, spinach
  • Dried fruits: raisins, prunes
  • Overripe avocado

Special case of histamine intolerance: some people have a deficient DAO (diamine oxidase, the enzyme that breaks down histamine), making them particularly sensitive. Typical symptoms: migraines, hives, bloating, runny nose.

3. Nitrites and nitrates

Food preservatives used notably in processed cured meats. Cause cerebral vasodilation that can trigger an attack in sensitive people. Sometimes called the "hot dog headache" in research literature.

Foods involved:

  • Processed cured meats: hot dogs, bacon, deli meats (ham, bologna, salami), corned beef
  • Industrial smoked meats
  • Some water sources very high in nitrates
  • Naturally present in celery, beets, spinach, lettuce (but generally less problematic than processed meat sources)

Look for "nitrate-free" or "uncured" labeling at the grocery store if this is a known trigger for you.

4. Monosodium glutamate (MSG / E621)

Flavor enhancer added to many processed foods. Its reputation in migraine is old (the famous "Chinese restaurant syndrome" described in the 1960s-70s) and remains partially scientifically controversial, but documented in sensitive subjects.

Foods involved:

  • Processed prepared foods: instant soups, frozen meals, ready-made sauces
  • Some restaurant cuisines (especially fast-casual Asian, depending on the restaurant)
  • Salty snacks: flavored chips, crackers, bouillon cubes
  • Industrial sauces: soy sauce, teriyaki, oyster sauce
  • Sometimes labeled as: hydrolyzed yeast, autolyzed yeast, hydrolyzed protein, "natural flavor enhancer"

MSG is also naturally present in tomatoes, Parmesan, certain mushrooms. But it's the added, concentrated version in processed products that causes problems.

5. Aspartame

Artificial sweetener present in most "diet" or "zero" products. Documented as a trigger in roughly 8% of migraineurs in some studies. Both the Mayo Clinic and the American Migraine Foundation list aspartame as a possible trigger.

Foods involved:

  • Diet sodas, zero/sugar-free drinks
  • Sugar-free candies, sugar-free gum
  • Light yogurts with sweetener
  • Sweetened supplements

6. Caffeine: trigger AND protector (depending on dose)

Special case. Caffeine has a paradoxical double effect:

  • At low doses (a coffee at the start of an attack), it can relieve migraines by acting on cerebral blood vessels
  • At chronically high doses (>3-4 cups/day), it can trigger migraines
  • Caffeine withdrawal: a sudden drop (Saturday morning without your usual coffee = classic weekend migraine)

Our article on stress and migraines explains the caffeine withdrawal mechanism and weekend migraines.

7. Alcohol

One of the most universally recognized triggers. Multiple mechanisms are involved:

  • Direct vasodilation by ethanol
  • Histamine in wines and beers
  • Tyramine in beers and red wines
  • Sulfites added (especially in white wines)
  • Dehydration caused by alcohol

Probable hierarchy of alcoholic triggers (highest to lowest risk):

  1. Red wine (top trigger)
  2. Beer (especially craft beer, high in histamine)
  3. Sparkling wines and champagne
  4. White wine
  5. Clear spirits (vodka, gin) — generally less triggering

"Triggers" that aren't actually triggers

Some foods often blamed without strong evidence:

  • Chocolate (see above, most often it's the prodrome)
  • Citrus fruits: very little solid scientific evidence
  • Bananas: same
  • Eggs: no clear mechanism
  • Gluten: unless you have actual celiac disease or wheat allergy, gluten is not a documented migraine trigger
  • Fresh dairy products: rarely triggers (lactose intolerance doesn't directly cause migraines)

Many of these "triggers" come from hasty causal associations or commercial diets that haven't been scientifically validated for migraine.

The underrated factor: fasting and dehydration

More important than the list of foods to avoid for many migraineurs:

Skipping a meal

Probably the most powerful food-related trigger for many migraineurs. The blood sugar drop from a skipped meal or a long gap between meals can trigger an attack within hours.

Practical rule: don't go more than 4-5 hours without eating during the day. If you're going out, bring a snack (dried fruit, nuts).

Dehydration

Even mild dehydration (2% of body weight) can trigger an attack. Aim for 64 oz (2 liters) of water per day, more in heat or with physical activity.

Signs of dehydration: dark urine, thirst, fatigue, decreased concentration. If you're thirsty, you're already starting to dehydrate.

Protective foods: what works

On the flip side, certain nutrients have demonstrated effects in preventing migraines.

Magnesium

The most solidly documented preventive nutrient. Magnesium deficiency is more common in migraineurs than in the general population. Supplementation at 300-600 mg/day reduces attack frequency in roughly 40% of supplemented migraineurs (per various studies).

Foods rich in magnesium:

  • Nuts: almonds, cashews, hazelnuts, Brazil nuts
  • Seeds: pumpkin, sunflower, flax, sesame
  • Legumes: lentils, beans, chickpeas
  • Leafy greens: spinach (cooked, to reduce histamine), broccoli, kale
  • Dark chocolate (>70%) — paradox: rich in magnesium but also in tyramine
  • Magnesium-rich mineral waters

Omega-3 fatty acids

Anti-inflammatory effect that can reduce attack frequency. Recent studies are promising.

Foods rich in omega-3:

  • Fatty fish: sardines, mackerel, salmon (prefer wild-caught)
  • Oils: flaxseed oil, canola oil, walnut oil
  • Chia seeds, ground flaxseeds
  • Walnuts

Vitamin B2 (riboflavin)

At high doses (400 mg/day), it has shown documented preventive effects in multiple studies. It's a Level B recommendation from the American Academy of Neurology.

Found in: organ meats, eggs, dairy products, almonds, leafy greens. But to reach clinically useful doses, supplementation is generally needed (with medical guidance).

Coenzyme Q10

Moderate preventive effect documented at 100-300 mg/day. Useful as a complement to magnesium.

The method to identify YOUR food triggers

Step 1 — Track for 4-6 weeks minimum

Eat normally, without eliminating anything. Log:

  • All your meals (time, contents, approximate quantities)
  • All your attacks (start time, duration, intensity)
  • Time gap between meals and attacks
  • Other contributing factors: sleep, stress, hormones, weather

Step 2 — Look for patterns

After 10-15 tracked attacks, look for recurrences:

  • Is there a food that shows up in the 24 hours before 70%+ of your attacks?
  • Is there a recurring combination (red wine + cheese + delayed meal, for example)?
  • Is the suspected trigger dose-dependent?

Step 3 — Targeted elimination test

Identify 2-3 suspects maximum. Not 15. Eliminate them completely for 4 weeks, while continuing to track.

If your attacks decrease significantly → one of these foods is probably a trigger. Reintroduce one at a time, spaced 2 weeks apart, to identify which one.

If no improvement → your triggers probably aren't food-related (or not these foods).

Step 4 — Long-term adjustment

Adopt a targeted avoidance of the confirmed trigger foods only. No global restrictive diet.

Our article on how to identify your migraine triggers details the complete method, applicable to all types of triggers (not just food).

Why a precise diary changes everything

Most migraineurs who try to identify their food triggers fail because they:

  • Rely on memory (distorted after an attack)
  • Suspect a single food instead of tracking everything
  • Confuse prodrome and trigger (chocolate before the attack)
  • Look for a single trigger when there's often a combination

With precise, systematic tracking over several weeks, you get statistical data on your own patterns, not impressions.

That's exactly what we built Mellow for: track your attacks and meals in seconds, automatically cross-reference the data, and let the patterns that actually concern you emerge. Instead of unnecessarily depriving yourself of 15 foods just in case, you identify the 2-3 actual culprits.


Sources

Mayo Clinic — Migraines: Are they triggered by weather changes? and Headaches: Diet. mayoclinic.org

American Migraine Foundation — Top 10 Migraine Triggers and How to Deal with Them. americanmigrainefoundation.org

The Migraine Trust — Migraine and diet. migrainetrust.org

National Headache Foundation — Low-Tyramine Diet for Individuals with Headache or Migraine. headaches.org

Association of Migraine Disorders — Migraine Triggers. migrainedisorders.org

WebMD — Tyramine and Migraines. webmd.com

Cleveland Clinic — Migraine Headaches. my.clevelandclinic.org

NHS — Migraine: Causes. nhs.uk

Related articles