Sleep calculator

Enter the time you need to get up, or the time you go to bed. The calculator allows for the time it takes you to fall asleep, works with cycles of 90 to 100 minutes instead of a fixed 90, and shows whether each option leaves you 7 to 9 hours of sleep.

The calculator

What is fixed?
min

From lights out until sleep. Up to 30 minutes counts as good sleep quality in adults.

Length of one cycle
min

90 to 100 minutes are the averages from the two largest analyses. Single cycles spread wider.

To get up at 07:00, the best fit is lights out between 22:25 and 23:15: 5 cycles and 7 h 30 min to 8 h 20 min of sleep.

Window, sleep and fit for each number of cycles
CyclesLights outSleepAgainst 7 to 9 hoursWith a fixed 90 minutes
6 cycles20:45–21:459 h to 10 hpartly over 9 hours21:45
5 cycles22:25–23:157 h 30 min to 8 h 20 minwithin range23:15
4 cycles00:05–00:456 h to 6 h 40 minunder 7 hours00:45
3 cycles01:45–02:154 h 30 min to 5 hunder 7 hours02:15

A sleep calculator works backwards from your alarm: it takes off the time you need to fall asleep, then whole sleep cycles, and tells you when the lights should go out. Most assume every cycle lasts exactly 90 minutes and give one time to the minute. This one works with a range, because no sleep laboratory has found cycles of a fixed length, so you get windows, each with the sleep it leaves you.

How the sleep calculator works

The calculator allows for your time to fall asleep and three to six cycles, once at the shortest and once at the longest cycle length you set. The default is 90 to 100 minutes, the averages from the two largest analyses: Christian Cajochen's team in Basel found a mean of 99.5 minutes across 6064 cycles from 369 healthy adults in 2024 (Cajochen et al., 2024), and Yevgenia Rosenblum's team found 90 minutes across 961 cycles from 205 adults in 2025 (Rosenblum et al., 2025). Each option is set against the 7 to 9 hours of sleep the US National Sleep Foundation recommends for adults aged 18 to 64, or 7 to 8 hours from 65 (Hirshkowitz et al., 2015). The thin line in each bar marks what a fixed 90-minute calculator would say.

Why you get a window, not a time

Rosenblum's cycles had a standard deviation of 25 minutes (Rosenblum et al., 2025), and in Basel the first cycle of the night was the shortest, with a median of 76 minutes, while the second and third ran to 102 (Cajochen et al., 2024). Cycle length varied by 26.9 per cent within the same person and by only 12.7 per cent between people. Your own nights differ from each other, so every extra cycle makes the window wider, and over five cycles 90 and 100 minutes drift 50 minutes apart. Our guide to sleep cycles explains what happens inside each one.

What no calculator knows

The time to fall asleep is set to 15 minutes. A National Sleep Foundation panel led by Maurice Ohayon counts up to 15 minutes, and also 16 to 30, as a sign of good sleep quality (Ohayon et al., 2017), so enter your own. It cannot see the times you wake in the night, and the recommendation counts hours asleep, not hours in bed (Hirshkowitz et al., 2015). Nor can it promise that waking at the end of a cycle feels easier. When Dorothy Bruck and Danielle Pisani woke twelve adults with an alarm in the night in 1999, decisions after deep sleep were worse than after REM sleep only for the first nine minutes (Bruck & Pisani, 1999). A review by Cassie Hilditch and Andrew McHill calls the evidence on deep sleep mixed and finds grogginess usually gone within 30 minutes (Hilditch & McHill, 2019). No study we found has tested a cycle calculator.

A wake-up time that holds on all seven days does more, as our overview of the sleep schedule explains; for night owls there is how to become a morning person, and how much sleep do I need helps you find your own number. In the nine:thirty app this is the sleep window in the evening protocol: you set one wake-up time, 9:30 mode ends at that time, and the stats show from Apple Health how regular your bedtime has been. If you wake up tired for weeks despite seven hours, no tool will calculate that away. If this lasts longer than four weeks, it belongs with a doctor, not in an article.

