Headache After a Workout? What Exercise Headaches Mean
Updated: 2 days ago
Medically reviewed by Dr. Baraa Alnahhal, MD · Last reviewed: November 2026
An exercise headache is a headache that occurs during or after sustained, strenuous exercise — common with running, rowing, tennis, swimming, and weightlifting [1]. There are two categories: primary exercise headaches, which are usually harmless and can often be prevented with medication, and secondary exercise headaches, which are caused by an underlying — often serious — problem inside the brain (such as bleeding or a tumor) or outside it (such as coronary artery disease) [1]. Primary headaches are usually throbbing, strike both sides of the head, and last from 5 minutes to 48 hours [1]. Call your doctor right away if an exercise headache begins abruptly, is your first of this type [1]; secondary headaches may also cause vomiting, double vision, or neck stiffness [1]. Imaging tests (MRI, CT, CT angiography, and sometimes a spinal tap) verify the harmless type [2], and preventive medication taken regularly, such as indomethacin or propranolol, may be recommended to help prevent the headaches [2].
Quick Answer
Exercise headaches are headaches that occur during or after sustained, strenuous exercise such as running or weightlifting. Primary exercise headaches are usually harmless, but secondary ones are caused by an underlying, often serious problem and may need emergency care, especially with vomiting, loss of consciousness, double vision or neck stiffness. Preventive medication can help. [1] [2]
What the research says
Exercise headaches are more common than clinics suggest. A review of 12 studies found primary exercise headache in 0.46% of people seen at headache clinics but in 4.92% of people in general population surveys. It typically starts in the late 20s (average about 27.5 years) and, in the general population, is more common in women (Osiowski et al., Neuroepidemiology, 2026 [3]).
Most cases are harmless, but a first episode deserves a check. A clinical review estimated that primary exercise headache affects 1% to 26% of adults. A serious underlying cause is uncommon but should be ruled out after a first or unusual episode; older age at onset and longer-lasting headaches are possible red flags (Sandoe & Kingston, Current Neurology and Neuroscience Reports, 2018 [4]).
What Are Exercise Headaches?

An exercise headache is a headache that strikes during or after sustained, strenuous exercise. People most often report them during or after activities such as running, rowing, tennis, swimming, and weightlifting [1].
Health care providers divide exercise headaches into two categories, and the difference between them is significant. Primary exercise headaches are usually harmless, are not connected to any underlying problems, and can often be prevented with medication [1]. Secondary exercise headaches are caused by an underlying, often serious problem — within the brain, such as bleeding or a tumor, or outside the brain, such as coronary artery disease. Secondary exercise headaches may require emergency medical attention [1].
This distinction is why a new exercise-related headache should never be brushed off as “just from working out too hard.”
Primary vs. Secondary Exercise Headaches: What's the Difference?

Overall nature: Primary: usually harmless, no underlying problem. Secondary: caused by an underlying, often serious problem; may require emergency care
Pain quality: Primary: usually throbbing. Secondary: same symptoms as primary, plus extra warning signs
Location: Primary: both sides of the head in most cases. Secondary: same as primary, plus possible additional symptoms
Timing: Both types: during or after strenuous exercise
Duration: Primary: typically 5 minutes to 48 hours. Secondary: usually at least a day, sometimes several days or longer [1]
Extra warning symptoms: Primary: none. Secondary: vomiting, loss of consciousness, double vision, neck stiffness [1]
Cause: Primary: unknown — one theory is that strenuous exercise dilates blood vessels inside the skull. Secondary: brain bleeding (subarachnoid hemorrhage), blood vessel irregularities, tumors, blocked cerebrospinal fluid flow, sinus infection, or structural irregularities in the head, neck, or spine [1]
The duration difference is one of the easiest clues to notice. If your workout headache fades within a day, it leans toward the primary type. If it lingers for a day or more — especially with vomiting, vision changes, or a stiff neck — it needs prompt medical evaluation.
When Should You See a Doctor?
Any headache that occurs during or after exercise deserves a conversation with your health care provider. But two situations call for immediate action.
Get emergency care right away if the headache begins suddenly and severely, like a thunderclap, and call your provider promptly if it's your first headache of this type [1].
Headache begins abruptly, like a thunderclap (get emergency care or call 911 right away, not just your provider): Call your provider right away
First headache of this type: Call your provider right away
Headache with vomiting, loss of consciousness, double vision, or neck stiffness: Seek emergency medical attention — possible secondary headache
Headache lasting more than a few hours: Expect imaging tests to rule out a serious cause
Recurring exercise-related headaches: Schedule an appointment to identify the cause and a prevention plan
If your headaches show up most days rather than only around workouts, they may fit a different pattern worth discussing with your provider — see our guide to chronic daily headaches for more on that distinction.
What Causes Exercise Headaches?
Primary Exercise Headaches
The exact cause of primary exercise headaches is unknown. The leading theory is that strenuous exercise dilates (widens) blood vessels inside the skull [1], triggering pain.
Secondary Exercise Headaches
Secondary exercise headaches are caused by an underlying problem. The potential causes are serious, which is why imaging is so important:
Subarachnoid hemorrhage: Bleeding in the area between the brain and the thin membranes that cover the brain [1]
Blood vessel irregularities: Problems in a blood vessel leading to or within the brain
Tumors: Cancerous or noncancerous growths
Blocked cerebrospinal fluid flow: Obstruction of the fluid that surrounds the brain and spinal cord
Sinus infection: Inflammation of the sinus cavities
Structural irregularities: Abnormal structures in the head, neck, or spine [1]
What Increases Your Risk of Exercise Headaches?
Three factors raise the odds of an exercise headache [1]:
Exercising in hot weather: Heat and humidity make exercise headaches more frequent
Exercising at high altitude: Altitude increases the likelihood of exercise-triggered pain
Personal or family history of migraine: Migraine susceptibility is linked to exercise headaches
If you're prone to exercise headaches, the guidance is straightforward: you may want to avoid exercising in hot and humid conditions or at high altitudes, and avoid the specific activities that trigger your headaches [1].
Can Exercise Headaches Be Prevented?
Yes — several practical steps help.
Avoid hot, humid conditions: Exercise headaches occur more often in hot and humid weather [1]; if you're prone, consider rescheduling strenuous workouts
Be careful at altitude: If prone to exercise headaches, avoid exercising at high altitudes; plan gradual acclimatization for hikes or races
Warm up before strenuous exercise: A warm-up prior to strenuous exercise can help prevent exercise headaches [1] — build intensity gradually rather than starting at full effort
Avoid trigger activities: Some people experience exercise headaches only during certain activities; avoiding those activities may prevent the headaches [1]
How Are Exercise Headaches Diagnosed?

