Migraines and Exercise: How to Train Without Triggering an Attack

How to train when you get migraines: a 12-week plan with concrete heart-rate zones, hydration numbers, the usual triggers, and clear red flags for a doctor.

5 min read · Updated 31.07.2026.

Migraines and Exercise: How to Train Without Triggering an Attack
Photo: Wikimedia Commons · CC BY 4.0

A migraine is not just a bad headache — it is a neurological attack that can last 4 to 72 hours, usually with nausea and sensitivity to light and sound. If you train, you have probably noticed that exercise sometimes helps and sometimes seems to set an attack off. Both are true, and the difference is mostly in how, when and how abruptly you train.

What the evidence actually says

Aerobic training is the habit with the most respectable evidence for reducing migraine days. In controlled trials, a program of 40 minutes of moderate aerobic work, 3 times a week for 12 weeks, cut attack frequency by roughly as much as standard preventive medication or relaxation training. In practical terms that is about one to two fewer attacks per month, and the remaining ones often hit a bit softer.

One caveat matters: the effect is not immediate. In the first 3-4 weeks some people see slightly more headaches while the body adapts to a new rhythm. Judge whether training is working after 8 to 12 weeks, not after three sessions.

Why training sometimes triggers an attack

It is rarely the exercise itself — it is usually the context around it. The most common triggers in people who train:

  • Sudden jumps in intensity. Going from nothing to sprints or heavy sets with no ramp-up is the classic one. A 10-15 minute warm-up with a gradual heart-rate rise clearly lowers the risk.
  • Dehydration. Losing just 1-2% of body mass in sweat (0.8-1.6 kg for an 80 kg person) is enough to start an attack in sensitive people.
  • Low blood sugar. Fasted sessions longer than 45-60 minutes are a frequent trigger, especially early in the morning.
  • Breath-holding under maximal strain. It spikes pressure in the head and can produce a stabbing pain mid-set.
  • Heat and stale air. A gym at 26-28 °C with no ventilation roughly doubles fluid loss for the same session.
  • Short sleep. Under 6 hours plus a hard session is the combination that most often ends in an attack the next day.

A 12-week starting plan

The goal is consistency without provoking attacks, not fitness records. Estimate max heart rate roughly as 220 minus your age.

Weeks 1-4

  1. 3 sessions per week, 20-30 minutes of walking, stationary bike or elliptical at 50-60% of max heart rate.
  2. 10 minute warm-up, no intervals, no hills.
  3. Keep a short log: date, duration, heart rate, hours of sleep, and whether a headache followed within 24 hours.

Weeks 5-8

  1. 3 sessions of 40 minutes at 60-70% of max heart rate.
  2. Add 2 short strength sessions per week, 20-25 minutes each.

Weeks 9-12

  1. 3 sessions of 40-45 minutes; one of them may include 4-6 intervals of 2 minutes at 75-80% of max heart rate, with 2 easy minutes between.
  2. If intervals trigger an attack within 24 hours on two separate occasions, drop back to steady-state work and stay there for 4 weeks.

Strength work: what and how

Strength training has no strong evidence for reducing migraine frequency, but it helps the neck and shoulder tension that often travels with attacks. Twice a week is enough:

  • Pulling or rowing: 3 sets of 10-12 reps.
  • Upper-back and scapular work: 2-3 sets of 12-15 reps.
  • Neck isometrics: 3 holds of 10 seconds in three directions, with light hand resistance.
  • Legs: 2-3 sets of 8-12 reps with a load that leaves 3-4 reps in reserve.

Exhale through the effort instead of holding your breath. Leave maximal 1-3 rep sets alone until you have had at least 8 attack-free weeks. Rest 90-120 seconds between sets.

Water, food, sleep

  • Drink about 500 ml of water in the two hours before training, then 400-800 ml per hour of training depending on how much you sweat.
  • If a session runs past 60 minutes and you sweat heavily, add 300-600 mg of sodium per litre of fluid (roughly 0.8-1.5 g of salt).
  • Meal 2-3 hours before: 40-60 g of carbohydrate and 20-30 g of protein. Training early? At least 20-30 g of carbs 30 minutes beforehand.
  • Keep caffeine at a steady daily dose, up to around 200 mg. Sudden withdrawal is one of the most reliable triggers there is.
  • Sleep 7-9 hours, with no more than an hour of difference between weekdays and weekends.

When an attack hits anyway

Training through an active migraine makes no sense — physical activity worsens the pain by definition of the condition. Stop, cut the light and noise, take fluids and whatever medication you have been prescribed as early as possible, since these drugs work far better in the first 30-60 minutes. Return to training only after 24 symptom-free hours, and start at 50-60% of your usual volume. The week after a bad attack is not the week for personal records.

When to see a doctor

  • A headache that peaks in under a minute — emergency, same day.
  • Headache with fever, stiff neck, confusion, one-sided weakness or trouble speaking — emergency.
  • A first headache of this type after age 50, or a pattern that changed abruptly.
  • Aura lasting longer than 60 minutes, or aura that is always on the same side.
  • Headache that appears only with exertion, coughing or bending over — get it checked to rule out other causes.
  • More than 4 headache days a month, or painkillers on more than 10 days a month.
  • Migraine with aura combined with hormonal contraception and smoking — discuss the risk with a doctor.

The short version

  • 40 minutes of moderate aerobic work, 3 times a week, for 12 weeks — that is the dose that reduced attacks in trials.
  • The first 3-4 weeks can feel worse; judge the result at 8-12 weeks, not sooner.
  • Warm up 10-15 minutes, avoid abrupt intensity jumps, and stop holding your breath on heavy sets.
  • Fluids (400-800 ml per hour), salt on long sessions, steady caffeine and 7-9 hours of sleep remove most of the triggers.
  • Thunderclap headache, neurological symptoms or a sudden change in pattern go to a doctor, not to the gym.

General information, not medical advice. If you have a health condition or pain, talk to a doctor before changing how you train.

Read next