Sleep Calculator
Pick a wake-up time to see the best bedtimes, or go to bed now to see the best alarm times. It is built around 90-minute sleep cycles and the time it takes to fall asleep, so you wake at the end of a cycle instead of in the middle of one. It runs in your browser using your device clock — nothing is uploaded and no sign-up is needed.
What is the Sleep Calculator?
The Sleep Calculator is a free online tool that tells you the best times to fall asleep or to wake up, based on natural sleep cycles. It works in two directions in a single page. Give it the time your alarm has to go off and it counts backwards to show you when to head to bed. Tell it you are going to bed now, or at a particular time, and it shows you the smartest alarm times instead. Every suggestion is a real clock time you can act on straight away, with no sign-up and nothing to install.
How to use it (both modes)
- I want to wake up at a set time. Pick "wake up at" and enter your alarm time, for example 6:30 AM. The tool lists several bedtimes, each one lined up with the end of a whole sleep cycle. Choose the one that fits your evening.
- I am going to bed now (or at a set time). Pick "go to bed", then either tap the button to use the current time from your device clock or type a bedtime. The tool lists the best wake-up times to set your alarm for.
Each suggested time shows how many sleep cycles it covers and the total hours of sleep, so you can see at a glance why it is recommended. The options in the 5 to 6 cycle range are highlighted as the sweet spot for most adults.
The 90-minute cycle method and why fall-asleep time matters
Sleep is not one flat block. It moves through repeating cycles of light sleep, deep sleep, and REM sleep that each last roughly 90 minutes. Near the end of a cycle you are in lighter sleep. Waking at the end of a sleep cycle rather than in the middle of one tends to feel less groggy. An alarm that fires in the middle of deep sleep is the one that leaves you foggy. The calculator therefore aims your bedtimes and wake times at the boundaries between cycles rather than at a random point inside one.
There is a second, easy-to-miss detail: you do not fall asleep the moment your head hits the pillow. Most people take around 15 minutes to drift off. If a tool counts cycles from the instant you lie down, every suggestion is off by that gap. This calculator adds a fall-asleep latency, set to 15 minutes by default and adjustable, so the cycle math starts from when you are actually asleep and the times genuinely line up.
Worked example
Say you must be up at 6:30 AM. Working back in 90-minute cycles and allowing 15 minutes to fall asleep, the tool suggests going to bed at about 9:15 PM for 6 cycles (9 hours of sleep), 10:45 PM for 5 cycles (7.5 hours), or 12:15 AM for 4 cycles (6 hours). The 9:15 PM and 10:45 PM options are flagged as the ideal range. Flip it around: if you decide to go to bed right now at 11:00 PM, the calculator points you at alarm times such as 6:30 AM for 5 cycles or 8:00 AM for 6 cycles, so you wake up rested instead of mid-cycle.
Common use cases
- Tonight's alarm when you have a fixed start time in the morning.
- A sensible bedtime when you already know when you must wake up.
- Shift workers planning sleep around irregular hours.
- Students and parents trying to wake up less groggy on a tight schedule.
- A quick power nap that ends at a cycle boundary.
Why use this one
Many sleep tools only go one way, forcing you to a separate page when you want the opposite calculation. This one does both wake-to-bed and bed-to-wake on a single screen, adds a realistic fall-asleep allowance you can adjust, and labels every suggestion with its cycle count and total hours so the advice is transparent. It runs entirely in your browser using your device clock, so the times you enter never leave your device, there is no account, and the answer appears instantly.
It sits in a small cluster of everyday time tools. To get an exact age and a birthday countdown, use the Age Calculator; to count down to any moment, the Countdown Timer runs full-screen with an alert; and to translate a time into another city, the Time Zone Converter does the time-zone math for you.
This tool is for general information and convenience only. It is not medical advice. If you have ongoing trouble sleeping, please speak with a qualified healthcare professional.
Frequently asked questions
How does the Sleep Calculator decide the best times?
It works in 90-minute sleep cycles. Waking at the end of a cycle, rather than in the middle of one, tends to feel less groggy. The tool adds the time it takes to fall asleep (15 minutes by default) and then suggests times that complete whole cycles, with 5 to 6 cycles marked as the ideal range for most adults.
Why does it add fall-asleep time?
You do not fall asleep the instant your head hits the pillow, so counting cycles from the moment you lie down would be off by about 15 minutes. Adding a fall-asleep latency makes the suggested bedtimes and alarm times line up with when you are actually asleep. You can change the latency if you usually drift off faster or slower.
Is a 90-minute sleep cycle exact for everyone?
No. Ninety minutes is a widely used average, but real cycles vary from roughly 70 to 110 minutes and change through the night and with age. Treat the suggested times as a helpful starting point and adjust based on how you actually feel when you wake.
Does the calculator send my times anywhere?
No. Everything runs locally in your browser using your device clock. The times you enter are never uploaded, saved, or shared, and no account is required.
How many hours of sleep should I aim for?
Most adults do well on about 7 to 9 hours, which is roughly 5 to 6 full cycles. The tool highlights those options, but the right amount varies from person to person, so use how rested you feel as the real test.