Why Does My Head Hurt When My Heart Rate Goes Up?

When your heart rate climbs during exercise, your blood pressure surges in rapid oscillations, and the blood vessels inside your skull have to absorb those swings almost instantly. Most of the time, the throbbing pain that results is a benign condition called primary exercise headache, which affects roughly one in eight people. But the mechanism behind it is more nuanced than “more blood flow equals more pain,” and in uncommon cases the headache can signal something that deserves medical attention.

What Happens Inside Your Skull When You Exert Yourself

Your brain sits in a rigid container, so any sudden shift in how much blood flows in or how well it drains out can translate into pressure changes you feel as pain. During vigorous exercise, systolic blood pressure can jump significantly within seconds. A study directly measuring intracranial pressure found that during aerobic exercise at about 80 percent of maximum heart rate, peak intracranial pressure rose by roughly 8 mmHg, and the overall amplitude of the pressure waveform increased by about 11 mmHg compared to rest. Systolic blood velocity in the middle cerebral artery also climbed.1PubMed Central. The Impact of Valsalva Manoeuvres and Exercise on Intracranial Pressure and Cerebrovascular Dynamics in Idiopathic Intracranial Hypertension Those oscillations in pressure stretch pain-sensitive structures around the brain, particularly the meninges and large blood vessels at the base of the skull, producing the familiar throbbing headache that keeps time with your pulse.

The effect is far more dramatic when straining is involved. A Valsalva maneuver, the kind of breath-holding and bearing down you do during a heavy deadlift or even a hard cough, drove mean intracranial pressure up by roughly 29 mmHg in the same study. That is several times larger than the increase seen with sustained aerobic exercise, and it explains why heavy lifting tends to produce sharper, more explosive headache onset than jogging or cycling.1PubMed Central. The Impact of Valsalva Manoeuvres and Exercise on Intracranial Pressure and Cerebrovascular Dynamics in Idiopathic Intracranial Hypertension

How Common This Is

Primary exercise headache is not some exotic diagnosis. A large epidemiological study found a prevalence of about 12 percent, with a slight female predominance.2PubMed. Exertional headache. I. VÃ¥gÃ¥ study of headache epidemiology The typical presentation is a bilateral, pulsating headache that develops during or just after strenuous physical activity and lasts anywhere from a few minutes to 48 hours. It is classified as “primary” when no underlying structural or vascular problem is found, meaning the headache itself is the condition rather than a symptom of something else.

The mainstays of treatment, when avoidance of the triggering activity is not practical, are indomethacin (an anti-inflammatory) and beta-blockers, both based on accumulated case-series evidence rather than large randomized trials.3PubMed Central. Primary Exercise Headache Indomethacin taken before exercise works well for many people, though it can irritate the stomach. Beta-blockers lower heart rate and dampen blood pressure spikes, which directly addresses the hemodynamic swings described above. A proper warm-up and gradual intensity ramp also reduce episodes in a lot of people, likely because they give the brain’s blood vessels time to adjust rather than being slammed with a sudden pressure wave.

Why Some People Are More Vulnerable Than Others

One anatomical factor that has received attention is the competence of the internal jugular vein valves. These valves are supposed to prevent blood from flowing backward toward the brain when pressure inside the chest rises, as it does during straining. In a study comparing people with primary exercise headache to controls, about 70 percent of headache patients had incompetent jugular valves, compared to only 20 percent of controls.4PubMed. Incompetence of internal jugular valve in patients with primary exertional headache: a risk factor? When these valves fail, straining sends a retrograde wave of venous blood back into the skull, temporarily congesting cerebral veins and spiking intracranial pressure. You cannot feel whether your jugular valves work properly, and there is no simple home test for it, but it helps explain why two people can do the same workout and only one walks away with a headache.

Why Lifting Weights Hits Harder Than Running

Cardio and resistance training stress the brain’s blood supply differently. During steady-state aerobic exercise, blood pressure rises but remains relatively stable, and your brain’s autoregulatory system has time to compensate. During heavy resistance exercise, though, blood pressure spikes enormously on each rep, especially when you hold your breath. Those massive, brief surges overwhelm the brain’s normal ability to keep blood flow steady.

Research measuring cerebral blood flow velocity during and after resistance exercise found that the brain’s autoregulatory gain, essentially how aggressively the cerebral vessels adjust to blood pressure swings, was elevated for about ten minutes after a resistance session and then returned to baseline by 45 minutes.5PubMed Central. Resistance exercise acutely elevates dynamic cerebral autoregulation gain That window of altered regulation may be when you are most susceptible to headache during and immediately after lifting.

