Sleep Calculator
Find the optimal bedtime or wake time based on 90-minute sleep cycles. Get 3-4 time options with cycle counts and total sleep hours.
About This Tool
Sleep is not a uniform state. Throughout the night, your brain cycles through distinct stages in roughly 90-minute intervals. Each complete sleep cycle includes light sleep (NREM stages 1-2), deep sleep (NREM stage 3), and REM sleep. Waking up at the end of a complete cycle, rather than in the middle of one, is the key to feeling refreshed -- even if the total hours of sleep are slightly fewer. This is why someone who sleeps 7.5 hours can feel better than someone who sleeps 8 hours: the first person completed five full cycles while the second woke up mid-cycle.
This sleep calculator works in two modes. In the first mode, you enter what time you need to wake up, and the calculator tells you when you should go to bed. In the second mode, you enter when you plan to go to bed, and it tells you the best times to set your alarm. Both modes account for the average 15 minutes it takes most adults to fall asleep, which is added to the beginning of your sleep period.
The calculator shows you multiple options for different numbers of sleep cycles, typically between 4 and 6 complete cycles. Five cycles (7.5 hours of sleep plus 15 minutes to fall asleep) is generally considered the sweet spot for most adults. The National Sleep Foundation recommends 7 to 9 hours of sleep for adults aged 18-64, and 7 to 8 hours for those 65 and older. Four cycles (6 hours) is the minimum for functional performance, while six cycles (9 hours) is ideal for recovery after physical or mental exertion.
The visual timeline shows each sleep cycle as a colored block, with the fall-asleep period marked separately. This gives you an intuitive picture of how your night breaks down. The recommended option is highlighted -- this is the one that gives you the best balance of total sleep time and practical scheduling.
Keep in mind that 90 minutes is an average. Individual sleep cycles can range from 70 to 120 minutes. Over time, you can calibrate your own cycle length by paying attention to how you feel when waking at different times. Other factors that affect sleep quality include consistency (going to bed at the same time every night), caffeine timing (avoid caffeine 8+ hours before bed), room temperature (65-68 degrees Fahrenheit is optimal), light exposure (minimize blue light one hour before bed), and exercise timing (finish intense workouts at least 3 hours before bed).
How to Use
-
1
Choose your mode
Select whether you want to calculate bedtime (from a wake time) or wake time (from a bedtime).
-
2
Set your time
Use the hour and minute selectors to enter your target wake-up time or bedtime. Choose AM or PM.
-
3
Adjust sleep cycles
Use the slider to set how many sleep cycles you want, from 4 to 6. The default of 5 cycles (7h 30m) suits most adults.
-
4
Review your options
View 3-4 time options with different cycle counts. The recommended option is highlighted. A visual timeline shows how your sleep cycles break down.
Where Does This Data Come From?
This calculator is based on the standard model of 90-minute sleep cycles, a well-established concept in sleep medicine. The 15-minute sleep onset latency is the average for healthy adults as documented by the American Academy of Sleep Medicine. The recommended cycle count of 5 (7.5 hours) aligns with the National Sleep Foundation guidelines. All calculations are performed client-side in your browser -- no personal data is stored or transmitted.