Sleep Time Calculator
What time should you go to bed to wake up refreshed?
Sleep happens in 90-minute cycles. Waking up mid-cycle leaves you groggy even after 8 hours. This calculator finds the exact times to fall asleep or wake up so you complete full cycles and wake between them — not in the middle of deep sleep.
—
Send feedback
💡 Share your idea or report a problem
✓ Thanks! We'll take a look.
Learn more
How It Works
The formula, explained simply
Think of sleep like a washing machine program with fixed cycles. If you interrupt the machine after 40 minutes of a 90-minute cycle, the clothes come out half-cleaned regardless of how much water or detergent you used. Sleep works the same way — the brain performs specific restoration tasks at each stage of a cycle, and interrupting the sequence before it finishes wastes the work already done.
Each 90-minute cycle passes through four stages: light sleep, deeper sleep, the deepest slow-wave sleep, and REM. The first cycles of the night are weighted toward slow-wave sleep, which handles physical recovery and memory consolidation. Later cycles shift toward REM, which processes emotion and creativity. This is why pulling an all-nighter and catching up on deep sleep still leaves you emotionally flat — you skipped the REM-heavy second half of the night.
This calculator works backward from your anchor time — either wake or bedtime — and subtracts or adds complete 90-minute blocks plus your personal fall-asleep window. The result is a set of times where your body will be in light sleep, the natural transition point between cycles where waking feels effortless. The difference between hitting one of these times and missing it by 30 minutes can be the difference between waking up clear-headed or needing two cups of coffee to function.
When To Use This
Right tool, right situation
Use this calculator any night you have a fixed wake-up constraint — an early flight, a morning meeting, a school run — and want to set a bedtime that gives you the best chance of waking up alert without extra time to lie in. It is also useful for establishing a consistent sleep schedule, where anchoring to specific cycle-aligned times helps reinforce your circadian rhythm over several weeks.
This calculator is also useful when you have unusual flexibility on one end. If you can sleep as long as you want but need to be productive by a certain hour, calculate backward from that target. If you are going to bed at a fixed time and want to know the best wake time options, calculate forward.
This approach is not appropriate as a substitute for professional evaluation of chronic sleep problems. If you consistently cannot fall asleep within 20 minutes, wake repeatedly in the night, or still feel unrefreshed after 7 to 9 hours regardless of cycle alignment, the issue is likely sleep quality rather than timing. Cycle alignment helps when your sleep architecture is intact — it does not fix insomnia, sleep apnea, or circadian rhythm disorders.
Common Mistakes
Why results sometimes look wrong
The most common mistake is targeting 8 hours as a fixed rule rather than treating it as a rough approximation of 5.3 cycles. Eight hours does not land cleanly on a cycle boundary for most people. The result is that a strict 8-hour sleeper may consistently wake mid-cycle and feel worse than someone who sleeps 7.5 or 9 hours on a deliberate schedule. The fix is choosing a cycle count and computing the actual target — which this calculator does — rather than anchoring to a round number.
A second mistake is ignoring the fall-asleep buffer entirely. Many people lie down at their calculated bedtime, spend 20 minutes on their phone, and wonder why the math does not match their morning alertness. The fall-asleep buffer only works if you are actually in bed with lights off and stimulus removed at the calculated time. Watching a screen until the exact bedtime and expecting instant sleep is not how the body transitions to sleep onset.
A third mistake specific to this tool is treating the result as binary. The recommended time is the optimal anchor — but hitting it within 10 minutes in either direction still produces a good outcome. Missing it by 30 minutes matters more. Use the result as a target zone rather than a precise minute, and do not abandon the practice if one night runs a few minutes long.
The Math
Worked examples and deeper derivation
The core formula is simple: Target Time = Anchor Time minus (Cycles x 90 minutes) minus Fall-Asleep Minutes when calculating bedtime. For wake time, reverse it: Target Time = Anchor Time plus (Cycles x 90 minutes) plus Fall-Asleep Minutes.
The fall-asleep buffer — called sleep onset latency in clinical settings — is subtracted separately because it is dead time. You are not in a sleep cycle while lying awake waiting to fall asleep. Ignoring this buffer shifts your cycle boundaries by 10 to 20 minutes, meaning you might set a perfect bedtime mathematically but still wake mid-cycle because your actual sleep started later than assumed.
The 90-minute cycle length is a population average with meaningful individual variation. Research consistently places the range between 80 and 110 minutes for healthy adults. Younger people tend toward longer cycles; cycle length shortens slightly with age. If you follow this calculator for a few nights and still wake groggy at the recommended times, try shifting your bedtime by 10 minutes in either direction — you may be running 80-minute or 100-minute cycles instead of exactly 90.
Expert Unlock
The thing most explanations skip
The 90-minute cycle assumption treats sleep architecture as uniform across the night, which it is not. Early cycles are slow-wave dominant; later cycles are REM dominant. This means that losing the last cycle of the night — say, an alarm 90 minutes early — costs you far more REM sleep than losing the first cycle costs you slow-wave sleep. If you are forced to cut sleep short, losing a cycle from the beginning of the night is less cognitively damaging than losing one from the end. Chronobiologists working with shift workers use this asymmetry to schedule strategic naps: a 90-minute nap timed 6 hours into a wake period delivers a disproportionate amount of REM and partly compensates for a shortened prior night.
Why do I still feel tired after 8 hours of sleep?
Need something this doesn't cover?
Suggest a tool — we'll build it →