Migraine and Diet: Triggers, Foods That May Help, and What to Know

Diet does not cure or fully prevent migraine, but it can help reduce how often and how severely attacks strike. The strongest evidence is for regular meals, enough water, and supports like magnesium, riboflavin (B2), and omega-3. Triggers are personal; aged cheese, red wine, processed meat, and caffeine withdrawal are common ones. The most practical way to find your own triggers is keeping a migraine diary for a few weeks. Diet stands alongside the medication your neurologist prescribes, never in place of it.

The sentence I hear most from clients who live with migraine is, "So something I ate must have set it off." Sometimes they are right, often they are not. Migraine is a complex neurological disorder, and food is only one piece of the picture; sleep, stress, hormones, and weather shifts pull as much weight as any meal. The biggest mistake I see in my clinical work is people hunting for one universal "forbidden list." The chocolate that puts one person in bed does nothing to the next. What follows is an honest look at the real link between food and migraine, the common triggers and how they work, the role of hunger and dehydration, foods that may help, the evidence for magnesium, riboflavin, and omega-3, how to keep a food diary, the gut-brain connection, and when you need to see a doctor.

An honest frame comes first, because the internet is full of oversold diet promises about migraine. Migraine is a neurological disorder triggered in a genetically primed brain when various inputs push past a threshold; it is not simply a disease of "wrong eating." Food is one of those inputs, and for most people it is not even the single strongest trigger on its own. Research shows that dietary changes can noticeably cut attack frequency in some patients, but it would be wrong to guarantee that; some people keep a flawless diet and still get attacks. The healthiest expectation runs like this: diet is a way to lighten the trigger load and nudge the threshold higher, not a magic shield. The distinction worth fixing in your mind is between "prevention" and "reduction." A good plate will not zero out a migraine; yet regular meals, enough water, and balanced mineral intake can raise the brain's trigger threshold a little and head off some attacks before they start. With my clients I put it this way: treat food not as a treatment but as the ground that supports what the medication does. Never swap the preventive (prophylactic) or acute drug your neurologist prescribed for a diet change; the two do different jobs and do not replace each other.

Foods and Drinks That Can Trigger Migraine

The most confusing thing about triggers is how deeply personal they are. The aged cheese that floors one client produces nothing in another, which is why ready-made "migraine ban lists" are often misleading and restrict eating for no reason. Even so, in research and clinical observation certain foods and drinks come up far more often than the rest. What they tend to share is a specific chemical load: tyramine, nitrates, glutamate, or caffeine. The table below sums up the most commonly reported triggers and the likely mechanism behind each; read it not as a ban list but as a list of suspects to test against your own diary.

Trigger Example sources Likely mechanism
Tyramine Aged cheese (mature cheddar, parmesan, blue cheese), red wine An amine that affects vessel tone and neurotransmitter release; rises in aged and fermented foods
Nitrates and nitrites Processed meat: salami, sausage, hot dogs, cured ham Compounds that can widen blood vessels and set off headache in sensitive people
Monosodium glutamate (MSG) Some instant soups, seasoning blends, packaged snacks Linked in a subset of people to headache and a feeling of pressure
Aspartame Diet sodas, sugar-free gum and sweeteners An artificial sweetener reported to raise attack frequency in some patients
Caffeine Coffee, tea, cola, energy drinks A small amount can ease pain; suddenly stopping a regular high intake causes withdrawal headache
Chocolate Dark and milk chocolate, cocoa Often blamed; debatable whether a craving before an attack is an early warning sign or a real trigger
Alcohol Red wine especially, also beer and spirits Vessel widening, fluid loss, and the amines it carries act together

Two points are worth keeping in mind as you read the table. First, as with the chocolate example, what we take for a "trigger" is sometimes the early sign of the attack itself: in the hours before a migraine the brain can create a craving for sweets, the person eats chocolate, and when the pain arrives they blame the chocolate. Second, banning a food for life after one bad day is usually unfair; a real trigger only shows up as a repeating pattern, meaning the same food followed by an attack again and again.

Skipping Meals, Dehydration, and Blood Sugar

While many people fixate on the foods they eat, they miss the truly powerful trigger: not eating. The most common and most easily fixed migraine cause I see in clinic is skipping meals. Going hungry for a long stretch drops blood sugar, and a falling blood sugar is a known trigger for a migraine-prone brain; afternoon headaches are common in people who skip breakfast and eat nothing until noon, or who push lunch aside on busy days. The fix is not complicated: plan meals at regular intervals without leaving long hunger gaps. If three full meals feel heavy, small balanced snacks in between help keep blood sugar steady; a snack with some protein and fiber holds sugar more evenly than a sweet on its own. Dehydration is just as sneaky a trigger as hunger. When the body runs short on fluid, headache is one of the early warnings, and in migraine-prone people it can launch a full attack. For someone who forgets to drink water all day, runs on coffee, or sweats in hot weather without replacing it, the first simple step is to fix the dehydration. Before reaching for a medication suggestion, I often ask clients one thing: how many meals did you eat today, and how much water did you drink? The answer usually explains half the picture.

