Educational information, not medical advice · Discuss your symptoms and treatment with a qualified clinician

Headaches During or After Exercise: Causes, Red Flags, and Prevention

By Dr. TC, DMD · Updated Dec 1, 2026

⏱ 13 min read

Runner sitting on a park bench holding his temples with a headache after exercise

Educational information · Not medical advice

In brief

A headache after exercise is usually primary exercise headache, but a first, sudden one needs checking. Learn the causes, red flags, and prevention steps.

Headaches During or After Exercise: Causes, Red Flags, and Prevention

Key Takeaways

  • A headache after exercise that comes on only during or after strenuous exercise and lasts less than 48 hours fits the pattern headache specialists call primary exercise headache, under the International Classification of Headache Disorders, third edition (ICHD-3).
  • The first headache after exercise of this kind must be checked: ICHD-3 states it is mandatory to exclude subarachnoid haemorrhage (bleeding around the brain), arterial dissection, and reversible cerebral vasoconstriction syndrome before calling it primary.
  • Hot weather, high altitude, and a personal or family history of migraine raise the risk, according to Mayo Clinic.
  • Prevention starts with a gradual warm-up, hydration, and avoiding hard exercise in extreme heat or at altitude before you are acclimatised — medication is a second step, not the first.
  • If headaches keep recurring, a clinician may consider a preventive medicine taken before exercise, such as indomethacin, or a daily preventive — never start these on your own.

You finish a run, a row, or a heavy set, and instead of the usual tired glow your head starts to throb. A headache after exercise is common, and it has a formal name: primary exercise headache. Mayo Clinic describes exercise headaches as occurring during or after sustained, strenuous exercise, with activities such as running, rowing, tennis, swimming, and weightlifting most often involved.

Most of these headaches are primary — the headache itself is the condition, not a symptom of something else — and they settle on their own. But a headache after exercise can occasionally be secondary, caused by an underlying problem, and that possibility is exactly why the first episode deserves respect rather than a shrug. This guide explains the difference, the red flags that need urgent care, and the prevention steps that actually have support.

What is a headache after exercise?

Advertisement

A headache after exercise is any head pain brought on by strenuous physical exercise and occurring only during or after that exercise. When no other disorder explains it, headache specialists classify it as primary exercise headache (ICHD-3 code 4.2). The ICHD-3 description is deliberately plain: headache precipitated by any form of exercise, in the absence of any intracranial disorder.

The formal ICHD-3 diagnostic criteria require at least two headache episodes that are brought on by and occur only during or after strenuous physical exercise, last less than 48 hours, and are not better accounted for by another diagnosis. A single first episode therefore cannot yet carry the label — it is a headache to be assessed, not a diagnosis to assume.

Runner sitting on a park bench holding his temples with a headache after exercise
Throbbing pain at peak effort is the classic timing for an exercise headache. Photo-style image for illustration, not a real patient.

Mayo Clinic divides exercise headaches into the same two categories used throughout this article. Primary exercise headaches are usually harmless and are not connected to an underlying problem. Secondary exercise headaches are caused by an underlying, often serious problem inside the brain — such as bleeding — or outside it, such as coronary artery disease, and may need emergency attention.

What does a primary exercise headache feel like?

Mayo Clinic describes primary exercise headaches as usually throbbing, occurring during or after strenuous exercise, and affecting both sides of the head in most cases. Cleveland Clinic adds that the pain can be on one or both sides, is often described as throbbing or pulsating, and is most common at the back, front, and sides of the head.

Duration is part of the pattern. Primary exercise headaches typically last between five minutes and 48 hours, while secondary exercise headaches usually last at least a day and can linger for several days or longer, according to Mayo Clinic. A headache after exercise that keeps building, or that is still present days later, does not fit the primary pattern and should be assessed.

See also  Headache with Blurry Vision: Causes, Symptoms, and Relief

Less than 48 hours

That is the ICHD-3 duration ceiling for primary exercise headache: episodes brought on by strenuous exercise must last less than 48 hours. Pain that lasts longer, or keeps returning in a changed pattern, needs a fresh medical assessment rather than the primary label.

Some people notice that only one activity triggers it — heavy lifting, for example, but not cycling — and that the same workout on a cool day is fine while a hot day is not. That trigger pattern is useful information to record, because it helps a clinician separate a primary exercise headache from the look-alikes covered below, including the ice pick headaches that last only seconds.

Why does a headache after exercise happen?

The honest answer is that the exact cause of primary exercise headache is unknown. Mayo Clinic notes one leading theory: strenuous exercise dilates blood vessels inside the skull, and that change in blood flow and pressure is felt as pain. Cleveland Clinic similarly describes experts believing intense activity temporarily increases pressure inside the skull and changes how blood flows through the brain's blood vessels.