Frequently asked questions

What time should I go to bed if I have to get up at 7?

With 15 minutes to fall asleep and cycles of 90 to 100 minutes, between 22:25 and 23:15. That gives you five cycles and 7 hours 30 minutes to 8 hours 20 minutes of sleep, inside the recommended 7 to 9 hours (Hirshkowitz et al., 2015). A fixed 90-minute calculator gives you only 23:15, the late edge of that window.

How long should it take to fall asleep?

There is no single normal figure. A National Sleep Foundation panel counts up to 15 minutes, and also 16 to 30, as a sign of good sleep quality, rates 31 to 45 minutes as uncertain, and reads 46 minutes or more as a sign of poor sleep quality in adults under 65 (Ohayon et al., 2017). Put your own figure into the calculator.

Is it bad to be woken from deep sleep?

The first minutes are harder. In Dorothy Bruck and Danielle Pisani's experiment, decisions after deep sleep were worse than after REM sleep for the first nine minutes and no longer after that (Bruck & Pisani, 1999). A review calls the overall evidence mixed and finds grogginess usually gone within 30 minutes (Hilditch & McHill, 2019). Give the morning half an hour before you judge the night.

Sources

  1. Bruck, D., & Pisani, D. L. (1999). The effects of sleep inertia on decision-making performance. Journal of Sleep Research, 8(2), 95–103. https://doi.org/10.1046/j.1365-2869.1999.00150.x
  2. Cajochen, C., Reichert, C. F., Münch, M., Gabel, V., Stefani, O., Chellappa, S. L., & Schmidt, C. (2024). Ultradian sleep cycles: Frequency, duration, and associations with individual and environmental factors – A retrospective study. Sleep Health, 10(1), S52–S62. https://doi.org/10.1016/j.sleh.2023.09.002
  3. Hilditch, C. J., & McHill, A. W. (2019). Sleep inertia: Current insights. Nature and Science of Sleep, 11, 155–165. https://doi.org/10.2147/NSS.S188911
  4. Hirshkowitz, M., Whiton, K., Albert, S. M., Alessi, C., Bruni, O., DonCarlos, L., Hazen, N., Herman, J., Katz, E. S., Kheirandish-Gozal, L., Neubauer, D. N., O’Donnell, A. E., Ohayon, M., Peever, J., Rawding, R., Sachdeva, R. C., Setters, B., Vitiello, M. V., Ware, J. C., & Adams Hillard, P. J. (2015). National Sleep Foundation’s sleep time duration recommendations: Methodology and results summary. Sleep Health, 1(1), 40–43. https://doi.org/10.1016/j.sleh.2014.12.010
  5. Ohayon, M., Wickwire, E. M., Hirshkowitz, M., Albert, S. M., Avidan, A., Daly, F. J., Dauvilliers, Y., Ferri, R., Fung, C., Gozal, D., Hazen, N., Krystal, A., Lichstein, K., Mallampalli, M., Plazzi, G., Rawding, R., Scheer, F. A., Somers, V., & Vitiello, M. V. (2017). National Sleep Foundation’s sleep quality recommendations: First report. Sleep Health, 3(1), 6–19. https://doi.org/10.1016/j.sleh.2016.11.006
  6. Rosenblum, Y., Jafarzadeh Esfahani, M., Adelhöfer, N., Zerr, P., Furrer, M., Huber, R., Roest, F. F., Steiger, A., Zeising, M., Horváth, C. G., Schneider, B., Bódizs, R., & Dresler, M. (2025). Fractal cycles of sleep, a new aperiodic activity-based definition of sleep cycles. eLife, 13, Article RP96784. https://doi.org/10.7554/eLife.96784
The app

One wake-up time, seven days a week.

· Download on the App Store