About this tool
This sleep calculator suggests when to go to bed for a given alarm time, or when to set the alarm for a given bedtime, so that you wake at the end of a sleep cycle rather than in the middle of deep sleep. It lists options for four, five, and six cycles (six and five are highlighted as the usual adult range of 7.5 to 9 hours), shows the total sleep for each, and lets you change the cycle length and the minutes you typically take to fall asleep. A reference table of recommended sleep by age is included. It is meant for anyone setting an alarm, planning an early flight, or adjusting a schedule for shift work or a new time zone.
How it works
Sleep is modeled as repeated cycles of light, deep, and REM sleep averaging about 90 minutes each, following the classic sleep-stage research summarized by the National Sleep Foundation and the American Academy of Sleep Medicine. Bedtime for N cycles is the wake time minus N times the cycle length minus the time to fall asleep (15 minutes by default), wrapped around midnight. Wake-up time for a bedtime is the reverse: bedtime plus the fall-asleep allowance plus N cycles. Total sleep excludes the fall-asleep allowance. The default 90 minutes is an average; individual cycles range from roughly 70 to 120 minutes, so treat the results as a starting point to adjust from.
Frequently asked questions
Why 90-minute cycles?
A typical night moves through light sleep, deep (slow-wave) sleep, and REM in cycles that average about 90 minutes, with the first cycles heavier in deep sleep and later ones heavier in REM. Waking at the end of a cycle, when sleep is lightest, tends to feel easier than waking from deep sleep. The 90-minute figure is an average; if you consistently wake groggy, try shifting the cycle length by 5 or 10 minutes.
How many cycles should an adult aim for?
Five to six cycles, or 7.5 to 9 hours of actual sleep, matches the 7 or more hours the American Academy of Sleep Medicine and the CDC recommend for adults aged 18 to 64. Four cycles (6 hours) is a fallback for a short night, not a target. Teenagers need 8 to 10 hours and school-age children 9 to 12, as shown in the age table.
Why add 15 minutes to fall asleep?
Healthy adults typically take 10 to 20 minutes to fall asleep after lights out, a figure called sleep latency. The calculator subtracts this allowance from your bedtime so the cycles start when you are actually asleep. If you usually drift off within a few minutes, lower it; if you often lie awake for half an hour, raise it.
Is this medical advice?
No. The calculator applies an average cycle length to arithmetic on clock times. It cannot detect sleep disorders, and it does not replace advice from a doctor or sleep specialist. Persistent trouble falling asleep, staying asleep, or feeling rested despite enough hours in bed is worth discussing with a clinician.