Cerebral Torque®
  1. Other headache types
Guide

Exertion Headache, Why Exercise Causes Head Pain and When to Worry

Exertion headache is a throbbing headache that starts during or after hard exercise. Most cases are harmless, but the first one needs a check. Here is what causes it, what to rule out and how to prevent it.

On this pageJump to a section12
  1. What an Exertion Headache Is
  2. How Common Exercise Headache Is
  3. Why Exercise Causes Head Pain
  4. Headache After Working Out, When to Worry
  5. How Doctors Check an Exercise Headache
  6. Exertion Headache or a Migraine Attack Triggered by Exercise
  7. How to Prevent Exercise Headache
  8. Exertion Headache Treatment
  9. Regular Exercise Still Helps Migraine
  10. Cough Headache and Sex Headache
  11. Common questions
  12. References

An exertion headache is a throbbing headache that starts during or right after strenuous exercise and lasts from minutes up to two days. Most are a harmless condition called primary exercise headache, but a first episode, or one that hits suddenly and severely, needs a medical check for bleeding, a torn artery or a heart problem.

This guide covers what exercise headache feels like, why it happens, the warning signs that need urgent care, how it differs from a migraine attack brought on by exercise, and what prevents and treats it.

What an Exertion Headache Is

Doctors split headaches into two groups. A primary headache is a disorder in its own right, like migraine or tension-type headache. A secondary headache is a symptom of something else, such as bleeding in the brain or an infection. Exercise can set off both kinds, which is why the label "exertion headache" on its own does not tell you which one you have.

The International Classification of Headache Disorders (ICHD-3) defines primary exercise headache, previously called benign exertional headache, by four criteria:1

  • At least two episodes
  • Brought on by, and occurring only during or after, strenuous physical exercise
  • Each episode lasts less than 48 hours
  • No other diagnosis explains it better

The classification adds that it occurs particularly in hot weather or at high altitude, that subtypes such as "weight-lifter's headache" are recognized, and that it usually follows sustained hard effort rather than the brief straining that sets off cough headache.1 It also states plainly that on the first occurrence, subarachnoid hemorrhage, arterial dissection and reversible cerebral vasoconstriction syndrome must be excluded.1

In the Norwegian Vågå study, where one neurologist personally interviewed 1,838 adults, attacks followed long-lasting, strenuous effort or exhaustion. Most people described the pain as throbbing, but nausea, vomiting and one-sided pain were not typical features.1,2,3 Attacks could last up to 24 hours, and short attacks (under an hour) and longer attacks were about equally common.4 Teenagers tend to have briefer episodes; in the Vågå data almost half of adolescent sufferers had headaches lasting under 5 minutes.1 A Japanese clinic study described exercise headache as mostly two-sided, often at the back or front of the head, lasting from 5 minutes to 12 hours.5

How Common Exercise Headache Is

Estimates range widely, from about 1% to 26% of adults, depending on who is asked and how the headache is defined.6

StudyWho was studiedFinding
Vågå, Norway1,838 adults aged 18 to 65, interviewed in person12.3% had ever had exertion headache, slightly more women than men2
Tehran, Iran2,076 adults from the general population7.3% in the past year; 10.0% of women versus 5.4% of men. None had seen a doctor about it7
Taiwan1,963 students aged 13 to 1530.4% had headache during or right after exercise; 10.2% met the formal criteria, though other causes were not ruled out8
Iran, military300 young conscripts12.7%; hot surroundings made it worse and stopping exercise eased it9

Two patterns show up across these studies. Population surveys find exercise headache somewhat more often in women, while older clinic series found more men, which may reflect who gets referred rather than who is affected.5,10 And people with migraine are more likely to have it. In the Taiwanese students, 47.5% of those with migraine reported exercise headache compared with 21.1% of those without, and their headaches had more migraine-like features.8 In the Vågå study, exertion headache coexisted with migraine in 46% of cases.3

Why Exercise Causes Head Pain

The cause of primary exercise headache is not known.1 Most researchers think it is related to blood vessels: hard exercise raises blood pressure and blood flow, and stretching of arteries or veins inside the skull may set off pain.1,5

