Sleep Calculator
EverydayFind the optimal bedtime or wake-up time based on 90-minute sleep cycles. Shows 6 ideal sleep or wake times to help you wake up refreshed.
What is a Sleep?
A Sleep Calculator computes the optimal bedtime or wake-up time based on 90-minute sleep cycles. Rather than simply subtracting "8 hours" from your desired wake time, it aligns your wake-up moment with the natural end of a sleep cycle — a technique supported by sleep science research showing that waking at the cycle boundary dramatically reduces the grogginess most people experience after an alarm.
Human sleep is not a single uninterrupted state. It progresses through repeated cycles of light sleep, deep sleep, and REM (rapid eye movement) sleep. Each complete cycle takes approximately 90 minutes. Waking mid-cycle — particularly from deep sleep — causes sleep inertia, a state of fogginess and impaired function that can persist for 30–90 minutes after waking. By planning your sleep in multiples of 90 minutes, you give your body permission to complete each cycle naturally, leaving you at the shallowest, most wake-friendly point of the cycle when the alarm sounds.
The Sleep Calculator offers two modes: wake-at mode (you know when you must wake and want the optimal bedtimes) and sleep-at mode (you know when you plan to go to bed and want the ideal alarm times). Both include a 15-minute fall-asleep buffer, since few people fall asleep the instant their head hits the pillow. Six options are presented, from 6 cycles (9 hours) down to 1 cycle (1.5 hours), with the 5-cycle option (7.5 hours) recommended as the research-backed sleep duration for most adults.
Good sleep timing works best alongside a consistent schedule. The Day Counter Calculator can help you track streaks of consistent sleep scheduling if you are building a habit.
How to use this Sleep calculator
- Select Mode — toggle between "Set my wake-up time" (to calculate bedtimes) and "Set my bedtime" (to calculate alarm times).
- Enter your target time — choose the hour and minute using the dropdowns in 12-hour AM/PM format. For a 7:00 AM wake-up, select "7:00 AM."
- Review the six options — each shows the time, the number of sleep cycles, and the total hours of sleep. The 5-cycle option is marked as Recommended.
- Set your alarm or bedtime — choose the option that best fits your schedule. If waking at 6:15 AM is possible instead of 6:00 AM to catch a cycle end, consider it.
Formula & Methodology
The Sleep Calculator uses the following sequence: Fall-asleep buffer: 15 minutes added before cycles begin Cycle calculation (wake-at mode): For each option (n = 1 to 6 cycles): Bedtime = Target Wake Time − (n × 90 minutes) − 15 minutes Cycle calculation (sleep-at mode): For each option (n = 1 to 6 cycles): Wake Time = Target Bedtime + (n × 90 minutes) + 15 minutes All times are expressed in 12-hour AM/PM format. When calculated times cross midnight, the result wraps around to the correct AM time. Worked example: A software engineer in Hyderabad must be on a client call at 8:30 AM and wants to wake at 7:45 AM to have time to prepare. She enters 7:45 AM as her wake-up time. - 6 cycles (9h): Bedtime = 7:45 AM − 9h 15min = 10:30 PM (previous evening) - 5 cycles (7.5h) – Recommended: Bedtime = 7:45 AM − 7h 45min = 12:00 AM - 4 cycles (6h): Bedtime = 7:45 AM − 6h 15min = 1:30 AM - 3 cycles (4.5h): Bedtime = 7:45 AM − 4h 45min = 3:00 AM If she finishes work at midnight, the recommended 12:00 AM bedtime gives her 5 complete cycles and a properly cycle-aligned 7:45 AM alarm.