Would you like to receive professional diet counseling?

Yes, I Do

Foods That May Help (and What to Eat When Nauseous)

Avoiding triggers is one side of the coin; building the plate in a protective direction is the other. No single food counts as a "cure" for migraine, but there is an eating pattern that supports the brain's trigger threshold. A plate built mostly on vegetables, fruit, whole grains, legumes, and healthy fats, with little processed food, both steadies blood sugar and naturally supplies migraine-linked nutrients like magnesium, riboflavin, and omega-3. Leafy greens, nuts, seeds, and legumes are rich in magnesium; oily fish offers omega-3; whole grains keep blood sugar slow and stable. Drinking plenty of water and eating at regular times form the backbone of this pattern.

During an attack the rules change, because migraine usually comes with nausea and a loss of appetite. No one can think about building a healthy plate while in pain; the goal then is not nutrition but staying upright without upsetting the stomach. For someone who is nauseous I usually suggest plain, light options: crackers, dry bread, banana, plain rice, or boiled potato, the kind of easily digested foods that do not irritate the stomach. Ginger is a natural option worth trying that can help calm nausea; ginger tea or a piece of fresh ginger brings relief for some people. Sipping water during an attack matters too, because if there is vomiting, fluid loss makes everything worse. Fiber and fluid balance that keep bowel movements regular indirectly support general well-being, since constipation and irregular digestion make some people feel worse. In short, migraine eating has two modes: protective and balanced between attacks, plain and stomach-friendly during one.

Magnesium, Riboflavin (B2), and Omega-3

The three nutrients tied most closely to migraine are magnesium, riboflavin, and omega-3, because for these three there is a tidier body of evidence than for the rest. A caution first: the doses below come from preventive (prophylactic) studies and are at a supplement level, meaning amounts taken from a pill or powder rather than from food. Talk to your neurologist or doctor before starting any of them on your own; this matters especially if you take other medication or have a kidney problem. Magnesium is the most studied mineral in migraine prophylaxis; at doses around 300 to 600 mg a day there is data that it can reduce attack frequency, particularly in people with aura. Magnesium is thought to play a role in steadying nerve excitability and vessel tone in the brain.

A low-magnesium state is known to raise migraine susceptibility; the signs of a magnesium deficiency and how to address it through food deserve a section of their own. Riboflavin, or vitamin B2, takes part in producing energy inside the cell; studies using high doses around 400 mg a day have reported fewer attacks, though the effect takes weeks, sometimes a few months, to appear, so it calls for patience. Omega-3 fatty acids (EPA and DHA) draw interest in migraine because they relate to inflammation and vessel health; some studies show that an omega-3-rich diet can cut the number of headache days. Understanding what omega-3 does and at what dose it carries meaning is important for anyone considering a supplement. The shared lesson from all three is the same: none is a miracle alone, but in the right person they can be a meaningful support alongside medication.

Finding Your Triggers: A Migraine Food Diary

The most practical and most honest way to find your own triggers is not guessing but record-keeping. A migraine diary works where memory fails us, because the human brain looks back after an attack, hunts for a random culprit, and often points at the wrong food. A simple log kept for a few weeks reveals the real pattern. What goes in the diary is fairly plain: what you ate and drank each day, meal times, your sleep pattern, stress level, the day of the menstrual cycle for women, the weather, and any attack, with its time, severity, and how long it lasted.

Looking back after a few weeks, patterns where you can say "every time, after the same thing" come into focus; you might notice attacks always follow sleepless nights, or always come 12 to 24 hours after a certain food. The critical point here is timing: triggers sometimes act not instantly but hours later, so looking only at what you ate at the moment of the attack is not enough. If interpreting the diary alone gets hard, going through it with a professional makes it easier; to sift out the true triggers and adjust your diet without needlessly banning whole food groups, getting online dietitian support can be a sensible step. The aim is to shorten the list, not lengthen it: find the few things that genuinely affect you and eat the rest with ease.

Personalized online diet program. Start now!

Book Online

The Gut-Brain Axis and Migraine

A growing area of research looks at the link between the gut and migraine, the so-called gut-brain axis, the two-way line of communication between the digestive system and the brain. Several observations feed this interest. People with migraine more often report digestive complaints such as irritable bowel syndrome, reflux, or recurring nausea, which hints that the two systems are not working in isolation. The gut microbiome, the community of bacteria living in the intestine, takes part in inflammation, the breakdown of certain food compounds, and signaling molecules that reach the brain, and shifts in this community may relate to how susceptible someone is. A practical thread runs through it: a diet rich in fiber, vegetables, and fermented foods supports a healthier microbiome and steadier digestion, which sits comfortably with the same pattern that helps migraine in general. Keep the honesty here, though: this is an emerging field, the picture is far from settled, and no probiotic or "gut diet" has earned the status of a migraine treatment. The reasonable takeaway is that caring for gut health through whole foods fits the broader migraine-friendly pattern, rather than acting as a cure on its own. If digestive symptoms are prominent alongside your migraines, that pairing is worth raising with your doctor rather than self-treating.