One line of evidence points to the veins that drain the head. Straining, as in a heavy lift, raises pressure in the chest and slows blood leaving the brain. The internal jugular veins in the neck have valves that normally stop blood flowing backward. In a German ultrasound study, 70% of 20 people with exercise headache had a leaky jugular valve compared with 20% of 40 people without it, suggesting that brief backflow and congestion inside the skull may play a part.11 This was a small study, and it does not explain every case.

Exercise-triggered migraine attacks involve a different process. The migraine brain has a threshold, and a hard session adds to the day's load along with sleep, hormones and stress. Proposed mechanisms include a burst of calcitonin gene-related peptide (CGRP), the signaling molecule that today's CGRP medicines block, and shifts in lactate and hypocretin metabolism.12

Headache After Working Out, When to Worry

Most exercise headaches turn out to be primary. Secondary causes are uncommon, but they are serious enough that a first episode, or one that does not fit the usual pattern, should be checked.6 For headaches brought on by exercise and sex, secondary cases are rare, and the most frequent underlying cause is a small warning (sentinel) bleed into the space around the brain.13 In a Spanish hospital series of 72 people with headaches brought on by coughing, exercise or sex, 42% had an underlying cause; most of the secondary exercise headaches were due to subarachnoid hemorrhage.10 That clinic saw referred patients, so the share is higher than in the general population, but it shows why the first episode deserves attention.

Possible causeCluesUsual tests
Subarachnoid hemorrhageSudden, explosive pain that peaks within a minute, often with vomiting, neck stiffness or collapseEmergency CT scan, sometimes a lumbar puncture
Reversible cerebral vasoconstriction syndrome (RCVS)Repeated sudden severe headaches over days; often linked to vasoactive drugs, cannabis, decongestants or recent childbirth14Imaging of the brain arteries
Neck artery tear (dissection)Neck or face pain on one side, a drooping eyelid or small pupil, recent neck strain or injuryMRI and imaging of the head and neck arteries
Cardiac cephalalgia (headache from heart strain)High blood pressure, diabetes, smoking or known heart disease; may come with chest pressure or shortness of breath; eases with restECG, blood tests, exercise stress test
Raised pressure in the skull or other rare causesVision changes, ringing or whooshing in the ears, sweating and racing heart with blood pressure spikesMRI, eye exam, specific blood tests5

Cardiac cephalalgia deserves a closer look because it is easy to miss. It is headache as the sign of reduced blood flow to the heart. About two-thirds of cases come on with exertion; the headache typically lasts less than 30 minutes and is relieved by nitroglycerin.15 In a review of 88 reported cases, most people also had heart symptoms, and the pain was most often at the back of the head and throbbing.16 Anyone with risk factors for heart disease who develops a new headache with exertion should have their heart checked.17

A 2018 review lists older age at onset and longer-lasting headaches as possible warning signs of a secondary cause; there is not enough evidence to treat sex as a warning sign.6

When to get urgent care

Call emergency services or go to an emergency department for a sudden, severe headache that peaks within about a minute, the worst headache of your life, a headache with fainting, confusion, weakness, numbness, trouble speaking or double vision, a stiff neck with vomiting, or a headache with chest pain or shortness of breath. Stop exercising and do not drive yourself. See thunderclap headache and headaches that are medical emergencies.

How Doctors Check an Exercise Headache

A sudden, explosive headache during exercise is handled as an emergency. For the more common pattern, a throbbing headache that builds during a hard workout and fades over hours, the evaluation is usually done in the office. One review suggests MRI of the brain and upper spine, imaging of the head and neck blood vessels guided by the history, and heart testing such as an ECG and exercise stress test when cardiac risk factors are present.5 That review also describes a weightlifter whose presumed exercise headache turned out to be RCVS linked to cocaine use, and advises re-checking for a secondary cause when standard treatment does not work.5

Before the visit, note when each headache started relative to the workout, the type of exercise, how fast the pain peaked, how long it lasted, the weather and altitude, and any medicines or supplements, including pre-workout products and decongestants.

Exertion Headache or a Migraine Attack Triggered by Exercise

These are separate diagnoses. If exercise sets off an attack that meets the criteria for migraine, the classification codes it as migraine, not as exercise headache.1

