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.

Updated June 2026 · How this works

Example calculation — edit any field to use your own numbers

Worth knowing
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.

Early morning shift worker needing maximum sleep
Wake time: 4:45 AM, 5 cycles, 20 minutes to fall asleep
The calculator returns a bedtime of 8:25 PM — earlier than most people go to bed, but mathematically correct for 7.5 hours of complete sleep cycles. Going to bed at 9:00 PM instead means waking 35 minutes into the fifth cycle, which is why a 9 PM bedtime with a 4:45 AM alarm often feels worse than fewer total hours of sleep.
Short night before an early flight — damage control
Wake time: 4:00 AM, 4 cycles, 10 minutes to fall asleep
The result is 9:50 PM for a 6-hour minimum. Four complete cycles still deliver two full REM stages, which means better cognitive function the next day than sleeping from 11 PM to 4 AM — a 5-hour stretch that cuts the fourth cycle in half. The boundary warning appears, but the math shows why hitting this bedtime outperforms sleeping later and longer.
Parent calculating a toddler's nap end time
Bedtime (nap start): 1:00 PM, 2 cycles selected as closest option to nap length, 5 minutes to fall asleep
Though this calculator targets adult sleep, the 90-minute cycle assumption roughly holds for toddler naps too. The result shows a 4:05 PM wake time. Waking the child at 3:30 PM — mid-cycle — explains the post-nap meltdown that many parents assume is just toddler behavior. Extending the nap by 35 minutes to a cycle boundary often produces a dramatically calmer child on waking.
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?

What is a sleep cycle and how long does it last?
A sleep cycle moves through light sleep, deep sleep, and REM sleep before repeating — taking roughly 90 minutes from start to finish. Most adults complete 4 to 6 cycles per night, meaning the sweet spot for total sleep is 6, 7.5, or 9 hours rather than a round 8 hours.
Why does waking up in the middle of a sleep cycle make you feel worse?
Waking mid-cycle interrupts deep or REM sleep and triggers sleep inertia — the groggy, disoriented state that can last 30 to 60 minutes. This is why someone who slept 7.5 hours and woke at a cycle boundary often feels sharper than someone who slept a full 8 hours and woke 30 minutes into a new cycle.
How accurate is the 14-minute fall-asleep average?
14 minutes is a commonly cited middle estimate for healthy adults in a normal sleep environment. If you fall asleep in under 5 minutes regularly, that is a sign of accumulated sleep debt — not a sign of good sleep efficiency. If it takes you more than 30 minutes consistently, that is worth tracking as a potential sleep issue.

Need something this doesn't cover?

Suggest a tool — we'll build it →