Ever slept a full eight hours and still woken up groggy? The culprit is usually when you woke, not how long you slept. This sleep calculator works out the best bedtimes and wake-up times so your alarm lands between 90-minute sleep cycles instead of in the middle of one.
How sleep cycles work
Overnight, your brain repeats a cycle of light sleep, deep sleep and REM roughly every 90 minutes. Waking at the end of a cycle — when sleep is naturally light — feels easy; being jolted out of deep sleep mid-cycle causes that heavy, disoriented feeling known as sleep inertia, no matter how many total hours you got.
How the calculator works
Tell it when you must wake up and it counts backwards in 90-minute cycles — adding about 15 minutes for the average time it takes to fall asleep — to suggest ideal bedtimes. Or work forwards from a bedtime to the best wake-up times. The starred options (5–6 cycles) are the sweet spot for most adults.
Worked example
Need to wake at 6:30 am? Counting back six cycles (9 hours) plus 15 minutes to drift off suggests a 9:15 pm bedtime; five cycles (7.5 hours) gives 10:45 pm. Both beat going to bed at 10 pm and having the alarm fire mid-cycle at 6:30.
How much sleep do you actually need?
Most adults do best on 5–6 full cycles (7.5–9 hours); teenagers and children need more. Consistency amplifies the benefit — keeping a similar schedule, even on weekends, trains your body clock so you increasingly wake between cycles naturally, sometimes before the alarm. If you always need a loud alarm and still feel wrecked, try shifting your bedtime by one cycle rather than sleeping "more".
The 90-minute cycle and 15-minute sleep-onset figures are population averages — your own rhythm may differ slightly. For general information only.