There is an encouraging training effect, though. A study comparing resistance-trained individuals to untrained people found that although trained lifters produced bigger blood pressure swings during exercise, their cerebral blood flow velocity remained more stable. Regular training appears to produce vascular adaptations that buffer the brain from those pressure extremes.6PubMed Central. The effects of habitual resistance exercise training on cerebrovascular responses to lower body dynamic resistance exercise: A cross-sectional study So if you are new to lifting and experiencing headaches, they may improve as your cardiovascular system adapts over weeks to months. Practical steps that help in the meantime include exhaling during the exertion phase of each rep instead of holding your breath, staying well-hydrated, and avoiding maximal lifts until your body acclimates.

The Migraine Connection

If you already get migraines, exercise can be both friend and enemy. Physical exertion is one of the commonly reported migraine triggers, and the mechanism overlaps with what happens in primary exercise headache: sharp increases in cortical excitability, metabolic stress, and activation of the trigeminovascular system, the network of nerves and blood vessels that drives migraine pain.7Quality in Sport. The role of physical exercise in modulating migraine pathophysiology from mechanisms triggering attacks to adaptive regulation of nociceptive responses A single hard workout on a bad day can kick off a full-blown migraine with aura, nausea, and light sensitivity.

The paradox is that regular, moderate exercise is also one of the better non-drug strategies for reducing migraine frequency over time. Studies have reported exercise functioning both as a trigger and as a prophylactic measure, depending on intensity and consistency.8PubMed Central. The association between migraine and physical exercise The likely explanation is that sustained training lowers baseline inflammation, improves the body’s built-in pain-dampening pathways, and stabilizes the autonomic nervous system, all of which raise the threshold for triggering a migraine. The key for migraine sufferers is consistency: sporadic high-intensity sessions are more likely to trigger attacks than a steady routine of moderate activity that gradually ramps up.

When a Headache During Exertion Is a Red Flag

The vast majority of exertional headaches are benign, but there are a few serious conditions that present the same way and require urgent evaluation. Clinicians diagnosing primary exercise headache are specifically told to rule these out first.

Cardiac Cephalgia

This is a headache caused by reduced blood flow to the heart itself, essentially angina that shows up as head pain instead of, or alongside, chest pain. It is rare, but documented case reports describe patients whose typical headache during exercise correlated perfectly with electrocardiogram changes indicating cardiac ischemia. In at least two well-described cases, coronary angiography revealed severe three-vessel disease, and the headaches disappeared completely after surgical revascularization.9PubMed. Cardiac cephalgia: a treatable form of exertional headache Several theories explain the connection: referred pain through shared nerve pathways between the heart and the head, elevated intracranial pressure from temporary drops in cardiac output, release of pain-mediating chemicals from ischemic heart muscle, and even simultaneous spasm in both coronary and cerebral arteries.10PubMed Central. Cardiac Cephalgia Cardiac cephalgia should be on the radar for anyone over 50 with cardiovascular risk factors who develops new exertional headaches, especially if the headache comes with shortness of breath, nausea, or jaw and arm discomfort.11PubMed. Cardiac cephalgia

Subarachnoid Hemorrhage and Arterial Dissection

A sudden, maximal-intensity headache during exertion, often described as the worst headache of your life, can be the first sign of a ruptured brain aneurysm causing subarachnoid hemorrhage. In a series of 60 patients with confirmed ruptured intracranial aneurysms, about half had this “thunderclap” pattern as their presenting symptom.12Headache Medicine. Prevalence of thunderclap headache in patients with ruptured intracranial aneurysms: series of 60 cases Any sudden thunderclap headache during exercise warrants an emergency evaluation, typically a CT scan and, if negative, a lumbar puncture or CT angiogram.

Cervical artery dissection, a tear in one of the arteries running through the neck to the brain, is another uncommon but serious cause of exertional headache. In a study of 245 patients with spontaneous cervical artery dissection, about 8 percent presented with pain alone, usually headache and neck pain. Onset varied: some cases were gradual, some were acute, and some presented with a thunderclap pattern.13PubMed Central. Pain as the only symptom of cervical artery dissection This condition can occur after seemingly minor neck movements or physical strain and is more common in younger adults. The median delay from symptom onset to diagnosis was seven days, which underscores how easy it is to dismiss the headache as muscle tension or an exercise headache.

