😴 Sleep Calculator

Find the best time to go to bed or wake up based on natural 90-minute sleep cycles. Wake up at the end of a cycle — during light sleep — and you'll feel refreshed instead of groggy, even with fewer total hours.

Your Sleep Plan

Most healthy adults take 10–20 minutes to drift off after lying down.
90 minutes is the average — yours may be a little shorter or longer.
Best bedtimes
Pick a time to see your ideal schedule
💡 Why this works: each night you cycle through light, deep and REM sleep roughly every 90 minutes. An alarm that rings mid-cycle — during deep sleep — causes grogginess (sleep inertia). Waking at a cycle boundary means you surface from light sleep, feeling alert. Tap any option above to visualize it.

How the sleep cycle calculator works

Healthy adult sleep is not one long block — it is a repeating cycle of about 90 minutes, moving from light sleep into deep sleep and then REM (dream) sleep, then back to light sleep. Most adults complete 4–6 cycles per night.

Bedtime = Wake-up time − fall-asleep time − (cycles × 90 min)

In "wake up at" mode, the calculator counts backwards from your alarm: it subtracts your fall-asleep buffer (default 15 minutes) and then whole 90-minute cycles, giving you the exact times to be in bed. In "go to bed at" mode it counts forwards to show the ideal moments to set your alarm.

Options with 5 or 6 cycles (7½–9 hours) are marked recommended because that range suits most adults. Shorter options (3–4 cycles) are still aligned to cycle boundaries, so they beat a random 7-hour alarm that might wake you from deep sleep.

Tips for waking up refreshed

🕰️

Keep a consistent schedule

Going to bed and waking at the same times — even on weekends — trains your circadian rhythm and makes cycle-aligned waking far more reliable.

📱

Dim screens an hour before bed

Blue light suppresses melatonin and stretches the time it takes to fall asleep, which throws off the whole calculation. Try a book instead.

Watch the caffeine cutoff

Caffeine has a half-life of ~5 hours. An afternoon coffee can still delay sleep onset at midnight — set a personal cutoff around 8 hours before bed.

🌡️

Cool, dark and quiet

Your core temperature needs to drop to initiate sleep. A cool room (around 18°C / 65°F), blackout curtains and minimal noise shorten sleep latency.

Sleep Calculator FAQs

How long is one sleep cycle?
About 90 minutes on average for healthy adults, though individuals range roughly 80–110 minutes. Each cycle moves through light sleep, deep (slow-wave) sleep and REM dream sleep. You can fine-tune the cycle length with the slider above if you know your personal rhythm.
Why do I feel groggy even after 8 hours of sleep?
Total hours are only half the story. If your alarm wakes you mid-cycle — during deep sleep — you experience sleep inertia: grogginess, disorientation and low energy that can last 30+ minutes. Waking at the end of a cycle, during light sleep, avoids this even with slightly fewer total hours.
How many sleep cycles do I need per night?
Most adults need 5–6 complete cycles, i.e. 7½–9 hours of actual sleep. Teenagers often need a bit more; some adults genuinely thrive on 4 cycles (6 hours), but that is the exception. The calculator marks the 5 and 6-cycle options as recommended.
What is the 15-minute fall-asleep buffer?
Sleep studies show healthy adults take around 10–20 minutes to transition from lying awake to actually sleeping (sleep onset latency). The calculator adds this buffer — adjustable above — so "bedtime" means when you get into bed, not when sleep begins.
Can this help shift workers or students with odd schedules?
Yes. The math works for any 24-hour time — just enter your required wake time (e.g. 4:30 PM for a night shift) and it counts backwards the same way. Consistency matters even more with shifted schedules, so anchor your sleep window and protect it from light and noise.
Is this medical advice?
No. This is a planning tool based on population-average sleep science. It does not diagnose or treat any condition. If you snore heavily, gasp in your sleep, or feel exhausted despite adequate hours, talk to a clinician — you may have a sleep disorder like apnea.