Sleep Calculator — What Time Should I Wake Up?
Enter your wake-up time or bedtime to find the optimal sleep schedule based on 90-minute sleep cycles. Wake up refreshed, not groggy. No signup, runs in your browser.
Go to bed at one of these times to complete full sleep cycles before 6:00 AM:
Assumes ~14 min to fall asleep. Each sleep cycle is 90 minutes.
How the Sleep Calculator Works
- 1Choose your mode: "I want to wake up at" to find the best bedtimes, or "I'm going to bed at" to find the best alarm times.
- 2Set your target time using the hour, minute, and AM/PM selectors.
- 3The calculator counts back (or forward) in 90-minute sleep cycles, adding 14 minutes for the average time to fall asleep, and shows four timed options.
- 4Choose the time marked Optimal or Good (5–6 cycles, 7.5–9 hours) for a full night's sleep, or Minimal (4 cycles, 6 hours) if your schedule requires it.
Why Sleep Cycles Matter More Than Hours
The quality of sleep depends not just on total hours but on whether you complete full 90-minute cycles. Each cycle moves through light sleep, deep restorative sleep, and REM sleep — the stage associated with memory consolidation and emotional regulation. If your alarm fires during deep sleep, you wake with pronounced grogginess (sleep inertia) regardless of total hours slept. Timing your alarm to land at the end of a cycle means waking at your lightest sleep stage, where the transition to wakefulness is natural and rapid.
Tips for Better Sleep Quality
Keep wake time consistent, even on weekends
Your circadian rhythm anchors to your wake time more than your bedtime. A consistent morning alarm — even after a late night — stabilises your sleep-wake cycle faster than sleeping in to compensate.
Avoid screens 30–60 minutes before bed
Blue light from phones and monitors suppresses melatonin production, delaying sleep onset by 30–60 minutes. Night mode reduces but does not eliminate this effect — distance from the screen matters more than colour temperature.
Keep your bedroom cool (65–68°F / 18–20°C)
Core body temperature must drop slightly to initiate sleep. A cool room accelerates this process. A warm shower or bath before bed paradoxically helps — the rapid cooling afterward triggers the sleep signal.
Avoid caffeine within 6 hours of bed
Caffeine has a half-life of 5–7 hours in most people. A 3 PM coffee still has 50% of its caffeine at 9 PM. For sensitive sleepers, cut off caffeine by noon. This is the highest-impact, simplest sleep change most people can make.
Use a 20-minute nap, not a 45-minute one
Short naps (15–20 min) stay in light sleep and leave you alert. A 45-minute nap drops into deep sleep mid-cycle, causing grogginess. If you need more, sleep a full 90 minutes to complete one cycle. There is no good outcome in the 30–75 minute range.
Wind down with a consistent pre-sleep routine
The brain learns to associate pre-sleep activities with sleep onset. A 20-minute routine — dim lights, reading, light stretching — primes the nervous system to transition faster and more reliably than trying to fall asleep from full alertness.
Frequently Asked Questions
What is a sleep cycle and why does it matter?
A sleep cycle is approximately 90 minutes of sleep that moves through four stages: light sleep (N1, N2), deep slow-wave sleep (N3), and REM (rapid eye movement) sleep. Waking up at the end of a cycle — when sleep is naturally lightest — means waking up feeling refreshed. Waking in the middle of deep sleep or REM produces the groggy, disoriented feeling known as sleep inertia.
How does this calculator work?
The calculator works backward from your target wake-up time (or forward from your bedtime), subtracting 90-minute sleep cycles and adding 14 minutes for the average time it takes to fall asleep. The four result times correspond to 3, 4, 5, and 6 complete sleep cycles — ranging from a short nap-like rest to a full 9-hour night. Aim for 5 or 6 cycles (7.5–9 hours) for optimal recovery.
Why is 14 minutes added for falling asleep?
The average healthy adult takes 10–20 minutes to fall asleep once in bed and in a dark, quiet environment. The calculator uses 14 minutes as the midpoint. If you typically fall asleep faster or slower, mentally adjust the recommended bedtime by a few minutes in either direction.
How many hours of sleep do adults actually need?
The CDC and most sleep researchers recommend 7–9 hours for adults (18–64), which corresponds to 5–6 complete 90-minute sleep cycles. Teenagers need 8–10 hours; older adults (65+) typically do well with 7–8. Individual variation exists — some people function well on 6 cycles (9 hours), others on 5 (7.5 hours). Persistent need for fewer than 5 cycles may indicate underlying sleep quality issues.
What is sleep inertia and how do I avoid it?
Sleep inertia is the grogginess that results from being woken during deep sleep (N3 stage). It can impair cognitive performance for 15–60 minutes. Waking at the end of a complete sleep cycle, when you are in the lightest sleep stage, minimises sleep inertia. The times this calculator provides are timed to align with light sleep phases.
Is my data stored or sent to a server?
No. All calculations run entirely in your browser using JavaScript. Nothing is sent to a server or stored anywhere.
Does the 90-minute cycle apply to everyone?
The 90-minute average is well-established across research, but individual cycle length ranges from about 80 to 110 minutes and can vary night to night. The calculator gives you a reliable starting point. If you consistently feel groggy at the recommended times but refreshed 15–20 minutes earlier or later, your natural cycle may be slightly shorter or longer.
What about naps — do cycles still apply?
Yes, but nap strategy differs from overnight sleep. A 20-minute nap (before completing the first full cycle) avoids deep sleep entirely and leaves you alert. A 90-minute nap completes one full cycle including REM. Avoid naps of 30–60 minutes — they drop you into deep sleep without completing the cycle and cause pronounced grogginess on waking.