
DjelicS / iStock / Getty Images Plus via Getty Images
How to Prevent a Headache After a Workout, According to Doctors
Because the last thing you need after a tough training session is head pain.
By Blake Bakkila, Jennifer Heimlichâą
What Are Workout Headaches?
What Do Workout Headaches Feel Like?
Why Do Exertion Headaches Happen?
Are Certain Workouts More Likely to Give You an Exertion Headache?
How to Treat Exercise Headaches
Can You Prevent Headaches After Workouts?
When to Talk to Your Doctor About Exercise Headaches
The Takeaway
After pushing yourself during an intense training session, all you really want to do is enter recovery mode and peacefully relax. But thatâs not exactly possible when you get hit with a headache after working out.
Discover more ways to reach your goals with Peloton
This unwelcome head pain could be an exercise or exertion headache, a rare yet incredibly frustrating problem among athletes. There are a few different symptoms that can signal exactly what type of headache youâre experiencing and, fortunately, a variety of preventative measures to fend off an exercise-induced headache.
To understand more, we spoke with three doctors about why headaches after workouts may happen, treatment and prevention tips, and when itâs time to reach out to your healthcare provider.Â
What Are Workout Headaches?
Workout headaches are just what they sound like: head pain that sets in during or shortly after exercise.Â
Healthcare providers often group exercise-induced headaches into two different categories: primary and secondary. Primary exercise headaches are typically harmless and involve head symptoms only, while secondary exercise headaches come with other symptoms and could be linked to an underlying, potentially serious problem, according to Mayo Clinic. A primary exercise headache also shouldnât be confused with an exercise-induced migraine, adds Cara J. Hall, MD, a sports medicine specialist with Keck Medicine of USC.Â
Because there are other underlying causes associated with secondary exercise headaches, weâll focus on how to treat and prevent primary exercise headaches in this article. If you think your symptoms fall into the secondary exercise headache category, itâs best to seek out immediate medical attention. According to the Mayo Clinic, the problem could simply be brought on by a sinus infection. But a secondary exercise headache could also be a sign that something more serious is going on like a brain bleed or a vascular issue, says Raj Dasgupta, MD, a quadruple board-certified physician who is the chief medical officer for Garage Gym Reviews. âItâs always better to get checked sooner rather than later,â he says.Â
What Do Workout Headaches Feel Like?Â
An exercise-induced headache will affect you differently depending on whether itâs a primary exercise headache, secondary exercise headache, or actually a migraine. There are a few notable differences to look out for.
Key markers of a primary exercise headache include:
Bilateral pain, meaning it affects both sides of the head
Pulsating or throbbing pain
Sets in during or after exercise
Lasts anywhere from five minutes to 48 hours (though the typically lasts about an hour)
By contrast, while a secondary headache also includes pulsing or throbbing pain that sets in during or after exercise, it may also include:
Unilateral pain, meaning it affects one side of the head
Nausea or vomiting
Neck stiffness
Double vision
Sensitivity to light or noise
Loss of consciousness
Lasts one to several days
And an exercise-induced migraine may include:
Pre-migraine symptoms like fatigue, muscle stiffness, food cravings, and nausea, called prodrome
Post-migraine symptoms like fatigue, dizziness, and difficulty concentrating, called postdrome
Sensory, visual, or motor disturbance just before the onset, known as migraine aura
Sensitivity to light or noise

