A fast, private sleep calculator
Waking up feeling refreshed isn't just about getting as many hours of sleep as possible; it is about waking up at the right time. This sleep calculator helps you determine exactly when to set your alarm or when to turn off the lights by calculating your sleep cycles. Whether you are planning your evening and wondering "what time should I go to bed?" or you are going to sleep right now and need to know "when should I wake up?", this tool provides the exact times you need.
Because the tool runs entirely in your browser, your inputs are completely private. No data about your daily routine or sleep habits is ever uploaded to a server. You can safely calculate your schedule knowing everything stays on your device.
How the sleep cycle calculator works
Human sleep is not a uniform state of rest. Throughout the night, your brain cycles through different stages of sleep: light sleep, deep sleep, and REM (Rapid Eye Movement) sleep. On average, it takes about 90 minutes to complete one full cycle.
If your alarm goes off in the middle of a deep sleep stage, you are likely to experience sleep inertia—that heavy, groggy feeling that makes it incredibly difficult to get out of bed, even if you've been asleep for eight or nine hours. Conversely, if you wake up at the end of a sleep cycle, you are naturally transitioning into a lighter stage of sleep. Waking up during this light stage makes you feel alert, energized, and ready to start the day, even if you've had slightly fewer total hours of sleep.
This sleep cycle calculator uses the 90-minute rule to map out your night. By counting forward or backward in 90-minute increments, it identifies the exact moments you will be transitioning between cycles.
Using the bedtime calculator
The tool offers two primary modes to fit your situation, plus a customizable buffer for how long it takes you to actually fall asleep.
Wake up at: Use this mode when you have a fixed time you need to be awake—for example, a 7:00 AM alarm for work. Enter your wake-up time, and the calculator will work backward to tell you exactly when you should be getting into bed. It will provide options for 6, 5, 4, and 3 cycles, highlighting the 5- and 6-cycle marks (7.5 to 9 hours) as the recommended targets for a full night's rest.
Go to bed at: Use this mode if you are ready for bed and want to know when to set your alarm. You can enter a specific time, or simply click the "Now" button to use your current local time. The tool will calculate forward, showing you the best times to wake up to ensure you complete full cycles.
Time to fall asleep: A common flaw in basic sleep math is forgetting that you don't fall asleep the second your head hits the pillow. The average person takes about 15 minutes to drift off. This tool includes a dedicated "Time to fall asleep" field. If you know you are a quick sleeper, you can lower it to 5 minutes. If you often toss and turn, you can increase it up to 120 minutes. The calculator automatically factors this buffer into the final times.
Why timing beats total hours
It is a common misconception that exactly 8 hours of sleep is the perfect amount for everyone. In reality, 8 hours (480 minutes) does not divide evenly by 90 minutes. If you sleep for exactly 8 hours, you might wake up right in the middle of your final deep sleep cycle.
Often, sleeping for 7.5 hours (exactly five 90-minute cycles) will leave you feeling significantly more rested than sleeping for 8 hours. If you are ever short on time, aiming for 6 hours (four cycles) is usually a better strategy than aiming for 7 hours. By focusing on cycles rather than raw hours, you work with your body's natural rhythm instead of fighting against it.
If you are trying to manage your broader daily schedule alongside your sleep, you might also find our Time Calculator helpful for adding and subtracting hours and minutes across your workday. Alternatively, if you want to set a specific wind-down period before bed to read or relax without looking at the clock, try using a Countdown Timer.
Tips for a better sleep routine
While timing your sleep cycles is a powerful way to wake up refreshed, it works best when paired with good sleep hygiene:
- Keep it consistent: Try to go to bed and wake up at the same time every day, even on weekends. This helps anchor your circadian rhythm, making it easier to fall asleep and wake up naturally.
- Adjust your fall-asleep buffer: If you consistently find yourself taking 45 minutes to fall asleep, update the "Time to fall asleep" field in the calculator. Over time, as your routine improves, you may be able to lower this number.
- Limit late-night screens: The blue light emitted by phones and computers suppresses melatonin production. Try to step away from screens at least 30 minutes before your calculated bedtime.
- Listen to your body: While 90 minutes is the average cycle length, individual cycles can range from 90 to 110 minutes. Use the calculator's results as a baseline, and adjust your alarm by 10 or 15 minutes if you consistently feel groggy at the suggested times.