FeaturePrimary exercise headacheExercise-triggered migraine attack
TimingDuring or right after strenuous effortDuring exercise or in the hours after
SideUsually both sidesOften one side
LengthMinutes to hours, always under 48 hoursTypically 4 to 72 hours untreated
Nausea, light and sound sensitivityUsually absentCommon
AuraNoPossible
Other attacksHeadaches occur only with exertionAlso has migraine attacks unrelated to exercise

Exercise-triggered attacks are common in people with migraine. In a Dutch headache clinic, 38% of 103 patients said exercise had triggered a migraine attack at some point, regardless of sex or aura status. Those patients more often started their usual attacks with neck pain, and more than half had given up the sport that set them off.18 The Vågå researchers found that exertion headache attacks were generally shorter and milder than the same people's migraine attacks, and concluded they were not small migraine attacks but a related, migraine-like condition.3

Exercise rarely acts alone as a trigger. A hard session on a day when sleep was short, a meal was skipped or a period is starting stacks with those factors, which is why the same workout causes an attack one week and not the next. Some "exercise triggers" are also the attack itself. Neck stiffness, unusual fatigue or yawning before a workout can be prodrome, the first phase of an attack that had already begun. Our guide to the migraine trigger myth explains how to tell the difference. Once an attack is under way, exertion usually makes the pain worse, and resting is the better choice for most people.

How to Prevent Exercise Headache

No controlled trials have tested prevention strategies for primary exercise headache, so the advice below comes from what is known about the condition and from expert opinion.6

  • Warm up and build gradually. Start each session gently rather than jumping into maximal effort, and when beginning a new program, raise intensity over weeks. This is standard advice for both exercise headache and exercise-triggered migraine attacks, though it has not been tested in trials.
  • Respect heat and altitude. Exercise headache occurs particularly in hot weather and at high altitude.1 Exercise in cooler parts of the day, give yourself time to adjust to heat, and ascend gradually in the mountains. In a study of 506 mountaineers, 31% developed high-altitude headache; a history of migraine, low blood oxygen, high perceived exertion and drinking less than 2 liters of fluid that day were each independent risk factors.19
  • Drink steadily and do not train fasted. Regular fluids and food before longer sessions are sensible habits. Dehydration is not a reliable migraine trigger when tested, so if headaches continue despite good hydration, look at intensity, heat and other factors. See dehydration headache.
  • Breathe out during heavy lifts. Breath-holding while straining raises chest pressure and slows blood draining from the head, which is one proposed mechanism.11 Exhaling through the effort and lowering the load are reasonable adjustments for weight-lifter's headache, though they have not been tested in trials.
  • Check what else you are taking. High-stimulant pre-workout products, decongestants and recreational drugs can raise blood pressure, and some vasoactive substances are linked to RCVS.14
  • Stop when it starts. In the study of conscripts, stopping exercise was the most common thing that eased the headache.9

Exertion Headache Treatment

There are no randomized trials in primary exercise headache. Treatment is based on case series and expert experience.5,6

Indomethacin before exercise

Indomethacin (Indocin) is an anti-inflammatory drug with a special place in a few headache disorders, including exercise, cough and sexual headache.20 The classification notes that it has been effective in the majority of cases of exercise headache.1 Reported doses range from 25 to 150 mg taken before planned strenuous activity, and some people in early series used it daily.5 Like other anti-inflammatory drugs, it can irritate the stomach and affect the kidneys, so it is not right for everyone, especially people with ulcers, kidney disease, heart disease or those on blood thinners. Dose and timing should come from your prescriber.

Beta blockers

For people who exercise most days, a daily beta blocker such as propranolol (Inderal) is the other mainstay.5,13 Response to beta blockers is one of the features that points toward a primary rather than secondary cause.15 Beta blockers lower the maximum heart rate, which some athletes notice as reduced performance. Our guide to propranolol for migraine covers dosing ranges and side effects.

Other options and the usual course

There are reports of prevention with ergotamine in some patients.1 Exercise, cough and sexual headaches tend to come in bouts separated by long remissions,21 so medicine is often needed only for a period rather than for life. Some people use a standard pain reliever once a headache starts. If you have migraine, keep track of how many days a month you take pain relievers for any reason, since frequent use can lead to medication overuse headache; our medication overuse headache checker shows the limits. If preventive treatment does not help, your clinician should look again for a secondary cause.5

