ROOTFUL tool
Sleep calculator: what time to go to bed
Sleep comes in cycles of about 90 minutes. If your alarm wakes you in the middle of a cycle, you feel wrecked even after eight hours. The calculator gives you the bedtimes that let you wake up between cycles, not in the middle of them.
The calculator is an estimate based on the average length of a sleep cycle and does not take into account age, sleep quality or medical conditions. It does not replace medical advice. If you have ongoing sleep problems, talk to a specialist.
How sleep cycles work
Sleep is not a straight line. Over a night you go through a cycle four to six times, each lasting on average about 90 minutes: light sleep, deep sleep, then REM sleep (the stage in which you dream). At the end of each cycle there is a short window of very shallow sleep. That is when you wake up most easily.
This is where the odd feeling comes from that eight hours can leave you more tired than seven and a half. It is not just how long you sleep that matters, but where the alarm catches you. If it goes off in the middle of deep sleep, your body needs tens of minutes to come out of it. The state is called sleep inertia, and it is the reason the first two coffees don't seem to help.
Why we added the time it takes to fall asleep
Almost every sleep calculator online simply subtracts eight hours from your wake-up time. The problem is that nobody falls asleep the second they switch off the light. An adult needs 10 to 20 minutes on average; this is called sleep latency. If you consistently fall asleep in under five minutes, it usually doesn't mean you sleep well, it means you are sleep deprived.
How many hours you actually need
The recommendation for adults is between 7 and 9 hours, which means five or six complete cycles.
- 6 cycles, 9 hours. The option for days with heavy physical effort, illness or after a week of short sleep.
- 5 cycles, 7 and a half hours. The target for most adults, on most days.
- 4 cycles, 6 hours. An emergency fix for one night, not a plan for a month.
Regularity matters more than the exact time
Your internal clock doesn't look at the clock on the wall. It calibrates itself by light and by repetition. A bedtime you roughly stick to, weekends included, does more than the “perfect” time you hit once every three days. A gap of more than an hour between your weekend schedule and your Monday schedule even has a name: social jet lag.
Light remains the strongest signal. Fifteen minutes of natural light in the first hour after waking anchors your rhythm better than any supplement, while bright screens in the hour before bed push it in the opposite direction.
Where melatonin fits in
Melatonin is not a sleeping pill and it doesn't “knock you out”. It is the hormone your body produces in the evening anyway, and its role is to signal that night has come. The authorised claim in the European Union states that melatonin contributes to the reduction of time taken to fall asleep, and the beneficial effect is obtained by consuming 1 mg of melatonin close to bedtime.
Timing matters more than the dose: take it 30 to 60 minutes before the time you want to sleep. In practice, that is the time the calculator tells you to start your evening routine, not when you are already in bed with your phone in your hand.
What this calculator doesn't do
The 90-minute cycle is an average. For some people it lasts 80 minutes, for others 110, and for the same person it varies from one cycle to the next over the night: the first cycles have more deep sleep, the last ones more REM. Use the times as a guide, not as a rule.
The calculator doesn't take into account age, shift work, sleep apnoea or treatments that affect sleep. If you consistently sleep badly despite a regular schedule, that is a conversation to have with a doctor, not with a calculator.
From the ROOTFUL ritual
What time to go to bed, by wake up time
If you wake up at 7:00 and take 15 minutes to fall asleep, go to bed at 23:15 for five sleep cycles (7.5 hours) or at 21:45 for six cycles (9 hours). The table below runs the same calculation for every wake up time.
| Wake up time | 6 cycles · 9 h | 5 cycles · 7.5 h | 4 cycles · 6 h |
|---|---|---|---|
| 05:00 | 19:45 | 21:15 | 22:45 |
| 05:30 | 20:15 | 21:45 | 23:15 |
| 06:00 | 20:45 | 22:15 | 23:45 |
| 06:30 | 21:15 | 22:45 | 00:15 |
| 07:00 | 21:45 | 23:15 | 00:45 |
| 07:30 | 22:15 | 23:45 | 01:15 |
| 08:00 | 22:45 | 00:15 | 01:45 |
| 08:30 | 23:15 | 00:45 | 02:15 |
| 09:00 | 23:45 | 01:15 | 02:45 |
The middle column, five cycles, is the target for most adults. If you fall asleep faster or slower than 15 minutes, shift the time by the difference.
Frequently asked questions
How much sleep do I need a night?
The recommendation for adults is between 7 and 9 hours, which is five or six complete sleep cycles. Repeatedly sleeping under 6 hours shows up in your focus and mood, even if you do not feel it at the time.
How long is a sleep cycle?
About 90 minutes on average, but the real range is 80 to 110 minutes and varies even from one cycle to the next during the same night. That is why the times in the calculator are guides, not exact targets.
What time should I go to bed if I wake up at 6 a.m.?
For six cycles, around 8:45 p.m.; for five cycles, around 10:15 p.m. In both cases 15 minutes have been added for falling asleep. The calculator above does the maths for your wake-up time.
Is it better to sleep a full 6 hours or 7 hours and wake up mid-cycle?
In general, 7 and a half hours, which is five cycles, beats both 6 and 7 hours. Total duration remains the main factor; the moment you wake up mostly decides how hard the first 20 minutes feel.
When should I take melatonin to fall asleep faster?
30 to 60 minutes before bed. The claim authorised in the European Union says melatonin contributes to the reduction of time taken to fall asleep, an effect obtained by taking at least 1 mg before bedtime.
Why do I wake up tired even after 8 hours of sleep?
Most often because the alarm caught you in deep sleep: this is called sleep inertia and can last tens of minutes. Other causes come down to sleep quality, not duration: alcohol in the evening, late caffeine, a room that is too warm or an irregular schedule.






