Sleep Bedtime Calculator
Enter your desired wake-up time and find the ideal bedtimes based on 90-minute sleep cycles. Wake up refreshed, not groggy.
How to use this tool
- Enter your desired wake-up time.
- Set the average minutes it takes you to fall asleep.
- Choose a bedtime from 4, 5, or 6 sleep cycles.
- Aim to wake up at the end of a cycle for the least grogginess.
Calculate the best times to go to sleep so you wake up at the end of a sleep cycle — feeling alert and rested.
Formula
Bedtime = wake-up time − fall-asleep time − (cycles × 90 min)
For 4 cycles (6 h): bedtime = wake-up − fall-asleep time − 360 min
For 5 cycles (7.5 h): bedtime = wake-up − fall-asleep time − 450 min
For 6 cycles (9 h): bedtime = wake-up − fall-asleep time − 540 min
Times wrap around modulo 1,440 (minutes in a day) and are displayed in 12-hour AM/PM format.
How it works
This calculator works backward from your desired wake-up time to find the bedtime that aligns the end of a sleep cycle with the alarm. Human sleep progresses through 90-minute cycles of light, deep, and REM sleep; waking at the end of a cycle — rather than mid-cycle — is associated with feeling more refreshed and less groggy.
The fall-asleep time (sleep latency) is subtracted first so the cycles are counted from when sleep actually begins, not when you get into bed. Three bedtime options are offered: 4, 5, or 6 complete cycles, corresponding to 6, 7.5, or 9 hours of actual sleep respectively. Individual sleep-cycle length varies somewhat around 90 minutes; treat these times as targets rather than guarantees.
Worked example
Worked example: wake at 6:30 AM, 15 min to fall asleep
- Wake-up in minutes from midnight: 6 × 60 + 30 = 390 min.
- Subtract fall-asleep time: 390 − 15 = 375 min available for sleep cycles.
- For 5 cycles (recommended): 375 − 5 × 90 = 375 − 450 = −75 min. Wrap: (−75 + 1440) mod 1440 = 1365 min = 22 h 45 min = 10:45 PM.
- For 4 cycles: 375 − 360 = 15 min = 12:15 AM. For 6 cycles: 375 − 540 = −165 min → 1275 min = 21 h 15 min = 9:15 PM.
Bedtime targets — 4 cycles (6 h): 12:15 AM | 5 cycles (7.5 h): 10:45 PM | 6 cycles (9 h): 9:15 PM.
Key terms
- Sleep cycle
- A recurring ~90-minute sequence of sleep stages (NREM stages 1–3 and REM) that the brain cycles through multiple times per night.
- REM sleep
- Rapid Eye Movement sleep — the stage associated with vivid dreaming, memory consolidation, and emotional processing; occurs more in later cycles.
- Sleep latency
- The time it takes to fall asleep after lying down; the calculator subtracts this from bedtime so cycles begin from actual sleep onset.
- Sleep inertia
- The grogginess and disorientation felt when woken mid-cycle (especially from deep NREM sleep); minimised by timing the alarm to a cycle end.
- Modulo 1,440
- Because there are 1,440 minutes in a day, subtracting sleep time can yield a negative minute count, which wraps around by adding 1,440 to give the correct prior-evening time.
Frequently asked questions
- What is a sleep cycle?
- A sleep cycle lasts about 90 minutes and includes light sleep, deep sleep, and REM sleep. Waking mid-cycle causes grogginess (sleep inertia); waking at the end feels natural.
- How many sleep cycles do I need?
- Most adults need 5–6 cycles (7.5–9 hours). 4 cycles (6 hours) is a short-term minimum; consistently fewer impairs cognition and health.