Structural Issues That Mimic Exercise Headache

Chiari malformation type 1 is a condition where the lower part of the brain (the cerebellar tonsils) extends downward through the opening at the base of the skull. This crowds the space where cerebrospinal fluid normally flows and makes the brain especially sensitive to any activity that raises intracranial pressure. The hallmark symptom is a headache at the back of the head that worsens with coughing, straining, or physical exertion.14Oxford Textbook of Headache Syndromes. Headache and Chiari malformation A study of young patients with Chiari malformation found that specific movements like jumping, running, going up stairs, and bending forward all aggravated headaches, which typically resolved within minutes of stopping the activity.15PubMed Central. Motion-specific Headache: A Predictor for Diagnosis and Favorable Prognosis after Surgery in Young Patients with Chiari Malformation Type 1

Chiari malformation is often discovered incidentally on brain MRI, and many people with mild forms never develop symptoms. But if your exertional headaches are always at the back of the head, are triggered reliably by coughing or straining as well as by exercise, and have been present since adolescence, it is worth mentioning to your doctor. Surgery to decompress the area at the base of the skull has a good track record for resolving these headaches.

Altitude, Heat, and Dehydration

Environmental conditions can lower the threshold for exercise-induced headache or create their own headache pathway entirely. Altitude is the most studied example. Acute mountain sickness, which typically begins within hours of ascending above about 2,500 meters, produces headache as its cardinal symptom, often accompanied by nausea, fatigue, and dizziness. Risk factors include rate of ascent, sleeping altitude, and exercise intensity.16PubMed Central. High-altitude illnesses: physiology, risk factors, prevention, and treatment Exercising at altitude combines two headache triggers: the hemodynamic stress of exertion and the lower oxygen availability that forces the brain’s blood vessels to dilate. If you notice that your exercise headaches only appear when hiking in the mountains or training at elevation, altitude is likely contributing.

Heat and dehydration also play supporting roles. Dehydration reduces blood volume, which means the heart has to beat faster and harder to maintain the same output, amplifying the pressure swings that the brain has to absorb. Heat compounds this by shunting blood toward the skin for cooling, further reducing the volume available for the brain. Neither mechanism is exotic or surprising, but they are easy to underestimate. Many people who think they have an exercise headache problem discover it largely disappears when they drink more fluids before and during activity, especially in warm weather.

Neck Tension and Referred Pain

Not every headache that coincides with a rising heart rate originates inside the skull. Cervicogenic headache, pain referred from structures in the upper neck, is common among people who exercise with poor posture, forward head carriage, or tight upper-trapezius muscles. It can mimic exercise headache because physical effort tenses the neck and shoulders, and the resulting pain radiates into the head.17PubMed Central. Cervicogenic headaches: an evidence-led approach to clinical management A key difference is that cervicogenic headache is usually one-sided, starts at the base of the skull or in the neck, and can often be reproduced by pressing on specific spots in the neck muscles. If your “exercise headache” gets better with a neck massage or worse with sustained awkward postures like looking down at a bike computer for an hour, the neck is worth investigating as the source.

How to Tell the Difference Between Annoying and Dangerous

A few features help you sort a garden-variety exercise headache from something that needs urgent attention:

  • Onset speed: Primary exercise headache typically builds over seconds to minutes. A thunderclap headache that reaches maximum intensity within a second or two needs emergency evaluation.
  • New versus familiar: A headache pattern you have had for years during hard workouts, and that goes away when you stop, is less concerning than one that appears for the first time, especially after age 40.
  • Associated symptoms: Neurological signs like weakness on one side, slurred speech, vision changes, confusion, or a stiff neck alongside a severe headache are red flags for bleeding or vascular injury.
  • Response to rest: Benign exercise headaches fade after you stop exercising and cool down. A headache that persists for hours at the same intensity, or worsens after you stop, warrants medical review.
  • Fever or illness: Exercising with an infection can produce headaches through different mechanisms, including meningeal irritation, and generally should prompt rest rather than continued training.

If you have recurrent exercise headaches that match the primary pattern, a doctor will usually want brain imaging at least once to rule out structural causes like Chiari malformation or an aneurysm, especially if the headaches are new. Once cleared, the condition becomes manageable with medication, warm-ups, hydration, and breathing technique during resistance work. For most people, understanding the mechanism is itself reassuring: your brain is not being damaged, your blood vessels are just protesting a temporary pressure spike, and that protest usually gets quieter with consistent training and basic precautions.