Vida

Headaches while fasting

2 min read · Updated October 13, 2026

If you got a headache in your first week of fasting, you’re in ordinary company, and it’s very likely to settle.

How common are they?

The landmark study followed hospital staff through a twenty-five-hour fast. Around four in ten of the people fasting got a headache, against a much smaller share of those who weren’t. Risk went up the longer the fast ran, and people who already got frequent headaches were far more likely to get one.1

But across fifteen randomized trials of intermittent fasting, headaches came up at about the same rate as in the control groups. Which suggests that once you’re past the first stretch, it stops being a feature.5

What does one feel like?

A review of the literature found fasting headache usually looks like a tension headache. Both sides, across the front, steady pressure rather than a throb, mild to moderate.2

What causes them?

Here it gets less tidy. The obvious answers are caffeine withdrawal and blood sugar, and both are involved.

But in that first study, caffeine withdrawal didn’t explain the pattern. And the review above says plainly that much about the mechanism is still unknown.21

Caffeine is clearly part of it for some people. In a study of more than seven hundred coffee drinkers starting Ramadan, over half got a headache on the first day, and the heavier their usual habit, the higher the odds.3

How do you head one off?

Ending a fast because your head hurts is a reasonable decision made by a reasonable person.

When should you stop rather than push through?

And if headaches keep arriving every time you fast, past the first few weeks, raise it with your doctor rather than treating it as the cost of doing business.

What this is based on

  1. 1Mosek A, Korczyn AD (1995). Yom Kippur headache.Neurology · PMID 7501139 · doi:10.1212/wnl.45.11.1953
  2. 2Torelli P, Evangelista A, et al (2009). Fasting Headache: A Review of the Literature and New Hypotheses.Headache · PMID 19472450 · doi:10.1111/j.1526-4610.2009.01390.x
  3. 3Magdy R, El Desouky ED, et al (2023). Prevalence, characteristics, and factors associated with caffeine-withdrawal headache during the first day of Ramadan.Headache · PMID 36942412 · doi:10.1111/head.14483
  4. 4Dews PB, Curtis GL, et al (1999). The Frequency of Caffeine Withdrawal in a Population-Based Survey and in a Controlled, Blinded Pilot Experiment.J Clin Pharmacol · PMID 10586387 · doi:10.1177/00912709922012024
  5. 5Zhong F, Zhu T, Jin X, et al (2024). Adverse events profile associated with intermittent fasting in adults with overweight or obesity: a systematic review and meta-analysis of randomized controlled trials.Nutr J · PMID 38987755 · doi:10.1186/s12937-024-00975-9

This is general education, not medical advice. Talk with your own provider about what’s right for you.

Read next

Vida shapes your fast around your cycle.

Free to use. No counting, no numbers about your body.

Get Vida for iPhone