Migraine is not just a bad headache; it is a complex neurological condition affecting about 14 to 15% of people worldwide1, characterized by recurrent, disabling attacks involving cortical spreading depression and activation of the trigeminal pain pathway. Nutrition has a supporting role in migraine prevention.
Last updated:
Migraine is a neurological disorder characterized by recurrent episodes of moderate-to-severe headache, typically unilateral, pulsating, aggravated by physical activity and accompanied by nausea, vomiting and sensitivity to light and sound. Episodes last 4 to 72 hours and can be completely disabling.
The pathophysiology involves cortical spreading depression (CSD), a wave of abnormal electrical activity across the brain cortex, followed by activation of the trigeminal pain pathway and release of CGRP (calcitonin gene-related peptide), the primary neuroinflammatory molecule responsible for migraine pain.
Migraine is more common in people with IBS and some other gut conditions, and research into the gut-brain connection is active, but a causal role for the gut microbiome has not been established.
The most common type. Recurrent unilateral, throbbing headache with nausea and light/sound sensitivity. No preceding neurological warning symptoms. Often worse with physical movement, bright light or noise. Requires quiet, dark rest for recovery.
Defined as β₯15 headache days/month for 3+ months, with β₯8 meeting migraine criteria. Often develops from episodic migraine through neuroplastic changes and medication overuse. More disabling than episodic migraine; overuse of acute medication is a common contributor2.
Understanding the four phases of a migraine attack, and identifying personal triggers, is the cornerstone of effective management6.
| Symptom | What happens |
|---|---|
| The Four Phases of Migraine | |
| Prodrome (1 to 2 Days Before) | Early warning signs: food cravings (especially for carbohydrates), yawning, neck stiffness, mood changes (depression or euphoria), increased thirst and urination, fatigue, cognitive slowing. Recognizing prodrome allows early intervention before the headache phase begins. |
| Aura (20 to 60 Minutes) | Transient focal neurological symptoms: visual (scintillating scotoma, fortification spectra, visual loss), sensory (tingling or numbness spreading from fingertips to face), speech (dysphasia) or motor (weakness). Each symptom typically spreads gradually, distinguishing aura from a mini-stroke (TIA), which strikes suddenly. |
| Headache Phase (4 to 72 Hours) | Severe, throbbing headache, often on one side, with nausea or vomiting and strong sensitivity to light and sound3; some people are also sensitive to smells. Worsened by physical activity, bending forward, coughing. Requires rest in a dark, quiet environment. |
| Postdrome ("Migraine Hangover") | After the headache resolves, profound fatigue, cognitive impairment ("brain fog"), emotional lability, weakness and difficulty concentrating lasting 24 to 48 hours. It can be disabling in its own right, so mention it to your doctor. |
| Common Migraine Triggers | |
| Dietary Triggers | Red wine and alcohol (histamine, tyramine, sulfites), aged cheeses (tyramine), processed meats (nitrates, tyramine), MSG, artificial sweeteners (aspartame), chocolate (phenylethylamine), caffeine (both excess and withdrawal), skipped meals (hypoglycemia) and dehydration are commonly reported dietary triggers. Skipped meals, dehydration and alcohol have the best support; chocolate and cheese are often blamed when a craving was the start of the attack6. |
| Sleep & Circadian Disruption | Both too little and too much sleep trigger migraines. Irregular sleep schedules, shift work, jet lag and sleeping in on weekends ("weekend migraine") all disrupt the circadian rhythm of melatonin and serotonin synthesis, directly lowering the migraine threshold. |
| Hormonal Fluctuations | Periods are a common trigger, and attacks just before or during a period are often longer and more severe3. Perimenopause, oral contraceptives and menopausal hormone therapy can all worsen or trigger migraine in susceptible women. |
| Environmental & Sensory Triggers | Bright or flickering lights (photosensitivity is intrinsic to migraine, not just a symptom), strong smells (perfumes, chemical fumes), weather changes (barometric pressure drops), loud noise and screen time. Between attacks, the migraine brain stays more sensitive to light, sound and smell. |
It is not known what causes migraine; attacks happen with changes in the nerves and blood vessels of the brain, and what sets them off differs from person to person3.
| Cause | How It Contributes to Migraine | What Helps |
|---|---|---|
| Family history | Migraine is more likely if a close family member has it3 | Nothing changes your genes; a headache diary shows you and your clinician your own pattern, as the diagnosis section describes |
| Being female, and periods | Migraine is about three times as common in women5; attacks just before or during a period are often longer and more severe, and migraine often improves after menopause3 | Recording at least 2 cycles in a diary to confirm a menstrual link9, and preventive treatment with your clinician; with aura, ask about estrogen-containing contraception4 |
| Everyday triggers | Stress, tiredness, skipping meals and too much caffeine are common triggers3, and alcohol, sleep disruption and certain foods can set off attacks10 | Regular meals, fluids, regular sleep, and less caffeine and alcohol, as the diet section describes, with a diary to confirm your own triggers6 |
| Frequent painkiller use | Acute medicines taken on 10 or more days a month, or simple painkillers on 15 or more, for 3 months can cause medication overuse headache9, the most common secondary headache10 | Painkillers on no more than 2 days a week3; overuse is treated by withdrawing the overused medicine, usually with preventive treatment2 |
| Gut conditions | Migraine is associated with irritable bowel syndrome, celiac disease and H. pylori infection, but how the gut and brain interact in migraine is not clear, and diets aimed at gut bacteria are proposals rather than tested treatments11 | Having digestive symptoms assessed in their own right, as the diagnosis section says; commercial stool tests are not validated for guiding migraine treatment |
| Anxiety and depression | Both can trigger attacks3, and both are significantly more common in people with migraine10 | Treatment for both; some preventive medicines are antidepressants, and relaxation techniques and CBT are preventive options too3 |
| Test | What it shows |
|---|---|
| Tracking & Self-Assessment | |
| Headache Diary | The most important diagnostic tool for identifying personal triggers. Log: date, time, duration, severity (1 to 10), phase symptoms, foods/drinks consumed 24h before, sleep hours, menstrual cycle day, medications taken, stress level, weather and activity. After 2 to 3 months, patterns reveal dominant triggers with precision impossible from memory alone. |
| Elimination Diet (Low-Tyramine / Low-Histamine) | A structured 4 to 6 week elimination of the most common dietary triggers (aged cheeses, red wine, processed meats, MSG, chocolate, caffeine, artificial sweeteners, citrus) followed by systematic reintroduction, one food per 3 days, while tracking headache frequency. Cut caffeine down gradually over a week or two rather than stopping at once, because caffeine withdrawal itself triggers attacks. A headache diary is usually more informative than an elimination diet6. |
| Clinical Tests | |
| MRI Brain (Rule Out Structural Causes) | A "thunderclap" headache12 (sudden onset of worst headache of life) is an emergency: call 911 or go to the emergency department13. MRI is recommended for: new onset headache over age 50, progressively worsening headache, headache with neurological signs or headache awakening from sleep. Usually normal in migraine, and not needed when the pattern is typical and the neurological examination is normal; it is done when warning signs are present. |
| Nutritional & Functional Lab Panel | Magnesium14, vitamin D 25-OH-D where deficiency is suspected, and a thyroid panel where symptoms suggest it. Riboflavin8 and CoQ10 are usually tried without testing. |
| SIBO Breath Test & Stool Analysis | Digestive symptoms alongside migraine deserve their own assessment. Commercial stool microbiome tests are not validated for guiding migraine treatment. |
Magnesium, riboflavin (B2), CoQ10, feverfew, trigger tracking, regular sleep
Diet plays a supporting role in migraine management: regular meals, hydration and avoiding any triggers a headache diary confirms6.
Brain-protective foods, and the common migraine triggers
| What to eat or do | Details |
|---|---|
| β Brain-Protective & Anti-Inflammatory: | |
| Anti-Inflammatory Whole Foods | Dark leafy greens (magnesium), fatty fish (omega-3s for neuroinflammation), colorful vegetables (antioxidants), berries (flavonoids), ginger and turmeric (anti-inflammatory). |
| Consistent Hydration | Dehydration is a commonly reported trigger6. Drink about 10 to 13 cups (2.5 to 3 L) of water daily, more in heat or exercise. |
| Regular Meal Timing | Skipping meals and prolonged fasting trigger migraines through hypoglycemia and cortisol elevation. Eat at consistent times, include protein and fat at every meal to stabilize blood glucose, and never skip breakfast. The migraine brain is extremely sensitive to metabolic stress. |
| β Common Dietary Triggers: | |
| Tyramine-Rich Foods | Aged cheeses (parmesan, cheddar, blue), red wine, beer, fermented foods, smoked/cured meats, soy sauce, miso, MSG. Tyramine is a proposed trigger in some people, though specific foods have weaker evidence as triggers than skipped meals, poor sleep and alcohol6. |
| Histamine Sources | Histamine content is highest in red wine, fermented foods (kimchi, sauerkraut), aged cheeses, processed meats, leftover fish and spinach. In people who are sensitive, even small amounts of dietary histamine may precipitate a migraine attack within hours. |
| Caffeine (Both Excess & Withdrawal) | The relationship with caffeine is paradoxical: acute caffeine can abort a migraine (hence its inclusion in some combination headache tablets), but chronic use leads to withdrawal-triggered migraines when caffeine is missed. Limit to 1 cup of coffee/day maximum, always at the same time: consistency prevents the withdrawal trigger. |
| Artificial Sweeteners | Aspartame (converted to phenylalanine and methanol) and sucralose have been reported as migraine triggers in surveys and case reports, but the evidence is weak, so confirm with a headache diary. Eliminate all artificial sweeteners during a diagnostic elimination period; they are present in diet sodas, sugar-free gum, protein powders and "light" products. |
The evidence behind these supplements ranges from moderate to thin, and is set out for each one. Magnesium, riboflavin and CoQ10 are the best studied148.
| Supplement | What it is for | Typical range | Timing | Notes & cautions |
|---|---|---|---|---|
| Magnesium Glycinate | Magnesium regulates NMDA glutamate receptor activity (excitatory; excess glutamate lowers migraine threshold), prevents cortical spreading depression and reduces CGRP release. IV magnesium aborts acute attacks in many patients. Oral supplementation reduced attack frequency in one meta-analysis, while a later review judged the evidence insufficient14. Level B evidence from AAN. | 400 to 600 mg elemental magnesium/day (as glycinate) | With dinner; or split morning and evening | No routine test reflects total body magnesium well. Glycinate is usually better tolerated than citrate or oxide14, though high doses can still loosen stools. Avoid citrate form if loose stools are present. This whole range is above the 350 mg/day upper intake level for supplemental magnesium; above that, diarrhea is common. With kidney disease, take it only on your clinician's advice. |
| Riboflavin (Vitamin B2) | Riboflavin is the rate-limiting cofactor for Complex I and II of the mitochondrial electron transport chain. Migraine patients have documented mitochondrial dysfunction, reduced phosphorylation potential in neural tissue. In pooled trials, riboflavin at 400 mg/day for three months reduced migraine days, frequency and pain8. | 400 mg/day | With breakfast | High doses cause bright yellow/orange urine, normal and harmless. Takes 3 months to reach full benefit. Available OTC; extremely safe; no drug interactions. |
| CoQ10 (Ubiquinol) | CoQ10 is the electron carrier between mitochondrial Complexes I and II and Complex III, essential for neuronal ATP production. A 2005 randomized trial reported benefit at 300 mg/day; a later meta-analysis found no significant reduction in frequency8. | 300 mg/day (ubiquinol form) | With a fat-containing meal, essential for absorption | Ubiquinol is the reduced form of CoQ10. CoQ10 may interact with some blood thinners and with insulin, so check with your prescriber first if you take either21. |
| Butterbur (Petasites hybridus) | PA-free butterbur extract contains petasin and isopetasin, sesquiterpene compounds that inhibit leukotriene synthesis and block CGRP release from trigeminal neurons. A 2004 randomized trial of 245 people found 75 mg 2x/day cut migraine attack frequency by 48% over 4 months, against 26% on placebo16. The American Academy of Neurology recommended butterbur in 2012 but stopped recommending it in 2015 because of serious safety concerns15. | 75 mg 2x/day (PA-free certified extract) | With meals | Must be certified PA-free (pyrrolizidine alkaloid-free). PAs in non-certified butterbur cause serious liver damage, and rare liver injury has been reported even with PA-free products15. |
| Feverfew (Tanacetum parthenium) | Parthenolide, the active compound, inhibits platelet serotonin release, blocks prostaglandin synthesis and reduces NF-ΞΊB-mediated neuroinflammation in trigeminal neurons. A Cochrane review of six trials found mixed, low-quality evidence; the largest trial reported 0.6 fewer attacks a month than placebo, with no difference in attack intensity17. Most effective for prevention when taken continuously, not for acute treatment. | 50 to 150 mg/day (standardized to 0.2 to 0.6% parthenolide) | With food | Do not stop abruptly after prolonged use: this can cause "post-feverfew syndrome" (rebound headaches, nervousness, insomnia). Taper gradually. Avoid in pregnancy. It may slow blood clotting, so stop it at least 2 weeks before planned surgery, and check with your prescriber if you take other medicines, including migraine medicines22. |
| Melatonin | Migraine is associated with disrupted melatonin secretion: migraineurs have lower nocturnal melatonin peaks and altered circadian rhythms. Melatonin has direct antinociceptive (pain-reducing) properties and restores sleep architecture. A 2016 randomized trial found melatonin effective for migraine prevention, better tolerated than a prescription preventive and without weight gain, though this is a single trial against one prescription drug18. | 3 to 5 mg at bedtime | 30 to 60 minutes before sleep, in dim light | Take in dim or red light: bright light exposure immediately before bed blocks endogenous melatonin production, negating the supplement benefit. Use consistently at the same time each night for circadian entrainment. Melatonin is commonly sold at doses well above what is needed, and more is not better. The trial used 3 mg; start there rather than higher. Discuss it with your prescriber if you take sedatives, anticoagulants or immunosuppressants. |
| 5-HTP (5-Hydroxytryptophan) | The direct precursor to serotonin, bypassing the rate-limiting tryptophan hydroxylase step. Older small trials of 400 to 600 mg/day reported fewer attacks; the evidence has not been updated with modern trials. The range given here is lower than the trial doses and has not been tested for migraine. Proposed to help sleep and mood, both of which influence migraine threshold. | 100 to 200 mg/day (starting low) | Before bed (serotonin β melatonin pathway supports sleep) | Do not combine with SSRIs, SNRIs, triptans or MAOIs: risk of serotonin syndrome. Do not use it if you take any serotonergic medication. |
| Alpha-Lipoic Acid (ALA) | A lipophilic and hydrophilic antioxidant that crosses the blood-brain barrier and directly reduces neuroinflammation and oxidative stress in trigeminal pathways. A small randomized trial reported fewer attacks at 600 mg/day. Combination benefits have not been established. | 600 mg/day (R-ALA preferred) | 30 minutes before a meal | R-ALA form is significantly more bioavailable. Stabilized sodium R-ALA (Na-RALA) prevents thermal degradation. |
Migraine is often lifelong10, but treatment can ease attacks and help prevent them3.
Most people find attacks slowly improve with age, and in women migraine often improves after menopause3.
Call 911 or go to the emergency department for a sudden, explosive or worst-ever headache, or a headache with slurred speech, vision loss, weakness or numbness that comes on suddenly or is unlike your usual aura, confusion, a seizure, a high temperature and stiff neck, or after a head injury13. Get medical help right away for new headaches, especially after 50, or a changed pattern13. In pregnancy or the weeks after birth, do the same for a severe or different headache, and call labor and delivery now if it comes with vision changes or swelling, or 911 if you cannot reach them12. Get a same-day appointment for an attack lasting over 72 hours or aura lasting over an hour3. See your doctor if you need painkillers on more than 2 days a week3.
Get new guides in your inbox. Once a month: new condition guides and research updates, including the trials that did not work. Free, no spam, and you can unsubscribe in one click.
Regular meals, sleep and fluids, a headache diary to find your own triggers, and the supplements with some trial support can sit alongside prescribed prevention, which is worth pursuing if migraine is disabling19. Magnesium, riboflavin and CoQ10 have some trial support, with mixed results148.
Each numbered entry below is either a source you can follow or a note setting out what the evidence does and does not support. Both are numbered together so the markers in the text line up.
Last reviewed October 20, 2026. Supplement entries are cross-checked against the NIH National Center for Complementary and Integrative Health and the Linus Pauling Institute Micronutrient Information Center.23 Two safety points. First, a sudden, severe headache that peaks within seconds to a minute, the worst of your life, is not a migraine until proven otherwise, and needs emergency assessment for subarachnoid hemorrhage. So does a headache with fever and neck stiffness or new neurological signs. A headache starting after 50, or one that wakes you from sleep or worsens progressively, needs medical help right away. Second, and much more common: the treatment can become the cause. Taking acute migraine medication on more than about 10 to 15 days a month, depending on the drug, produces medication overuse headache, and the way out is withdrawal with support rather than more medication. Migraine with aura also carries a small increased stroke risk, which matters if you smoke or use estrogen-containing contraception.