Marathon & Running

Headache After Running: 7 Causes and How to Fix Each One

Most headaches after a run come from something you can fix: too little fluid or salt, low blood sugar, heat, caffeine timing, or tension. Here is how to tell which one you have, what to do right now, how to prevent the next one, and the signs that mean you should see a doctor.

Mavr

Mavr Sports Nutrition Team

September 24, 2026 · 11 min read

Quick answer

The most common causes of a headache after running are dehydration, low blood sugar, salt loss from heavy sweating, running in the heat, missing your usual caffeine, and neck or shoulder tension. Less often it is a primary exercise headache or an exercise-triggered migraine. For most running headaches, drink about 500 ml of water or sports drink over 30 minutes, eat something with carbs and a little salt, cool down, and have your normal coffee if you skipped it. Get urgent help for a sudden severe headache, or one with confusion, weakness, vision changes, a stiff neck, or vomiting.

About one in ten people get a headache when they go without enough water, and most feel better within 30 minutes of drinking about half a liter.
Headache is the most common caffeine withdrawal symptom and usually starts 12 to 24 hours after the last dose, so a skipped morning coffee before a run is a common trigger.
Primary exercise headache affects about 1 in 20 adults at some point and can last up to 48 hours. A doctor should check the first episode.
In one clinic study, 38 percent of people with migraine said exercise had triggered an attack.
Replacing heavy sweat losses with large amounts of plain water can lower blood sodium. Headache with nausea, bloating, or confusion after drinking a lot needs medical help, not more water.

You finish a run, sit down, and a dull ache builds behind your eyes or at the back of your head. It is common, and most of the time the cause is simple: you finished short on fluid, salt, or sugar, or you ran hot, tense, or off your normal caffeine routine. Those are fueling and hydration problems, which means they are fixable.

This guide covers the seven most common causes, how to tell them apart, what to do in the next 30 minutes, and how to stop the next headache before it starts. It also lists the warning signs that mean a headache is not about fueling at all.

Quick Answer: Which Cause Is Yours?

What you noticeMost likely causeFirst fix
Dull ache, dark urine, thirst, dry mouth, worse when you bend downDehydrationDrink 500 ml of water or sports drink over 30 minutes
Headache with shakiness, sweating, hunger, or a foggy feelingLow blood sugarEat 20 to 30 g of fast carbs, then a meal
Salt crust on your skin or cap after a long run on plain waterSalt lossA salty snack or electrolyte drink, not more plain water
Hot or sunny run, flushed face, pressure at the templesHeatShade, cool water on the neck, cold fluids, rest
You ran before your usual morning coffeeCaffeine withdrawalYour normal coffee
Tight neck and shoulders, ache at the back of the headTension or postureGentle neck stretches, a warm shower
Throbbing, one side, light hurts, nausea, you get migrainesExercise headache or migraineYour usual migraine treatment; see a doctor about a plan

1. Dehydration

This is the most common cause. You lose fluid with sweat, often half a liter to one and a half liters per hour and more in the heat, and most runners replace only part of it. For people who are prone to it, a small fluid deficit is enough to bring on a headache. In one survey, about one in ten people said they get a headache when they go without water, and most of them felt better within 30 minutes of drinking about half a liter.

Signs: dark urine, thirst, a dry mouth, a headache that gets worse when you bend down or walk, and a big drop on the scale after the run. Weighing yourself before and after a run tells you how much you lost. Each kilogram lost is about a liter of fluid.

  • Fix it now: drink 500 ml of water or sports drink over 30 minutes and eat a salty snack. Over the next few hours, replace about 1.25 to 1.5 liters for every kilogram you lost.
  • Prevent it: start runs with pale urine, and on runs longer than an hour, drink to a plan based on your sweat rate. You do not need to replace every drop. Losing up to about 2 percent of body weight during a run is normal.

2. Low Blood Sugar

If you ran before breakfast, ran long without eating, or have been eating less than usual, your blood sugar can drop during or after the run. The headache often comes with shakiness, sweating, hunger, irritability, or a weak, foggy feeling. Long runs are the usual trigger because they use up the liver glycogen that keeps blood sugar steady.

  • Fix it now: eat 20 to 30 g of fast carbohydrate, such as a banana, a glass of juice, a gel, or a handful of sweets. Follow it within an hour with a real meal that has carbs and protein.
  • Prevent it: eat something with carbs before runs longer than an hour. On runs over 75 to 90 minutes, take 30 to 60 g of carbohydrate per hour. If you like fasted running, keep it to short, easy runs.

