Reasons You Get Headaches After Exercise

Table of Contents
View All
Table of Contents

If you've ever experienced a headache after working out, you may be wondering why it happened. A headache after exercise is commonly described as pulsating pain on both sides of the head. This type of headache generally lasts from a few minutes to up to 48 hours following physical activity.

This article reviews some of the causes, treatments, and prevention methods for exercise-induced headaches.

How to Prevent Exercise Headaches: A person drinking fluids (stay hydrated), A person stretching (warm up before working out), apple and energy bar (eat a small meal prior to exercising), pills (talk to your healthcare provider about NSAIDs and beta blockers)

Verywell / Theresa Chiechi


Exercise-induced headaches occur after strenuous physical activity such as running, weight lifting, cycling, or swimming. This type of headache can occur as increased circulation around the head and scalp causes blood vessels to vasodilate (enlarge) to increase blood flow.

The two categories of exercise headaches are:

  • Primary exercise headaches: These occur during or immediately following physical exertion. They usually resolve on their own and are generally not connected to a more significant physical issue. These headaches can often be managed or prevented with over-the-counter (OTC) medications.
  • Secondary exercise headaches: These stem from an underlying health condition, such as heart disease, and are much less frequent. Older age and severity of the headache after strenuous activities may warrant a discussion with your healthcare provider to rule out a more severe condition.

Exertional Headache

Exertional headaches are headaches that arise with physical activity. These usually develop soon after performing physical activity or activities that require "bearing down," such as:

  • Running
  • Weight lifting
  • Coughing or sneezing
  • Sexual intercourse
  • Straining with bowel movements


Physical exercise without adequate water intake to replace lost fluids can lead to dehydration.

Dehydration by itself can cause headaches. However, it may also exacerbate other underlying medical conditions and primary headache disorders that are dependent on hydration and fluid balance.

Low Blood Sugar

Your muscles use fuel in the form of sugar to supply energy for physical exertion. Intense physical activity may drop your blood sugar during a strenuous workout.

People who are not diabetic may be able to prevent exercise headaches due to low blood sugar, or hypoglycemia, by eating carbohydrates before working out.

Prevalence of Headaches

Nearly 50% of the general population has suffered or suffers from a headache disorder. Headaches affect people of any age, race, income level, and gender. However, they tend to be more common in women.


Strategies to prevent exercise-induced headaches include:

  • Staying hydrated
  • Warming up before exercise
  • Eating a small meal before working out to prevent hypoglycemia

Talk to your healthcare provider about medications that may help prevent headaches during exercise, including:

  • Nonsteroidal anti-inflammatory drugs (NSAIDs), which, when taken about 45 minutes before exercise, may prevent primary exercise headache in some cases
  • Beta-blockers, which have been reported to prevent exercise-induced headaches and may be an option for people who cannot take NSAIDs

Primary exercise headaches are more common in hot weather and high altitudes, so consider these factors before working out.

Although exercise can cause a headache for some people, many experts say that getting regular exercise can reduce the frequency and intensity of headaches and migraines.


If you get a headache following exercise, you should see your healthcare provider for a physical to ensure you don't have an underlying medical condition. Diagnostic tests that can rule out underlying health conditions that may be causing your headache include magnetic resonance imaging (MRI) or lumbar puncture (spinal tap).

It's also important to talk to your provider about medications to help manage your headaches. Most exercise-induced headaches are harmless. They typically respond well to OTC medications used for other types of headaches, such as Tylenol (acetaminophen) and NSAIDs.


Exercise-induced headaches occur after physical activity due to increased circulation in the head that increases blood flow. A primary exercise headache is characterized by pulsating pain on both sides of the head. Primary exercise headaches can be caused by many factors such as exertion, dehydration, and low blood sugar.

A Word From Verywell

Exercise-induced headaches can be frustrating, especially if you regularly exercise. Fortunately there are ways to prevent them, like staying hydrated, warming up before exercise, and eating a small meal before working out. There are also treatment options available. Talk to your healthcare provider about medications that may help manage or prevent headaches after exercise.

Frequently Asked Questions

  • What positive effects does exercise have on the nervous system?

    Some of the positive effects that exercise has on the nervous system are:

    • Better cognitive function
    • Regulation of circadian rhythm
    • Energy balance
    • Increased metabolism
    • Improved stress response
    • Maintenance of mobility
    • Overall physiological health
  • How much exercise is too much?

    Exercising too much can lead to exhaustion and other health problems. In some cases, working too hard can even do more harm than good. Symptoms of too much exercise include:

    • Feeling tired and needing more rest
    • Depression
    • Developing mood swings or irritability
    • Insomnia
    • Painful muscle soreness
    • Becoming injured from overusing muscles
    • Lack of motivation
    • Getting sick
    • Weight loss
    • Anxiousness
  • When should you worry about a headache?

    Some headaches may require a trip to your healthcare provider or urgent care. The following factors influence when you should worry about a headache:

    • Onset after age 50
    • Following a head injury
    • Those requiring bed rest
    • Having new onset of headache symptoms
    • Having "the worst headache of your life"
    • Headaches that get worse or increase with coughing
    • Headaches that change your personality or cognition level
    • Headaches accompanied with a pink eye or pain at the temples
    • Headaches in a cancer patient or someone with an immune deficiency
    • A sudden headache upon waking

    If you have a headache accompanied by any of the following symptoms, call your healthcare provider or 911:

10 Sources
Verywell Health uses only high-quality sources, including peer-reviewed studies, to support the facts within our articles. Read our editorial process to learn more about how we fact-check and keep our content accurate, reliable, and trustworthy.
  1. American Migraine Foundation. Primary exercise headache.

  2. Upadhyaya P, Nandyala A, Ailani J. Primary exercise headacheCurr Neurol Neurosci Rep. 2020;20(5):9. doi:10.1007/s11910-020-01028-4

  3. National Headache Foundation. Exertional headaches.

  4. Arca KN, Halker Singh RB. Dehydration and headache. Curr Pain Headache Rep. 2021:15;25(8):56. doi:10.1007/s11916-021-00966-z

  5. Brun JF, Dumortier M, Fedou C, Mercier J. Exercise hypoglycemia in nondiabetic subjects. Diabetes Metab. 2001;27:92-106.

  6. Ahmed F. Headache disorders: differentiating and managing the common subtypesBr J Pain. 2012;6(3):124-132. doi:10.1177/2049463712459691

  7. American Migraine Foundation. Effects of exercise on headaches.

  8. Morgan JA, Corrigan F, Baune BT. Effects of physical exercise on central nervous system functions: a review of brain region specific adaptationsJ Mol Psychiatry. 2015;3:3. doi:10.1186/s40303-015-0010-8

  9. MedlinePlus. Are you getting too much exercise?

  10. Harvard Health. Headache: When to worry, what to do.

By Sarah Jividen, RN
Sarah Jividen, RN, BSN, is a freelance healthcare journalist and content marketing writer at Health Writing Solutions, LLC. She has over a decade of direct patient care experience working as a registered nurse specializing in neurotrauma, stroke, and the emergency room.