Sleep Cycle Calculator
Find the best bedtime (or wake time) using 90-minute REM/NREM cycles. Adds sleep-onset latency. Shows 6, 5, 4, 3-cycle options + sleep stages breakdown.
What is the Sleep Cycle Calculator?
Your brain doesn't sleep in one continuous block — it cycles through four stages (N1 light, N2 light, N3 deep, REM) roughly every 90 minutes. Waking up in the middle of N3 deep sleep feels groggy (sleep inertia); waking at the end of a cycle, during light N1/N2 or REM, feels refreshed even on the same total hours. This calculator works backwards from your target wake time (or forwards from a chosen bedtime) to suggest sleep windows that land your alarm in light sleep, including a configurable sleep-onset latency so the math accounts for how long you actually take to drift off.
Key Features
- Three modes: wake at X → bedtime, sleep at Y → wake-up, or sleep right now → wake-up
- Suggests 4 bedtime options (3, 4, 5, 6 cycles = 4.5 / 6 / 7.5 / 9 hours)
- Adjustable sleep-onset latency (default 15 min — the adult average per the AASM)
- Highlights 5-6 cycle recommendation badge (matches the National Sleep Foundation 7-9h adult range)
- Shows typical % of each cycle spent in N1, N2, N3 (deep) and REM stages
- 12-hour and 24-hour time display side by side
- 100% browser-side — no account, no tracking

How to Use
- Pick a mode: usually 'I want to wake up at…' if planning tomorrow's alarm
- Enter the target time (wake-up or bedtime)
- Adjust onset latency if you know yours — if you usually take longer than 20 min to fall asleep, consult a doctor (could be insomnia)
- Click Calculate Sleep Times — four cards appear with the bedtime/wake-up matched to whole sleep cycles
- Pick the green Recommended option (5 or 6 cycles) for a full night, or a 3-4 cycle option for nap planning
- Check the sleep stages table at the bottom to understand what's happening at each phase
