Sleep Calculator

When should you sleep to wake up refreshed?

Calculate your optimal bedtime or wake-up time based on natural sleep cycles to wake up refreshed instead of groggy.

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

Your brain doesn't sleep uniformly throughout the night. Instead, it cycles through distinct phases every 90 minutes like a biological elevator moving between floors. Light sleep acts as the lobby, deep sleep as the basement, and REM sleep as the penthouse where dreams happen. The elevator always returns to the lobby before starting the next trip.

Waking up naturally happens most easily from the lobby phase when your brain activity resembles being awake. Set an alarm for mid-basement, and you'll feel like someone dragged you from unconsciousness. This is why you might feel worse after 8 hours of sleep than after 7.5 hours - you interrupted the elevator between floors.

The calculator works backward from your target wake time through complete 90-minute journeys. Instead of chopping off sleep randomly, it finds natural stopping points where your brain is already preparing to surface. Most people discover their sweet spot is either 6 cycles (9 hours) or 5 cycles (7.5 hours) of actual sleep time.

When To Use This
Right tool, right situation

Use this calculator when you have control over your schedule and can maintain consistent sleep timing for at least a week. The cycle approach works best for people with regular commitments who need to optimize around fixed wake times or bedtimes. It's particularly valuable during schedule transitions like starting a new job or adjusting to daylight saving time.

The calculator proves most helpful for shift workers, students cramming for exams, or anyone trying to maximize alertness with limited sleep opportunities. Parents with newborns can use cycle timing for strategic naps when they can't control nighttime sleep. Business travelers benefit from pre-adjusting their sleep cycles before crossing time zones.

Don't rely on cycle timing if you have diagnosed sleep disorders like sleep apnea, severe insomnia, or take medications that affect sleep architecture. The 90-minute cycle assumes normal sleep progression, which these conditions disrupt. Similarly, avoid rigid cycle timing during illness, high stress periods, or major life changes when your sleep needs naturally fluctuate beyond normal patterns.

Common Mistakes
Why results sometimes look wrong

The biggest mistake is treating sleep like a gas tank that just needs filling to a certain level. People assume 8 hours of sleep guarantees feeling rested, then wonder why they wake up exhausted after hitting that target exactly. The body operates on cycles, not totals, making timing more critical than duration.

Many people sabotage their natural rhythm by checking their phone when they wake up naturally, then forcing themselves back to sleep because it's 'too early.' Your brain often wakes you at the end of a cycle - the exact moment you should get up. Fighting this natural timing and sleeping another hour frequently dumps you into deep sleep, creating the grogginess you tried to avoid.

Another common error is using weekends to 'catch up' on sleep by sleeping in randomly. This shifts your entire cycle timing and makes Monday morning feel like jet lag. Your body clock doesn't understand weekends - it expects consistency. Sleeping in by 3 hours on Saturday is equivalent to flying from New York to California and back every weekend.

The Math
Worked examples and deeper derivation

Sleep cycle timing relies on decades of electroencephalogram studies showing remarkably consistent 90-minute patterns across different populations. The cycle breaks into roughly 25 minutes of light sleep, 45 minutes of deep sleep, and 20 minutes of REM sleep, though individual phases vary in length throughout the night.

The calculation adds your personal fall-asleep time to the target sleep duration, then works backward from your desired wake time. If you need to wake at 7:00 AM and take 15 minutes to fall asleep, the math for 6 cycles becomes: 7:00 AM minus 540 minutes (sleep) minus 15 minutes (transition) equals 10:45 PM bedtime.

Early cycles contain more deep sleep for physical restoration, while later cycles emphasize REM sleep for mental processing. This natural architecture means the first few cycles matter most for feeling rested, explaining why 5 complete cycles often beat 8 hours of fragmented sleep. The timing precision matters because even 15 minutes can shift you from the elevator lobby to the basement.

Early morning commuter
Need to wake up at 6:00 AM, takes 20 minutes to fall asleep
Recommended bedtime is 10:25 PM for 9 hours of sleep across 6 complete sleep cycles. This timing ensures you wake up at the end of a cycle when sleep is naturally lighter, avoiding the grogginess that comes from waking mid-cycle.
Night shift worker
Going to bed at 8:00 AM, takes 10 minutes to fall asleep
Optimal wake-up time is 3:40 PM for 9 hours of sleep. Even with an unconventional schedule, completing full 90-minute cycles helps maintain sleep quality and reduces daytime fatigue.
Quick power nap
Going to bed at 2:00 PM, takes 5 minutes to fall asleep
For a strategic nap, wake up at 3:35 PM after one complete cycle. This 90-minute nap provides restorative benefits without entering deep sleep phases that cause post-nap grogginess.
Expert Unlock
The thing most explanations skip

Sleep researchers have discovered that cycle length varies between 70-120 minutes for different individuals, with 90 minutes being the average. Your personal cycle length stays remarkably consistent throughout your life, which means you can fine-tune this calculator's recommendations by tracking your natural wake times over several weeks. Elite athletes and executives often discover their optimal cycle length through wearable devices and adjust their schedules accordingly for peak performance.

Why do I still feel tired with 8 hours of sleep?

Why do I wake up groggy even with enough sleep?
You're likely waking up in the middle of a deep sleep cycle instead of during the lighter REM phase. Sleep cycles last about 90 minutes, and waking at the wrong point can leave you feeling foggy regardless of total sleep time. This calculator times your sleep to end at the conclusion of a cycle.
How many sleep cycles do I actually need?
Most adults need 5-6 complete cycles per night, which equals 7.5-9 hours of sleep. Quality matters more than quantity - six complete cycles often feel more refreshing than 8 hours with an interrupted final cycle. Age, activity level, and health affect your personal needs.
What if I can't fall asleep in 15 minutes?
Adjust the fall asleep time in the calculator to match your reality. If you consistently take 30-45 minutes, factor that into your bedtime. Trouble falling asleep quickly often indicates too much screen time, caffeine, or stress before bed. The calculator adapts to your actual patterns, not ideal ones.

Need something this doesn't cover?

Suggest a tool — we'll build it →