For exercise-triggered migraine attacks, treat the attack the way you treat any other, and if attacks are frequent, ask about a preventive. The acute migraine treatment cheat sheet lists the options.

Regular Exercise Still Helps Migraine

An exercise headache or an exercise-triggered attack is not a reason to give up exercise for good. In the Norwegian HUNT study of more than 46,000 adults, low physical activity was linked to more migraine and more non-migraine headache, with a strong trend toward less activity as headache frequency rose.22 This is an association; people with frequent headaches may also be less able to exercise.

Trials point in the same direction. In a Swedish randomized trial of 91 adults with migraine, exercising 40 minutes three times a week reduced attacks by 0.93 per month, similar to relaxation (0.83) and topiramate (0.97), with no significant difference between the groups.23 A 2022 network meta-analysis of 21 trials and 1,195 patients ranked strength training first, followed by high-intensity and then moderate-intensity aerobic exercise, for reducing monthly migraine frequency.24 A 2025 analysis of 27 trials found the largest effects for combined aerobic and resistance exercise, though it rated the overall certainty of evidence as very low to low.25 These rankings come from comparisons across different trials, so they should not be over-read.

The likely explanation is that regular exercise raises the threshold at which attacks fire, so a single hard session matters less over time.12 The benefit takes weeks to appear; in the Swedish trial, it was measured after three months of training.23 Our full guide to exercise and migraine covers how to start without provoking attacks.

Cough Headache and Sex Headache

Exercise headache has two relatives that are also brought on by physical effort.

Cough headache is set off by coughing, sneezing, laughing or other brief straining, rather than by sustained exercise.1 It differs from exercise headache in an important way: about half of cases have an underlying structural cause, most often a Chiari type I malformation, where the lower part of the brain sits low in the skull opening. The secondary form tends to start younger (around 40 versus 60 for the primary form), sits at the back of the head and does not respond to indomethacin.13 Every new cough headache needs imaging, usually an MRI, to look for a structural cause.15

Headache with sexual activity behaves like exercise headache. Both usually start around age 40, are two-sided and pulsating, and respond to beta blockers, and researchers consider them variants of the same condition.13 It can build gradually with arousal or explode at orgasm. A sudden, severe headache during sex needs the same urgent check for bleeding, RCVS and artery tears, and indomethacin or a triptan taken beforehand can prevent the primary form.26 See headache during sex and when to worry.

Common questions

Is an exertion headache dangerous?

Usually not. Most people who get a throbbing headache with hard exercise have the primary form, which is uncomfortable but does no harm. The concern is the minority caused by bleeding, a torn neck artery, narrowed brain arteries or heart strain. That is why a first episode, a sudden explosive onset, or a headache with neurological or chest symptoms needs medical assessment before it is labeled harmless.

How long does an exertion headache last?

Many last minutes to a few hours, and some linger into the next day. By definition, the primary form always ends within 48 hours. Teenagers often have very short episodes, sometimes under five minutes. A headache that keeps going beyond two days, keeps getting worse, or comes with new symptoms does not fit the pattern and should be reviewed by a clinician.

Why do I get a headache after working out but not during it?

Primary exercise headache can begin during effort or shortly after it ends, and the diagnostic criteria allow either. For people with migraine, a delayed headache in the hours after training is often a migraine attack set off by the session combined with other loads that day, such as poor sleep, heat or a missed meal. Noting the timing and features in a diary helps sort out which one you have.

Can dehydration cause a headache after exercise?

Heavy sweating without replacing fluids can contribute, and low fluid intake was a risk factor for headache at high altitude. Still, dehydration is overrated as a cause of migraine attacks. Thirst before an attack can be an early symptom rather than the cause. Drink steadily, but if headaches persist despite good hydration, look at intensity, heat, altitude and warm-up.

Should I stop exercising if I get exertion headaches?