FG Trade / E+ via Getty Images
Why Do Exertion Headaches Happen?
The exact cause of exercise-induced headaches is unknown. But âthere are a few different theories, which basically have to do with some sort of cardiovascular dysfunction or dysregulation while exercising,â Dr. Hall says.Â
One specific theory is that âstrenuous exercise dilates blood vessels inside the skull to increase blood flow to the brain in order to meet the increased demand for oxygen,â Dr. Dasgupta says. âThat expansion of the blood vessels and subsequent increase in blood pressure creates pressure in the skull, which causes the pain and headache.â
Benjamin Taimoorazy, MD, a headache and pain management specialist at the Beverly Hills Migraine and Pain Management Institute, explains that because our brain sits in the skull, which obviously canât expand, anytime you change the volume of blood or cerebrospinal fluid around the brain, that can cause a headache.
With that in mind, doctors know that certain risk factors can make you more prone to experiencing a primary exercise headache, including the below.
1. Overexertion
âWhen youâre exercising intensely, more blood rushes to your brain, which can make the blood vessels there expand and cause pain,â Dr. Dasgupta says. âAnother possible reason is the tense muscles in your neck and upper body from tough workouts.â
2. Dehydration
âIf youâre not drinking enough water before or during your workout, it can affect your bodyâs balance of fluids and salts, possibly leading to these headaches,â Dr. Dasgupta says. When weâre dehydrated, our brain tissues actually shrink, pulling away from our skull, which can irritate nearby nerves, according to the Cleveland Clinic.
3. Exercising at a High AltitudeÂ
Traveling to a high altitude and not giving your body enough time to adjust could induce a headache after exercise. âIn high altitudes, the brain's blood vessels expand in response to reduced oxygen levels,â Dr. Dasgupta explains. âThis is the body's natural attempt to deliver more oxygen to brain tissue. However, this vasodilation can also lead to increased pressure and potential swelling, contributing to altitude sickness symptoms like headaches, especially during a workout.â Experts recommend taking at least one rest day (if not a few) to acclimate whenever you ascend 2,500 meters or more.Â
4. Extreme WeatherÂ
Weather conditions, particularly warm climates, may make athletes more prone to getting a headache after a workout. âWorking out in really hot or cold conditions stresses the body more,â Dr. Dasgupta explains. âIn the heat, you can get dehydrated fast, and in the cold, your blood vessels tighten up. Both situations can set the stage for a headache, especially if youâre pushing yourself hard.â
5. Stress or Anxiety
When weâre struggling with our mental health, we have a lower threshold for any kind of painâincluding exercise-induced headaches. âSomething that is not painful for an average person becomes painful at a lower threshold in a person with anxiety or depression,â Dr. Taimoorazy says. Whatâs more, we often tighten up the muscles in our necks and shoulders when weâre stressed or anxious, and our blood pressure rises, Dr. Dasgupta adds. Put that all together, and itâs a recipe for a headache.Â
In addition to these risk factors, Dr. Dasgupta says that a history of high blood pressure can also bring on headache symptoms.Â
Are Certain Workouts More Likely to Give You an Exertion Headache?
Exercises that involve overexertion or stress on the body can increase your likelihood of getting a headache after working out. More strenuous activities like running, high-intensity interval training (HIIT), and heavy weight lifting can trigger these headaches because of increased blood pressure.Â
These activities may also prompt a headache after exercise because you may be performing the Valsalva maneuver during your workout, according to Dr. Dasgupta. âThis maneuver is a technique that involves exhaling against a closed airway, which can cause an increase in blood pressure,â he says. During a workout, you might trigger the Valsalva maneuver by engaging in activities that require you to exhale against resistance, such as lifting heavy weights or doing sit-ups, he explains. Engaging in this âbearing-down sensation,â as Dr. Hall describes it, might provoke an unwelcome headache after exercise.
How to Treat Exercise Headaches
One personâs exercise headache may be different than their gym buddyâs, especially because the timeframe for a primary exercise headache is such a wide range. (Remember, it can last anywhere from five minutes to 48 hours.) While Dr. Hall says itâs best to try to prevent exercise-induced headaches from happening in the first place, there are some ways to treat them when they strike:Â
Decreasing the intensity of your workout or stopping your workout early
Trying an over-the-counter pain reliever, such as acetaminophen, ibuprofen, or naproxen (so long as itâs recommended by your doctor)
If your headache lasts longer than 48 hours, you can generally rule out a primary exercise headache. Whichever type of headache you think you might have, itâs always best to speak with your doctor about the best treatment options for you.Â
Can You Prevent Headaches After Workouts?
Dr. Hall says that preventing future headaches is not only possible, but itâs also your best course of action, as mentioned above. Thatâs because itâs significantly more difficult to treat an exercise headache once it sets in. âWhen youâre doing it after the fact, especially with hydration, itâs just a little less successful,â Dr. Hall explains.
Here are some tried-and-true preventative measures to ward off a potential exertion headache, according to our experts:
Warm up before exercising. A proper warm-up before your workout can help you avoid exercise headaches. âIf you start engaging in that exertion gradually, then your brain and your body and your circulation has time to adapt,â Dr. Taimoorazy says. That way you wonât get that sudden rush of blood to your brain, he explains.Â
Drink more water, ideally with electrolytes. âMaking sure youâre hydrated before you exercise makes sure your fluids are balanced,â Dr. Hall says.Â
Choose a temperate workout environment. Because hot or cold weather may cause headache-inducing changes in blood flow, try to find an indoor workout environment or more temperature-regulated area to perform your exercise routine if possible when outdoor temps are extreme.
Maintain good posture. Poor posture is also attributed to causing a workout-induced headache, according to Dr. Dasgupta. This is likely because it can lead to tense muscles in your neck or upper body that can trigger head pain.
Donât push yourself too hard. While you might want to put everything you have into your workout, avoid overexertion. Dialing it back and decreasing your intensity can potentially prevent a headache after exercise.
Prepare for training at high altitudes. âIf you are going to do a workout in high altitude, I would take a while to acclimate before doing the workout,â Dr. Hall says. âFor a few days, just do your everyday activities and not something super intense for your first workout. Build up to it.â This will give your body time to adjust to the atmospheric pressure at high elevations.
Get enough high-quality sleep. âThis is more for migraines, but for people who are headache-prone, sleep is super important,â Dr. Hall says. Dr. Dasgupta also adds that âgetting good quantity and quality sleepâ is essential.Â
Your healthcare provider may also recommend an over-the-counter or prescription anti-inflammatory that you can take before exercisingâbut as always, talk to your doctor to see whatâs best for you.Â
Related Articles
When to Talk to Your Doctor About Exercise Headaches
Headaches after exercise should be discussed with your doctorâespecially if they are persistent, severe, sudden, or associated with fainting or feeling confused. âThough primary exercise-induced headaches are often harmless, it's crucial to take them seriously and address any underlying issues, especially if they are sudden or persistent,â Dr. Dasgupta says. âIf the headache feels different from anything you've had before or lingering longer than it should, thatâs a red flag.â Â
Dr. Hall adds that primary exercise headaches can also be associated with cardiac risk factors, so itâs also important to verify that your blood pressure and cholesterol are both under control. Itâs smart to also seek out a neurologist who has advanced training in headache medicine.
âItâs a diagnosis of exclusion,â Dr. Hall says. âA lot of the time, we end up ordering head imaging to prove itâs the primary exercise-induced headache. That might be as simple as a brain MRI or a CT of the head, and just running different labs to check out someoneâs cardiovascular risk factors.â
In the best case scenario, theyâll find that nothing else is at playâand will be able to solve the problem. âThe good news is prescription medication is effective almost 100 percent of the time,â Dr. Taimoorazy says.Â
The Takeaway
A headache after a workout can be extremely frustrating, but if youâre struggling from a primary exercise headacheâwhich usually comes with throbbing pain, is felt on both sides of the head, and lasts up to 48 hoursâknow that itâs usually harmless. While the exact cause of exercise headaches is unknown, you may be more likely to experience a post-workout headache due to overexertion, dehydration, or exercising in high altitude or extreme weather. Prevention methods like drinking enough water, warming up before a workout, and not pushing yourself too hard are key to warding off a headache after exercise.
All that said, if youâre working out and experience a headache afterward, itâs not something to ignore. Even if you think it qualifies as a primary exercise headache, youâll want to check in with a healthcare professionalâideally a neurologistâwho can give you a proper diagnosis and recommend treatment and preventative care. Personalized advice from a doctor is always encouraged, and it may allow you to address other potential concerns involving your blood pressure or cholesterol, among other things. In extreme situations, it could also lead to a secondary exercise headache diagnosis, which could be the first step you need to get life-saving treatment.

Peloton App
Access thousands of classes with no equipment needed.
This content is for informational and educational purposes only and does not constitute individualized advice. It is not intended to replace professional medical evaluation, diagnosis, or treatment. Seek the advice of your physician for questions you may have regarding your health or a medical condition. If you are having a medical emergency, call your physician or 911 immediately.
Level up your inbox.
Subscribe for a weekly dose of fitness, plus the latest promos, launches, and events.
By providing your email address, you agree to receive marketing communications from Peloton.
For more about how we use your information, see our Privacy Policy.








