Headache After a Workout? What Exercise Headaches Mean
Updated: 2 days ago
Medically reviewed by Dr. Baraa Alnahhal, MD · Last reviewed: September 2026
An exercise headache is a headache that occurs during or after sustained, strenuous exercise — common with running, rowing, tennis, swimming, and weightlifting. 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). Primary headaches are usually throbbing, strike both sides of the head, and last from 5 minutes to 48 hours. Call your doctor right away if an exercise headache begins abruptly, is your first of this type, or comes with vomiting, double vision, or neck stiffness. Imaging tests (MRI, CT, CT angiography, and sometimes a spinal tap) verify the harmless type, and daily preventive medication such as indomethacin or propranolol works for most people.
Quick Answer
Who is this for? Anyone who gets a headache during or after workouts — especially their first one, or one that struck suddenly.
What it is: A headache that occurs during or after sustained, strenuous exercise — most often with running, rowing, tennis, swimming, and weightlifting.
Two types: Primary exercise headaches are usually harmless and not connected to any underlying problem; secondary exercise headaches are caused by an underlying, often serious problem and may require emergency medical attention.
Primary symptoms: Throbbing pain, usually during or after strenuous exercise, affecting both sides of the head; typically lasting 5 minutes to 48 hours.
Secondary warning signs: Vomiting, loss of consciousness, double vision, and neck stiffness — lasting at least a day, sometimes several days or longer.
Three risk factors: Exercising in hot weather, exercising at high altitude, and a personal or family history of migraine.
How it's diagnosed: Imaging tests — MRI, MRA/CT angiography, CT scan, and sometimes a spinal tap — verify the harmless type rather than a structural or vascular irregularity.
How it's treated: Preventive medication taken regularly — indomethacin or propranolol are most common — timed before a predictable event or taken daily if headaches are frequent.
How it's prevented: Avoid hot/humid weather and high altitudes if prone, skip trigger activities, and warm up before strenuous exercise.
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.
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. 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.
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
Extra warning symptoms: Primary: none. Secondary: vomiting, loss of consciousness, double vision, neck stiffness
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
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.
Call your provider right away if the headache begins abruptly or if it's your first headache of this type.
Headache begins abruptly, like a thunderclap: 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, 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
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
What Increases Your Risk of Exercise Headaches?
Three factors raise the odds of an exercise headache:
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.
Can Exercise Headaches Be Prevented?
Yes — several practical steps help.
Avoid hot, humid conditions: Exercise headaches occur more often in hot and humid weather; 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 — 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
How Are Exercise Headaches Diagnosed?

Your provider will likely recommend an imaging test, especially if any of the following apply:
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.
MRI (magnetic resonance imaging): Uses a magnetic field and radio waves to create cross-sectional images of the structures within the brain
MRA and CT angiography: Visualize the blood vessels leading to and inside the brain
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
Spinal tap (lumbar puncture): Sometimes needed — especially if the headache started abruptly and very recently and brain imaging appears normal
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.
Indomethacin: Anti-inflammatory drug; commonly prescribed as the first choice
Propranolol (Inderal, Innopran XL): Blood pressure medication; also used to prevent exercise headaches
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. If they are frequent or unpredictable, you might need to take the preventive medicine every day.
Preparing for Your Appointment
You're likely to start by seeing your provider, and in some cases may be referred to a neurologist. 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?
Call your provider right away if the headache begins abruptly or 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.
References
Exercise Headaches — Symptoms and causes (Mayo Clinic)
Exercise Headaches — Diagnosis and treatment (Mayo Clinic)
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