Migraine Is a Threshold Disease: Why the Same Trigger Floors You One Week and Not the Next
2026-11-21Same post, two depths. Switch any time; the research version has the enzyme names, lab markers, and doses. Written from a research and education perspective: a model of what may be going on and what the published literature suggests would address it if the model is right, not medical advice or a treatment plan.
Ask anyone with migraine what their triggers are and they will give you a list: red wine, skipped meals, bad sleep, weather, hormones, bright light, stress, and sometimes the letdown after stress. Then ask whether red wine always does it, and the answer is no. Sometimes a glass is fine. Sometimes half a glass on a Tuesday ends the week.
That is because migraine is not caused by triggers. It is caused by a brain whose threshold for a migraine attack is lower than other people's, and the threshold moves. On a good week the threshold is high and nothing gets over it. On a week of poor sleep, low magnesium, a falling estrogen level, and three days of skipped breakfast, the threshold is on the floor and a glass of wine is enough. The triggers never changed. The threshold did.
This page is about what sets the threshold, which is the part you can work on, and it is written from a research perspective: here is the model, here is what moves the threshold in the published literature, and here is what to measure.
What a migraine actually is
A migraine is not a blood vessel problem, which is what was believed for most of the last century. It is a brain state. A wave of electrical activity spreads slowly across the cortex (cortical spreading depression, the thing that causes the visual aura in the third of people who get one), the brainstem's pain-control centers switch into a sensitized mode, and the nerve that supplies the lining of the brain (the trigeminal nerve) releases a peptide called CGRP that inflames the meninges and makes every heartbeat hurt. That is why the newest migraine drugs block CGRP, and why they work for people who failed everything else.
Two things make a brain prone to this. The first is excitability: an easier-to-trigger cortex, which is largely genetic and partly nutritional. The second is a low threshold for the brainstem to flip into the sensitized state, which is set by sleep, hormones, blood sugar, inflammation, and the autonomic nervous system. Both are adjustable.
What sets the threshold
Magnesium, riboflavin, and CoQ10: the three with the best evidence
These are the nutrients with controlled trials behind them, and they all work on the excitability side.
- Magnesium is the brain's natural brake on the glutamate receptor (NMDA) and on cortical spreading depression. People with migraine have lower brain and red-cell magnesium than people without, especially during attacks and in menstrual migraine. Oral magnesium (around 400 to 600 mg of elemental magnesium daily; glycinate or malate for tolerability, citrate if constipation is also a problem) reduces attack frequency in trials, and intravenous magnesium aborts attacks in the emergency room, particularly migraine with aura. It is the first thing on this list for a reason.
- Riboflavin (B2) at 400 mg daily reduced migraine days by about half in the classic trial, likely by improving mitochondrial energy production in a brain that cannot keep up with demand. It takes three months and turns urine bright yellow.
- CoQ10 at 100 mg three times daily reduced attack frequency in a controlled trial, for the same mitochondrial reason. Low CoQ10 is common in migraine, especially in children and teenagers.
The common thread is mitochondria: the migraine brain runs an energy deficit, and the aura literature suggests attacks happen when energy demand outstrips supply. That links migraine to the mitochondrial post here and to everything on this site about thiamine, iron, and the furnace.
Histamine and mast cells
Histamine is a potent migraine trigger (an infusion of it reliably causes one), the meninges are full of mast cells, and mast cell degranulation releases exactly the molecules that start an attack. Red wine, aged cheese, cured meats, leftovers, and fermented food are "migraine triggers" mostly because they are histamine loads. Women whose migraines cluster at ovulation and before the period are often seeing histamine and estrogen feeding each other. The four-week low-histamine trial here is the test; the mast cell post here is the explanation. DAO enzyme with meals has a small positive trial in migraine.
Estrogen
Estrogen withdrawal (the drop before the period, the drop after a cycle of the pill, the swings of perimenopause) lowers the threshold directly, which is why menstrual migraine is so predictable and so resistant to the usual preventives. The perimenopause post here covers the bigger picture; the practical levers are keeping magnesium high in the luteal phase, keeping estrogen from swinging (through a clinician), and treating the histamine side.
Blood sugar and skipped meals
A falling blood sugar is one of the most reliable triggers in the literature, and it works through the same stress-hormone surge as the 3am post here. Skipping breakfast, long gaps between meals, and high-sugar meals that crash two hours later all lower the threshold. Regular protein-containing meals and no grazing on sweets is one of the cheaper preventives, and it is where the metabolic slide here overlaps with migraine: insulin resistance is more common in migraineurs and improving it reduces attacks.
Sleep
Both too little and too much sleep trigger attacks, and the sleep that matters is the deep, regular kind. Sleep apnea is over-represented in morning headache. A consistent wake time, including weekends, is one of the most under-rated preventives. The "weekend migraine" is a combination of sleeping in, caffeine withdrawal, and the letdown of stress.
Caffeine
Caffeine is both a treatment (it is in Excedrin for a reason) and, in daily use, a threshold-lowerer through withdrawal: the headache that starts at 10 am on the day you had coffee late is the withdrawal, not the coffee. Under 200 mg a day, at the same time each day, or none; the half-way state is the worst. The CYP1A2 gene sets how fast you clear it, which the pharmacogenomics here report covers.
The neck, jaw, and the hypermobile body
People with hypermobility have more migraine, more neck-driven headache, and more jaw involvement, and the upper neck feeds directly into the trigeminal pain system. If your migraines start in the neck or jaw, the connective tissue post here and a physiotherapist who treats the upper cervical spine belong on the list. POTS and migraine overlap heavily for the same autonomic reasons.
Inflammation and the gut
Migraine is more common in celiac disease, IBS, and SIBO, and a gut that leaks bacterial fragments keeps the brainstem's pain system primed. The SIBO post here applies when bloating and migraine travel together.
What to check
- RBC magnesium (serum magnesium misses most of the deficit), ferritin with saturation and CRP (low iron lowers the threshold and worsens menstrual migraine), CoQ10 if available, vitamin D (low in migraine, modest trial evidence for repletion), B12 and folate (homocysteine is higher in migraine with aura; folate and B12 lowered attack frequency in MTHFR carriers in one trial).
- Fasting insulin and HbA1c, because of the blood sugar link.
- Thyroid panel, because hypothyroidism raises migraine frequency and treatment lowers it.
- A three-month attack diary with sleep hours, meals, cycle day, caffeine, alcohol, and weather. The pattern in the diary is usually more useful than any single lab.
- Sleep study if morning headaches, snoring, or unrefreshing sleep.
- A clinician for anything new, worst-ever, with fever, after 50, with weakness or speech trouble, or that is changing character. Those are not threshold questions.
The lab guide here and nutrient guide here have the details.
If the model is right, what the research points to
- Magnesium to effect, 400 to 600 mg elemental daily in divided doses, more in the week before the period; RBC magnesium at 12 weeks.
- Riboflavin 400 mg and CoQ10 100 mg three times daily, for at least three months before judging.
- Regular meals with protein, no skipped breakfast, and the substrate separation here pattern if fasting insulin is up.
- A fixed wake time seven days a week; apnea screened.
- Caffeine at one steady low dose or none.
- The low-histamine trial if attacks follow wine, cheese, leftovers, or the cycle; DAO with meals; the mast cell stabilizers from the mast cell post if the trial is positive.
- Iron, vitamin D, folate and B12 repleted where low.
- Feverfew, butterbur (PA-free only), and ginger have trial support as preventives or acute treatments; butterbur's liver issue means only certified PA-free products through a clinician, and most practitioners have stopped recommending it for that reason.
- Neck and jaw assessed if that is where attacks begin; hypermobile people in particular.
- The prescription layer, through a clinician: triptans and gepants for attacks, CGRP antibodies, topiramate, propranolol, candesartan, amitriptyline, or Botox for prevention. These raise the threshold pharmacologically; the levers above raise it physiologically, and they stack.
The one-line version
You do not have a trigger problem; you have a threshold problem. Raise the threshold with magnesium, riboflavin, CoQ10, regular meals, regular sleep, steady caffeine, and the histamine and hormone levers that apply to you, and the triggers stop being able to get over it.
Educational content written from a research perspective, not medical advice. I am a PhD scientist, not a physician, and I do not diagnose, treat, cure, or prevent disease. New, severe, or changing headaches need medical evaluation; prescription migraine treatment is decided with your clinician.
The model
Migraine is a genetically determined disorder of neuronal excitability and sensory processing in which attacks are triggered when the sum of endogenous and exogenous loads exceeds a dynamic threshold. The pathophysiology has three components: (1) cortical hyperexcitability, in which cortical spreading depression (CSD), a slow wave of depolarization followed by suppression, underlies aura and probably activates the trigeminovascular system in migraine without aura as well; (2) activation and sensitization of trigeminal afferents to the meninges, with release of CGRP, PACAP, and substance P, neurogenic meningeal inflammation, and dural mast cell degranulation; (3) brainstem and hypothalamic dysfunction (periaqueductal gray, locus coeruleus, dorsal raphe, hypothalamus) that lowers descending inhibition and generates the premonitory phase (yawning, food craving, mood change, neck stiffness) hours before pain. The CGRP-targeted therapies validate component 2; the nutritional literature acts mainly on components 1 and 3.
The threshold is set by trait factors (genetic excitability; over 120 GWAS loci, enriched for ion channels, glutamate signaling, and vascular and smooth muscle genes; familial hemiplegic migraine genes CACNA1A, ATP1A2, SCN1A define the extreme) and state factors (magnesium status, mitochondrial energy reserve, sex steroid phase, sleep, glycemic state, inflammatory tone, histamine load, autonomic state, and medication overuse). State factors are the modifiable set.
Mechanistic levers and the evidence
Magnesium
Magnesium gates the NMDA receptor, raises the CSD threshold, stabilizes membranes, and modulates CGRP release and nitric oxide synthesis. Serum, RBC, and brain (31P-MRS) magnesium are lower in migraineurs, lowest ictally and in menstrual migraine; up to half of patients have ionized hypomagnesemia during attacks. RCTs of oral magnesium (magnesium citrate 600 mg, magnesium oxide 400 to 600 mg, trimagnesium dicitrate) show reduced attack frequency, with the strongest effects in aura and menstrual migraine; the American Academy of Neurology and American Headache Society rate magnesium as probably effective (Level B). Intravenous magnesium sulfate 1 to 2 g is effective for acute migraine with aura in emergency settings. Dose: 400 to 600 mg elemental daily, divided; glycinate or malate where citrate causes diarrhea; RBC magnesium at 12 weeks. Grade A (oral prophylaxis), A (IV for aura).
Mitochondrial energy reserve: riboflavin, CoQ10, and the rest
31P-MRS shows reduced phosphocreatine and ATP in migraine brain and muscle interictally; CSD is precipitated by energy failure; migraine prevalence is high in mitochondrial disorders (MELAS, in particular). Riboflavin 400 mg daily reduced attack frequency by about 50 percent versus placebo at 3 months (Schoenen 1998; Level B, AAN/AHS). CoQ10 100 mg three times daily reduced attack frequency, days, and nausea (Sandor 2005; Level C, with later meta-analyses supportive); CoQ10 deficiency is found in a third of pediatric migraineurs and supplementation to normal reduced frequency. Alpha-lipoic acid 600 mg has one small positive trial; thiamine, carnitine, and niacin have mechanistic rationale and thin data. The mitochondria here report covers the relevant variants.
Histamine and mast cells
Histamine infusion induces migraine in migraineurs with a dose-dependent, H1-mediated delayed headache; dural mast cells degranulate in response to CGRP, substance P, and estrogen and release histamine, PGD2, tryptase, and TNF, which sensitize meningeal nociceptors. Plasma histamine is elevated in migraineurs interictally and ictally. A 12-week RCT of DAO supplementation reduced attack duration and triptan use in migraineurs with low serum DAO activity. Dietary histamine triggers (alcohol, aged cheese, cured meat, fermented foods) are among the most consistently reported. The low-histamine trial here is the diagnostic; the mast cell post here sets out stabilizers (H1 and H2 antagonists, ketotifen, cromolyn, quercetin by day, apigenin at night, vitamin C, PLP, copper). Grade B for DAO; B for dietary restriction by rechallenge.
Sex steroids
Estrogen withdrawal (late luteal fall, pill-free interval, postpartum, perimenopausal troughs) lowers the threshold through serotonergic, opioidergic, and magnesium-related mechanisms and increases CGRP responsiveness; menstrual migraine (pure or menstrually related) affects over half of female migraineurs and responds less well to standard prophylaxis. Levers: perimenstrual magnesium loading, frovatriptan or naratriptan mini-prophylaxis from 2 days before expected onset (Grade A), continuous rather than cyclic hormonal contraception to remove the withdrawal (clinician decision; migraine with aura is a contraindication to estrogen-containing contraception because of stroke risk), transdermal estradiol in perimenopause (which stabilizes rather than removes the swings), and the histamine levers, since estrogen lowers the mast cell threshold and DAO. The perimenopause post here covers the transition.
Glycemic state
Hypoglycemia and rapid glucose falls trigger attacks through counter-regulatory catecholamine and cortisol release and reduced cortical energy supply; fasting is among the most reliably reported triggers. Insulin resistance is more prevalent in migraineurs, and interventions improving insulin sensitivity (low-glycemic diet, metformin in small studies, ketogenic diet in several trials with substantial frequency reductions) reduce attacks. Regular protein-containing meals without prolonged gaps are the baseline; the metabolic slide here and substrate separation here apply where fasting insulin is elevated. Grade B.
Sleep and circadian regulation
Both sleep deprivation and oversleeping trigger attacks; the hypothalamus is active in the premonitory phase; orexin and melatonin signaling are implicated. Obstructive sleep apnea is over-represented in morning headache and chronic migraine. Melatonin 3 mg at bedtime was non-inferior to amitriptyline 25 mg in one RCT with fewer side effects (Grade B). Fixed wake time, CBT-I where insomnia coexists, apnea screening. Grade B.
Caffeine
Adenosine A2A antagonism provides acute benefit (caffeine 100 mg potentiates analgesics) and daily use produces withdrawal headache within 12 to 24 hours of the last dose; daily intake over about 200 mg is associated with chronification. Steady low dose or abstinence; CYP1A2 rs762551 (slow allele) prolongs exposure. The pharmacogenomics here report covers CYP1A2.
Cervical and temporomandibular input
Upper cervical (C1 to C3) afferents converge with trigeminal afferents in the trigeminocervical complex; neck pain precedes or accompanies most attacks, and cervicogenic contribution is prominent in hypermobile patients, who also have higher migraine prevalence, higher POTS comorbidity, and more frequent TMJ involvement. Physiotherapy directed at the upper cervical spine, TMJ management, and the connective tissue post here apply. Grade B for manual therapy and exercise in cervicogenic components.
Inflammation, gut, and iron
Migraine prevalence is elevated in celiac disease, IBD, IBS, and H. pylori infection; endotoxin-driven inflammation primes trigeminal sensitization; H. pylori eradication reduced migraine frequency in small trials. Iron deficiency (ferritin under 50) is associated with menstrual migraine and with higher frequency; repletion reduces attacks in iron-deficient women. Homocysteine is elevated in migraine with aura; folate, B6, and B12 supplementation reduced frequency and disability in MTHFR C677T carriers in a randomized trial (Lea 2009). Vitamin D deficiency is more prevalent in migraine and repletion reduced frequency in several RCTs (Grade B). Omega-3 intake (EPA and DHA about 1.5 g) reduced headache frequency in a controlled feeding trial (Ramsden 2021). The SIBO post here and ferritin post here apply.
Botanicals
Feverfew (Tanacetum parthenium; parthenolide inhibits serotonin release and NF-kB) has mixed RCTs with a net modest benefit (Level B for one stable extract). Butterbur (Petasites hybridus) 75 mg twice daily was rated Level A in 2012 but the AAN withdrew the recommendation over hepatotoxicity from pyrrolizidine alkaloids in non-certified products; only certified PA-free extracts, and most clinicians no longer recommend it. Ginger 250 mg was comparable to sumatriptan for acute attacks in one RCT and reduces nausea (Grade B acute). Curcumin and omega-3 in combination reduced attack frequency and TNF in one RCT (Grade C).
Assessment
Attack diary for 3 months (frequency, duration, aura, cycle day, sleep hours, meals, caffeine, alcohol, weather, medication use including acute medication days, since medication-overuse headache from 10 or more triptan or combination days or 15 or more simple analgesic days per month perpetuates the cycle); RBC magnesium; ferritin with saturation and CRP; 25-OH vitamin D; homocysteine, RBC folate, MMA; CoQ10 where available; fasting insulin and HbA1c; TSH and free T3; STOP-BANG and polysomnography when indicated; celiac serology where GI symptoms or iron deficiency coexist; mast cell mediators where the histamine phenotype is strong. Red flags (thunderclap onset, new headache after 50, fever, neurological deficit, positional pattern, change in character, immunosuppression) require imaging and clinical evaluation, not threshold management. The lab guide here carries assay notes.
Interventions, graded
| Lever | Dose or protocol | Grade |
|---|---|---|
| Magnesium | 400 to 600 mg elemental daily; perimenstrual loading; IV for acute aura | A |
| Riboflavin | 400 mg daily, 3 months minimum | B (AAN Level B) |
| CoQ10 | 100 mg three times daily (ubiquinol 100 to 200 mg) | B |
| Regular meals, glycemic stability | Protein-containing meals, no gaps over 4 to 5 hours, low-glycemic pattern; ketogenic diet in refractory cases under supervision | B |
| Fixed sleep schedule; apnea treatment; melatonin 3 mg | B | |
| Caffeine regulation | Under 200 mg at a fixed time, or none | B |
| Low-histamine trial with rechallenge; DAO 10,000 HDU before meals | 4 weeks | B |
| Iron, vitamin D, folate, B6, B12 repletion where low | Per the nutrient guide here | B |
| Omega-3 EPA and DHA 1.5 g | B | |
| Cervical physiotherapy, TMJ management | B (cervicogenic component) | |
| Feverfew; ginger acute | B | |
| Butterbur | PA-free only; largely abandoned | Withdrawn |
| Prescription prophylaxis (candesartan, propranolol, topiramate, amitriptyline, CGRP monoclonal antibodies, gepants, onabotulinumtoxinA for chronic migraine) and acute therapy (triptans, gepants, ditans, NSAIDs) | Clinician | A |
Genes that modify the threshold
MTHFR C677T (aura, homocysteine, folate response), CYP1A2 (caffeine), COMT and MAOA (catecholamine and estrogen clearance), HNMT and AOC1 (histamine), ESR1 and PGR (menstrual migraine), TRPV1 and TRPM8 (cold and sensory triggers), KCNK18 (TRESK channel; a rare familial locus), and the mitochondrial haplogroups associated with aura. The neurotransmitters report here and the histamine report here cover the relevant loci.
Monitoring
Monthly migraine days and acute medication days from the diary; RBC magnesium, ferritin, vitamin D, and homocysteine at 12 weeks; a 50 percent reduction in monthly migraine days is the conventional responder definition and a reasonable target for the nutritional layer before escalation.
Educational and research content, not medical advice. The author holds a PhD in cellular and molecular nutrition, is not a licensed physician, and does not diagnose, treat, cure, or prevent disease. Red-flag headaches require medical evaluation; prescription prophylaxis and acute therapy are decided by the treating clinician.