Your provider will likely recommend an imaging test, especially if any of the following apply [2]:
Headaches last more than a few hours: Longer duration raises the chance of an underlying problem
Headaches strike suddenly, like a thunderclap: Sudden onset can signal bleeding inside the skull
You're older than age 40: Secondary causes become more likely with age
Other symptoms such as nausea, vomiting, or vision disturbances: Additional neurological signs warrant closer investigation
The goal of imaging is to verify that you have the harmless variety of exercise headache, rather than the type caused by a structural or vascular irregularity [2].
MRI (magnetic resonance imaging): Uses a magnetic field and radio waves to create cross-sectional images of the structures within the brain [2]
MRA and CT angiography: Visualize the blood vessels leading to and inside the brain [2]
CT scan: Uses X-rays to generate a cross-sectional image of the brain; shows fresh or recent bleeding into or around the brain; often used if your headache occurred less than 48 hours beforehand [2]
Spinal tap (lumbar puncture): Sometimes needed — especially if the headache started abruptly and very recently and brain imaging appears normal [2]
How Are Exercise Headaches Treated?
If no underlying structural or vascular problem is causing your exercise headaches, your provider may recommend medications to take regularly to help prevent the headaches [2].
Indomethacin: Anti-inflammatory drug; commonly prescribed [2]
Propranolol (Inderal, Innopran XL): Blood pressure medication; also used to prevent exercise headaches [2]
Naproxen (Naprosyn): NSAID reported effective in some people
Phenelzine (Nardil): MAO inhibitor antidepressant reported effective in some people
Dihydroergotamine mesylate (Migranal, Trudhesa): Ergot medication reported effective in some people
Timing matters. If your exercise headaches are predictable, you may be able to take a medication an hour or two before a scheduled event — such as a tennis match or a hike at high altitude [2]. If they are frequent or unpredictable, you might need to take the preventive medicine every day [2].
Preparing for Your Appointment
You're likely to start by seeing your provider, and in some cases may be referred to a neurologist [2]. Preparation makes the visit more productive.
Be aware of pre-appointment restrictions, such as diet restrictions. Write down all symptoms you're experiencing, including any that seem unrelated. Write down key personal information — past illnesses and operations, major stresses, recent life changes, and medical problems that run in your family. Make a list of all medications, vitamins, and supplements you take. If possible, take a family member or friend along; someone accompanying you may remember something you missed. And write down questions in advance.
Questions to Ask Your Provider
What's causing my symptoms or condition?
Are there other possible causes?
What tests do I need?
Is my condition likely temporary or chronic?
What is the best course of action?
What are the alternatives to the approach you're suggesting?
I have other health conditions — how can I best manage them together?
Are there any restrictions I need to follow?
Should I see a specialist?
Is there a generic alternative to the medicine you're prescribing?
Are there brochures or other printed material I can take home? What websites do you recommend?
What Your Provider Will Ask You
When did you begin experiencing exercise headaches?
Have your exercise headaches been continuous or occasional?
Have you had a similar problem in the past?
Have you had other kinds of headaches? Describe them.
Has anyone in your immediate family experienced migraines or exercise headaches?
What, if anything, seems to help your headaches?
What, if anything, makes your headaches worse?
Bottom Line
Exercise headaches sit at the intersection of fitness and neurology: they usually turn out to be the harmless primary type — throbbing, both-sided, and gone within 48 hours — but they can also be the first sign of something serious inside the brain.
The safest approach is simple. Any new exercise-related headache should be checked by a provider, and any headache that begins abruptly or is your first of this type deserves a call right away. Once imaging confirms the harmless type, prevention is highly achievable: avoid hot and humid conditions and high altitudes, warm up properly, and use preventive medication timed to your workouts.
Your next step: if workouts keep ending with a headache, don't ignore it — and don't just quit exercising either. Book an appointment to find out which type you have, describe exactly when the pain starts and how long it lasts, and ask directly whether imaging is warranted.
Frequently Asked Questions
Why do I get a headache when I exercise?
Most exercise headaches are the “primary” type, with no known cause — the leading theory is that strenuous exercise dilates blood vessels inside the skull, triggering pain. They're usually harmless and often preventable with medication. But some are “secondary,” caused by an underlying serious problem, which is why new exercise headaches need a medical check.
Are exercise headaches dangerous?
The primary type is usually harmless. The secondary type is caused by a serious underlying problem inside or outside the brain — such as bleeding, blood vessel irregularities, or tumors — and may require emergency medical attention. Imaging tests are how providers tell the two apart.
How long do exercise headaches last?
Primary exercise headaches typically last between 5 minutes and 48 hours. Secondary exercise headaches usually last at least a day and sometimes linger for several days or longer.
What are the warning signs of a dangerous exercise headache?
Get emergency care right away if the headache begins suddenly and severely; call your provider promptly if it is your first of this type. Seek emergency care if it comes with vomiting, loss of consciousness, double vision, or neck stiffness — these suggest a secondary headache caused by an underlying problem.
What tests diagnose exercise headaches?
Providers typically order imaging — MRI (brain structures), MRA and CT angiography (blood vessels), and CT scan (fresh or recent bleeding, especially if the headache occurred less than 48 hours earlier). A spinal tap (lumbar puncture) is sometimes needed if imaging looks normal after a sudden, recent headache. Imaging is especially recommended if headaches last more than a few hours, strike suddenly, occur after age 40, or come with nausea, vomiting, or vision problems.
What medication prevents exercise headaches?
Indomethacin, an anti-inflammatory drug, is commonly prescribed. Propranolol, a blood pressure medication, is also used. Other options reported effective in some people include naproxen, phenelzine, and dihydroergotamine. For predictable headaches, medication can be taken one to two hours before a scheduled event; for frequent or unpredictable headaches, daily preventive medication may be needed.
Can I prevent exercise headaches without medication?
Partly. If you're prone to exercise headaches, avoid exercising in hot and humid weather or at high altitude, and avoid the specific activities that trigger your headaches. A warm-up prior to strenuous exercise also helps prevent exercise headaches.
Are exercise headaches linked to migraines?
Yes — a personal or family history of migraine is one of the three known risk factors for exercise headaches, alongside exercising in hot weather and at high altitude.
Can I keep exercising if I get exercise headaches?
Many people can, once a provider has ruled out a serious cause. Warming up, avoiding hot weather and high altitude, and taking preventive medicine if prescribed often help people stay active.
Are exercise headaches the same as cough or sex headaches?
They are related but separate types. Cough headaches and sex headaches are also set off by physical strain, and any new one should be checked by a provider to rule out a serious cause.
What are the symptoms of exercise headaches?
Symptoms of primary exercise headaches are usually a throbbing pain during or after strenuous exercise that affects both sides of the head in most cases. Secondary exercise headaches may cause the same symptoms plus vomiting, loss of consciousness, double vision or neck stiffness [1].
Related Reading
Migraine Headaches: What Causes Them and How to Treat Them explains migraine, a known risk factor for exercise headaches.
Primary Cough Headache: Why Coughing Triggers Head Pain, and What Treatment Can — and Can't — Do covers a related headache triggered by coughing and straining.
Brain Aneurysm: Symptoms, Causes, and Treatment explains a serious cause of sudden headache during exertion.
Lumbar Puncture (Spinal Tap): Purpose, Procedure, Recovery and Results describes the spinal fluid test sometimes used to rule out bleeding.
References
Mayo Clinic Staff. Exercise headaches - Symptoms & causes. Mayo Clinic. May 14, 2022. https://www.mayoclinic.org/diseases-conditions/exercise-headaches/symptoms-causes/syc-20372276
Mayo Clinic Staff. Exercise headaches - Diagnosis & treatment. Mayo Clinic. May 14, 2022. https://www.mayoclinic.org/diseases-conditions/exercise-headaches/diagnosis-treatment/drc-20372280
Osiowski A, et al. Epidemiology of primary exercise headache: a systematic review and meta-analysis with comparison between clinic- and population-based settings. Neuroepidemiology. 2026:1-9. PMID 41915607. https://doi.org/10.1159/000549397
Sandoe CH, et al. Exercise headache: a review. Current Neurology and Neuroscience Reports. 2018;18(6):28. PMID 29675548. https://doi.org/10.1007/s11910-018-0840-8
Medical disclaimer
This article is based on clinical reference sources current as of August 18, 2026. Medical information changes over time — this content is for general education and is not a substitute for professional medical advice. Always consult a licensed clinician for diagnosis and treatment.




Comments