Bedtime Calculator

Find the ideal bedtime to wake up refreshed at your target wake-up time.

🧮

Enter your values and click Calculate

Working backwards from your desired wake-up time, this bedtime calculator finds the optimal times to go to sleep based on completing full 90-minute sleep cycles, while accounting for the time it typically takes you to fall asleep. Sleep research consistently shows that waking up at the end of a complete cycle — rather than in the middle of one — leaves you feeling significantly more refreshed, even if the total hours are similar. The 90-minute cycle is the average duration of one complete pass through the four stages of sleep: light sleep, deep sleep (slow-wave sleep), and REM sleep. Waking mid-cycle, especially during deep sleep, causes sleep inertia — the groggy, disoriented feeling that can persist for an hour or more. This calculator gives you three bedtime options corresponding to 4, 5, and 6 complete cycles (6, 7.5, and 9 hours of actual sleep), so you can choose the option that fits your schedule while still targeting a natural cycle endpoint. It is especially useful for early-morning appointments, shift workers, and students managing irregular sleep schedules.

How It Works

The calculator works backwards from your target wake-up time using this formula: bedtime = wake-up time − (number of cycles × 90 minutes) − fall-asleep time. Your wake-up time is converted to total minutes from midnight (wakeHour × 60 + wakeMinute). For six sleep cycles: 6 × 90 = 540 minutes of actual sleep. Adding your fall-asleep time (typically 10–20 minutes for most people) gives the total time you need to be in bed before waking. Subtracting that from the wake-up time in minutes gives your target bedtime in minutes from midnight, which is then converted back to a 12-hour AM/PM format. The same process is repeated for five cycles (450 minutes of sleep) and four cycles (360 minutes). All times are normalized using modulo 1440 arithmetic to handle bedtimes that wrap past midnight correctly — for example, a 6-cycle bedtime for a 6:00 AM wake-up correctly shows 8:46 PM rather than a negative or incorrect time.

Examples

7:00 AM weekday wake-up
Standard workday wake time with 14 minutes average to fall asleep.
Result: 6 cycles: 9:46 PM. 5 cycles: 11:16 PM. 4 cycles: 12:46 AM.
6:00 AM early start
Early commute or workout schedule with 10 minutes to fall asleep.
Result: 6 cycles: 8:50 PM. 5 cycles: 10:20 PM. 4 cycles: 11:50 PM.
8:30 AM relaxed morning
Weekend or remote-work morning with 20 minutes to fall asleep.
Result: 6 cycles: 11:10 PM. 5 cycles: 12:40 AM. 4 cycles: 2:10 AM.

Frequently Asked Questions

Why is 6 cycles recommended?
Six 90-minute cycles total 9 hours of actual sleep, which gives most adults enough time to complete multiple REM periods. REM sleep, concentrated in the later cycles, is critical for memory consolidation and emotional regulation. Most sleep researchers recommend 7–9 hours for adults, making 5 or 6 cycles the ideal target range.
What if I have to wake up earlier than suggested?
If you cannot get a full 5 or 6 cycles, try to at least complete a whole number of cycles. Waking at the end of 4 cycles (6 hours of sleep) is generally better than waking mid-cycle after 6.5 hours, because mid-cycle interruption — especially during deep sleep — causes disproportionate grogginess that lingers well into the morning.
Is 90 minutes the same for everyone?
No. Sleep cycle length varies between individuals and typically ranges from 80 to 110 minutes, with 90 minutes being the widely used average. If you consistently find that a recommended bedtime still leaves you groggy, try shifting your target by 10–15 minutes in either direction to find your personal cycle length.

Related Calculators