Sleep tool
Sleep calculator: when to go to bed or wake up
Short answer: Count back from your wake-up time in 90-minute sleep cycles and add about 15 minutes to fall asleep. To wake at 7:00 AM, go to bed around 11:15 PM for five cycles (7.5 hours of sleep) or 9:45 PM for six cycles (9 hours). Cycle length varies, so treat the result as a plan, not a measurement.
The default is 15 minutes. Use your own average. Times follow your device's 12-hour or 24-hour setting.
Bedtime for common wake-up times
| Wake up at | Go to bed at (5 cycles, 7.5 h of sleep) | Go to bed at (6 cycles, 9 h of sleep) |
|---|---|---|
| 6:00 AM | 10:15 PM | 8:45 PM |
| 6:30 AM | 10:45 PM | 9:15 PM |
| 7:00 AM | 11:15 PM | 9:45 PM |
| 7:30 AM | 11:45 PM | 10:15 PM |
| 8:00 AM | 12:15 AM | 10:45 PM |
Set this wake time as your alarm in Somnia
Somnia is a free sleep tracker and smart alarm for Android. Before bed, it checks that your alarm can ring, and its snooze ends one minute after your wake time.

How the sleep calculator works
Sleep moves through repeating cycles of lighter sleep, deep sleep and REM sleep, and a cycle is usually described as about 90 minutes long. The calculator counts whole cycles back from the time you want to wake up, or forward from the time you go to bed, and adds the minutes you need to fall asleep.
Four, five and six cycles give 6, 7.5 and 9 hours of sleep. Adults are advised to get at least 7 hours a night on a regular basis, so four cycles falls short of that, and five or six cycles meet it. These are hours asleep, not hours in bed, which is why the time to fall asleep is added.
What this calculator can and cannot tell you
- Cycle length varies. It is about 90 minutes on average, and it varies between people and across the night: deep sleep is concentrated early, and REM sleep gets longer toward morning. 90 minutes is an average, not your number.
- It is a planning aid, not a measurement. It cannot see your sleep or know where in a cycle you are, and neither can a phone on your nightstand (what a phone can and can't measure).
- Consistent timing matters more than hitting a cycle edge. A steady bedtime and wake time are a better goal than landing exactly on a multiple of 90 minutes (sleep regularity).
- It is not medical advice. If you sleep enough and still feel unrefreshed, or you have trouble sleeping, talk to a clinician.
Sleep calculator questions
How many hours of sleep do adults need?
Most adults need at least 7 hours of sleep a night on a regular basis, according to a 2015 consensus of the American Academy of Sleep Medicine and the Sleep Research Society. That means hours asleep, not hours in bed, which is why the calculator adds time to fall asleep. Four cycles (6 hours) is below that.
How long is a sleep cycle?
A sleep cycle is usually described as about 90 minutes, but the length differs between people and from one cycle to the next in the same night. The calculator uses 90 minutes as a planning average, so your own cycles may be shorter or longer.
Is it better to wake up at the end of a sleep cycle?
It may help some people. Sleep inertia, the grogginess after waking, tends to be stronger when you are woken from deep sleep than from lighter sleep. But no calculator or phone can know where your cycles end, so a calculated time is a good guess at best. Getting enough sleep matters more.
Does it matter if I go to bed at the same time every night?
It appears to. In a 2024 study of about 60,000 adults in the UK Biobank, people with the most regular sleep had a lower risk of death over the follow-up period, and regularity predicted that risk more strongly than sleep duration did. It is an observational study, so it shows an association, not proof of cause. Aim for steady times first, and use the cycle times to choose them.
Sources
- Watson NF, Badr MS, Belenky G, et al. Recommended amount of sleep for a healthy adult: a joint consensus statement of the American Academy of Sleep Medicine and Sleep Research Society. Sleep, 2015. doi:10.5665/sleep.4716
- Carskadon MA, Dement WC. Normal human sleep: an overview. In: Principles and Practice of Sleep Medicine. Elsevier.
- Hilditch CJ, McHill AW. Sleep inertia: current insights. Nature and Science of Sleep, 2019.
- Windred DP, Burns AC, Lane JM, et al. Sleep regularity is a stronger predictor of mortality risk than sleep duration: a prospective cohort study. SLEEP, 2024.
This article is for general information and is not medical advice. If you have ongoing sleep problems, talk with a qualified clinician.