Headache After Exercise: Causes, When to Worry, Treatment

Headache After Exercise — Causes, Warning Signs and Treatment

Why a hard workout can bring on a headache, the warning signs that need urgent care, and how to keep exercising. Explained by a Sydney neurologist.

Book a Consultation

When a Headache With Exercise Needs Urgent Care

Most headaches that come on with exercise are not dangerous. A few patterns need care straight away, so they come first.

Skip to main content

Call 000 — or go to an emergency department — if

  • a headache comes on suddenly and severely during exertion, including lifting, sport or sex, and reaches its worst within a minute (the worst headache of your life)
  • the headache comes with vomiting, a stiff neck, fainting or collapse, confusion or unusual drowsiness
  • the headache comes with chest pain or pressure, shortness of breath, sweating, or pain spreading to the arm or jaw
  • there is neck pain with dizziness, double vision, slurred speech, unsteadiness, a drooping eyelid, or numbness or weakness of the face, an arm or a leg, especially after a neck strain or a knock in sport
  • the headache comes with a seizure, loss of vision or difficulty speaking
  • you have had two or more sudden, severe headaches over a few days, set off by exertion, sex, straining or a hot shower

A sudden, explosive headache can mean bleeding around the brain (a subarachnoid haemorrhage) or a temporary narrowing of the brain's arteries (reversible cerebral vasoconstriction syndrome). Neck pain with those symptoms can mean a tear in the wall of an artery in the neck (a dissection). All need urgent treatment. Remember FAST: Face drooping, Arm weakness, Speech difficulty, Time to call 000.

See your GP the same day if

  • this is the first time exercise has given you a headache, even if it has settled
  • the headache lasts longer than 48 hours, or keeps getting worse after you stop exercising
  • you are over 50, or have heart disease or its risk factors (smoking, diabetes, high blood pressure or cholesterol), and the headache comes on with exertion and eases when you rest: stop exercising until you have been checked
  • the headache is brought on by coughing, sneezing or straining, or is worse lying down
  • the headaches started after you had a baby, or after starting a new medicine or using recreational drugs

If you cannot see your GP that day, go to an emergency department.

Where most people sit

These patterns are uncommon. Most headaches that come on with exercise are primary exercise headache or a migraine set off by exertion: common conditions that do not damage the brain and can usually be prevented. If you are worried about a brain aneurysm: a bleed from an aneurysm typically causes a sudden, explosive headache, at its worst within a minute, often with vomiting or collapse. A headache that builds up over minutes of hard exercise, has followed the same pattern before and fades with rest is very unlikely to be one. The first one should still be checked, because only tests can rule it out.

Why Does Exercise Give Me a Headache?

Most people put a headache after a workout down to dehydration. Sometimes that is part of it, but it is rarely the whole story. Exercise headache is common: in a Norwegian study that interviewed 1,838 adults, about one in eight had had one. And exercise is usually good for headaches: in a Swedish trial, 40 minutes of exercise three times a week reduced migraine attacks about as much as a daily preventive medicine. So why does a workout bring a headache on for some people?

Primary exercise headache (also called exertion headache or exertional headache) is a headache brought on by sustained, strenuous exercise, such as running, cycling, rowing, swimming, a gym session or weight-lifting, when no other cause is found. Doctors call a headache primary when the headache is the condition itself, not the sign of something else. It is diagnosed once it has happened at least twice in the same way and the serious causes have been ruled out.

The exact cause is not known. The leading explanation is pressure: hard exercise raises blood pressure and stretches the blood vessels in and around the brain, and the walls of those vessels are sensitive to stretch. It is a little like a garden hose when the tap is turned on full: the pressure stretches the hose, and in the head that stretch is felt as a throbbing pain. In one study, leaky valves in the large veins of the neck were more common in people with exercise headache, which may let pressure build up in the head during effort. Hot weather and altitude make it more likely.

Where most people sit

Primary exercise headache is a nuisance rather than a danger: it does not damage the brain or the blood vessels. Most people keep exercising, with a few changes to how they warm up and pace themselves, and there is medicine for those who need it.

Exercise Headache Symptoms — What It Feels Like

Primary exercise headache has a typical pattern. No single feature proves it, but together they point to it.

  • It comes with effort, and only then. It starts during or soon after sustained, hard exercise, not at rest.
  • Throbbing, on both sides. Most people describe a pulsing pain over both sides or the whole head.
  • It builds as you push. It usually builds up during the effort, and stopping or slowing down can ease it.
  • Minutes to hours. In the Norwegian study, about half of the people with exercise headache had attacks lasting under an hour, and some had attacks lasting up to a day. By definition it is gone within 48 hours.
  • Heat and altitude. It is more likely in hot weather or at altitude.
  • It repeats. It tends to come back with the same kind of effort.
  • Little or no nausea. Nausea and vomiting are not usually part of it. If they are marked, or light bothers you, a migraine set off by exercise is more likely.
  • Who gets it. It can start in the teenage years or in adult life, is a little more common in women, and often affects people who also have migraine.

