Tested tool guide
Tested browser tools
Checked August 16, 2026
What Sleep Calculator does, with a checked example
Sleep runs in cycles that average about 90 minutes, and an alarm that fires mid-cycle can land in deep sleep, which is why some mornings feel worse than others. This calculator takes the time you want to wake up, or the bedtime you are planning, and works backward or forward in whole 90-minute cycles, returning bedtimes and alarm times that end on a cycle boundary. The surprise is that every option is really a choice of total sleep: one wake time can produce both a 10 PM and a 1 AM suggestion, and the 90-minute figure is an average, not a law. Results are targets, not guarantees.
Worked example
A concrete input and expected output from the current implementation.
->
Expected output
Suggested bedtimes, each a whole number of 90-minute cycles before 7:00 AM: 10:00 PM (6 cycles, 9 hours), 11:30 PM (5 cycles, 7.5 hours), 1:00 AM (4 cycles, 6 hours), 2:30 AM (3 cycles, 4.5 hours).
The calculator steps backward from 7:00 AM in whole cycles: 07:00 minus six cycles (9 hours) is 10:00 PM, minus five cycles (7.5 hours) is 11:30 PM, and so on. Each option ends the final cycle exactly at the wake time, so the alarm rings at a cycle boundary; the hours shown are the total sleep each bedtime provides.