The formula
Wake-up mode: bedtime = wake time − time to fall asleep − (cycles × cycle length)
Bedtime mode: wake time = bedtime + time to fall asleep + (cycles × cycle length)
Cycle length ≈ 90 minutes (range 80–110)
5 cycles = 7 h 30 min · 6 cycles = 9 h of sleep
Worked example
- You need to wake at 6:30 am and usually take 15 minutes to fall asleep.
- Five 90-minute cycles = 450 minutes = 7 h 30 min of sleep.
- Bedtime = 6:30 am − 7 h 30 min − 15 min = 10:45 pm.
- Six cycles (9 hours) would mean going to bed at 9:15 pm.
- Four cycles (6 hours) would mean 12:15 am, which is shorter than adults need regularly.
How sleep cycles work
Sleep moves through repeating cycles of light sleep (stages N1 and N2), deep slow-wave sleep (N3) and REM sleep, where most vivid dreaming happens. A full cycle lasts about 90 minutes on average, though it ranges from roughly 80 to 110 minutes and changes through the night. Early cycles contain more deep sleep, while later cycles contain more REM. Being woken from deep sleep causes sleep inertia: the heavy, groggy feeling that can last 15–30 minutes or more. Waking at the end of a cycle, during light sleep, usually feels easier. The calculator times your alarm or bedtime to fall between cycles.
How much sleep do you need?
Health organisations such as the American Academy of Sleep Medicine and the US National Sleep Foundation recommend 7–9 hours a night for adults aged 18–64, and 7–8 hours for people over 65. Teenagers need 8–10 hours and school-age children 9–12. Five cycles (7.5 hours) or six cycles (9 hours) meet the adult range, so they're highlighted as the recommended options. Regularly getting less than seven hours is linked with poorer concentration, mood, immunity and metabolic health. The timing of cycles matters less than getting enough total sleep.
Time to fall asleep
Most healthy adults fall asleep within 10–20 minutes, so the calculator defaults to 15. If you usually fall asleep almost instantly, you may be sleep-deprived. If it often takes more than 30 minutes, set the slider higher and consider the sleep habits below. Waking during the night isn't included, so if you're often awake for a while, allow extra time.
Habits that improve sleep
- Keep a regular wake time every day, including weekends. It anchors your body clock more strongly than a fixed bedtime.
- Get daylight in the morning and keep evenings dim.
- Avoid caffeine for about 8 hours before bed, and limit alcohol, which breaks up sleep later in the night.
- Keep the bedroom cool (around 16–19 °C / 60–67 °F), dark and quiet.
- If you can't sleep after about 20 minutes, get up and do something calm until you feel sleepy.
Chronotypes and body clocks
Some people are naturally early risers and others night owls. These chronotypes are partly genetic, and teenagers' body clocks shift later during puberty, which is why many struggle with early school starts. You can nudge your clock earlier by getting bright light soon after waking, dimming screens and lights in the evening and keeping meal and wake times consistent. Shifting by more than about 15–30 minutes a day is hard, so move your bedtime gradually when changing routines, such as before a new job or after travel across time zones. Jet lag usually takes about a day per time zone crossed to fade.
Naps and shift work
A short nap of 10–20 minutes boosts alertness without reaching deep sleep. A 90-minute nap covers a full cycle and avoids waking from deep sleep. Naps of 30–60 minutes often end in deep sleep and leave you groggy. For shift work, the same cycle maths applies: enter your planned wake time to find when to sleep after a shift. Persistent difficulty sleeping, loud snoring or gasping at night, or heavy daytime sleepiness despite enough time in bed are worth discussing with a doctor, as they can signal insomnia or sleep apnoea. Pair good sleep with enough fluid during the day using our water intake calculator.