Exercise Headache, Migraine or Tension-Type Headache?

Exercise can bring on more than one kind of headache. These features help tell them apart.

Swipe the table sideways to compare all three →

FeaturePrimary exercise headacheMigraine set off by exerciseTension-type headache
When it startsDuring or soon after hard, sustained exercise, and only thenDuring exercise or in the hours after; sometimes an aura (such as flickering zigzag lines) comes firstAfter exercise or at any time, often with neck and shoulder tension
Feels likeThrobbing or pulsing, usually both sidesThrobbing, often one side, moderate to severePressing or tightening, like a band; mild to moderate
Other symptomsUsually none; vomiting is unusualNausea, sensitivity to light and noise; sometimes auraUsually none; no more than mild nausea
How longMinutes to hours; under 48 hours4 to 72 hours, like your usual attacks30 minutes to several days
Also brought on byNothing else; heat and altitude make it more likelySleep loss, missed meals, hormonal changes, the let-down after stress, alcoholStress, tiredness, poor sleep

Exercise is a common migraine trigger: in a Dutch headache clinic, almost 4 in 10 people with migraine said exercise had set off an attack. A few everyday things also make a headache with exercise more likely, and are worth checking first: not drinking enough, exercising in the heat, exercising on an empty stomach, missing your usual coffee, and goggles, a helmet or headgear that press on the head (external-compression headache).

Two related headaches are assessed differently. A headache that comes on during sex is a close relative of exercise headache and is checked the same way: a sudden, severe one is an emergency. A headache set off within seconds by a cough, a sneeze, laughing or straining on the toilet is a different condition (cough headache). It more often has a cause that shows on an MRI scan, such as a Chiari malformation, where the lowest part of the brain sits lower than usual, so it is always worth having checked.

Where most people sit

Most people with headaches during or after exercise have primary exercise headache or migraine, and many have both: in the Norwegian study, almost half of those with exercise headache also had migraine. Both are common and treatable. The table is a guide, not a diagnosis: the features overlap, and sorting them out is the main job of the consultation.

The Rare Causes Doctors Rule Out

A first headache with exercise is checked because a few serious conditions can start the same way. Each is rare, and each usually comes with warning signs.

  • Bleeding around the brain (subarachnoid haemorrhage), usually from a burst bulge in an artery (an aneurysm). It causes a sudden, explosive headache, at its worst within a minute, often with vomiting, a stiff neck, collapse or confusion. Exertion, including lifting and sex, can set it off. In clinic studies it was the most common serious cause of a headache brought on by exertion.
  • Reversible cerebral vasoconstriction syndrome, a temporary narrowing of the brain's arteries. It typically causes several sudden, severe headaches over days to a few weeks, often set off by exertion, sex, straining, a hot shower or strong emotion. More than half of cases follow childbirth, certain medicines (including some cold-and-flu tablets and some prescription medicines), or drugs such as cannabis, cocaine or amphetamines. It needs urgent assessment because it can lead to bleeding or a stroke.
  • A tear in an artery in the neck (cervical artery dissection). It can follow a neck injury or a sudden strain, including in sport, and causes new neck pain and headache, often on one side, sometimes with a drooping eyelid, a whooshing sound in one ear, or stroke symptoms. It is an important cause of stroke in younger adults.
  • Heart trouble (cardiac cephalalgia). Rarely, a headache that comes on with exertion and eases with rest is a sign that the heart muscle is short of blood, sometimes without any chest pain. It is most likely after 50 in people with heart disease risk factors. It matters for treatment too, because some migraine medicines narrow blood vessels and are unsafe with heart disease.

Where most people sit

These causes are rare, and they usually announce themselves: an explosive onset, neck pain, chest symptoms or neurological symptoms. In a ten-year study at a Spanish neurology department, headaches brought on by exercise or sex were uncommon, and serious causes among them were rare. That is why one set of normal tests usually settles the question, and you can plan your return to exercise.

How Is Exercise Headache Diagnosed?

There is no single test for primary exercise headache. It is diagnosed when the pattern fits and the serious causes have been ruled out.

  • Your story. How fast the headache starts, what you were doing, how long it lasts, whether you also have migraine, your medicines, and your heart risk factors.
  • The examination. A full neurological examination and your blood pressure, with checks of the heart and neck where needed.
  • Scans after a first episode. Usually a brain scan (CT or MRI) and a scan of the blood vessels of the head and neck (CT or MR angiography). If a bleed is possible, this happens in an emergency department, and if the scan is normal a lumbar puncture (a sample of the fluid around the brain and spine) may be needed.
  • A heart check, when it fits. If you are older or have heart risk factors, an ECG (a heart tracing) and an exercise stress test, arranged with your GP or a cardiologist.

Once the tests are normal and the headache keeps following the same pattern, the diagnosis is primary exercise headache. A few weeks of a headache diary (what you were doing, the weather, how long it lasted) often makes the pattern clear.

Exercise Headache Treatment and Prevention