Not permanently. After serious causes are excluded, most people can keep training by warming up longer, lowering intensity for a few weeks, avoiding the hottest hours and building back gradually. A clinician can prescribe a medicine to take beforehand if needed. Giving up activity removes one of the better long-term tools for lowering migraine frequency, so the aim is to adjust rather than quit.

Which doctor should I see for exercise headaches?

Start with a primary care clinician, who can examine you, check blood pressure and heart risk, and arrange imaging. A neurologist, ideally one with headache training, is the right next step if the diagnosis is unclear or treatment does not work. Our headache specialist finder can help you locate one near you.

Important Medical Disclaimer

This article is for educational purposes only and does not replace advice from your physician. Talk with your own clinician before starting, stopping or changing any treatment.

References

  1. Headache Classification Committee of the International Headache Society. The International Classification of Headache Disorders, 3rd edition. Cephalalgia. 2018;38(1):1-211. doi:10.1177/0333102417738202.
  2. Sjaastad O, Bakketeig LS. Exertional headache. I. Vågå study of headache epidemiology. Cephalalgia. 2002;22(10):784-790. doi:10.1046/j.1468-2982.2002.00466.x.
  3. Sjaastad O, Bakketeig LS. Exertional headache. II. Clinical features. Vågå study of headache epidemiology. Cephalalgia. 2003;23(8):803-807. doi:10.1046/j.1468-2982.2003.00588.x.
  4. Sjaastad O, Bakketeig LS. Prolonged benign exertional headache. The Vågå study of headache epidemiology. Headache. 2003;43(6):611-615. doi:10.1046/j.1526-4610.2003.03123.x.
  5. Upadhyaya P, Nandyala A, Ailani J. Primary exercise headache. Current Neurology and Neuroscience Reports. 2020;20(5):9. doi:10.1007/s11910-020-01028-4.
  6. Sandoe CH, Kingston W. Exercise headache: a review. Current Neurology and Neuroscience Reports. 2018;18(6):28. doi:10.1007/s11910-018-0840-8.
  7. Rabiee B, Mohammadinejad P, Kordi R, et al. The epidemiology of exertional headache in the general population of Tehran, Iran. Headache. 2015;55(9):1225-1232. doi:10.1111/head.12610.
  8. Chen SP, Fuh JL, Lu SR, et al. Exertional headache: a survey of 1963 adolescents. Cephalalgia. 2009;29(4):401-407. doi:10.1111/j.1468-2982.2008.01744.x.
  9. Tofangchiha S, Rabiee B, Mehrabi F. A study of exertional headache's prevalence and characteristics among conscripts. Asian Journal of Sports Medicine. 2016;7(3):e30720. doi:10.5812/asjsm.30720.
  10. Pascual J, Iglesias F, Oterino A, et al. Cough, exertional, and sexual headaches: an analysis of 72 benign and symptomatic cases. Neurology. 1996;46(6):1520-1524. doi:10.1212/wnl.46.6.1520.
  11. Doepp F, Valdueza JM, Schreiber SJ. Incompetence of internal jugular valve in patients with primary exertional headache: a risk factor? Cephalalgia. 2008;28(2):182-185. doi:10.1111/j.1468-2982.2007.01484.x.
  12. Amin FM, Aristeidou S, Baraldi C, et al. The association between migraine and physical exercise. The Journal of Headache and Pain. 2018;19(1):83. doi:10.1186/s10194-018-0902-y.
  13. Pascual J, González-Mandly A, Oterino A, et al. Primary cough headache, primary exertional headache, and primary headache associated with sexual activity. Handbook of Clinical Neurology. 2010;97:459-468. doi:10.1016/S0072-9752(10)97040-1.
  14. Ducros A, Boukobza M, Porcher R, et al. The clinical and radiological spectrum of reversible cerebral vasoconstriction syndrome. A prospective series of 67 patients. Brain. 2007;130(Pt 12):3091-3101. doi:10.1093/brain/awm256.
  15. González-Quintanilla V, Madera J, Pascual J. Update on headaches associated with physical exertion. Cephalalgia. 2023;43(3):3331024221146989. doi:10.1177/03331024221146989.
  16. Navarro-Pérez MP, Bellosta-Diago E, Olesen J, et al. Cardiac cephalalgia: a narrative review and ICHD-3 criteria evaluation. The Journal of Headache and Pain. 2022;23(1):136. doi:10.1186/s10194-022-01508-7.
  17. Wei JH, Wang HF. Cardiac cephalalgia: case reports and review. Cephalalgia. 2008;28(8):892-896. doi:10.1111/j.1468-2982.2008.01590.x.
  18. Koppen H, van Veldhoven PLJ. Migraineurs with exercise-triggered attacks have a distinct migraine. The Journal of Headache and Pain. 2013;14(1):99. doi:10.1186/1129-2377-14-99.
  19. Burtscher M, Mairer K, Wille M, et al. Risk factors for high-altitude headache in mountaineers. Cephalalgia. 2011;31(6):706-711. doi:10.1177/0333102410394678.
  20. Villar-Martínez MD, Moreno-Ajona D, Chan C, et al. Indomethacin-responsive headaches: a narrative review. Headache. 2021;61(5):700-714. doi:10.1111/head.14111.
  21. Bahra A. Other primary headaches: thunderclap-, cough-, exertional-, and sexual headache. Journal of Neurology. 2020;267(5):1554-1566. doi:10.1007/s00415-020-09728-0.
  22. Varkey E, Hagen K, Zwart JA, et al. Physical activity and headache: results from the Nord-Trøndelag Health Study (HUNT). Cephalalgia. 2008;28(12):1292-1297. doi:10.1111/j.1468-2982.2008.01678.x.
  23. Varkey E, Cider A, Carlsson J, et al. Exercise as migraine prophylaxis: a randomized study using relaxation and topiramate as controls. Cephalalgia. 2011;31(14):1428-1438. doi:10.1177/0333102411419681.
  24. Woldeamanuel YW, Oliveira ABD. What is the efficacy of aerobic exercise versus strength training in the treatment of migraine? A systematic review and network meta-analysis of clinical trials. The Journal of Headache and Pain. 2022;23(1):134. doi:10.1186/s10194-022-01503-y.
  25. Xie J, Lin Y, Wang B. Efficacy and optimal dosage of various exercises for migraine: a multilevel network and dose-response meta-analysis. PeerJ. 2025;13:e20254. doi:10.7717/peerj.20254.
  26. Maynard P, Pace A. Primary headache associated with sexual activity: a review of the literature. Current Pain and Headache Reports. 2024;28(7):627-632. doi:10.1007/s11916-023-01206-2.

