It can, but the direction is not the same for everyone. Some people sleep more deeply once their eating settles into a steady daily rhythm; others lie awake hungry, wake more often, or feel wired at night, especially in the first week or two. Research on fasting and sleep is genuinely mixed, and a lot of the difference comes down to when you eat, how well-fed you are at bedtime, and how far into the change you are. If your sleep got worse after you started fasting, that does not automatically mean fasting is wrong for you. It usually means something in your routine is worth adjusting first.
Why fasting can change the way you sleep
A few things shift when you compress your eating into a window, and each one can nudge sleep in either direction.
- When your eating window sits. Fasting and sleep are both tied to your circadian rhythm, your body's internal clock. Lining meals up with daylight tends to support sleep, while eating patterns that push most food late at night can cut into deep and REM sleep. An early, front-loaded window can leave you hungry at bedtime; a late window can leave you digesting when you are trying to wind down.
- Hunger and blood-sugar dips. Going to bed noticeably hungry, or riding a dip in blood sugar during a long overnight fast, can make it harder to fall asleep or keep you surfacing during the night.
- Caffeine standing in for food. It is easy to lean on coffee to get through fasting hours. Caffeine late in the day is one of the most reliable ways to wreck a night's sleep.
- The adjustment period. Any new eating rhythm is a stressor at first. Lighter sleep, more night waking, or daytime tiredness in the early weeks often settle as your body adapts.
None of these are guaranteed to happen to you. They are the usual suspects when someone says fasting changed their sleep.
Will fasting help your sleep or hurt it?
Honestly, it depends on the person, and the science reflects that. A review of human trials found that fasting's effect on sleep is unclear: measured with a validated questionnaire, sleep quality and duration usually did not change much, though some people reported feeling more rested night to night, and one study using a wearable saw sleep efficiency get slightly worse.[1] A big reason the results scatter is that people fasted at different times of day and lost different amounts of weight, so the same protocol did not land the same way for everyone.[2]
The practical takeaway is not "fasting is good for sleep" or "bad for sleep." It is: pay attention to your own response over the first few weeks. If you are sleeping the same or better and feeling fine in the daytime, there is little to fix. If your sleep clearly got worse and stayed worse, treat that as a signal to change something, not as a cost you have to accept.
How to protect your sleep while you fast
Most fasting-related sleep trouble responds to timing and habit changes. Try these before concluding fasting itself is the problem.
- Don't end your window right at bedtime. A large meal close to sleep can raise your body temperature and leave you digesting when you want to be winding down. Aim to finish eating a couple of hours before bed.
- But don't close the window so early that you go to bed hungry. If an early cutoff leaves you awake and rumbling at night, shift the window a little later or move more of your food toward the back of it.
- Cut caffeine after early afternoon. The CDC suggests avoiding caffeine in the afternoon and evening; if you are sensitive, give yourself even more of a buffer.[3]
- Keep a consistent schedule. Going to bed and waking at about the same time every day, including days off, is one of the most effective sleep habits there is.[3] A steady eating window and a steady sleep window reinforce each other.
- Stay hydrated during fasting hours. Thirst can masquerade as hunger and disrupt sleep; water, not extra coffee, is the safer fill.
- Give it two to four weeks before judging. If the only change is early-adjustment restlessness, it often fades once your routine stabilizes.
If you track your fasting with an app like GoFasting, one useful move is to review your logged eating windows against your own notes on how you slept. Seeing that the nights you ate earlier lined up with better sleep, for example, makes it much easier to decide what to adjust. The app logs the window; you are the one who notices how you feel.
When to stop adjusting on your own and talk to a clinician
Tweaking your window and caffeine is the right first step. There is a point, though, where sleep problems are not a routine to tinker with but a reason to get checked.
Talk to a doctor or other clinician if:
- Insomnia or poor sleep persists for weeks despite reasonable changes to your window, caffeine, and schedule.
- Your daytime functioning is affected, for example you are struggling to concentrate, stay awake, or drive safely.
- Sleep problems come alongside other symptoms, such as dizziness, a racing heart, low mood, or unusual fatigue.
- You have a condition, or take medication, where losing sleep or eating less is genuinely risky, including diabetes, a history of disordered eating, or pregnancy. In these situations it is worth getting medical input before you fast at all.
Adults generally need seven or more hours of sleep, and ongoing trouble sleeping is a normal reason to see a healthcare provider, who can look for an underlying sleep disorder.[3] Persistent poor sleep is not something to push through indefinitely, whether or not fasting is involved.
Common questions about fasting and sleep
Why can't I sleep since I started intermittent fasting? The most common culprits are going to bed hungry, eating too close to bedtime, leaning on caffeine, and simply not having adjusted yet. Work through those before assuming fasting does not suit you.
Does fasting make you tired during the day?
It can, especially early on when you are eating less and your body is adapting. If daytime tiredness is severe, lasting, or paired with other symptoms, that is worth raising with a clinician rather than pushing through.
Is it better to eat earlier or later in the day for sleep? For most people an earlier eating window sits better with the body's clock, but if closing early leaves you hungry at night, a slightly later window can be the better trade for your sleep. Watch your own response.
Should I stop fasting if it is ruining my sleep? Not necessarily as the first move. Adjust your window timing, caffeine, and schedule first. If sleep stays poor after a few weeks, or it comes with daytime impairment or other symptoms, that is the point to pause and speak with a clinician.
References
- McStay M, Gabel K, Cienfuegos S, et al. Intermittent Fasting and Sleep: A Review of Human Trials. Nutrients. 2021 https://pmc.ncbi.nlm.nih.gov/articles/PMC8539054/
- Sleep Foundation. Why Intermittent Fasting Can Lead to Better Sleep https://www.sleepfoundation.org/physical-health/intermittent-fasting-sleep
- Centers for Disease Control and Prevention. About Sleep https://www.cdc.gov/sleep/about/index.html --- This article is for general information and is not medical advice. If you have a health condition, take medication, are pregnant or breastfeeding, or have a history of disordered eating, talk to a qualified clinician before starting or changing an intermittent fasting routine, and about any persistent sleep problems.