Sleep Calculator
Enter your desired wake-up time to find the best bedtimes, or enter bedtime to find the best wake times. Based on 90-minute sleep cycles — waking at cycle end feels dramatically better than waking mid-cycle.
Enter your values above to see the results.
Tips & Notes
- ✓The 90-minute cycle is an average — your personal cycle may be 80 or 110 minutes. If these times do not feel right, adjust your fall-asleep time or try waking 10 minutes earlier or later to find your natural cycle end.
- ✓The second half of the night is richer in REM sleep (dreaming, memory consolidation) while the first half has more deep slow-wave sleep (physical restoration). Cutting sleep short systematically reduces REM — causing mood and memory effects even without feeling "unrested."
- ✓Consistency of sleep and wake times matters as much as timing optimization — irregular sleep schedules disrupt circadian rhythm and impair sleep quality regardless of total duration. Try to keep wake time constant within 30 minutes, even on weekends.
- ✓Caffeine has a half-life of approximately 5–7 hours — a coffee at 2 PM still has half its caffeine in your system at 9 PM. For optimal sleep quality, avoid caffeine after noon or 1 PM if you want to be asleep by 10–11 PM.
- ✓A consistent pre-sleep routine (same 20–30 minutes of low-stimulation activity before bed) significantly improves sleep onset time — this is among the most evidence-backed sleep hygiene interventions according to clinical sleep research.
Common Mistakes
- ✗Varying wake time significantly between weekdays and weekends — this "social jet lag" shifts circadian phase and impairs sleep quality across the entire week, not just weekends.
- ✗Using screens until bedtime — blue-light emission from phones, tablets, and computers suppresses melatonin production and delays sleep onset by 30–60 minutes on average. Switching to dim, warm-toned lighting 1 hour before bed significantly helps.
- ✗Drinking alcohol to fall asleep — alcohol does facilitate sleep onset but fragments sleep architecture in the second half of the night, suppressing REM sleep and producing poorer overall sleep quality despite falling asleep quickly.
- ✗Treating weekday sleep debt as something to catch up on over weekends — while extra weekend sleep partially helps, it does not fully restore cognitive performance and disrupts the circadian consistency that makes weekday sleep efficient.
- ✗Setting only one alarm at the optimal wake time — waking to the first alarm from a deep sleep mid-cycle may not correspond to the optimal time. Setting backup alarms 5–10 minutes apart near the target time helps catch a natural lighter-sleep moment.
Sleep Calculator Overview
The difference between waking at the end of a sleep cycle versus mid-cycle in deep sleep can be more significant for how you feel than an extra 30 minutes of sleep. This calculator finds the times that work with your biology.
Sleep cycle timing formula:
Sleep cycle structure and timing: One complete sleep cycle ≈ 90 minutes Stage N1 (light sleep): 5–10 min — transition to sleep Stage N2 (light-moderate sleep): 20–30 min — heart rate slows, body temperature drops Stage N3 (deep/slow-wave sleep): 20–40 min — most restorative, hardest to wake from REM sleep: 10–60 min — dreams, memory consolidation; proportion increases in later cycles Optimal bedtimes (for 7:00 AM wake): Subtract 15 min for sleep onset → effective target 6:45 AM 6:45 − 90 = 5:15 AM (1 cycle — not recommended) 6:45 − 180 = 3:45 AM (2 cycles — not recommended) 6:45 − 270 = 2:15 AM (3 cycles) 6:45 − 360 = 12:45 AM (4 cycles) 6:45 − 450 = 11:15 PM (5 cycles — optimal for most adults) 6:45 − 540 = 9:45 PM (6 cycles)
EX: Person needs to wake at 6:30 AM for work Target time = 6:30 − 15 min fall-asleep time = 6:15 AM effective Optimal bedtimes (working backward in 90-min cycles): 6:15 − 450 min (5 cycles) = 11:45 PM → 7.5 hours sleep 6:15 − 360 min (4 cycles) = 1:15 AM → 6.0 hours sleep (minimum) 6:15 − 540 min (6 cycles) = 10:15 PM → 9.0 hours sleep Best option for most adults: 11:45 PM — 5 complete cycles, 7.5 hours total If tonight is short: 1:15 AM — 4 cycles, still waking at a cycle boundary
Optimal bedtime calculation for a target wake time:
Sleep debt and its consequences: Losing 1 hour of sleep per night for 1 week = equivalent impairment to 24 hours total sleep deprivation Sleep debt accumulates — you cannot fully repay it in one long weekend sleep Chronic sleep restriction (6 hours/night) impairs performance equivalent to 2+ nights total deprivation Recommended sleep: 7–9 hours for adults 18–64; 7–8 hours for adults 65+ Sleep below 6 hours per night associated with: obesity, type 2 diabetes, cardiovascular disease, reduced immune function, impaired cognitive performance
EX: Real sleep quality assessment — not just duration Person A: 8 hours in bed, wakes at end of cycle → feels rested Person B: 8 hours in bed, wakes mid-deep-sleep cycle → feels groggy, hits snooze multiple times Same total sleep — vastly different experience based on cycle timing. Sleep inertia (deep-sleep wake grogginess) can persist for 30–60 minutes. Smart alarm apps that monitor movement can approximate cycle completion for wake timing.
Recommended sleep duration by age group:
| Age group | Recommended sleep (CDC) | Sleep cycles needed |
|---|---|---|
| Newborns (0–3 months) | 14–17 hours | 9–11 cycles (with naps) |
| Infants (4–12 months) | 12–16 hours | 8–10 cycles (with naps) |
| Toddlers (1–2 years) | 11–14 hours | 7–9 cycles (with naps) |
| School age (6–12 years) | 9–12 hours | 6–8 cycles |
| Teenagers (13–18 years) | 8–10 hours | 5–7 cycles |
| Adults (18–64 years) | 7–9 hours | 5–6 cycles |
| Older adults (65+) | 7–8 hours | 5–6 cycles (lighter deep sleep) |
Sleep stages — role and effect of disruption:
| Sleep stage | Physical effects if disrupted | Proportion in 8-hour night |
|---|---|---|
| N1 (light transition) | Minimal — brief disorientation | ~5% |
| N2 (light-moderate) | Mild grogginess — fades quickly | ~50% |
| N3 (deep/slow-wave) | Strong sleep inertia — 30–60 min grogginess | ~15–20% (more in first half) |
| REM | Mood effects, memory consolidation loss | ~20–25% (more in second half) |
The 90-minute cycle length is an average that varies between individuals (ranges from 80–110 minutes) and also shifts within the same person based on sleep pressure, age, and sleep quality. Smart alarm apps (Sleep Cycle, SleepScore, Oura ring integration) use movement or heart rate variability to detect when sleep is lightest and wake within a defined window — typically 30 minutes before the target wake time — to catch a natural cycle completion. This approach produces better morning alertness than fixed alarm times for many people.