What to Do If Exercise Leads to Headaches

Once in a while, if you don’t drink enough water before you exercise, you might get a headache caused by dehydration. However, if you start having headaches during or after exercise more often, it could mean something else.
If your head starts pounding after you work out, climb a flight of stairs, or even have sex, you could be experiencing what’s called an exertional headache.
Primary Exertional Headaches
There are several medications that may help.
Secondary Exertional Headaches
- Vomiting with headache
- Stiff neck
- Double vision
- Loss of consciousness
Evaluating Exertional Headaches
Some exertional headaches can have a serious cause, so it is important to let your doctor know about any headache that occurs during or after exercise to rule out a secondary cause.
Preventing Exertional Headaches
If your doctor determines it’s exertion causing your headaches and that they are just primary exertional headaches, it may help to try the following tips:
- Avoid exercising in hot and humid weather or at high altitudes
- Do a light warm-up before exercising
- Avoid exercises or activities that seem to trigger your headaches
The Takeaway
- Primary exertional headaches can happen after exercise and can be easily treated or prevented.
- Secondary exertional headaches are the result of a more serious underlying condition that may require emergency treatment.
- Talk with your doctor if you experience headaches after strenuous activities like exercise or sexual intercourse.
Resources We Trust
- Mayo Clinic: Exercise Headaches
- Cleveland Clinic: Aneurysm
- MedlinePlus: Headache
- U.S. Department of Veterans Affairs: Migraines and Headaches: Understanding the Disorders
- National Institute of Biomedical Imaging and Bioengineering: Magnetic Resonance Imaging (MRI)
- Upadhyaya P et al. Primary Exercise Headache. Current Neurology and Neuroscience Reports. April 15, 2020.
- González-Quintanilla V et al. Update on Headaches Associated With Physical Exertion. Cephalagia. February 14, 2023.
- Exercise Headaches. Mayo Clinic. May 14, 2022.

Peter Nguyen, PT, DPT
Medical Reviewer
Peter Nguyen, PT, DPT, is a physical therapist and health consultant with MovementX, based in Orange County, California.
Peter specializes in the management and rehabilitation of people who have neurological conditions or chronic conditions that affect their long-term health. He also helps people recover from vertigo and vestibular disorders, numbness in the extremities, or balance and coordination impairments.
He is also a health equity advocate and formerly served as the PT-PAC chair for the Orange County District of the California Physical Therapy Association.

Chris Iliades, MD
Author
Chris Iliades, MD, is a full-time medical writer and journalist based in Boothbay Harbor, Maine. He practiced clinical medicine for 15 years before transitioning to medical writing in 2004.