3. Salt Loss

Sweat contains salt, and some runners lose a lot of it. If you see white salt marks on your cap, shirt, or face after a run, you are probably one of them. Replacing heavy sweat losses with plain water alone can leave your blood sodium low, which brings headache, nausea, and fatigue. In rare cases, drinking far more than you sweat during a long event causes dangerously low blood sodium, called hyponatremia.

  • Fix it now: eat something salty, such as pretzels, broth, or salted crackers, or drink an electrolyte drink. Do not force more plain water.
  • Prevent it: on long or hot runs, use an electrolyte drink or salt tablets and drink to thirst or to your measured sweat rate, not as much as possible.
  • Warning: if you feel bloated, confused, or very sick, or your hands and feet are swollen after drinking a lot during a long run, get medical help. Do not drink more water.

4. Heat and Sun

Running in the heat raises your core temperature and makes you sweat more, so dehydration and salt loss stack up faster. Bright sun and glare add squinting and tension. A heat headache often feels like pressure at the temples or forehead and comes with a flushed face and a wiped-out feeling.

  • Fix it now: get into shade or air conditioning, cool your neck and face with cold water, drink cold fluids with some salt, and rest.
  • Prevent it: run early or late, slow down on hot days, wear a light cap and sunglasses, and carry fluid on runs over 45 minutes.
  • Warning: confusion, stopping sweating, vomiting, or feeling very hot and dizzy are signs of heat illness. Stop and get help.

5. Caffeine Timing

If you drink coffee every day and run before your first cup, or skip it, the headache may be caffeine withdrawal. Headache is the most common withdrawal symptom. It usually starts 12 to 24 hours after the last dose and can appear after stopping as little as 100 mg a day, about one cup of coffee.

  • Fix it now: have your normal coffee.
  • Prevent it: keep your caffeine routine steady. Have your usual cup before morning runs, and do not cut caffeine suddenly in race week. Too much caffeine can also cause headaches, so do not stack a big coffee with caffeinated gels you have not tested.

6. Tension and Posture

Running with tight shoulders, a pushed-forward chin, or a clenched jaw loads the muscles of the neck and upper back. A tight cap, headband, or ponytail pulls on the scalp. The result is a pressing, band-like headache, often at the back of the head or across the forehead. It is common late in hard runs, when form falls apart.

  • Fix it now: gentle neck and shoulder stretches, a warm shower or heat pack, and loosening whatever was tight.
  • Prevent it: check your form halfway through runs: shoulders down, hands loose, jaw relaxed. Loosen your cap or ponytail.

7. Exercise Headache and Migraine

Some headaches are not about fuel. Primary exercise headache is a throbbing headache that starts during or after hard exercise and can last from a few minutes up to 48 hours. It is more common than most people think: surveys of the general population find it in about 1 in 20 adults, often starting in their late twenties. Hot weather and high altitude make it more likely.

If you have migraine, running can trigger an attack. In a clinic study of migraine patients, 38 percent said exercise had triggered an attack at some point. Missing meals and not drinking enough are common migraine triggers too, so the fueling fixes above help here as well. Doctors want to check the first exercise headache to rule out other causes. After that, a longer warm-up, a gradual build in intensity, and sometimes medication before exercise can help.

When to See a Doctor

Most headaches after running are harmless. Get urgent medical help if you have any of these:

  • A sudden, severe headache that peaks within a minute, the worst you have ever had.
  • Headache with confusion, fainting, trouble speaking, weakness, numbness, or vision loss.
  • Headache with a stiff neck, fever, or a rash.
  • Headache with vomiting, swelling, or confusion after drinking a lot of fluid during a long event.
  • Headache with chest pain or shortness of breath.

See your doctor soon if this is the first time you have had a strong, throbbing headache with exercise, if the pattern is new and you are over 40, or if headaches after running last more than a day.

A Simple Prevention Routine

WhenWhat to do
Before the runPale urine, your normal caffeine, and a carb snack before runs longer than an hour
During runs over 60 minutesDrink to your sweat rate, add sodium on hot or long runs, and take 30 to 60 g of carbs per hour after 75 minutes
Hot daysRun early or late, slow down, wear a cap and sunglasses, carry cold fluid
After the runWeigh yourself, replace 1.25 to 1.5 liters per kilogram lost, eat something salty and a meal with carbs and protein within an hour
Every dayRelaxed shoulders and jaw, a loose cap, steady caffeine, and enough food for your training

