Sleep Calculator
Find the ideal bedtime or wake-up time based on 90-minute sleep cycles
Select one or more cycle counts to see those times highlighted
From the Blog
Sleep Cycles: The Math Behind Waking Up Human
Built and verified by Andrius R. · Updated June 2026
The difference between waking refreshed and waking like a sworn enemy of the morning is often not how long you slept but where in a cycle the alarm landed. That's a timing problem — which makes it a math problem this calculator can actually solve.
How a night is structured
Sleep runs in cycles of roughly 90 minutes (individual range ~80–110), each passing through light sleep, deep slow-wave sleep, and REM. The mix shifts across the night: deep sleep dominates early cycles (physical restoration, growth hormone), REM expands in later ones (memory consolidation, emotional processing, vivid dreams) — one reason cutting a night short specifically starves REM, and why the last cycles aren't optional padding.
The bedtime arithmetic
Count backwards in 90-minute cycles and add ~15 minutes of average fall-asleep time (sleep latency):
| Cycles | Sleep | Be in bed by |
|---|---|---|
| 6 | 9.0 h | 21:45 |
| 5 | 7.5 h | 23:15 |
| 4 | 6.0 h | 00:45 (a fallback, not a plan) |
The logic: alarms landing between cycles catch you in light sleep, where waking is easy; an alarm 30 minutes earlier can drop into deep sleep and produce sleep inertia — that drugged, gravity-doubled grogginess that can shadow the first half hour or more. This is also why a "bonus" 30 minutes of snoozing often makes mornings worse: you start a new cycle you can't finish.
How much is enough? The official ranges
Consensus guidance (National Sleep Foundation / AASM): adults 7–9 hours, teenagers 8–10, school-age children 9–12, toddlers 11–14. Note 7–9 hours ≈ 4.7–6 cycles — the popular "5 cycles" target sits at the low-middle of the healthy adult range, not its ceiling. The honest individual test: if you need an alarm to wake, feel pulled toward weekend lie-ins of 2+ hours, or fall asleep within 5 minutes of lying down, you're carrying sleep debt regardless of what any calculator says.
The myths, audited
- "Everyone needs 8 hours": it's a range, genetically influenced. True short-sleepers who thrive on <6 hours exist but are rare (well under 5% of people); most who claim the title are chronically deprived and adapted to feeling it less, not needing it less — performance studies show the deficit even when subjective sleepiness plateaus.
- "You can bank sleep / catch up fully on weekends": recovery sleep repays some debt, but studies show metabolic and attention costs of a short week aren't fully erased by a long weekend — and the late weekend wake-ups shift your body clock ("social jetlag"), making Monday worse.
- "Older adults need much less": the need declines only modestly (7–8 h); what declines is the ability — lighter, more fragmented sleep. Different problem, same requirement.
- "Alcohol helps you sleep": it shortens latency, then fragments the back half of the night and suppresses REM — sedation isn't sleep.
Making the calculated bedtime actually work
The 90-minute math assumes you fall asleep in ~15 minutes, and that assumption is trainable: a consistent wake time (the single highest-leverage habit — it anchors the whole cycle), morning daylight, caffeine cut-off ~8 hours before bed (its half-life is 5–6 hours), a cool dark room (~18 °C), and screens dimmed in the last hour all shrink latency toward the assumption. Consistency beats optimization: the same 5 cycles at the same time outperforms a "perfect" 6 cycles at random hours, because your circadian clock — not the arithmetic — decides how restorative those cycles are. For more on what happens inside them, see our guide How Sleep Works.
How the Sleep Calculator Works
Sleep happens in repeating 90-minute cycles. Each cycle moves through four stages — from light sleep into deep slow-wave sleep and back up through REM sleep. Waking at the end of a cycle, when sleep is naturally lightest, minimises grogginess and sleep inertia.
The calculator adds 15 minutes for the average time it takes to fall asleep, then counts back (or forward) in 90-minute intervals to show you the optimal times.
Disclaimer: CalculatorXP health calculators are for informational purposes only and do not constitute medical advice. Sleep needs vary between individuals. If you have persistent sleep difficulties, consult a healthcare professional.