Everyone knows they should sleep more. Fewer people know that when you wake up matters as much as how long you sleep. Sleep is not one long, even stretch — it runs in cycles of roughly 90 minutes, moving from light sleep to deep sleep to dreaming, and back again. Wake up at the end of a cycle and you feel clear-headed. Wake up in the middle of deep sleep and you feel awful, even after eight hours.
This guide explains the cycle, shows you how to pick a bedtime for any wake-up time, and covers the basics that make the difference between sleep that restores you and sleep that just passes the time.
1What is a sleep calculator?
A sleep calculator works backwards from the time you need to wake up. Give it your alarm time and it shows the best bedtimes — each one a whole number of sleep cycles earlier, so you wake at the end of a cycle instead of in the middle of one. It can also work forwards: tell it when you are going to bed and it shows the best times to set the alarm.
Most adults need 7 to 9 hours of sleep a night — that is the range recommended by sleep researchers and health bodies. That is five to six 90-minute cycles. Teenagers need a little more (8–10 hours), and older adults often need a little less, but the cycle principle is the same at every age.
The calculator also accounts for the time it takes to fall asleep — usually around 15 minutes for most people. A bedtime of 10:45 with a 15-minute drift means sleep itself starts around 11:00, and the cycles count from there.
2How to use the calculator
Two ways in, same answer out:
- Wake-up mode: enter the time your alarm goes off. You get four bedtimes — for 4, 5, 6 and 7 cycles — so you can pick the one that fits your evening.
- Bedtime mode: enter when you plan to go to bed. You get the best alarm times for 4, 5 and 6 cycles.
- Pick the longest option you can manage. Five cycles (7.5 hours) is the sweet spot for most adults; six (9 hours) is better if you are catching up or training hard.
Try it tonight: if you must wake at 6:30, the five-cycle bedtime is 10:45 (allowing 15 minutes to fall asleep). Go to bed at 10:45 and you should wake at the end of a cycle, not in the middle of deep sleep.
3The method: 90-minute cycles
The maths is simple once you know the cycle length:
Each 90-minute cycle runs through light sleep, deep sleep, and REM (dream) sleep. Deep sleep dominates the early cycles, dreaming dominates the later ones. Waking from light sleep or REM feels fine; waking from deep sleep brings sleep inertia — that groggy, heavy feeling that can last 30 minutes or more.
6 cycles (9 hours): bed at 9:45
5 cycles (7.5 hours): bed at 11:15
4 cycles (6 hours): bed at 12:45
Three cycles (4.5 hours) is the minimum that still feels human — two cycles will get you through a day, but not well.
Notice that 8 hours is not on the list as a magic number — 7.5 and 9 hours are the cycle-aligned options. Eight hours of sleep can still mean waking mid-cycle, which is exactly why some eight-hour nights feel worse than a 7.5-hour one.
4Common mistakes
- Counting time in bed as sleep. If you go to bed at 11:00 and scroll until 11:45, your cycles start at 11:45, not 11:00. The calculator's 15-minute allowance assumes you actually try to sleep.
- Chasing exactly 8 hours. Eight hours is a guideline, not a law. Seven and a half hours at the end of a cycle beats eight hours that ends mid-cycle.
- Sleeping in on weekends to "catch up". Two long lie-ins shift your body clock and make Monday worse. A regular wake time, even at weekends, keeps the cycle steady — catch up with an earlier bedtime, not a later alarm.
- Caffeine late in the day. Caffeine has a half-life of about 5–6 hours, so a 4 pm coffee is still half there at 10 pm. It does not just delay sleep — it lightens it, cutting deep sleep even when you do fall asleep.
- A bright room. Light is the strongest signal to your body clock. A dark room, and no bright screens in the last hour, makes falling asleep at the planned time far easier.
5Tips for better sleep
Keep the same wake time every day, including weekends — your body clock loves routine more than it loves lie-ins. Get daylight in the morning, ideally within an hour of waking; it sets the clock for the whole day. Keep the bedroom cool, dark and quiet, and use it only for sleep, so your brain learns the association.
Wind down for the last hour: dim lights, no work emails, and something boring rather than something gripping. If you cannot fall asleep after about 20 minutes, get up, read something dull in dim light, and try again — lying awake in bed teaches your brain that bed is a place for worrying. And if poor sleep lasts for weeks, talk to a doctor: snoring, apnoea and insomnia are all treatable, and no calculator fixes those.
One more factor that surprises people: the room temperature. Your body needs to cool down to fall asleep, and a bedroom that is too warm is one of the most common reasons people lie awake. Most sleep researchers suggest a room around 18–19°C (65–66°F) — cooler than most people keep their living rooms, and cooler than feels natural at first. A cool room, light bedding, and warm feet (socks, if you like) is the combination that works best for most people, because warm hands and feet help the body shed heat from its core.
It is also worth knowing what to do when you wake in the night. Almost everyone wakes briefly between cycles — it is normal, and usually you fall back asleep without remembering. The mistake is checking the clock and doing the maths ("only four hours left"), which wakes your brain up properly. If you wake and cannot get back to sleep within about twenty minutes, get up, do something dull in dim light, and return when you feel sleepy. Lying awake in bed teaches your brain that bed is a place for worrying, and that lesson is hard to unlearn.
Try the free Sleep Calculator
Use the sleep calculator right now — free, no signup, and your numbers never leave your browser.
Try the free Sleep Calculator100% free · No account · Private by design
6Frequently asked questions
How many hours of sleep do adults need?
Most adults need 7 to 9 hours a night. That is five to six 90-minute sleep cycles. Less than 7 hours regularly is linked to worse mood, memory and health.
Why do I wake up groggy after 8 hours?
You probably woke in the middle of a sleep cycle, during deep sleep. Waking at the end of a cycle — 7.5 or 9 hours after falling asleep — usually feels much better than 8 hours mid-cycle.
What is a sleep cycle?
A roughly 90-minute loop through light sleep, deep sleep and REM (dream) sleep. You go through four to six cycles a night, with deep sleep early and dreaming late.
Is 6 hours of sleep enough?
For most adults, no — 6 hours is four cycles, and most people need five or six. Some people genuinely need less, but they are rare; most of us just get used to being tired.
Should I sleep in on weekends?
A regular wake time works better. Sleeping in shifts your body clock and makes Monday harder. Catch up with an earlier bedtime instead.
Does the calculator account for falling asleep time?
Yes — it allows about 15 minutes to fall asleep. If you usually take longer, go to bed a little earlier than the suggested time.
Keep exploring
These tools go well with the sleep calculator:
Related guides
More step-by-step guides on this topic:
