Sleep Calculator
Find the best bedtime or wake time based on 90-minute sleep cycles.
Enter your values and click Calculate
Your body cycles through approximately 90-minute sleep cycles throughout the night, each containing light sleep, deep restorative sleep, and REM dream sleep. Waking mid-cycle — especially during deep sleep — causes sleep inertia, the heavy grogginess that can last up to an hour. Waking at the natural end of a cycle feels significantly more refreshed. This calculator finds your optimal bedtime or wake time based on complete cycles plus your personal fall-asleep latency. Use it to plan a full night of quality rest, to squeeze in a recovery nap, or to determine the best wake time when you have a fixed bedtime. Most adults feel best with five to six complete cycles per night. Entering your actual fall-asleep latency — rather than assuming you are asleep the moment your head hits the pillow — produces a more accurate target time and helps you avoid setting a bedtime that is actually 15 minutes too late for the full number of cycles you want.
How It Works
Each human sleep cycle lasts approximately 90 minutes and passes through light sleep, deep slow-wave sleep, and REM phases. The calculator multiplies your chosen number of cycles by 90 to get the total required sleep time in minutes, then factors in your fall-asleep latency — the additional time you need to actually drift off after getting into bed. In bedtime mode, this combined total (cycles × 90 + fall-asleep minutes) is subtracted from your desired wake time to find the ideal time to get into bed. In wake-time mode, the total is added to your chosen bedtime to find when you will naturally finish a full cycle. All times are computed using 24-hour modular arithmetic, so overnight calculations that cross midnight wrap correctly and are displayed in 12-hour AM/PM format for readability. Adjusting the cycle count lets you balance sleep duration against your schedule — five cycles gives 7.5 hours of actual sleep while six cycles gives a full 9 hours.