Why do I get a headache after working out?
A headache during or after hard exercise is usually a harmless 'primary exercise headache' — worse in heat and at altitude — but the first sudden or severe one must be checked. How to tell the ordinary kind from the patterns that need a doctor, and how to prevent it.

Short answer
A headache that comes on during or right after hard exercise — lifting, sprinting, rowing — is common and usually harmless. It has a name, primary exercise headache, and it tends to hit in heat or at altitude, lasting anywhere from a few minutes to a couple of days. But there is one firm rule: the first time you ever get a sudden, severe headache with exertion, it has to be checked, because a few dangerous causes announce themselves exactly this way. Once those are ruled out, it is very manageable.
For the serious first-time causes, see a doctor — no survey can rule those out. But if your headaches might be migraine-related, Welltory's 2-minute check-in shows the stress-and-recovery pattern in your nervous system behind them.
Note: this article explains exercise-related headache and is not medical advice. Most are benign, but a first sudden or severe headache brought on by exertion needs urgent assessment — see the red flags below.
You are not too unfit for this, and you are not imagining it
The two things people conclude about exercise headaches are usually both wrong: "I must be dangerously out of shape" or "it's nothing, I'll push through." Fit, strong, regularly-training people get these — it is not a verdict on your conditioning. And it is not nothing either; it is a recognised headache type with a real mechanism and real prevention. Both the panic and the shrug miss the mark.
The honest middle is this: the ongoing pattern is usually benign and fixable, but the very first severe one deserves a check, and this article treats both halves seriously rather than pushing you toward either extreme.
What primary exercise headache is
The formal definition is straightforward: a headache brought on by, and happening only during or after, strenuous physical exercise, lasting under 48 hours. It is typically a throbbing pain on both sides, coming on at peak effort.
It shows up especially in two conditions, and this is a strong clue it is the benign kind: hot weather and high altitude. If your exercise headaches cluster on hot days or appeared on a mountain trip, that fits the ordinary pattern well. The leading explanation is that hard exertion, heat and altitude all change blood flow and pressure in and around the head; in susceptible people that produces pain at maximum effort.
It is worth separating from its close cousin. A headache set off by a brief strain — coughing, sneezing, bending, a single heavy lift with a held breath — is "cough headache", a Valsalva effect. Exercise headache is brought on by sustained strenuous effort rather than a one-second strain. They overlap, but the distinction helps a doctor.
The rule that is not negotiable: check the first one
This is the part to take seriously, and then you can relax about the rest.
The international headache classification is blunt about it: the first time you have a headache with these features, it is mandatory to rule out three things — a bleed on the surface of the brain (subarachnoid haemorrhage), a tear in an artery wall (arterial dissection), and a condition called reversible cerebral vasoconstriction syndrome. All three can present as a sudden severe headache brought on by exertion, and all three are the reason "I got a terrible headache lifting weights" is never something to simply wait out the first time.
This is not meant to frighten you. The great majority of exercise headaches are the harmless primary kind. But the only way to know yours is harmless is that a dangerous cause was considered and excluded at the start. After that, a recurring, familiar exercise headache that behaves the same way each time is reassuring rather than alarming.
Go to emergency care now, not later, if a headache during exertion:
reaches maximum intensity within seconds (a "thunderclap")
is the worst you have ever had
comes with a stiff neck, fever, vomiting, confusion, weakness, numbness, or trouble speaking or seeing
follows a blow to the head
Which workouts set it off, and why that pattern is the answer
Not all exercise is equal here, and the specific activities that provoke it point straight at the mechanism.
The classic triggers are sudden, maximal, breath-holding efforts: heavy weightlifting, a hard sprint, rowing flat out. These spike the pressure inside the chest and head in a way steady moderate exercise does not, which is why a max deadlift is far more likely to bring on a headache than an easy jog of the same duration. Endurance efforts in the heat are the other classic setting — a long hard run on a hot day combines sustained exertion, heat and often dehydration.
What this means in practice is that the pattern is diagnostic on its own. If your headaches come from the heaviest lifts and the hardest intervals but never from easy sessions, that is the signature of primary exercise headache and it is reassuring once the first one has been checked. If they come from any activity, including gentle movement, or arrive unpredictably regardless of intensity, that is a different picture and worth flagging — it fits migraine or something else more than it fits exercise headache.
This is also why the fix is rarely "stop exercising". It is usually "change how you approach the hard sessions" — build intensity gradually, breathe through heavy lifts rather than holding your breath, and move demanding sessions out of the heat. Most people keep training; they just stop triggering it.
Or is it exercise-triggered migraine?
There is a second, separate possibility worth knowing, because it changes what helps. Exercise does not only cause primary exercise headache — it can also trigger a full migraine in people prone to them, and one of migraine's defining features is that it is made worse by routine physical activity in the first place.
How to tell them apart: a primary exercise headache is usually throbbing on both sides, comes at peak effort, and has no other symptoms. An exercise-triggered migraine leans one-sided, comes with nausea or sensitivity to light and sound, and can last much of the day with the wrung-out aftermath migraine leaves. If your post-workout headaches look like migraines, they are treated as migraines — which is a more useful answer than "exercise headache."
What your own data can add
This is a headache where your training data and your body data sit in the same place, which makes the pattern unusually easy to see.
What to look at. Whether the headaches track the hard sessions specifically — peak heart rate, longest or most intense efforts — rather than easy ones. Whether they cluster on hot days or when you trained dehydrated or underslept. Whether a session where your heart rate ran much higher than usual for the same effort lines up with a headache afterward. Because your workouts are already logged with their intensity, you can line the headache days up against the exact sessions and see whether it is effort, heat, or something else doing it.
There is a useful reference point for what counts as a genuinely hard session for you. In Welltory data from about 5,000 people who track with a wearable, the personal high-intensity threshold — the heart rate above which effort is "hard" for that individual — has a median around 96 beats per minute but spreads across roughly 83 to 108 from one person to the next. In other words, "hard" is not a universal number; one person's easy jog is another's red line. So when you check whether a headache followed a hard session, the honest comparison is against your own threshold, not a generic one — which is exactly what your own history of sessions gives you. (This cohort skews older, around 40–72, and is about 5,000 people, not the whole user base — the point is how wide the spread is.)
Welltory measures heart rate and, with your activity data, the intensity of each session, so "I get headaches after some workouts" can become "they follow my hardest sessions on hot days, not my easy ones" — which is both a real insight and a useful thing to bring to a doctor.
What it cannot do. It cannot rule out the dangerous first-time causes above — only a clinical assessment does that — and it cannot tell a primary exercise headache from an exercise-triggered migraine. What it does well is show which sessions provoke it, which is the key to preventing it.
How to prevent the ordinary kind
Once the serious causes are excluded, primary exercise headache is quite manageable. The measures clinicians advise, and that follow directly from the heat/altitude/exertion mechanism:
Avoid training in extreme heat. This is the single biggest lever, since hot weather is one of the main settings for it.
Go easy on altitude you are not used to. Build up gradually rather than doing a hard session on day one at height.
Hydrate properly before and during, so you are not compounding it with dehydration.
Warm up and build intensity gradually rather than going from cold to maximal effort.
If it keeps happening despite this, a doctor can prescribe a preventive medication to take before exercise for people who get these reliably.
A note on the two extremes people swing to. Some stop training entirely out of fear, which is almost never necessary once the serious causes are excluded and usually costs more health than it saves. Others ignore a genuinely new, severe headache and keep pushing, which is the one response the "check the first one" rule is meant to prevent. The workable middle is to get the first bad one assessed, then adjust the hard sessions rather than abandon exercise — most people find the headaches become rare or disappear with a few changes to how they warm up, breathe and time their intensity.
It is also worth being honest about what will not fix it: powering through, a stronger painkiller taken after the fact, or simply hoping it stops. A headache that comes reliably at peak effort is telling you something about how you are loading your body at that moment, and the durable fix is in the loading — the ramp-up, the breathing, the heat, the hydration — not in medicating the aftermath.
Not sure it is the harmless kind?
Welltory's 2-minute check-in shows the stress-and-recovery pattern behind headaches — useful for the migraine angle, though it won't identify exercise headache and won't replace the first-time check with a doctor.
How to bring this up with your doctor
Lead with the trigger and the timing. "I get a throbbing headache on both sides at peak effort when I lift or sprint, worse on hot days, and it lasts an hour or two." That description points straight at primary exercise headache and tells the doctor what to confirm.
Say whether this is new. The single most important fact is whether this is a longstanding, familiar pattern or a recent, sudden, severe one. Recent and severe gets a workup; longstanding and stereotyped is reassuring. Do not downplay a first bad one to avoid a fuss — that is exactly the one worth checking.
Bring the training log. The sessions that provoke it, the weather, whether you were hydrated and rested. If you track workouts, the pattern is right there.
What to ask for.
Whether the first or worst episode warrants imaging to exclude a bleed, a dissection or vasoconstriction — ask directly if it was sudden or severe.
Whether this is primary exercise headache or exercise-triggered migraine, since they are managed differently.
Whether a preventive medication taken before exercise is appropriate if it recurs.
If you are brushed off but the headaches keep coming with exertion, ask for the reasoning to be recorded — particularly whether the serious causes were considered for the first severe episode. For this pattern that question matters more than for most, because the whole point of the first-episode rule is that a dangerous cause is easiest to catch early and most costly to miss. A single line in your notes — "exertion headache, sudden severe onset, imaging considered because…" — turns a verbal reassurance into a decision someone has actually made, and that alone tends to raise the care taken over it.
How we made it
Written from the International Classification of Headache Disorders (3rd edition) for the definition of primary exercise headache, the mandatory first-episode work-up, and the migraine criteria, plus clinical prevention guidance from Cleveland Clinic and the American Migraine Foundation, and the SNNOOP10 red-flag list. Where the honest answer is "usually harmless but check the first one," we say exactly that rather than leaning to panic or dismissal.
Written by the Welltory science team Data analysis by the Welltory data team Reviewed by Anna Elitzur, MD


