Electrolytes and headaches while fasting
Why fasting headaches and fatigue happen, the role of sodium, potassium and magnesium, and what you can take without breaking your fast. Practical and sourced.
A headache or a wave of fatigue partway through a fast is common, and usually not mysterious. As insulin falls, your kidneys shed water and sodium — and low sodium, dehydration, and caffeine withdrawal are the usual culprits. The good news: the fix is cheap and doesn’t break your fast.
Why fasting can give you a headache
When you stop eating, insulin drops. Lower insulin tells the kidneys to release sodium and water — a normal part of the fasted state. Lose enough of both and you get the classic combo: headache, light-headedness, low energy, sometimes a “keto flu” feeling on longer fasts. Caffeine withdrawal — if your fast also delays your coffee — stacks on top.
The three that matter
- Sodium — the big one. The most common fasting mistake is too little salt, not too much. A pinch of salt in water, or a cup of broth, often clears a fasting headache fast.
- Potassium — works with sodium for fluid balance and muscle function.
- Magnesium — helps with cramps, sleep, and headaches; many people run low even when eating normally.
What you can take without breaking your fast
Plain electrolytes with no calories and no sugar don’t break a fast: salt, a sugar-free electrolyte mix, or a magnesium supplement. Where it gets murky is products with added sugar or “for energy” carbs — those break it (see what breaks a fast). Bone broth has a few calories and isn’t strictly a clean fast, but for most goals it’s a reasonable trade for getting through a hard afternoon.
A simple routine
- Drink to thirst — plain or sparkling water.
- Add a pinch of salt to a glass or two, especially on fasts past ~16–18h or if you train.
- Keep your usual coffee timing if caffeine withdrawal is your trigger (black, no sugar).
- On longer fasts, electrolytes matter more, not less.
When a headache isn’t just electrolytes
Persistent, severe, or unusual headaches — or feeling faint, confused, or unwell — are a signal to stop the fast and, if it doesn’t pass, see a doctor.
This article is informational and not medical advice. If you are diabetic, on blood-sugar medication, pregnant, or have a history of disordered eating, talk to a doctor before fasting.