Is It Bad to Work Out With a Headache?

Working out with a headache is not automatically harmful, but the right call depends almost entirely on what kind of headache you have and what is causing it. A mild tension-type headache often improves with moderate activity, while a throbbing migraine with nausea or visual disturbances is a signal to rest. And in rare cases, a headache that strikes during exertion can be the first sign of something serious enough to warrant medical imaging. The distinction matters more than most people realize, and getting it wrong in either direction means either missing out on exercise that could help or pushing through a session that makes things worse.

Headaches That Tend to Improve With Exercise

If your headache feels like a dull band of pressure around your forehead or the back of your skull, you are probably dealing with a tension-type headache. These are the most common kind, and moderate aerobic exercise often takes the edge off them. Movement increases blood flow, loosens tight neck and shoulder muscles, and triggers the release of the body’s natural painkillers. A randomized trial found that people with migraine who also had co-existing tension-type headache and neck pain saw significant reductions in pain intensity, neck pain, and headache burden after following an aerobic exercise program, along with improved physical fitness and well-being.1PubMed. The effects of aerobic exercise for persons with migraine and co-existing tension-type headache and neck pain. A randomized, controlled, clinical trial

That does not mean you should jump straight into a high-intensity session. A brisk walk, light cycling, or an easy swim is a better starting point than heavy squats or sprints. The goal is to get your heart rate up enough to promote circulation without spiking blood pressure dramatically. If the headache eases within the first ten to fifteen minutes of movement, the exercise is doing what you hoped. If it worsens, that is your cue to stop.

When a Migraine Changes the Equation

Migraines are a different animal. The hallmark features are one-sided throbbing pain, sensitivity to light and sound, and sometimes nausea or visual aura. During an active migraine attack, vigorous exercise almost always makes symptoms worse. Physical exertion increases intracranial pressure and heart rate, amplifying the pulsating pain that defines a migraine. Most headache specialists advise against intense workouts while a migraine is in full swing.

The paradox is that regular exercise over weeks and months is one of the better non-drug strategies for reducing how often migraines happen in the first place. A dose-response meta-analysis found that aerobic exercise reduced both pain intensity and migraine frequency, with the greatest benefit observed at a cumulative dose of roughly 900 to 950 total minutes of aerobic exercise over the course of the program. The researchers translated that into a preliminary recommendation of three weekly 30-minute sessions sustained over about ten to eleven weeks.2PubMed. How much aerobic exercise is needed to reduce migraine? A dose-response meta-analysis of pain intensity and frequency The biological explanation likely involves exercise raising levels of beta-endorphins, endocannabinoids, and brain-derived neurotrophic factor in the blood, all of which play roles in pain modulation and stress regulation.3PubMed Central. The association between migraine and physical exercise

So the practical takeaway for migraine sufferers is a split recommendation: avoid hard exercise during an attack, but build a consistent moderate exercise habit between attacks to lower their frequency over time. Interestingly, higher doses of exercise beyond that roughly 950-minute threshold did not appear to add further benefit, which suggests that more is not always better.2PubMed. How much aerobic exercise is needed to reduce migraine? A dose-response meta-analysis of pain intensity and frequency

Primary Exercise Headache

Some people get headaches specifically because they exercised. This is called primary exercise headache, and it is a recognized condition in which strenuous physical activity triggers a headache in the absence of any underlying brain pathology. The pain is often bilateral, can last anywhere from a few minutes to 48 hours, and typically has a pulsating quality. Two large epidemiological studies found that it is more common in women, frequently co-occurs with migraine, and tends to appear on both sides of the head rather than one.4PubMed Central. Primary Exercise Headache

The tricky part is distinguishing primary exercise headache from a secondary exercise headache, where the exertion unmasks something dangerous. Primary exercise headache is benign and typically responds to treatment with indomethacin or beta-blockers. But because it can look similar to headaches caused by vascular problems, the first episode of a severe headache triggered by exertion should prompt a medical evaluation. This is especially true if the headache is sudden, the worst you have ever experienced, or accompanied by a stiff neck, vomiting, confusion, or loss of consciousness.

Red Flags That Mean You Should Stop Immediately

A headache that explodes during a heavy lift, a sprint, or even vigorous coughing can occasionally signal a life-threatening problem. Exertion-triggered headaches have been documented as the presenting symptom of subarachnoid hemorrhage, arterial dissection, and vascular malformations.5PubMed Central. Exercise Headache Associated With an Arteriovenous Fistula of the External Carotid Artery These are rare, but they are the reason the “thunderclap headache” gets so much emphasis in emergency medicine.

