Sleep calculator: bedtime and wake-up time
Pick when you need to be up, or when you are going to bed, and get times that land at the end of a sleep cycle.
Assumptions
How to use it
- Choose whether you have a wake-up time, a bedtime, or want to sleep now.
- Enter the time. The calculator adds the minutes it takes to fall asleep and counts whole sleep cycles.
- Pick one of the times. Shaded times give at least seven hours of sleep, the minimum recommended for adults.
The assumptions, in plain numbers
Sleep runs in cycles of light sleep, deep sleep and REM sleep. A cycle is usually quoted as 90 minutes, but it differs between people and through the night. In a Basel laboratory data set of 6,064 recorded cycles from 369 healthy sleepers, the median cycle lasted 96 minutes, the spread between people was large, and the first cycle of the night was consistently shorter than the later ones (Cajochen et al., Sleep Health, 2024). Waking at the end of a cycle, when sleep is lighter, tends to feel easier than being pulled out of deep sleep.
The calculator assumes 15 minutes to fall asleep and 90-minute cycles. Both are averages, not measurements of you, so change them if you know your own: if you fall asleep in five minutes, say so. Treat the times as a good starting point, then adjust by 10 to 15 minutes if you still wake up groggy.
What happens during one night
You go through non-REM and REM sleep several times a night. Stage 1 is the short changeover from waking. Stage 2 is light sleep, and you spend more of the night in it than in any other stage. Stage 3 is deep sleep, which comes in longer periods during the first half of the night. REM sleep first appears about 90 minutes after you fall asleep, and the REM periods grow longer towards morning (NINDS, Brain Basics: Understanding Sleep).
Two things follow. The end of the night holds the longest REM periods, so getting up an hour early cuts into REM more than into deep sleep. And a bedtime that is 15 minutes off moves every later cycle by 15 minutes, which is why the calculator lets you change the time it takes you to fall asleep.
Bedtimes for common alarm times
With the default assumptions, 15 minutes to fall asleep and 90-minute cycles, these bedtimes end on a cycle at the alarm. The method is plain subtraction: alarm time, minus the number of cycles times 90 minutes, minus 15. For a 7:00 alarm and five cycles that is 7:00 − 7 h 30 min − 15 min = 23:15.
| Alarm | 6 cycles (9 h) | 5 cycles (7 h 30 min) | 4 cycles (6 h) |
|---|---|---|---|
| 6:00 | 20:45 | 22:15 | 23:45 |
| 6:30 | 21:15 | 22:45 | 00:15 |
| 7:00 | 21:45 | 23:15 | 00:45 |
| 7:30 | 22:15 | 23:45 | 01:15 |
| 8:00 | 22:45 | 00:15 | 01:45 |
How much sleep is recommended
The American Academy of Sleep Medicine and the Sleep Research Society recommend that adults sleep seven hours or more a night on a regular basis. For children and teenagers, the American Academy of Sleep Medicine recommends, per 24 hours:
| Age | Recommended sleep |
|---|---|
| 4 to 12 months | 12 to 16 hours, naps included |
| 1 to 2 years | 11 to 14 hours, naps included |
| 3 to 5 years | 10 to 13 hours, naps included |
| 6 to 12 years | 9 to 12 hours |
| 13 to 18 years | 8 to 10 hours |
| Adults | 7 hours or more |
Why you can wake up groggy
The heavy, slow feeling right after waking is called sleep inertia. A review of the research found that being woken abruptly from slow-wave (deep) sleep produces more of it than waking from stage 1 or 2, with REM in between. Without major sleep loss it rarely lasts more than 30 minutes, and sleep deprivation makes it worse, because it increases deep sleep (Tassi and Muzet, Sleep Medicine Reviews, 2000). That is the real case for aiming at the end of a cycle, and also the reason a short night makes any alarm time feel bad.
When the cycle count is not the point
Four cycles end at a tidy time but give only six hours of sleep. Hitting the end of a cycle does not make up for too little sleep overall: choose the longest option your evening allows. If you are often tired despite enough hours, or snore loudly, talk to a doctor; this calculator is arithmetic, not a medical tool.
To see how much you really slept over a week, enter your nights in the sleep duration calculator. To wake at the time you picked, the online alarm clock rings in an open tab, and the sunrise and sunset calculator shows how much daylight your morning has. On iPhone, Stirwise works the bedtime out every night from your next alarm and a sleep goal, with an optional wind-down reminder.
Sources
Every figure on this page comes from these papers and pages:
- Watson et al., Recommended Amount of Sleep for a Healthy Adult (AASM and SRS consensus), J Clin Sleep Med, 2015
- Paruthi et al., Recommended Amount of Sleep for Pediatric Populations (AASM consensus), J Clin Sleep Med, 2016
- Cajochen et al., Ultradian sleep cycles: frequency, duration, and associations with individual and environmental factors, Sleep Health, 2024
- Tassi and Muzet, Sleep inertia, Sleep Medicine Reviews, 2000
- National Institute of Neurological Disorders and Stroke, Brain Basics: Understanding Sleep
Related tools
Questions people ask
What time should I go to bed to wake up at 7?
With 90-minute cycles and 15 minutes to fall asleep, bedtimes of 21:45, 23:15 or 00:45 end on a cycle at 7:00. The first gives nine hours of sleep, the second seven and a half.
What time should I go to bed if I wake up at 6?
With the default assumptions, 20:45 gives six cycles (9 hours), 22:15 five cycles (7 hours 30 minutes) and 23:45 four cycles (6 hours).
Is the 90-minute sleep cycle accurate for everyone?
No. It is a round figure. In a laboratory data set of over 6,000 cycles the median was 96 minutes, with a wide spread between people, and the first cycle of the night was shorter. Set your own length if you know it.
When does REM sleep start?
About 90 minutes after you fall asleep. REM periods then come back with each cycle and grow longer towards morning.
Why do I wake up tired after 8 hours of sleep?
Often it is sleep inertia: waking out of deep sleep leaves you groggy, usually for less than 30 minutes. Moving the alarm 10 to 15 minutes can help. If the tiredness lasts through the day, talk to a doctor.
How many sleep cycles do I need?
Five or six cycles of 90 minutes give 7.5 to 9 hours, in line with the adult recommendation of seven hours or more.
What if I go to bed right now?
Choose Go to bed now. The calculator starts from the current time and shows wake-up times after three to six cycles.
Is this medical advice?
No. It applies average figures to the times you enter. For ongoing sleep problems, see a doctor.

