Sleep Calculator | Best Bedtime
Calculate ideal bedtimes or wake-up times based on 90-minute sleep cycles. Find out when to sleep or wake to feel refreshed and avoid mid-cycle grogginess.
What Is the Sleep Calculator | Best Bedtime?
The Sleep Calculator uses the 90-minute sleep cycle model to find the optimal bedtime or wake-up time that lets you surface at the end of a complete cycle, minimising sleep inertia (morning grogginess). It supports a custom sleep onset time (5–30 min) and a "use current time" button for immediate planning.
- ›Sleep occurs in 90-minute cycles: N1 (light) → N2 (consolidated) → N3 (deep) → REM
- ›Waking at cycle end = light sleep phase = less grogginess on waking
- ›Adults need 7–9 hours (5–6 complete cycles) per CDC guidelines
- ›Each cycle shown with a color-coded stage pattern (N1, N2, N3 deep, REM)
Formula
Sleep Cycle Timing
Cycle duration
≈ 90 minutes per cycle
Sleep onset
~15 min to fall asleep (avg)
Bedtime
Wake time − (N × 90 + onset) min
Wake time
Bedtime + (N × 90 + onset) min
6 cycles
9 h 0 min (ideal)
5 cycles
7 h 30 min (recommended)
How to Use
- 1Choose mode: "I need to wake up at…" or "I plan to sleep at…"
- 2Enter your wake-up time or planned bedtime
- 3Adjust sleep onset time (slider: 5–30 min) if you fall asleep faster or slower than average
- 4Click "Calculate Sleep Times" to see 3–6 cycle options
- 5The "Use current time" button fills in right now for immediate planning
- 6Click any result row to see the sleep stage cycle visualization for that option
Example Calculation
Wake-up mode, target 7:00 AM, 15 min onset:
5 cycles: 7:00 AM − (5×90+15) min = 7:00 AM − 465 min = 11:15 PM [Best]
4 cycles: 7:00 AM − (4×90+15) min = 7:00 AM − 375 min = 12:45 AM [Good]
3 cycles: 7:00 AM − (3×90+15) min = 7:00 AM − 285 min = 2:15 AM [Min]
Why cycle-aligned wake times feel better
Deep sleep (N3) dominates cycles 1–2. REM dominates cycles 5–6. An alarm mid-deep-sleep triggers sleep inertia that can last 30–60 minutes. Waking at the N1/N2 boundary after a complete cycle feels like waking naturally, because that is when your brain was about to surface anyway.
Understanding Sleep | Best Bedtime
Sleep Needs by Age Group
| Age Group | Recommended Hours | Ideal Cycles | Notes |
|---|---|---|---|
| Newborn (0–3 mo) | 14–17 h | 9–11 | Multiple sleep periods, no cycle structure |
| Infant (4–12 mo) | 12–16 h | 8–10 | Consolidating to 2 naps + night sleep |
| Toddler (1–2 yrs) | 11–14 h | 7–9 | One afternoon nap |
| School age (6–13) | 9–11 h | 6–7 | Bedtime 8–9 PM for 7 AM wake |
| Teen (14–17) | 8–10 h | 5–6 | Circadian shift → natural late bedtime |
| Adult (18–64) | 7–9 h | 5–6 | 7.5 h (5 cycles) or 9 h (6 cycles) |
| Older adult (65+) | 7–8 h | 5 | More fragmented sleep, earlier wake time |
Frequently Asked Questions
How long is a sleep cycle?
The 90-minute average is a well-established approximation from polysomnography research. Individual cycles may range from 85 to 110 minutes, and the internal composition shifts through the night.
- ›First 2 cycles: more deep sleep (N3), less REM, physical recovery priority
- ›Later cycles: more REM, less deep sleep, memory and emotional processing
- ›Total REM per night: 1.5–2 hours in 5–6 cycles
- ›Total deep sleep (N3): 1–1.5 hours, mostly in first 3 cycles
What is sleep inertia?
Sleep inertia is caused by the brain transitioning from high-delta-wave activity (deep sleep) to wakefulness. The abrupt interruption leaves adenosine and other sleep-promoting chemicals still partially active.
- ›Worst case: alarm rings during N3 deep sleep (cycles 1–2)
- ›Best case: alarm rings during N1/N2 light sleep (end of any cycle)
- ›Caffeine accelerates clearing sleep inertia by blocking adenosine receptors
- ›Strategic naps of 10–20 min avoid N3 and keep sleep inertia minimal
How many hours of sleep do adults need?
Sleep needs are genetically influenced and vary by individual. The recommended 7–9 hours represents the range that supports optimal health, cognitive performance, and immune function for most adults.
- ›Less than 7 hours chronically: increased risk of obesity, diabetes, cardiovascular disease
- ›More than 9 hours (without illness): associated with depression or underlying health issues
- ›Short sleepers (genuine 6h need): rare genetic variant, estimated under 3% of population
- ›Teens (14–17): need 8–10 hours; school-age (6–13): 9–11 hours
Should I sleep in on weekends to catch up?
Consistency in wake time, even on weekends, is the single most powerful lever for sleep quality. Your circadian clock is anchored primarily by wake time, not bedtime.
- ›Maintain consistent wake time: within 30 min 7 days a week
- ›Adjust bedtime, not wake time, if you need more sleep
- ›Sleeping 2+ hours later on weekends can cause "Sunday insomnia" (circadian shift)
- ›Two full recovery nights partially restore cognitive performance but not all metabolic effects
What is REM sleep and why does it matter?
REM sleep deprivation (from early wake times cutting off the last cycles) specifically impairs emotional resilience, learning, and creativity, even when total sleep time is preserved.
- ›REM dominates cycles 4–6 (late night / early morning)
- ›Cutting sleep from 8h to 6h removes 60–90% of REM (the last two cycles)
- ›Alcohol suppresses REM in the first half of the night
- ›REM sleep also involved in motor skill consolidation (practicing a skill improves overnight)
What is deep sleep (N3) and why is it important?
Deep sleep is the priority of the first half of the night. Even partial sleep loss disproportionately affects deep sleep, the body prioritises N3 recovery when sleep-deprived.
- ›Growth hormone: 70–80% of daily release occurs during N3 sleep
- ›Immune system: cytokine production peaks during deep sleep
- ›Memory: declarative (fact) memory consolidation occurs in N3
- ›Deep sleep declines with age: 20% of sleep in young adults, ~5% by age 60
Do naps follow the same 90-minute rule?
Strategic napping is a powerful tool. The timing within the day and nap duration both determine whether a nap helps or hurts night sleep quality.
- ›Power nap (10–20 min): boosts alertness and mood without sleep inertia
- ›Full cycle nap (90 min): most restorative, includes REM, ideal for shift workers
- ›Avoid 30–60 min naps: likely to wake from deep sleep with grogginess
- ›Coffee nap: drink caffeine immediately before a 20-min nap, caffeine kicks in on waking