A reasonable rule of thumb: if a headache that appears during exercise is new for you, unusually severe, comes on like a switch being flipped rather than a slow build, or is accompanied by neurological symptoms like vision changes, slurred speech, weakness on one side, or neck stiffness, stop exercising and seek medical attention. A headache that has happened many times before in a familiar pattern is far less concerning than one that feels different from anything you have experienced.

Cervicogenic Headaches and Strength Training

Headaches that originate from problems in the neck, known as cervicogenic headaches, are another category where exercise can be either friend or foe depending on how you approach it. These headaches stem from dysfunction in the cervical spine and often present as pain that starts at the back of the head and radiates forward. Sitting at a desk all day with poor posture is a common trigger, and the headache can flare during workouts that load the neck, like overhead presses or heavy deadlifts.

Targeted neck exercise, however, is one of the best treatments available. A randomized controlled trial found that at 12-month follow-up, headache frequency had decreased by 69% in a group performing neck strengthening exercises and 58% in an endurance exercise group, compared to 37% in controls. The greatest improvement in neck pain was seen among participants who had the most severe headaches at baseline.6PubMed. Effect of neck exercises on cervicogenic headache: a randomized controlled trial The key is that the exercises need to target the deep neck flexors and stabilizers specifically, not just add more load to an already irritated area.

Jaw Clenching During Lifting

Here is a headache trigger that most gym-goers never consider: clenching your teeth during heavy lifts. It is almost reflexive to bite down during a maximal effort, but doing it repeatedly places abnormal forces on the teeth and the temporomandibular joints. Over time, this can lead to jaw pain, joint dysfunction, and chronic headaches. The mechanism involves pressure on the temporomandibular joint triggering irritation of the trigeminal nerve, which is the same nerve pathway involved in migraines and many facial pain conditions.7Journal of Dental Hygiene Science. Investigation of the Effects of Teeth Clenching Due to Weight Training on Oral Health

If you notice headaches developing during or after heavy resistance training, pay attention to what your jaw is doing. A custom-fitted mouthguard can help distribute bite forces more evenly. Some lifters also find that consciously keeping the tongue pressed lightly to the roof of the mouth, rather than clenching, reduces the strain. It sounds like a minor detail, but for people prone to tension headaches or temporomandibular issues, it can make a real difference.

Gear That Squeezes Your Head

Headaches during exercise are not always internal. External compression headache is caused by sustained pressure on the scalp or forehead from tight-fitting gear. Swim goggles, cycling helmets, headbands, and even tight ponytails have all been reported as triggers. The pain is typically constant, worst at the point where the object presses the head, and involves compression of branches of the trigeminal or occipital nerves.8PubMed. Headaches due to external compression

In people who already have migraine, external compression can escalate into a full-blown migraine attack if the pressure continues long enough.8PubMed. Headaches due to external compression This type of headache is often misdiagnosed as a tension-type headache because the symptoms overlap, but the solution is much simpler: loosen or remove the offending equipment.9PubMed Central. Helmet-Related, External Compression Headache Among Police Officers in Rio de Janeiro If you consistently get headaches while swimming or cycling but not during other activities, the gear is worth investigating before you blame the exercise itself.

Dehydration, Blood Sugar, and Other Metabolic Triggers

Two of the most preventable causes of exercise-related headaches are dehydration and low blood sugar. Dehydration on its own can cause headaches, and it worsens pre-existing headache conditions. People who already have a primary headache disorder are especially vulnerable to fluid imbalances.10PubMed Central. Dehydration and Headache Exercising in the heat compounds the problem because sweating accelerates fluid loss. A study on fit men exercising in hot conditions found that as core temperature rose, hyperventilation increased and cerebral blood flow dropped, and caffeine made both effects worse.11PubMed Central. Caffeine Exacerbates Hyperventilation and Reductions in Cerebral Blood Flow in Physically Fit Men Exercising in the Heat That last finding is worth keeping in mind if your pre-workout routine includes a strong coffee and your gym is not well air-conditioned.

