Calculate the best times to wake up or go to sleep based on sleep cycles.
Reviewed by the CalculatorKosh Editorial TeamUpdated June 2026Free ยท No sign-up
Sleep Calculator
Calculate the best times to wake up or go to sleep based on sleep cycles.
Choose from the bedtimes below to get exactly the right number of cycles
Go to bed at one of these times (wake: 7:00 AM)
Sleep stage guide (per 90-min cycle)
Recommended sleep by age (National Sleep Foundation)
How It Works
This sleep calculator works out the best times to go to bed or wake up by lining your sleep up with the body's natural 90-minute sleep cycles. Instead of counting only total hours, it counts complete cycles, so your alarm is more likely to ring during light sleep rather than deep sleep. Waking at the end of a cycle leaves most people feeling alert; waking in the middle of one is what produces that heavy, foggy "I could sleep for another hour" feeling, known as sleep inertia.
It is built for anyone whose schedule is fixed at one end and flexible at the other: a student who must be up at 6:00 AM for college, a developer planning a realistic bedtime before a 9:00 AM stand-up, a shift worker mapping a daytime sleep window, or a parent trying to recover after a broken night. Pick the mode that matches your constraint โ "I need to wake up atโฆ" works backwards to suggest bedtimes, and "I plan to sleep atโฆ" works forwards to suggest wake-up times. This is a general wellness and planning tool, not medical advice; it is a screening aid to spot poor sleep timing, not a substitute for a doctor or a sleep clinic if you have persistent insomnia, loud snoring, or daytime exhaustion.
The method: cycles, not just hours
A full night of sleep is not one long block. It is a repeating sequence of four stages โ NREM 1 (light), NREM 2 (true sleep), NREM 3 (deep, restorative slow-wave sleep) and REM (dreaming and memory consolidation). One pass through these stages takes about 90 minutes, and a healthy adult completes four to six cycles a night. The calculator therefore measures sleep in 90-minute blocks rather than in flat hours, which is why it recommends durations like 7.5 hours (five cycles) and 9 hours (six cycles) rather than a round 8.
The formula
The maths is deliberately simple. The tool first adds a 15-minute fall-asleep buffer (the average time it takes to drift off after lights-out), then adds or subtracts whole 90-minute cycles:
Wake time = Bedtime + 15 min + (number of cycles ร 90 min)
Bedtime = Wake time โ 15 min โ (number of cycles ร 90 min)
Worked example
Suppose you must wake at 7:00 AM. To get five complete cycles, the calculator subtracts 5 ร 90 = 450 minutes (7.5 hours) of sleep plus the 15-minute buffer โ a total of 465 minutes โ from 7:00 AM. That lands your bedtime at 11:15 PM. For six cycles (9 hours of sleep plus the buffer, 555 minutes), it suggests 9:45 PM. Both options end a cycle right at 7:00 AM, so the alarm catches you in light sleep. Going to bed at, say, 12:00 AM instead would leave you mid-cycle at wake-up โ more total tiredness despite only an hour less in bed.
Tips for better results
Keep a consistent wake time every day, including weekends โ a steady wake time is the strongest anchor for your body clock and matters more than a perfect bedtime. Get bright light (ideally sunlight) soon after waking and dim your screens in the last hour before bed. Cut caffeine โ chai, coffee, cola, energy drinks โ by early afternoon, since it has a five-to-six-hour half-life. Treat the 15-minute buffer as a starting estimate: if you usually lie awake longer, add to it; if you drop off the moment your head hits the pillow, trim it.
Common mistakes
The biggest error is chasing a fixed eight hours regardless of cycles, which often means waking mid-cycle and feeling worse than a clean 7.5 hours would. Another is assuming "more sleep is always better" โ oversleeping past your natural cycle count can leave you groggy too. People also forget the fall-asleep buffer and set bedtime too late, then short themselves by 15โ30 minutes a night. Finally, remember these are population averages: individual cycle length varies from roughly 80 to 110 minutes, so use the suggested times as a guide and adjust over a week or two based on how you actually feel on waking.
Frequently Asked Questions
Sleep inertia โ waking during a deep sleep stage leaves you feeling groggier than if you woke at the natural end of a 90-minute cycle. 7.5 hours (5 complete cycles) may leave you feeling more refreshed than 8 hours (mid-cycle 6). This is why sleep timing can matter as much as duration.
Part of Diet & Body Metrics Calculators โ compare every related calculator in one place.