Sleep Calculator
What time should you go to sleep to wake up refreshed?
Sleep happens in 90-minute cycles. Waking at the end of a cycle instead of the middle leaves you alert instead of groggy. Enter your wake-up time or bedtime and this calculator shows you exactly when to aim for — based on your cycle count and how long it takes you to fall asleep.
—
Send feedback
💡 Share your idea or report a problem
✓ Thanks! We'll take a look.
Learn more
How It Works
The formula, explained simply
Most alarm clocks are set for convenience — round numbers like 7:00 or 6:30 — with no regard for what stage of sleep your brain is in when it fires. That is the root cause of morning grogginess. Sleep does not progress linearly from light to deep and stop. It cycles. Across a full night you move through the same sequence four to seven times, each lap taking about 90 minutes.
The stages within each cycle shift as the night goes on. Earlier cycles contain more slow-wave deep sleep, which is when your body does physical repair — tissue growth, immune function, metabolic recovery. Later cycles contain longer stretches of REM sleep, where memory consolidation and emotional processing happen. Cutting the night short by even one cycle means you lose disproportionately more REM, since those stages cluster at the end.
This calculator works backward from your fixed constraint — either a required wake-up time or a planned bedtime — and subtracts the right number of complete 90-minute cycles plus the time it takes you to fall asleep. The result is a target time that positions your alarm at the lightest point in your final cycle. You are not sleeping more; you are sleeping smarter by aligning with what your body is already doing.
When To Use This
Right tool, right situation
Use this calculator when you have a hard wake-up constraint — a work start time, a flight, a school run — and want to know the exact bedtime that avoids mid-cycle alarm disruption. It is also useful when testing whether a new sleep schedule is actually giving you enough full cycles, not just enough total hours.
Use it in reverse when your bedtime is fixed — a social event, a late work finish — and you want to find the best wake-up time that still completes whole cycles. This is common for weekend schedules where waking up at the end of a cycle rather than forcing a weekday time can meaningfully reduce accumulated sleep debt.
Do not use this tool as a substitute for medical assessment of chronic sleep problems. If you consistently cannot fall asleep within 30 minutes, wake frequently, or feel unrefreshed after 8 hours regardless of cycle timing, the issue is not math — it may be sleep apnea, restless legs, circadian rhythm disorder, or another condition where cycle timing is irrelevant. The calculator works best for healthy sleepers fine-tuning an already functional sleep pattern.
Common Mistakes
Why results sometimes look wrong
The most common mistake is confusing time in bed with time asleep. An 8-hour sleep window with a 30-minute onset and a 20-minute mid-night waking produces only about 7 hours of actual sleep — potentially fewer than 5 complete cycles. The calculator addresses onset but cannot account for nighttime awakenings, which is why the result is marked as estimated rather than exact.
A second mistake is treating cycle timing as the only lever. Cycle alignment helps when your sleep quality is already reasonable. If you fall asleep at the right time but your sleep is fragmented by stress, alcohol, late-screen exposure, or a warm room, the cycle math is largely irrelevant — the underlying architecture is already disrupted. The calculator gives you a target, not a guarantee.
A third mistake specific to this tool is using the default onset time without checking whether it applies to you. The 14-minute default is a population average. Night owls trying to sleep earlier than their natural rhythm, people under acute stress, and anyone who has had caffeine after 2 PM often take 30-40 minutes to fall asleep. Entering your actual onset time makes a meaningful difference in the recommended bedtime — a 30-minute onset pushes bedtime 16 minutes earlier compared to the default.
The Math
Worked examples and deeper derivation
The core calculation is simple: bedtime = wake-up time minus (cycles times 90 minutes) minus sleep onset time. For wake-up mode it reverses: wake-up time = bedtime plus onset plus (cycles times 90 minutes).
Sleep onset — the time between lying down and actually falling asleep — is often overlooked. If you budget for 7.5 hours but it takes you 20 minutes to fall asleep, you only complete 4.8 cycles, not 5. The calculator adds onset time to the total so your sleep window accounts for the full duration from lights out to alarm.
The 90-minute cycle constant is an average. If you want to tune it to your biology, a sleep tracking wearable can give you your personal average over a few weeks. Once you have that number, you can mentally adjust the result — if your cycles run 95 minutes, add 5 minutes per cycle to the recommended bedtime. The math is the same; only the constant changes.
Expert Unlock
The thing most explanations skip
The 90-minute cycle model breaks down at the edges of the night in a specific way: the first cycle is often shorter (70-80 minutes) because sleep pressure is highest and the brain moves rapidly into deep slow-wave sleep. This means the calculator may be slightly off for the first transition but becomes more accurate across cycles 2 through 5. For practical purposes this is a minor correction, but it explains why some people find their first alarm miss feels worse than later ones — they are waking from unusually deep slow-wave sleep, not mid-REM.
Why do I still feel tired if I slept 8 hours?
Need something this doesn't cover?
Suggest a tool — we'll build it →