Discounts for blog readers: up to 36% off
See what affects your energy, stress, sleep, and daily state with Welltory
This article is for educational purposes only and is not medical advice. Most exercise headaches are benign, but a first sudden or severe headache brought on by exertion must be assessed urgently to exclude serious causes. Seek emergency care for a headache that peaks within seconds, is the worst of your life, or comes with a stiff neck, fever, vomiting, confusion, weakness, numbness, or speech or vision changes. Welltory measures physiological signals like heart rate, HRV, sleep, and stress.
Was this helpful?
Ask AI for a summary of page
Written by Jane Smorodnikova
The founder and CEO of Welltory. A recognized tech leader with two Master's degrees and experience at MIT, she has scaled Welltory to over 17 million users.
Written by Tatsiana Yashyna
Reviewed by Anna Elitzur
With her medical degree, Anna reviews Welltory's health content for medical accuracy and alignment with current clinical guidelines and research.
References
- International Headache Society. ICHD-3, 4.2 Primary exercise headache. https://ichd-3.org/other-primary-headache-disorders/4-2-primary-exercise-headache/
- International Headache Society. ICHD-3, 4.1 Primary cough headache. https://ichd-3.org/other-primary-headache-disorders/4-1-primary-cough-headache/
- International Headache Society. ICHD-3, 1.1 Migraine without aura. https://ichd-3.org/1-migraine/1-1-migraine-without-aura/
- Cleveland Clinic. Exertion headaches. https://my.clevelandclinic.org/health/diseases/21959-exertion-headaches
- Do TP, Remmers A, Schytz HW, et al. Red and orange flags for secondary headaches in clinical practice: SNNOOP10 list. Neurology 2019;92(3):134–144. https://www.neurology.org/doi/10.1212/WNL.0000000000006697
- American Headache Society. Position statement on integrating new migraine treatments into clinical practice. Headache 2019;59(1):1–18. https://headachejournal.onlinelibrary.wiley.com/doi/10.1111/head.13456
- Ailani J, Burch RC, Robbins MS. AHS consensus statement: update on integrating new migraine treatments into clinical practice. Headache 2021;61(7):1021–1039. https://headachejournal.onlinelibrary.wiley.com/doi/10.1111/head.14153


-2.jpg)





