Exercise for migraines is a preventive therapy with moderate-quality support: regular aerobic training at a moderate, sustained effort — roughly 30 to 45 minutes, three times per week, for eight to twelve weeks — reduces monthly migraine days in many adults by an amount comparable to that seen with some preventive medications in head-to-head trials. The effect is modest but real, and it appears to come from several mechanisms at once rather than a single pathway.

The catch is that exercise can also trigger attacks, so timing, intensity, and hydration determine whether a workout helps or hurts. This explainer walks through the physiology, the trial numbers, the exceptions, the myths, and the practical thresholds — and it flags where the evidence runs out.

How exercise dampens migraine biology

A migraine attack begins with a susceptible brain that fails to regulate its own sensory and vascular environment. Exercise intervenes at several points in that chain. The first is the endocannabinoid system: moderate aerobic work raises circulating anandamide, an endogenous cannabinoid that modulates pain signaling and appears to blunt cortical excitability. This is one reason the post-exercise window often feels unusually clear-headed.

The second lever is calcitonin gene-related peptide, or CGRP, the neuropeptide that drives vasodilation and neurogenic inflammation during an attack. Regular training is associated with lower basal CGRP reactivity, though the direction of cause and effect is not fully settled. The third is hypothalamic and autonomic tone: aerobic conditioning improves heart rate variability and reduces sympathetic overdrive, and poor autonomic regulation is common in people with frequent attacks.

Fourth, exercise improves sleep architecture, particularly slow-wave sleep, and sleep disruption is one of the most reliable attack triggers. Because the effect runs through sleep, a workout that wrecks your sleep may cost you more than it gains. Fifth, exercise raises the pain threshold through descending inhibitory pathways — the brain's own opioid and serotonin-mediated braking system — which is the same system that aerobic training strengthens in chronic low back pain and fibromyalgia.

Plainly: exercise does not fix one broken part. It tunes several systems that migraine already destabilizes.

What the trials actually measured

The best-known head-to-head study, published in Cephalalgia in 2018, randomized adults with migraine to either a supervised aerobic exercise program (40 minutes, three times weekly, at moderate intensity) or one of two standard preventive drugs, topiramate or amitriptyline, over 12 weeks. All three groups reduced monthly migraine days by roughly three to four days, with no statistically significant difference between exercise and medication. Noninferiority was not formally proven, so read this as "comparable in this trial," not "equal."

A 2019 meta-analysis in the Scandinavian Journal of Pain pooled several smaller trials and found exercise reduced migraine day frequency by about 0.6 days per month versus controls — a smaller figure than the drug comparison suggested, and one with wide confidence intervals. A separate 2020 meta-analysis reported larger reductions, around 3 days per month, when exercise was compared with usual care rather than to nothing. The spread across meta-analyses is itself the story: effect size depends heavily on what exercise is compared against.

For context, typical preventive drugs reduce monthly migraine days by two to four days in trials, and CGRP monoclonal antibodies by roughly three to six. Exercise sits in the same neighborhood as older preventives. It does not match the best-performing antibodies in most data.

One practical threshold recurs across trials: the benefit shows up after about eight weeks, not two. If you quit at week three because nothing changed, you never tested the intervention.

Timeline: what to expect after starting

Phase Timeframe Typical experience
Adjustment Weeks 1–2 More post-exertion headaches possible; intensity should be low
Early adaptation Weeks 3–4 Attack frequency largely unchanged; fitness and sleep begin shifting
Measurable change Weeks 6–8 First credible drop in monthly migraine days in responders
Stabilization Weeks 8–12 Effects consolidate; this is the window used in most trials
Maintenance Month 3 onward Benefits persist only while training continues
Detraining 2–4 weeks after stopping Fitness gains fade; migraine benefit likely fades with them

The detraining row is an inference from exercise physiology, not a measured migraine outcome — no trial has cleanly tracked migraine days after supervised programs end. Treat it as a reasonable expectation, not a finding.

When exercise makes migraines worse

A meaningful minority of people with migraine experience exertion-triggered attacks, and the trigger is usually identifiable. The most common culprits are sudden high-intensity efforts without warm-up, dehydration, skipped meals before training, and exercising in heat. Each of these produces a physiologic stress spike that a sensitized trigeminovascular system can convert into an attack.