When to See a Doctor or Neurologist

Diet is a supporting part of migraine care, but some situations call for direct, unhurried medical evaluation, and knowing them can be vital. The most severe, "thunderclap" headache of your life, exploding suddenly, is a warning to go to the emergency room without waiting. If a headache comes with fever and a stiff neck, confusion, slurred speech, weakness in an arm or leg, drooping on one side of the face, double vision, or fainting, these can signal serious non-migraine conditions and need urgent assessment. Headaches that start after a head injury, a first-ever headache after age 50, a pattern that keeps getting more frequent or more severe, painkillers that no longer work, and new severe headaches arising in pregnancy are all reasons to consult a doctor. None of these are pictures you can call "solved by diet." Diagnosing migraine, arranging preventive and acute drug treatment, and ordering imaging when needed are the neurologist's job; diet is a layer added on top of that plan to strengthen it. Even for someone with long-standing, regular migraine, a change in the character of the attacks calls for a fresh medical review.

Help and Support (Important Note)

The information here is for general guidance and does not replace personalized medical advice. Migraine is a neurological disorder; its diagnosis and drug treatment are handled by a doctor, especially a neurologist. Dietary changes can help reduce attack frequency and severity in some people, but they do not replace the prescribed preventive or acute medication; do not stop or change your medication on your own. For headaches that are new, that change in character, or that carry the danger signs listed above, see a doctor without delay. To sift out your triggers without needless restriction and build a balanced diet that fits you, you can get online dietitian support.

Sources

Frequently Asked Questions

Triggers vary from person to person. Frequently reported ones include tyramine in aged cheese and wine, nitrates in processed meats like salami and sausage, MSG in packaged foods, aspartame in diet drinks, chocolate and excess caffeine. Not everyone reacts to the same item, so keeping a migraine diary is the most reliable way to build your own list.
Tyramine is a natural compound that forms as protein foods age or ferment. Levels are high in aged cheddar, blue cheese, red wine and long-stored meats. In sensitive people it can shift blood vessel tone and set off an attack. Eating foods fresh and avoiding long refrigerator storage helps lower this load.
Both are possible. A small amount of caffeine can narrow vessels and ease pain in some attacks, but more than 2-3 cups a day or suddenly stopping your usual dose causes withdrawal headaches. Consistent, moderate intake is safer than quitting cold over a weekend. Keeping the amount steady prevents the swings that provoke pain.
Yes, hunger and a sharp drop in blood sugar are common triggers. Instead of going long stretches without eating, a balanced snack every 3-4 hours keeps blood sugar stable. Meals with protein, fiber and healthy fat extend fullness. Not skipping breakfast can noticeably lower the risk of an attack later in the day.
Magnesium deficiency is linked to migraine, and studies suggest supplements may help reduce attack frequency. A commonly used range is 300-600 mg a day, though it can cause diarrhea, so confirm the dose with your doctor. Spinach, almonds, pumpkin seeds and legumes are natural sources. For more, see our magnesium deficiency article.
Research suggests riboflavin at 400 mg a day, taken regularly for several months, may help lower attack frequency. The effect builds slowly, so do not expect immediate results. Dairy, eggs and leafy greens are natural sources. Talking to your doctor before starting a high-dose supplement is the sensible step.
Dehydration is a known trigger, and low fluid intake can worsen pain. Sipping water steadily through the day and keeping urine pale is a simple but effective safeguard. Coffee and alcohol act as diuretics, so they create extra water needs. Carrying a bottle makes it easier to drink before thirst even sets in.
Some data suggest omega-3 from sources like salmon, sardines and walnuts may balance the inflammatory response and ease attack severity. Two servings of oily fish a week is a reasonable target. Do not expect a miracle on its own; treat it as part of a balanced diet. If you are considering a supplement, discuss it with your doctor.
No. Dietary changes do not prevent or treat attacks and are not a substitute for medication. What they can do is reduce triggers and add protective nutrients, which may contribute positively to attack frequency. If your migraines are frequent and severe, neurology follow-up and medication when needed are essential. Diet supports that treatment rather than replacing it.
Triggers are personal, and relying on memory is misleading. When you note what you eat, your sleep and stress, and the timing of attacks for a few weeks, patterns become clear. You can then test suspect foods one by one to pin down your real trigger. This record gives you and your doctor concrete data to personalize treatment.
Dyt. Şeyda Ertaş

Dyt. Şeyda Ertaş

Expert Author

Dietitian & Nutrition Specialist

BSc in Nutrition and Dietetics, Hacettepe University. Over 7 years of professional experience guiding 2000+ clients toward healthier lives through science-based nutrition.

View Profile

Free Pre-Application

This is a pre-application. No credit card required, payments determined after consultation.

KVKK & GDPR compliant SSL encrypted Reply within ~4 hours

Application Received!

Your message has been sent successfully. We will contact you soon.

Working Hours

Monday - Friday: 09:00 AM - 6:00 PM
Saturday: 10:00 AM - 2:00 PM
Sunday: Closed

Applications received outside working hours or on holidays will be responded to on the next business day.

Have an urgent matter?