Sleep Calculator
Based on 90-minute sleep cycles, calculate the ideal bedtime or wake-up time to wake feeling refreshed — not groggy. Avoid alarm clock misery.
How it works: Each sleep cycle lasts ~90 minutes and includes all stages (light, deep, REM). Waking at the end of a complete cycle — not the middle — leaves you feeling alert. We add 15 minutes for average sleep onset time.
Best Bedtimes
💡 5–6 cycles (7.5–9 hours) is optimal for most adults. Fewer than 4 cycles (6 hours) is associated with cognitive impairment, immune suppression, and metabolic disruption.
Why Sleep Cycles Are the Key to Waking Up Refreshed
Sleep is not a uniform state — it is a dynamic process that cycles through distinct stages approximately every 90 minutes. Each complete sleep cycle consists of three stages of non-REM sleep (light sleep transitioning to deep, restorative sleep) followed by a period of REM (Rapid Eye Movement) sleep where dreaming occurs and emotional memories are consolidated. Waking at the end of a complete cycle leaves you feeling alert and refreshed. Waking in the middle of a cycle — especially during deep sleep — triggers sleep inertia: the groggy, disoriented feeling many people experience.
Our free sleep calculator uses this science to find your optimal bedtimes or wake-up times. Enter your target time, choose your mode, and see four cycle-aligned options instantly.
How to Use the Sleep Calculator Online
- Choose your mode — toggle between "I want to wake up at…" (finds bedtimes) or "I want to go to bed at…" (finds wake-up times).
- Enter your target time — use the time input to set your desired wake-up or bedtime.
- Read the results — four options appear, showing 3, 4, 5, and 6 complete sleep cycles with the 5 and 6 cycle options marked as Best.
- Choose your time — 5 cycles (7.5 hours of sleep + 15 min onset = set alarm or sleep 7h 45m from when you get into bed) is optimal for most adults.
- Set your alarm — use the 12-hour format time displayed to set your phone alarm at the cycle-aligned time.
How the Sleep Calculator Works Technically
The calculator uses JavaScript time arithmetic running in the browser via React useMemo. For wake-up mode, it subtracts total sleep time (cycles × 90 minutes) plus 15 minutes of sleep onset latency from the target wake-up time. For bedtime mode, it adds latency and sleep duration to the target bedtime. Times are computed in total minutes, converted back to HH:MM 24-hour format, then formatted to 12-hour AM/PM display.
Bedtime mode: Wake-up = Bedtime + 15 min onset + (cycles × 90 min)
Cycle options: 3 cycles (4.5h), 4 cycles (6h), 5 cycles (7.5h), 6 cycles (9h)
Sleep Recommendations by Age — 6 Groups
- Newborns (0–3 months): 14–17 hours across naps and night sleep. Sleep architecture is polyphasic and cycles are shorter (~50 minutes).
- School-age children (6–13): 9–11 hours for optimal cognitive development, learning consolidation, and physical growth hormone release.
- Teenagers (14–17): 8–10 hours. Biological circadian clock shifts toward later sleep onset (delayed sleep phase), which is physiologically normal — not laziness.
- Young adults (18–25): 7–9 hours. Five complete 90-minute cycles (7.5 hours) is the evidence-based optimal for most healthy young adults.
- Adults (26–64): 7–9 hours. Sleep architecture changes gradually with age — deep sleep (N3) decreases while lighter sleep stages increase from the 30s onward.
- Older adults (65+): 7–8 hours. Sleep fragmentation increases with age. Use our Age Calculator alongside this tool to understand how your age group's sleep needs compare.
The Health Consequences of Poor Sleep
Chronic sleep deprivation (less than 6 hours per night) is associated with dramatically increased risks of obesity, type 2 diabetes, cardiovascular disease, hypertension, depression, anxiety, and impaired immune function. Even a single night of poor sleep impairs insulin sensitivity, elevates cortisol, increases appetite-stimulating ghrelin, and reduces the satiety hormone leptin — creating metabolic conditions that promote weight gain. Poor sleep also impairs the glymphatic system's clearance of brain metabolic waste, a process linked to neurodegenerative disease risk.
Evidence-Based Sleep Hygiene Tips
The most powerful sleep quality intervention is a consistent schedule — the same bedtime and wake time seven days a week. Other strategies: keep your bedroom cool (16–19°C / 60–67°F), dark, and quiet; avoid screens 1 hour before bed (blue light suppresses melatonin); avoid caffeine after 2 PM (caffeine has a 5–6 hour half-life); limit alcohol (which fragments sleep architecture despite aiding sleep onset); and exercise regularly — but not within 2–3 hours of bedtime. Pair with our Water Intake Calculator to ensure proper overnight hydration.
Privacy and Security
The Sleep Calculator runs entirely in your browser using JavaScript time arithmetic — no data is transmitted to ToollyX servers at any point. Your target times and calculated sleep schedule never leave your device. This is safe for personal sleep planning, shift worker scheduling, and health data you prefer not to store on external services.
✓Verified by ToollyX Team · Last updated June 2026
Frequently Asked Questions
Disclaimer: Sleep cycle durations vary between individuals (80–110 minutes). These times are estimates. If you have a sleep disorder, consult a sleep specialist.