What is better established is when it happens. Mayo Clinic lists three risk factors: exercising in hot weather, exercising at high altitude, and having a personal or family history of migraine. Cleveland Clinic also notes dehydration among the situations in which exertion headaches are more common. Heavy straining — the held-breath effort of a maximal lift — is a classic setting, which is why breathing pattern during lifting is part of the prevention discussion below.

Steady, graduated effort rather than a sudden maximal push is the pattern prevention advice is built around. Short muted clip for illustration.

Secondary causes are a different list, and it is the list that drives the red-flag rules. Mayo Clinic names bleeding in the area between the brain and the membranes covering it (subarachnoid haemorrhage), irregularities in a blood vessel leading to or within the brain, cancerous or noncancerous tumours, obstruction of cerebrospinal fluid flow, sinus infection, and structural irregularities in the head, neck, or spine.

Which exercise headaches are red flags?

ICHD-3 is explicit: on the first occurrence of a headache with exercise-headache characteristics, it is mandatory to exclude subarachnoid haemorrhage, arterial dissection, and reversible cerebral vasoconstriction syndrome (RCVS). That single sentence is the reason this article will not tell you to simply rest and see how it goes after a first, severe episode.

Mayo Clinic notes that secondary exercise headaches may cause the same throbbing symptoms as primary ones, plus vomiting, loss of consciousness, double vision, and neck stiffness. Treat any of the following as a reason for urgent, same-day assessment:

  • A first headache after exercise that is sudden and severe, reaching peak intensity very quickly
  • Vomiting, fainting or loss of consciousness, double vision, or marked neck stiffness
  • Weakness, numbness, confusion, or trouble speaking alongside the pain
  • A headache that lasts well beyond 48 hours, or a familiar pattern that changes
  • A first exercise headache later in life, or one that follows a head or neck injury

If you experience a headache during or after exercise, Mayo Clinic advises consulting your healthcare provider — and the features above move that from a routine appointment to urgent care. Do not repeat the workout to test whether it happens again.

Advertisement

How is a headache after exercise diagnosed?

Diagnosis starts with the story: which activity, how hard, how fast the pain peaked, how long it lasted, and what came with it. Because the ICHD-3 criteria require at least two episodes and no better alternative explanation, a clinician's first job after a first episode is exclusion — checking that bleeding, a vessel problem, or another disorder is not the real cause. Depending on the presentation, that assessment can involve examination and imaging; the exact tests are a clinical decision, not something to self-order or skip.

See also  Do Migraine Drugs Help TMJ? CGRP Blockers, Botox and Triptans When You Have Both

Keeping a short record helps. Note the activity, intensity, weather or altitude, hydration, how quickly the pain peaked, how long it lasted, and any accompanying symptoms. That record also separates an exercise headache from a weather-triggered migraine pattern, where heat and storms are triggers in their own right, and from the broader differences in our guide to tension headache vs migraine vs TMJ headache.

Is it an exercise headache or exercise-triggered migraine?

Exercise can trigger migraine in people who have migraine, and the two can be confused because both can throb. The distinction matters because the treatment path differs. A primary exercise headache is defined by its tight link to strenuous exercise and its under-48-hour course, without another diagnosis explaining it. Migraine brings its own feature set — nausea, sensitivity to light and sound, and sometimes aura — and our explainer on migraine aura without headache shows how varied migraine presentations can be.

Exercise headache patterns compared
FeaturePrimary exercise headacheSecondary exercise headacheExercise-triggered migraine
TimingOnly during or after strenuous exerciseDuring or after exercise, caused by an underlying problemExercise is one trigger among several
Typical feelThrobbing, often both sidesMay feel the same at firstThrobbing, often one side, with nausea and light/sound sensitivity
Duration5 minutes to less than 48 hoursAt least a day, sometimes several daysHours, following the person's usual migraine pattern
Warning signsNone beyond the painVomiting, loss of consciousness, double vision, neck stiffnessAura may precede pain
First stepAssessment to exclude secondary causes, then preventionUrgent medical assessmentDiscuss a migraine management plan with your clinician

One more overlap is worth naming: taking pain relief very frequently for any recurring headache can itself create a daily headache pattern. If you are medicating most workouts, read our guide to medication-overuse headache before increasing the dose or frequency.

How can you prevent a headache after exercise?

Prevention follows the risk factors. Mayo Clinic notes that exercise headaches tend to occur more often in hot, humid weather and at high altitude, so people prone to them may want to avoid exercising in those conditions, and that a warm-up before strenuous exercise can help prevent them. Some people find only certain activities trigger their headaches and prevent them by avoiding those activities.

Man warming up with a stretch and drinking water before a run to prevent a headache after exercise
Warm up gradually and hydrate before hard exercise — two of the best-supported prevention steps. Photo-style image for illustration, not a real patient.

Cleveland Clinic's prevention advice points the same way: avoid exercising in extreme temperatures, avoid high altitudes your body is not used to, drink plenty of water, get enough rest and sleep, warm up before exercise, cool down afterwards, and increase intensity slowly over time. In practical terms:

  • Warm up gradually instead of going straight to maximal effort
  • Hydrate before and after exercise, especially in heat
  • Build altitude and heat exposure up over days, not in one session
  • Breathe out on the effort phase of a lift rather than holding a long strain
  • Stop and assess a first, sudden, or severe headache — do not push through it