There is a separate and more serious red flag: exertional headache that is new, thunderclap in onset, or reliably provoked by the same intensity. That pattern warrants medical evaluation before you train through it, because it can signal vascular pathology rather than migraine.

The bullets below are warning signs to take to a clinician rather than manage with training adjustments:

A first-ever severe headache during or immediately after exertion Headache reaching peak intensity within one minute (thunderclap) New headache after age 50, or a change in an established pattern Headache with fever, neck stiffness, weakness, vision loss, or confusion Headache that wakes you from sleep or worsens with coughing or straining

None of these is a reason to fear exercise. They are reasons to get examined before assuming the cause is migraine.

Misconceptions worth retiring

The most persistent myth is that exercise must be intense to work. The trial data say otherwise: moderate, sustained aerobic work was the protocol, and high-intensity interval training has not been shown superior for migraine prevention. Intensity is where triggers live, so the marginal benefit of going harder is speculative while the marginal risk is well documented.

A second myth is that any movement counts equally. Strength training alone has thin evidence for migraine prevention; the strongest signal is aerobic. Yoga and relaxation-based movement have small positive trials, but the effect sizes are modest and the trials are small. That does not make them useless — it makes them unproven as replacements for aerobic training.

The counterintuitive finding is this: people who exercise regularly are more likely to report exercise as a migraine trigger. That sounds paradoxical until you see the mechanism — regular exercisers encounter the exertion–attack pairing often enough to notice it, while sedentary people rarely test it. Trigger attribution in migraine is heavily influenced by exposure frequency, which is why headache diaries beat memory.

A final professional caveat: "exercise reduces migraine" is a population average. Individual response ranges from substantial improvement to no change to worsening, and no validated test predicts which you will be. The only way to know is a structured eight-to-twelve-week trial with tracking.

Practical protocol with concrete thresholds

The steps below translate the trial protocols into something you can run without a supervisor. Adjust around attacks rather than through them.

Set the dose: 30 to 45 minutes of aerobic work, three times per week, at an effort where you can hold a conversation but not sing. That corresponds to roughly 60 to 75 percent of maximum heart rate. Warm up for 5 to 10 minutes at easy effort before reaching target intensity. Most exertion-triggered attacks trace to skipping this. Hydrate ahead of training and eat within two hours before. Fasting plus dehydration is the most reproducible exercise trigger. Track migraine days and attack severity in a diary for at least eight weeks before judging the intervention. Use the same tracking you would for a preventive drug. On attack days, do not train through moderate or severe pain. Light movement is reasonable on mild days; pushing through is not evidence-based and often backfires. Hold intensity steady for the first four weeks. Increase duration before intensity, and only after week four.

How do you reconcile the conflicting thresholds? The 30-to-45-minute, three-times-weekly figure comes from the supervised trials; the 60-to-75 percent heart rate range is a standard moderate-intensity definition, not a migraine-specific finding; and the eight-week judgment window is the shortest period in which trials detected change. Where these disagree with a casual recommendation to "just move more," the trial parameters win, because they are what was actually tested.

For equipment, nothing expensive is required. A basic heart rate monitor runs USD 30 to USD 60, and a paper diary costs nothing. The binding constraint is consistency, not gear.

What exercise cannot do, and where the evidence stops

Exercise has not been shown to replace acute migraine treatment, and it should not delay evaluation of new or changing headache patterns. It also has not been tested adequately in chronic migraine (15 or more headache days per month), in medication-overuse headache, or in children and adolescents — the trials are small and the populations narrow. Extrapolating the adult episodic-migraine data to those groups is an assumption, not a finding.

Blinding is impossible in exercise trials, so placebo response cannot be separated from training effect. Participants knew they were exercising, and expectation alone moves migraine outcomes. That does not invalidate the drug-comparison trial, but it caps how confident anyone can be.

The honest summary of the evidence: moderate aerobic exercise, done consistently for at least eight weeks, is a reasonable preventive strategy with a favorable safety profile and an effect size in the range of older preventive drugs. It is not a cure, it is not superior to the best current preventives, and its benefit is conditional on continued training. Start at low intensity, protect sleep and hydration, track for two months, and let the diary — not the first bad workout — make the call.