Low blood sugar is another common contributor. The link between hypoglycemia and headache has been documented since at least the 1930s, and it is a practical consideration for anyone who exercises in a fasted state or delays eating for hours before a session.12Endocrinology. HYPOGLYCEMIC HEADACHE You do not need a full meal, but having a small snack with some carbohydrate an hour or two before a workout can prevent the blood-sugar crash that sometimes masquerades as an exercise-induced headache.

Painkillers Before a Workout

A tempting approach is to pop an ibuprofen or aspirin before exercising and power through. This works in some specific scenarios. Aspirin taken before mountaineering at high altitude, for instance, reduced the incidence of exercise-related headache from about 93% in the placebo group to 56% in the treatment group.13PubMed Central. Effects of aspirin during exercise on the incidence of high-altitude headache: a randomized, double-blind, placebo-controlled trial But routinely using anti-inflammatory drugs around exercise carries risks that many athletes underestimate. The combination of NSAIDs, dehydration, and physical stress can compound kidney strain. And in sports settings, the use of painkillers is often habitual and unsupervised.14PubMed Central. The use of pain killers (NSAIDs) in athletes: How large is the risk?

There is also the issue of medication-overuse headache. Taking pain relievers more than about two days a week on a regular basis can paradoxically lead to more frequent headaches. If you find yourself needing NSAIDs before every workout, that pattern itself is a reason to see a doctor rather than keep self-medicating.

Exercise After a Concussion

For years, the standard advice after a concussion was strict rest until all symptoms, including headache, were completely gone. That guidance has shifted substantially. Current evidence supports beginning controlled aerobic exercise below the level that triggers symptoms, even while some headache remains. A multicentre randomized trial found that prescribing this kind of sub-symptom-threshold aerobic exercise roughly halved the incidence of persistent post-concussive symptoms. The approach is now endorsed by the 6th International Consensus Statement on Concussion in Sport.15SportRxiv. Sub-symptom-threshold aerobic exercise for concussion: from the Buffalo test to digital, clinician-supervised delivery — a Narrative Review

The critical detail is that the exercise has to stay below the intensity that worsens symptoms. This requires supervised testing to identify that threshold, not guesswork. Jumping back into a full practice or game while still symptomatic remains dangerous. But carefully dosed light cardio, prescribed and monitored by a clinician, actually helps the brain recover faster than complete rest does.

Higher-Intensity Training and Cerebrovascular Health

For people who get migraines and are trying to use exercise as a prevention strategy, the question of how hard to push is a real one. A randomized controlled trial compared high-intensity interval training to moderate continuous training in people with episodic migraine. High-intensity intervals produced a larger reduction in migraine days and greater improvement in cerebrovascular health, measured by the ratio of the retinal arterioles and venules, which reflects how well blood vessels in the brain are functioning.16PubMed Central. Effects of different endurance exercise modalities on migraine days and cerebrovascular health in episodic migraineurs: A randomized controlled trial

This does not mean migraine sufferers should immediately start doing sprint intervals. The participants in that study were building up under supervised conditions, not exercising through active attacks. The finding suggests that once you have established a base of fitness and your migraines are reasonably controlled, gradually increasing intensity could yield more benefit than staying at a comfortable moderate pace indefinitely. But this progression needs to be gradual enough that you can distinguish a normal post-workout flush from a migraine being provoked.

A Practical Decision Framework

Rather than a blanket yes or no, a few questions can guide the decision in the moment:

  • Is this headache new or unusual? A headache that feels different from your normal pattern, especially one that came on suddenly during exertion, warrants stopping and getting evaluated.
  • Is it a dull pressure or a throbbing pulse? Dull, band-like pressure often responds well to light activity. Throbbing, one-sided pain with nausea or light sensitivity usually gets worse with effort.
  • Are there any neurological symptoms? Vision changes, weakness, confusion, or speech difficulty mean stop immediately and seek medical care.
  • Could something external be causing it? Check for tight headgear, dehydration, skipped meals, or an overheated training environment before assuming the exercise is the problem.
  • Has this happened before? A familiar headache in a familiar pattern is far less concerning than a first-time event. But even familiar exertional headaches are worth mentioning to a doctor at your next visit, especially if they are getting more frequent.

For the majority of everyday headaches, light to moderate exercise is safe and may actually help. The situations where exercise is genuinely harmful during a headache are narrower than people tend to assume, but the consequences of missing one of those situations can be serious. Paying attention to what type of headache you have, rather than treating all headaches the same, is the single most useful thing you can do.