What treatment helps recurrent exercise headaches?

For an occasional, previously assessed headache after exercise, rest and fluids are the usual first response, and Cleveland Clinic notes symptoms can be managed that way. If headaches happen frequently, Cleveland Clinic advises talking to your provider about a diagnosis and treatment plan rather than simply training less forever.

For prevention, Cleveland Clinic describes two prescription approaches a provider may suggest: a nonsteroidal anti-inflammatory drug (NSAID) such as indomethacin taken 30 to 60 minutes before strenuous activity, or, if headaches happen often or indomethacin is not a good option, a daily beta-blocker. Mayo Clinic likewise notes primary exercise headaches can often be prevented with medication. These are prescription decisions with real contraindications — stomach, kidney, blood-pressure, and asthma considerations among them — so they belong in a clinician conversation, not a self-experiment.

See also  Conquering Migraines: Your Guide to Sumatriptan and What's Next

Frequently asked questions

Is a headache after exercise dangerous?

Usually not, once it has been assessed: primary exercise headache is a recognised, usually harmless condition. The danger is in assuming that label for a first episode. ICHD-3 says a first headache with these characteristics requires excluding subarachnoid haemorrhage, arterial dissection, and RCVS. Vomiting, double vision, neck stiffness, fainting, or a sudden severe onset all need urgent assessment.

How long does a headache after exercise last?

A primary exercise headache typically lasts between five minutes and 48 hours, according to Mayo Clinic, and the ICHD-3 criteria require episodes to last less than 48 hours. A headache that lasts at least a day and lingers for several days fits the secondary pattern Mayo Clinic describes, so a long or worsening headache after exercise should be checked promptly.

Why do I only get a headache after exercise in hot weather?

Hot weather is one of the three risk factors Mayo Clinic lists for exercise headaches, alongside high altitude and a personal or family history of migraine. Heat adds cardiovascular strain at the same time as hard exercise dilates blood vessels in the skull — the mechanism Mayo Clinic describes as one theory for these headaches. Hydration, shade, and a gradual warm-up lower the risk.

Can I keep exercising if I get exercise headaches?

After a first episode has been medically assessed and secondary causes excluded, many people keep exercising with prevention in place: gradual warm-ups, hydration, avoiding extreme heat and unaccustomed altitude, and sometimes a clinician-prescribed preventive taken before exercise. What you should not do is repeat a workout to test a new, sudden, or severe headache — that pattern needs assessment first.

Advertisement

Conclusion

A headache after exercise is most often primary exercise headache: throbbing, tied tightly to strenuous effort, and gone within 48 hours. The pattern is well defined in ICHD-3, and its risk factors — heat, altitude, and migraine history — point directly at practical prevention: warm up gradually, hydrate, respect heat and altitude, and build intensity slowly.

The one rule that overrides all of that is the first-episode rule. A first, sudden, or severe exercise headache, or any exercise headache with vomiting, double vision, neck stiffness, or loss of consciousness, needs urgent medical assessment to exclude the secondary causes ICHD-3 names. Once those are excluded, a recurring headache after exercise is a manageable problem to work through with your clinician — not a reason to give up exercise, and not a reason to ignore it either.

Sources

  • International Headache Society — ICHD-3, 4.2 Primary exercise headache: diagnostic criteria (at least two episodes, only during or after strenuous exercise, lasting <48 hours) and the note that on first occurrence subarachnoid haemorrhage, arterial dissection, and RCVS must be excluded. ichd-3.org
  • Mayo Clinic — Exercise headaches: symptoms and causes (updated May 14, 2022): primary vs secondary exercise headaches, symptoms, duration, causes, risk factors (hot weather, high altitude, migraine history), and prevention including warm-up. mayoclinic.org
  • Cleveland Clinic — Exertion Headache: what it is, causes, symptoms and treatment (medically reviewed, last updated November 2026): symptoms, dehydration, indomethacin 30–60 minutes before activity, beta-blockers, and prevention steps. clevelandclinic.org

Medical disclaimer: This article is educational information only and is not medical advice. It does not diagnose or treat any condition. A first, sudden, severe, or changing headache — especially with exercise — needs prompt medical assessment. Discuss any recurring headache, and any preventive medication, with your own clinician.

Read next

Dr. TC, DMD

Dentist writing evidence-based explainers on TMJ, jaw pain, headaches, and sleep — what the research actually says, and when it's time to see a clinician in person.

Share: Facebook · X · Pinterest · LinkedIn · Email

About this information

Consult the sources listed in the article. This notice does not certify an individual clinical review.

This article is for education only and is not medical advice. Talk to a qualified clinician about your own symptoms.

Advertisement

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Pin It on Pinterest