Everyday fasting

Intermittent fasting and sleep

Intermittent fasting and sleep: there is no firm proof that fasting improves sleep, but meal timing matters to your body clock. How to set up your window.

There is no firm evidence that intermittent fasting improves sleep, and for some people a badly timed fast makes sleep worse. What research does suggest is that the timing of your meals matters to your body clock. A fast built around your night, with the last meal a few hours before bed, is the setup most likely to work with your sleep.

How are meal timing and the body clock linked?

Your body runs on a roughly 24-hour rhythm, often called the body clock or circadian rhythm. It sets when you feel sleepy and alert, and it also shapes how your body handles food at different times of day. Light is the main signal that sets this clock. Meal timing appears to be another signal, and researchers have linked meal timing, the body clock and time-restricted eating1.

A review of this area concluded that eating in line with the body clock may support metabolic health, with the caution that human trials are small2. That is about metabolism, such as blood sugar and blood fats. It is not direct proof of better sleep. Good studies on fasting and sleep quality itself are still missing from the sources we rely on.

The practical idea is still reasonable: eat during your active day, and fast through the evening and night.

Does eating late hurt your sleep?

For many people, yes, for plain reasons. A large meal close to bedtime can cause heartburn or a heavy, full feeling when you lie down. Alcohol and sugary snacks late in the evening can also break up sleep.

A fasting schedule can help here by giving you a clear end to the day’s eating. Finishing dinner two to three hours before bed is a common target. Read more about earlier windows in the guide to early time-restricted eating.

Can fasting make sleep worse?

It can, in a few ways:

  • Going to bed hungry. If your window closes at 3pm and you sleep at 11pm, hunger can keep you awake. Some people adjust in a week or two. Others never do.
  • More caffeine. Black coffee and tea are allowed during a fast, so it is easy to drink more of them. Caffeine in the afternoon and evening can delay sleep.
  • Too little caffeine, too suddenly. Cutting coffee when you start fasting brings its own trouble. In one study, caffeine withdrawal headaches were common on the first day of fasting among regular coffee drinkers3. A headache at bedtime doesn’t help anyone sleep.
  • Eating too little overall. Some people sleep badly when they eat far too little.

If your sleep gets worse after you start fasting and stays worse for more than a couple of weeks, change the schedule. Sleep is worth more to your health than an extra two hours of fasting.

How to set up a fast that fits your sleep

Sleep counts as fasting time. That makes the night the easiest place to put most of your fast.

If you sleep 12:12 example 16:8 example
11pm to 7am Eat 8am to 8pm Eat 11am to 7pm
Midnight to 8am Eat 9am to 9pm Eat noon to 8pm
10pm to 6am Eat 7am to 7pm Eat 10am to 6pm

These are examples. The fasting calculator works out your own times from your last meal and schedule.

A few habits help:

  • Keep your eating window at similar hours each day, including weekends where you can. A regular routine may be easier on your body clock than one that jumps around.
  • Make the last meal a proper one, with protein and vegetables, so you are not hungry at bedtime.
  • Set a caffeine cut-off, such as early afternoon.
  • Drink water through the day, and ease off in the last hour before bed so you are not up at night.

If hunger at night is your main problem, the guide on how to manage hunger while fasting has more ideas.

Does poor sleep make fasting harder?

Most people find it does. After a short night you tend to be hungrier and to want quick, sweet food, and willpower is lower. If you are sleeping badly for other reasons, such as a new baby, stress or illness, it is fine to shorten your fast or pause it.

A gentle schedule like 12:12 is easier to keep during a rough patch.

What about shift work?

Night and rotating shifts put your meals and your body clock out of step, and there is no simple fasting answer for that. If you work shifts, a steady routine on each run of shifts matters more than a long fast. If you also have a health condition or take medicine at set times, ask your doctor before trying a fasting schedule.

When to get help

Fasting doesn’t treat sleep problems. See a doctor if you often can’t fall asleep or stay asleep, if you snore loudly and wake unrefreshed, or if you are very sleepy during the day. Those need proper attention whatever your eating schedule.

Not medical advice. If you take medication, are pregnant or under 18, or have had an eating disorder, check with a doctor first. Who shouldn’t fast

Questions people ask

Why do I wake up at night when fasting?

Some people sleep more lightly in the first days of a new schedule, often because they go to bed hungry or drink more coffee than usual. Try a shorter fast or a later last meal. See a doctor if poor sleep goes on.

Should I stop eating 3 hours before bed?

A gap of two to three hours is common advice, mostly for comfort and to lower the chance of heartburn. It is a helpful habit, not a strict rule.

Sources

  1. Longo VD, Panda S (2016). Fasting, Circadian Rhythms, and Time-Restricted Feeding in Healthy Lifespan. Cell Metab.
  2. Manoogian ENC, Panda S (2017). Circadian rhythms, time-restricted feeding, and healthy aging. Ageing Res Rev.
  3. Magdy R, et al. (2023). Prevalence, characteristics, and factors associated with caffeine-withdrawal headache during the first day of Ramadan fasting. Headache.

Written with AI help and checked against the sources above. Every cited study is linked so you can read it yourself. This page is general information, not medical advice. How we write and check articles.