Most people can keep exercising. Treatment aims to prevent the headache, and to treat any migraine that is part of the picture.

  • Ease into it. Warm up for longer, build the intensity gradually, and for a while stay at a level that does not bring the headache on.
  • Look after the basics. Drink before and during exercise, eat beforehand, avoid the hottest part of the day, and allow time to adjust at altitude.
  • Breathe through the effort. Breathe out as you push rather than holding your breath when you lift, and check that goggles, a helmet or headgear are not too tight.
  • Medicine, when needed. A medicine taken before exercise, or a daily preventive medicine, can help. Your doctor can advise whether either suits you.
  • Treat the migraine, if migraine is present. If exercise is setting off migraine attacks, migraine treatment and prevention usually help with those attacks too.

Where most people sit

Most people get back to their usual exercise, some with the help of medicine for a while. Giving up exercise altogether is rarely needed, and regular exercise helps prevent migraine. The key is the right diagnosis first.

When to See a Neurologist About Headaches With Exercise

  • Your first exercise headache has been checked, and the headaches keep coming back
  • You are not sure whether it is exercise headache, migraine or something else
  • Headaches are stopping you from exercising or playing sport
  • You want to know whether medicine could help, and what is safe for you
  • Headaches set off by coughing, straining or sex
  • A new headache with exertion after about 50 (after urgent care, if any of the warning signs applied)
  • You want a clear diagnosis and a plan

A consultation involves a detailed history, a neurological examination and a plan: working out which headache, or headaches, you have, arranging scans when the result will change what happens next, and coordinating with your GP, and with a cardiologist when the heart needs checking. Dr Ron Granot trained at Prince of Wales Hospital, Sydney, and sees patients in Bondi Junction. For the wider picture, read our migraine overview.

Frequently Asked Questions

Why do I get a headache after exercise? +
Most often it is primary exercise headache: a throbbing headache brought on by sustained, strenuous exercise, probably because hard effort raises the pressure in the blood vessels of the head. Exercise can also set off an attack in people who have migraine. Heat, altitude, not drinking enough and tight goggles or headgear make a headache more likely. The first one should be checked by a doctor, because a few serious conditions can start the same way.
Are exercise headaches dangerous? +
Usually not. Primary exercise headache does not damage the brain. But a first headache with exercise needs checking, because bleeding around the brain, a temporary narrowing of the brain's arteries, a tear in an artery in the neck and, rarely, heart trouble can all cause a headache with exertion. A sudden, explosive headache that peaks within a minute is an emergency: call 000.
How long do exercise headaches last? +
Usually minutes to a few hours. In a Norwegian study, about half of the people with exercise headache had attacks lasting under an hour, and some had attacks lasting up to a day; by definition, primary exercise headache is gone within 48 hours. A headache that lasts longer, or keeps getting worse after you stop, needs a doctor the same day.
How do you get rid of exertion headaches? +
Once one has started, stop or slow down, rest somewhere cool and drink water; simple pain relief can help. To prevent them, warm up for longer, build the intensity gradually, avoid exercising in the heat, and breathe out rather than holding your breath when you lift. If they keep coming, a medicine taken before exercise, or a daily preventive medicine, can help. Your doctor can advise.
What does a sudden headache during a workout mean? +
A headache that strikes suddenly and severely during exertion, reaching its worst within a minute, is a thunderclap headache and an emergency: call 000. It can mean bleeding around the brain or a temporary narrowing of the brain's arteries. Most exercise headaches build up more gradually, but you cannot reliably tell the difference at home, so a sudden one always needs urgent assessment.
Can dehydration cause a headache after exercise? +
It can contribute, along with heat, exercising on an empty stomach and missing your usual coffee, so drinking enough is sensible. But many people with exercise headache are well hydrated. Primary exercise headache and exercise-triggered migraine are more common explanations, and a headache that keeps coming back despite good hydration is worth having assessed.
Can exercise trigger a migraine? +
Yes. In a Dutch headache clinic, almost 4 in 10 people with migraine said exercise had triggered an attack at some point. An exercise-triggered migraine looks like your usual migraine, often one-sided, with nausea and sensitivity to light, and can start during exercise or in the hours after. Migraine treatment and prevention help, and regular exercise usually reduces migraine overall.
Should I stop exercising if I get exercise headaches? +
Not for good. After a first headache, hold off until a doctor has checked you. Once the serious causes are ruled out, most people return to exercise by warming up for longer, building the intensity gradually and avoiding the heat, sometimes with the help of medicine. Regular exercise helps prevent migraine, so it is worth keeping.
Important: This page is general health information for adults living in Australia and is not a substitute for individual medical advice. If you have a sudden, severe headache that peaks within a minute, a headache with chest pain or shortness of breath, or neck pain with dizziness, double vision, slurred speech or weakness, call 000. Diagnosis and treatment decisions are made on an individual basis with your treating doctor.

Headaches When You Exercise?

Book a consultation with Dr Ron Granot — neurologist with a special interest in headache, Bondi Junction. Ask your GP for a referral, then get in touch.

Book a Consultation
.