Regular exercise does help reduce migraine frequency for most people, and the evidence suggests it can work about as well as common preventive medications. In one head-to-head trial, exercising three times a week reduced migraine attacks by nearly one per month, matching the reduction seen with topiramate, one of the most widely prescribed migraine preventive drugs. But the relationship between exercise and migraines is more nuanced than a simple yes or no. The same workout that prevents migraines over time can sometimes trigger one in the moment.
How Exercise Prevents Migraines
After a bout of physical activity, your body releases several compounds that work against the migraine process. Beta-endorphins, your body’s natural painkillers, rise in the bloodstream. So do endocannabinoids, molecules that dampen pain signaling, and a growth factor that supports healthy nerve cell function. Over weeks of consistent exercise, these repeated surges appear to raise your baseline threshold for triggering a migraine.
Exercise also chips away at several of migraine’s most reliable triggers. Physical activity improves sleep quality and consistency, reduces stress hormones, and stabilizes mood. Since poor sleep and high stress are among the most commonly reported migraine triggers, these indirect benefits likely account for a significant portion of exercise’s protective effect.
How Much Exercise You Need
A dose-response meta-analysis looking at pain intensity and migraine frequency found a sweet spot: roughly 900 to 950 total minutes of aerobic exercise over 10 to 11 weeks produced the greatest observed benefit. Higher doses didn’t add further improvement. That translates to about three 30-minute sessions per week, a manageable target for most people.
In a prospective study of adults with episodic migraine, those who exercised at moderate-to-vigorous intensity at least three times a week had about 1.5 fewer headache days per month compared to less active participants. The most striking finding came from a subgroup: people already taking a preventive migraine medication who also exercised regularly experienced 5.1 fewer headache days per month compared to those on medication alone. Exercise and medication together worked far better than either alone.
For chronic migraine, the data is similarly encouraging. In one randomized trial, participants taking amitriptyline who added aerobic exercise three times a week dropped from 23 headache days per month down to 5 over 12 weeks. Those on amitriptyline alone went from 25 days to 13.
Which Type of Exercise Works Best
A systematic review comparing exercise types found that strength training actually ranked highest for reducing overall migraine burden, followed by high-intensity aerobic exercise, then moderate-intensity aerobic exercise. All three outperformed placebo, and notably, all three also outperformed topiramate in the network comparison.
This is good news if you dislike running or cycling. Resistance training with weights or bodyweight exercises appears to be at least as effective as cardio for migraine prevention. That said, most of the research base still focuses on aerobic exercise, so the evidence for strength training, while promising, comes from fewer studies. If you enjoy a mix of both, that’s a reasonable approach.
Why Exercise Sometimes Triggers Migraines
About a third of people with migraines report that intense physical activity has set off an attack. This isn’t a contradiction. The mechanisms behind exercise-triggered migraines are different from the ones that provide long-term protection.
High-intensity exercise causes rapid increases in cardiac output and blood pressure, which can provoke an attack in susceptible people. There’s also a metabolic explanation: when you push past your aerobic threshold into anaerobic territory, blood lactate rises sharply. People with migraines already tend to have altered energy metabolism in the brain, and higher brain lactate is associated with more frequent attacks. In research on exercise-triggered migraines, the majority of affected people could still tolerate low-intensity exercise without problems. It was specifically the high-intensity work that crossed the line.
Other factors that coincide with exercise can also be the real culprits. Dehydration, low blood sugar from not eating beforehand, overheating, or exercising in bright sunlight can all lower your migraine threshold independently.
How to Exercise Without Triggering an Attack
The most important strategy is building up gradually. If you’ve been sedentary, jumping into intense workouts is the fastest way to provoke an attack and abandon the habit entirely. Start with low-intensity exercise at a level that feels manageable, then increase duration and intensity over several weeks.
Practical steps that reduce your risk:
- Eat before you exercise. A meal or substantial snack one to two hours beforehand keeps blood sugar stable. Exercising in a fasted state is a common and avoidable trigger.
- Stay hydrated. Drink water before, during, and after your workout to replace fluid lost through sweat. Sports drinks with electrolytes can help during longer or more intense sessions.
- Warm up thoroughly. A gradual warm-up prevents the sudden cardiovascular spikes that can trigger an attack.
- Exercise on a consistent schedule. Irregular routines disrupt the regularity that migraine-prone brains prefer. Setting the same days and times each week helps your body adapt.
- Pair exercise with other routines. Regular meals and consistent bedtimes work alongside exercise to stabilize your overall migraine threshold.
Exercise Compared to Medication
In the most direct comparison available, a randomized trial assigned migraine patients to one of three groups: 40 minutes of indoor cycling three times a week, a relaxation program, or topiramate. After three months, all three groups saw nearly identical reductions in migraine attacks. About 30% of exercisers achieved a 50% or greater reduction in attacks, compared to 26% on topiramate and 23% in the relaxation group.
The difference, of course, is that exercise doesn’t come with the side effects that preventive medications often do. Topiramate commonly causes cognitive dulling, tingling, and weight loss. Amitriptyline causes drowsiness and weight gain. Exercise, when approached gradually, tends to improve energy, mood, and overall health alongside its migraine benefits. For people who can’t tolerate medication side effects or prefer a non-drug approach, exercise is one of the few lifestyle interventions with clinical trial evidence behind it.
That said, the strongest results come from combining approaches. The data consistently shows that exercise paired with preventive medication produces larger reductions in headache days than either strategy alone. If your migraines are frequent or disabling, exercise works best as part of a broader plan rather than a replacement for everything else.

