Intermittent Fasting

Why Does Fasting Give Me a Headache?

Fasting headaches are often linked to low sodium, dehydration or caffeine withdrawal. How to tell which, and what helps without breaking your fast.

Why Does Fasting Give Me a Headache?

Photo by engin akyurt on Unsplash

The fasting headache is one of the most common reasons people quit in the first two weeks. It's also, in many cases, fixable — because it often has a cause you can deal with without eating.

The three real causes

Most fasting headaches people describe line up with one of these, and they need different fixes.

CauseFeels likeTimingFix
Low sodiumDull, all-over, with fatigueHour 14+Salt in water
DehydrationTight, worse standing upAny timeMore water
Caffeine withdrawalThrobbing, temples, irritableLate morningKeep caffeine steady
Low blood sugarShaky, sweaty, urgentRare in healthy adultsEat

That last row is what people assume is happening and is usually the least likely explanation. In healthy adults, blood glucose stays within a normal range during a 16–24 hour fast — the body is well-practised at this. If you genuinely have shakiness, sweating and confusion, that's different, and you should eat rather than push through.

The research on fasting headache itself is thinner than the confident advice online suggests. A review in Current Pain and Headache Reports found it usually appears after at least 16 hours without food, becomes more likely the longer the fast, and is more common in people who already get headaches, and that its causes are still not fully understood. The International Classification of Headache Disorders adds that it can occur without low blood sugar and is relieved by eating.

Why sodium is the usual suspect

This is the mechanism most people never hear about. When insulin falls during a fast, the kidneys hold on to less sodium and excrete more of it — along with water, a well-documented effect known as fasting natriuresis. So a fast is quietly a mild diuretic, and by hour 14 or 16 you can be running low on sodium without having done anything wrong.

The symptoms of that — dull headache, fatigue, light-headedness on standing, poor concentration — map almost exactly onto what people describe as "fasting feels terrible". Drinking more plain water at that point may not help much, because it replaces the water but not the sodium. Whether sodium loss is what drives most fasting headaches hasn't been tested directly, but for most healthy people it's cheap and safe to rule out first.

The fix costs nothing: a quarter-teaspoon of salt in a glass of water. Many people find the headache eases within twenty to thirty minutes. If it does, you've found your cause. Do Electrolytes Break a Fast? covers what does and doesn't count here — plain electrolytes don't break a fast; the sweetened sports drinks do.

Caffeine withdrawal, hiding in plain sight

If you normally drink coffee at 8am and your new fasting routine has pushed it to 11am, you may well have a caffeine withdrawal headache rather than a fasting headache. Headache is the best-documented symptom of caffeine withdrawal, reported by about half of people in experimental studies, even at habits as low as 100mg a day, and symptoms typically begin 12 to 24 hours after the last dose. It's easy to misattribute because the fast is the new variable.

Black coffee doesn't break a fast, so there's no reason to move it — see Does Coffee Break a Fast?. Keep your usual timing and dose while you're adapting to a new schedule. Change one thing at a time.

What to do right now

If you have a headache mid-fast, work through this in order:

  1. Salt water. Quarter-teaspoon in a large glass. Wait twenty minutes.
  2. Plain water, if you've genuinely been drinking little. Not litres — a glass.
  3. Caffeine, at your normal dose, if you've missed it.
  4. Magnesium and potassium, if the first two didn't help and this is a recurring problem.
  5. Eat, if none of that works or if you feel shaky, sweaty or confused. Ending a fast early is not a failure; it's a reasonable response to information.

Preventing them

Salt before you need it. Add electrolytes at the start of your fasting window rather than waiting for symptoms. Longer fasts need more — a 20-hour fast puts you in a different place than 16.

Don't change everything at once. New window and less caffeine and less salt and a new diet is four variables. When something hurts you won't know which one did it.

Ease into longer windows. Going from no fasting to 20 hours produces most of the horror stories. 16:8 vs 18:6 covers the progression.

Sleep. Poor sleep lowers the threshold for every kind of headache, and early fasting often disrupts sleep slightly.

When it isn't the fasting

Many fasting headaches settle within the first week or two as your body adapts. See a doctor if a headache is severe, unlike your usual pattern, comes with visual changes, weakness, confusion or a stiff neck, or persists after you've eaten. Fasting can also trigger migraines in people who get them, and if that's you, migraine prevention should come first — a fasting schedule is not worth losing days to.

Persistent headaches on a fast you've been doing for a month are also worth investigating properly rather than salting through. Adaptation should have happened by then.


Sources


When to get medical advice

This article is general information, not medical advice. Speak to a qualified healthcare professional if headaches are severe, unusual for you, accompanied by visual changes, weakness, confusion or a stiff neck, or if they persist after eating. Intermittent fasting is not suitable for everyone — particularly if you are pregnant or nursing, managing diabetes or blood pressure, taking medication affected by sodium or fluid balance, or have a history of migraine or disordered eating.


Questions people actually ask

How long do fasting headaches last?

Often a week or two as you adapt, and sometimes much less once sodium is corrected. If sodium was the cause, individual headaches often ease within thirty minutes of salt and water.

Does salt break a fast?

No. Sodium has no calories and doesn't trigger an insulin response. Plain electrolytes are fine; sweetened electrolyte drinks are not.

Can I take painkillers while fasting?

Paracetamol is generally fine. NSAIDs like ibuprofen are harder on an empty stomach — check with a pharmacist or doctor, especially if you take them often.

Why do I get a headache on day one but not later?

Adaptation. Sodium handling adjusts and caffeine timing settles. The first few fasts are the worst ones, which is why judging a protocol by week one is misleading.

Is a fasting headache a sign I should stop?

Not on its own — it's usually a sign to add sodium. Stop if it comes with shakiness, sweating, confusion or visual changes, or if it doesn't resolve after eating.

Keep reading