Intermittent Fasting
Why Does Fasting Give Me a Headache?
Fasting headaches are usually sodium, dehydration or caffeine withdrawal — not hunger. Here's how to tell which one you have and fix it without breaking your fast.

Photo by engin akyurt on Unsplash
The fasting headache is the single most common reason people quit in the first two weeks. It's also, in most cases, the most fixable — because it usually isn't caused by the absence of food at all.
The three real causes
Almost every fasting headache is one of these, and they need different fixes.
| Cause | Feels like | Timing | Fix |
|---|---|---|---|
| Low sodium | Dull, all-over, with fatigue | Hour 14+ | Salt in water |
| Dehydration | Tight, worse standing up | Any time | More water |
| Caffeine withdrawal | Throbbing, temples, irritable | Late morning | Keep caffeine steady |
| Low blood sugar | Shaky, sweaty, urgent | Rare in healthy adults | Eat |
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.
Why sodium is the usual suspect
This is the mechanism most people never hear about. When insulin falls during a fast, the kidneys stop retaining sodium and start excreting it — along with water. So a fast is quietly a mild diuretic, and by hour 14 or 16 you can be measurably down 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 makes it worse, not better, because it dilutes what sodium you have left.
The fix costs nothing: a quarter-teaspoon of salt in a glass of water. For most people 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 have a caffeine withdrawal headache, not a fasting headache. 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:
- Salt water. Quarter-teaspoon in a large glass. Wait twenty minutes.
- Plain water, if you've genuinely been drinking little. Not litres — a glass.
- Caffeine, at your normal dose, if you've missed it.
- Magnesium and potassium, if the first two didn't help and this is a recurring problem.
- 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
Most fasting headaches settle within one to two weeks 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.
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?
Usually one to two weeks as you adapt, and often much less once sodium is corrected. Individual headaches typically 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.


