Migraine After Exercise: Prevention, Diagnosis and When to Seek Medical Help

For most people exercise is good for headaches: regular aerobic training is even used as a preventive strategy for migraine. Yet a sizeable minority find that a hard session, a long run in the heat or a heavy lifting day leaves them with a throbbing head, nausea and light sensitivity. Our editorial team looks at why this happens, how doctors tell harmless patterns from dangerous ones, and what you can do to train without paying for it afterwards.
Exercise-triggered migraine versus exertional headache
Two different conditions are often lumped together under "headache after training". The first is migraine triggered by exercise in someone who already has migraine. The attack looks like their usual migraine: one-sided or throbbing pain, nausea, sensitivity to light and sound, sometimes visual aura, lasting hours.
The second is primary exercise headache, listed in the International Classification of Headache Disorders (ICHD-3). It is brought on by sustained strenuous exercise, is typically pulsating and lasts less than 48 hours. It is not caused by another disorder, but that can only be said once secondary causes have been excluded.
Both are fairly common. A Norwegian population study by Sjaastad and Bakketeig found that exertional headache affected a notable share of adults at some point, with younger people more often affected. Koppen and van Veldhoven, studying people with migraine, reported that a substantial proportion had experienced at least one exercise-triggered attack.
Distinguishing the two matters because treatment and prognosis differ, and because a first-ever severe headache during exertion can occasionally signal something serious, such as bleeding in the brain or reversible cerebral vasoconstriction syndrome.
Common triggers in the gym and on the road
Exercise itself is rarely the only trigger. More often an attack follows when several stressors combine on the same day. Recognising them is the first step to prevention.
- Dehydration and heat — long sessions in warm conditions with poor fluid intake.
- Low blood glucose — training fasted or long after the last meal.
- Sudden high intensity without warm-up, especially sprints and maximal efforts.
- Breath-holding and straining during heavy lifts (the Valsalva manoeuvre).
- Stimulants — high-caffeine pre-workouts, or caffeine withdrawal on rest days.
- Altitude and poor sleep the night before.
Supplements and drugs deserve a mention. Nitrate-rich beetroot products and some pre-workouts with vasodilating ingredients can provoke headache in susceptible people. Anabolic steroids and stimulants can raise blood pressure, and any persistent headache in a person using such substances needs a blood pressure check and medical review.

How the diagnosis is made
There is no blood test for migraine. Diagnosis is clinical, based on a careful history and examination. A GP will ask when the pain starts relative to exercise, how quickly it peaks, how long it lasts, where it is felt and what accompanies it. Keeping a headache diary for a few weeks makes this conversation far more productive.
| Feature | Exercise-triggered migraine | Primary exercise headache | Warning pattern |
|---|---|---|---|
| Onset | During or after exercise, builds gradually | During strenuous effort | Sudden, peaks within a minute ("thunderclap") |
| Character | Throbbing, often one-sided | Pulsating, both sides | Worst headache ever |
| Other symptoms | Nausea, light/sound sensitivity, aura | Usually few | Vomiting, neck stiffness, weakness, confusion |
| History | Known migraine | Recurrent, similar episodes | First episode, or new pattern after age 50 |
NICE guideline CG150 advises that most people with typical migraine do not need brain imaging. However, a first episode of exertional headache, especially if it starts abruptly, warrants investigation. Doctors may arrange a CT or MRI scan, and sometimes imaging of blood vessels, to rule out subarachnoid haemorrhage, arterial dissection or vasoconstriction syndromes.
Blood pressure measurement, a neurological examination and a review of medicines and supplements are standard parts of the assessment. If you use any prescription or non-prescription substances to support training, telling your doctor openly makes accurate diagnosis much more likely.
Practical prevention
For many people, small adjustments to the training routine are enough to reduce attacks substantially. The aim is to remove avoidable triggers while keeping the long-term benefits of exercise.
A gradual warm-up of ten to fifteen minutes allows heart rate and blood flow to rise steadily. Eating a carbohydrate-containing snack one to two hours before training, drinking regularly during longer sessions and replacing sodium in hot conditions all help to keep the internal environment stable.
Consistency with caffeine is useful: a stable daily intake causes fewer problems than large doses on training days and none on rest days. Lifters prone to headaches can experiment with breathing technique, avoiding prolonged breath-holding on submaximal sets, and with slightly lower intensity during periods of frequent attacks.
Interestingly, regular moderate aerobic exercise has been tested as migraine prophylaxis. In a randomised study by Varkey and colleagues, a structured programme of three sessions per week reduced attack frequency to a degree comparable with relaxation training and the preventive drug topiramate. If attacks remain frequent, a doctor can discuss preventive medicines or pre-treatment options.
Red flags and when to see a doctor
Book a GP appointment if you have headaches after exercise for the first time, if your usual migraine pattern changes, or if attacks are frequent enough to disrupt training, work or study. Bring your diary and a list of supplements.
Call 999 or go to A&E immediately for a sudden, explosive headache reaching full intensity within seconds to a minute, particularly during exertion or sexual activity. This "thunderclap" pattern can be a sign of bleeding around the brain.
Other urgent warning signs include headache with fever and neck stiffness, new weakness or numbness, slurred speech, double vision, confusion, a seizure, or loss of consciousness. Headache after a blow to the head during sport also needs prompt assessment for concussion.
Persistent headache combined with very high blood pressure readings, or in someone using anabolic steroids, stimulants or other performance-enhancing drugs, should not be ignored or self-treated. These substances can contribute to dangerous rises in blood pressure.
Conclusions of the editorial team
Headache after training is common and usually benign, but it comes in two main forms: migraine triggered by exercise and primary exercise headache. Both are diagnosed only after serious causes are excluded.
Warm-up, steady fuelling and hydration, consistent caffeine habits and sensible breathing during lifts prevent many attacks. Regular moderate exercise may even reduce migraine frequency over time.
A first-ever, sudden or "worst ever" headache during exertion is a medical emergency.
Related topics on our site include caffeine and pre-workout safety, blood pressure in strength athletes, and hydration strategies for training in the heat.
References
- Headache Classification Committee of the International Headache Society. The International Classification of Headache Disorders, 3rd edition. Cephalalgia. 2018;38(1):1–211.
- Koppen H, van Veldhoven PL. Migraineurs with exercise-triggered attacks have a distinct migraine. J Headache Pain. 2013;14:99.
- Sjaastad O, Bakketeig LS. Exertional headache. I. Vågå study of headache epidemiology. Cephalalgia. 2002;22(10):784–790.
- Varkey E, Cider A, Carlsson J, Linde M. Exercise as migraine prophylaxis: a randomized study using relaxation and topiramate as controls. Cephalalgia. 2011;31(14):1428–1438.
- National Institute for Health and Care Excellence. Headaches in over 12s: diagnosis and management (CG150). London: NICE; 2012.
- Ashina M. Migraine. N Engl J Med. 2020;383(19):1866–1876.
- Ducros A. Reversible cerebral vasoconstriction syndrome. Lancet Neurol. 2012;11(10):906–917.


