Sleep Calculator
Wake up refreshed by timing your sleep in 90-minute cycles
Go to bed at one of these times
Wake up at one of these times
The sleep calculator works backward from a wake-up time or forward from the present moment to suggest bedtimes and wake times that land at the end of whole 90-minute sleep cycles, so you are less likely to be jolted awake out of deep sleep. It offers two modes, a configurable fall-asleep time, and a 12/24-hour display.
The Two Modes
Wake mode (“I want to wake at…”) takes a target wake time and lists bedtimes for 6, 5, and 4 cycles, longest sleep first. Sleep-now mode (“I want to sleep now”) starts from the current clock time and lists wake times for 4, 5, and 6 cycles, soonest first. In both modes the fall-asleep latency sits between “now” and the first cycle boundary, and the 12h/24h toggle only changes how times are written — the underlying times are identical.
The Formula Behind Every Suggestion
With a cycle length of 90 minutes and a latency L:
- Wake mode:
bedtime = wakeTime − (cycles × 90 + L) - Sleep-now mode:
wakeTime = now + L + (cycles × 90)
The latency is applied once, not once per cycle. The 15-minute default is added to the 6-cycle lead time of 540 minutes, giving 555 minutes — 9 hours 15 minutes — between lying down and the alarm.
Worked Example: A 7:00 AM Alarm
Set the wake time to 07:00 and leave latency at 15 minutes:
| Cycles | Sleep | Bedtime (previous day) |
|---|---|---|
| 6 | 9 h 00 m | 21:45 |
| 5 | 7 h 30 m | 23:15 |
| 4 | 6 h 00 m | 00:45 |
The math for the 5-cycle row: 5 × 90 = 450 minutes, plus 15 = 465 minutes, and 07:00 minus 465 minutes is 23:15 the night before.
Now switch to sleep-now mode at 23:00 with the same 15-minute latency:
| Cycles | Wake time |
|---|---|
| 4 | 05:15 |
| 5 | 06:45 |
| 6 | 08:15 |
The 4-cycle result comes from 23:00 + 15 minutes + 360 minutes = 05:15.
What the Highlighted Cards Mean
Every card showing 5 or 6 cycles is highlighted, because 7.5–9 hours covers the range most adults need. The 4-cycle card is rendered in plain styling as an occasional short-night option. There is no single “best” answer beyond that: which time you choose depends on how much sleep you want and how soon you must be up.
Where the Fixed 90-Minute Model Breaks Down
- Cycles are not exactly 90 minutes. They average around 90 but range from roughly 70 to 120, and deep sleep dominates the early cycles while REM lengthens later.
- Latency is variable. Stress, caffeine, and screens push sleep onset well past 15 minutes, shifting every suggestion.
- Interruptions reset the picture. Waking for a child or a bathroom trip splits a block, so ending on a calculated boundary is not a guarantee of feeling rested.
- This is not medical advice. Chronic insomnia, sleep apnea, and shift-work disorders need a clinician, not a web calculator.
Adjusting Latency and Planning Other Sleeps
| If you typically… | Latency to set |
|---|---|
| fall asleep almost instantly | 5 minutes |
| take the usual 15 minutes | 15 minutes |
| lie awake a while | 25–30 minutes |
| need to unwind from screens | 30+ minutes |
Changing the number shifts every result by the same amount. Setting it to 0 assumes you are asleep the moment your head touches the pillow, which places every bedtime 15 minutes later than the default.
Planning a Nap Without Sleep Inertia
A full night is not the only use. For a short nap, aim to wake after one or two cycles rather than somewhere in the middle: a 20-minute power nap stays in light sleep, while a 90-minute nap completes one full cycle. With the same arithmetic, if it is 13:00 and you allow 15 minutes to fall asleep, a one-cycle nap ends at 14:45 and a two-cycle nap at 16:15. Waking at either boundary is usually gentler than at, say, 15:30, when the model would place you mid-cycle. Daytime sleep onset is often faster than at night, so consider lowering the latency for naps.
Reading the 12h/24h Output
The toggle changes only the format, not the math. In 24-hour form the 6-cycle bedtime above appears as 21:45; in 12-hour form it appears as 9:45 PM. Locales that commonly use a 24-hour clock default to 24h, and English defaults to 12h, but you can override either. No date is shown, which is why a bedtime earlier than the alarm can look like the same day — 00:45 means the small hours of the alarm’s calendar date, while 21:45 means the night before.
Planning Around a Shift
Shift workers rarely get a conventional night window, and the model still applies: enter the time you need to be awake and count backward. If a shift starts at 05:00 and you need 90 minutes to commute and get ready, a 03:00 wake time yields the same three bedtimes. The limitation is that the body clock does not flip cleanly, so the cycle boundaries line up on paper while sleep onset may take much longer.
Related Tools
- Countdown Timer — count down to your wake-up time or any event.
- BMI Calculator — another health tool for tracking body metrics.
- World Clock — compare times across time zones when traveling.
Frequently Asked Questions
Why does the 6-cycle bedtime land on the previous day?
If you wake at 7:00 AM and allow six 90-minute cycles plus 15 minutes to fall asleep, that is 9 hours 15 minutes of lead time. Counted backward from 7:00 AM, the bedtime is 9:45 PM the night before. Early alarms always push the longest-sleep option onto the previous calendar day.
Should I pick the 4-cycle option?
Four cycles is 6 hours and is not highlighted as recommended. Use it only for an occasional short night, not as a baseline. The highlighted 5-cycle (7.5 h) and 6-cycle (9 h) options sit in the 7–9 hour range most adults need.
How exact is the 90-minute cycle assumption?
It is a model, not a measurement. Real cycles run roughly 70–120 minutes and tend to lengthen toward morning. The calculator uses a fixed 90 because it is a reasonable average; treat the suggested times as targets, not guarantees.
What is the fall-asleep time setting for?
It is the latency between lying down and actually sleeping. The default is 15 minutes, and every suggestion is shifted by it so cycles are counted from sleep onset. If you usually drift off in 5 minutes, lower it; if it takes half an hour, raise it.
Does the calculator account for waking during the night?
No. It assumes one uninterrupted block. A 3:00 AM bathroom trip breaks the cycles, so a bedtime that looks ideal on paper may not feel ideal. With fragmented sleep, total hours matter more than landing on a cycle boundary.
Does it handle daylight saving or time-zone changes?
It reads your device's local clock for the chosen wake time, so the arithmetic follows whatever offset the browser is set to. It does not adjust for a clock change that happens mid-sleep, and suggestions are not saved between sessions.
Reviewed by the HandyTools Hub team · Last updated