Get studies like this by email

Every Friday, the week's migraine studies and news explained in plain language. No ads.

CROWN cooling roller“This is my favorite migraine roll-on that I’ve tried, and I’ve tried quite a few.” Verified Amazon buyerSee it on Amazon
Unraveling Migraine“The ultimate blueprint to navigate migraine care.” Olivia Begasse de Dhaem, MD, headache specialistSee it on Amazon
Cerebral Torque
About the author

Cerebral Torque

Founder of Cerebral Torque and author of Unraveling Migraine, with a medical background. Trained in computational and cellular neuroscience, with research using Hodgkin-Huxley modeling and clamp electrophysiology to study how neurons respond to rhythmic input. Now focused on migraine medicine and education, and has produced CME for clinicians on hormone therapy, migraine, and HRT delivery.

More about the author Editorial standards

This article is for education and is not medical advice. Talk with your own clinician before starting, stopping or changing any treatment.

Enter to openArrow keys to moveEsc to close

You've got this.

This screen is dimmed on purpose. A few things that help most people right now.

  1. 1
    Treat it early. Take your usual acute medicine now, at the dose your clinician gave you. Waiting usually makes it work less well.
  2. 2
    Cut the input. Dim the lights, lower the sound, step away from screens if you can.
  3. 3
    Cold and water. Something cold on the forehead or the back of the neck, and a few sips of water.
  4. 4
    Slow your breathing. Five slow minutes can take the edge off the stress response.

Want something to rest with? A dark screen with a dim green glow and slow, quiet music for 3 hours. Turn your brightness all the way down, or just listen with your eyes closed.

Get emergency care now if this is the worst headache of your life, came on like a thunderclap, or comes with new weakness, numbness, trouble speaking, confusion, fever with a stiff neck, or follows a head injury.