Can Exercise Cause Migraines? Triggers and Prevention

Yes, exercise can trigger migraines. Depending on the study, somewhere between 9% and 38% of people with migraines report that physical activity has set off an attack. The relationship is paradoxical, though: while a single workout can spark a migraine, regular exercise over weeks actually reduces how often migraines occur and how much they hurt.

How Common Exercise-Triggered Migraines Are

The numbers vary depending on how researchers ask the question. A study of New Zealand university students found that 9% experienced a migraine during or shortly after physical activity. A larger U.S. clinic-based study of over 1,200 patients put the number at 22%. And a Dutch study that asked about lifetime experience found 38% of migraine patients had triggered an attack through exercise at some point. That last number is striking: more than one in three. Over half of those people quit the sport that triggered the attack entirely.

Exercise-triggered migraines appear equally common in people who get migraines with aura and those without, and the rates don’t differ significantly between men and women.

Why Exercise Triggers Attacks

Intense physical effort changes your body chemistry rapidly, and several of those changes can tip a migraine-prone brain into an attack. One key mechanism involves the acute release of CGRP, a signaling molecule that dilates blood vessels in the brain and plays a central role in migraine pain. (This is the same molecule targeted by newer migraine medications.) Exercise also shifts lactate levels and affects hypocretin, a brain chemical involved in arousal and energy regulation.

Blood sugar drops likely play a role too. Case reports have documented young men whose migraines were consistently triggered by running, and further testing revealed abnormal blood sugar drops after eating. When blood sugar falls sharply, the brain enters a state of excitability that resembles the electrical wave (called cortical spreading depression) thought to initiate migraine aura. If you tend to exercise after meals or skip eating before a workout, unstable blood sugar could be contributing.

Exercise Headache vs. Migraine

Not every headache you get during a workout is a migraine. Primary exercise headache is a separate condition defined as a bilateral, pulsating headache brought on by strenuous activity that lasts anywhere from five minutes to 48 hours. It typically doesn’t come with nausea or vomiting, which helps distinguish it from migraine. To qualify for the diagnosis, you need at least two episodes clearly precipitated by exercise.

The two conditions overlap frequently. In one study, 20 out of 30 patients with primary exercise headache also had migraine without aura. Seven also had headaches triggered by sexual activity, and five had cough-related headaches. If your exercise headaches are one-sided, come with nausea or light sensitivity, or last well beyond the workout, they’re more likely migraine attacks than simple exercise headaches.

What Makes an Attack More Likely

Intensity matters most. The harder and more suddenly you push, the greater the risk. Jumping straight into high-intensity effort without building up is a common trigger pattern. But external conditions amplify the risk significantly. Exercising in hot, humid weather or at high altitude both increase your chances of an exercise headache or migraine. If you notice a seasonal pattern to your exercise-triggered attacks, heat is a likely factor.

Dehydration compounds the problem. Heavy sweating without adequate fluid replacement changes blood volume and electrolyte balance, both of which can lower your migraine threshold. Exercising while already dehydrated, first thing in the morning or after caffeine and no water, is a setup for trouble.

How to Exercise Without Triggering Attacks

The core strategy is gradual intensity. Experts recommend that people prone to migraines start aerobic exercise at about 50% of their maximum heart rate, a pace where you can comfortably hold a conversation. Build up by roughly 5% per week based on how you feel. Include at least 10 minutes of warm-up and 10 minutes of cool-down in every session. Over 8 to 12 weeks, you can work up to much higher intensities if your body tolerates it.

Strength training may actually be easier on migraine-prone brains than high-intensity cardio. Research suggests muscle-strengthening exercises are more effective than intense aerobic workouts at reducing migraine frequency, and combining the two offers additional benefit. If running or cycling reliably triggers your attacks, shifting some sessions to resistance training is worth trying.

A few other practical adjustments help:

  • Time of day: Morning exercise helps align your body’s internal clock, improves sleep quality, and reduces overall migraine burden.
  • Eat before you train: A small meal or snack with protein and complex carbs an hour or two before exercise can stabilize blood sugar.
  • Stay hydrated: Drink water before, during, and after your workout, especially in warm conditions.
  • Avoid known compounding triggers: If heat, altitude, or poor sleep are individual triggers for you, don’t stack them on top of exercise.

The Long-Term Payoff of Sticking With It

Here’s where it gets interesting. A 2025 meta-analysis of 15 studies found that aerobic exercise significantly reduces both migraine pain intensity and attack frequency. But you need to accumulate enough total exercise time for the effect to kick in. Roughly 300 total minutes of aerobic exercise (think: 30 minutes, three times a week, for about 10 weeks) was the minimum needed for a meaningful reduction in how often migraines struck. The maximum benefit appeared around 900 to 950 cumulative minutes, after which additional exercise didn’t add further improvement.

For pain intensity, the threshold was slightly lower: 200 total minutes to start seeing moderate effects, with the strongest reduction also around 900 minutes. Vigorous exercise, the kind that gets you sweating heavily and breathing hard, showed a trend toward a 24% reduction in migraine odds in fully adjusted models.

The takeaway is concrete. If you can get through the initial weeks where exercise might occasionally provoke an attack, building up gradually and managing the modifiable triggers, you reach a point where regular training actively protects against migraines. The very thing that triggers individual attacks becomes, with consistency, one of the more effective ways to have fewer of them.