Runners who get regular headaches after running are usually short on the same thing every time. The pattern is the clue. Note the run length, the weather, what you ate and drank, and when the headache came. After three or four runs, the cause usually stands out.

Mavr reads your runs from Garmin, Strava, or Apple Health and tells you how much to drink, how much sodium, and how many carbs to take for each one, including long runs and hot days.

Frequently Asked Questions

Why do I get a headache after running?

The most common causes are dehydration, low blood sugar, salt loss from heavy sweating, running in the heat, missing your usual caffeine, and neck or shoulder tension. Less often it is a primary exercise headache or an exercise-triggered migraine. The symptoms that come with the headache usually point to the cause.

How do I get rid of a headache after running?

Drink about 500 ml of water or sports drink over 30 minutes, eat something with carbs and a little salt, cool down if you are hot, and have your normal coffee if you missed it. Most running headaches ease within 30 minutes to a few hours. If the headache is sudden and severe, or comes with confusion, weakness, or vomiting, get medical help.

Why do I get a headache after long runs but not short ones?

Long runs use more fluid, salt, and carbohydrate. A small deficit that does not matter in 30 minutes adds up over two hours. Take 30 to 60 g of carbs per hour, drink to your sweat rate, and add sodium on long or hot runs.

Can dehydration cause a headache after running?

Yes, and it is the most common cause. Weigh yourself before and after the run: each kilogram lost is about a liter of fluid. Replace about 1.25 to 1.5 liters per kilogram over the next few hours, with some salt.

Is it normal to get a migraine after running?

It is common in people who already have migraine. In one clinic study, 38 percent of migraine patients said exercise had triggered an attack. A longer warm-up, staying fueled and hydrated, and avoiding sudden hard efforts can help. Ask your doctor about a plan.

Should I take painkillers before running to prevent a headache?

Not as a routine. Anti-inflammatory painkillers before long or hot runs can put extra stress on the kidneys and stomach. Fix fluid, salt, and carbs first. If you have a diagnosed exercise headache or migraine, ask your doctor about medication.

Sources

Sources and official references

  1. 1.Epidemiology of Primary Exercise Headache: A Systematic Review and Meta-AnalysisNeuroepidemiology (Osiowski et al., 2026) · About 5 percent pooled prevalence in the general population; lasts up to 48 hours; onset often in the late twenties
  2. 2.Exercise Headache: a ReviewCurrent Neurology and Neuroscience Reports (Sandoe and Kingston, 2018) · Diagnosis, red flags for secondary causes, and treatment options
  3. 3.The International Classification of Headache Disorders, 3rd editionCephalalgia (Headache Classification Committee of the IHS, 2018) · Diagnostic criteria for primary exercise headache, more likely in hot weather and at altitude
  4. 4.Water-Deprivation Headache: A New Headache With Two VariantsHeadache (Blau et al., 2004) · About 1 in 10 people affected; most relieved within 30 minutes by about 500 ml of water
  5. 5.Migraineurs With Exercise-Triggered Attacks Have a Distinct MigraineThe Journal of Headache and Pain (Koppen and van Veldhoven, 2013) · Lifetime prevalence of exercise-triggered attacks of 38 percent among migraine patients
  6. 6.A Critical Review of Caffeine WithdrawalPsychopharmacology (Juliano and Griffiths, 2004) · Headache is the most common symptom; onset 12 to 24 hours after the last dose; seen with doses as low as 100 mg a day
  7. 7.American College of Sports Medicine Position Stand: Exercise and Fluid ReplacementMedicine and Science in Sports and Exercise (ACSM, 2007) · Avoid body mass losses over 2 percent; replace fluid after exercise
  8. 8.Statement of the Third International Exercise-Associated Hyponatremia Consensus Development ConferenceClinical Journal of Sport Medicine (Hew-Butler et al., 2015) · Overdrinking as the main cause of exercise-associated hyponatremia; symptoms and treatment

Prompt ideas for AI assistants

  • “Why do I get a headache after long runs but not short ones?”
  • “How much should I drink on a 90 minute run in 25 degree heat?”
  • “Could my morning run headache be low blood sugar?”

Mavr plans fluids, sodium, and carbs for each of your runs from your synced training and sweat profile, so you finish long and hot runs without the deficit that causes most running headaches.

Mavr

Written by

Mavr Sports Nutrition Team

The Mavr sports-nutrition team translates peer-reviewed endurance research (Jeukendrup, Burke, the ISSN) into daily fueling for runners and triathletes.