Runs in your browser · times never leave this device
Sleep Calculator
Use this sleep calculator to wake up at the end of a sleep cycle — refreshed, not groggy. Choose when you need to wake up or go to bed, and get the best times based on 90-minute cycles.
Not medical advice. Individual sleep needs and cycle lengths vary. Results are estimates to help you experiment with better timing.
How this sleep calculator works
Adult sleep is organized into repeating cycles of roughly 90 minutes. Each cycle moves through light sleep → deep (slow-wave) sleep → REM. Waking near the end of a cycle — when sleep is lightest — feels noticeably easier than being jolted out of deep sleep (that heavy “sleep inertia” feeling).
This tool counts complete 90-minute blocks forward or backward from the time you choose and adds a sleep-onset latency buffer (the time it typically takes you to fall asleep after getting into bed). The highlighted rows target 5 or 6 full cycles — the range most adults need for restorative sleep.
The formula
- Bedtime from wake timebedtime = wake time − (cycles × 90 min) − latency
- Wake time from bedtimewake time = bedtime + latency + (cycles × 90 min)
- Sleep nowuses your current local time as the “go to bed” starting point
Default latency is 15 minutes (typical median for healthy adults). Move the slider if you usually fall asleep faster or slower.
How many cycles do most people need?
- 5 cycles — Sweet spot for most adults~7.5 h
- 6 cycles — Better for recovery, high sleep need, or illness~9 h
- 4 cycles — Workable short-term, builds debt if repeated~6 h
- 3 or fewer — Not sustainable for most people≤4.5 h
Why 90 minutes?
Clinical and research summaries (Sleep Foundation, NHLBI, StatPearls) place the average adult sleep cycle near 90 minutes. Individual cycles commonly range 80–110 minutes, and the first cycle of the night is often shorter and deeper while later cycles contain more REM. Treat the results as a strong starting point and fine-tune by how you actually feel after a few nights.
Frequently asked questions
How does the sleep cycle calculator work?+
It counts complete 90-minute sleep cycles forward or backward from your chosen time and adds a sleep-onset latency buffer (default 15 minutes). The goal is to land your alarm at the end of a cycle when sleep is lightest so you feel more refreshed.
How long is one sleep cycle?+
In healthy adults a full cycle of light NREM, deep NREM and REM averages about 90 minutes, though individual cycles commonly range from 80–110 minutes and the first cycle of the night is often shorter and deeper.
How many sleep cycles do I need?+
Most adults feel best with 5–6 complete cycles (7.5–9 hours of actual sleep). Four cycles (6 hours) can work short-term; fewer than that usually leads to cumulative sleep debt.
Is this medical advice?+
No. This is a planning tool based on population averages. Persistent insomnia, loud snoring, gasping, or excessive daytime sleepiness should be discussed with a clinician.
Can I use this for night shifts or irregular schedules?+
Yes. Enter whatever wake time or bedtime you need. The cycle math still applies. The harder parts of shift work are consistency, light exposure, and recovery days.
Why is there a “time to fall asleep” setting?+
If you get into bed at 10:30 but only fall asleep at 10:45, your first cycle starts at 10:45. The buffer makes the calculation land on actual sleep time rather than “lights-out” time.
Does my data leave this device?+
No. Everything runs in your browser. Times and settings are never uploaded. Optional local storage only remembers your last preference on this device.
What time should I go to bed if I need to wake up at 6 AM?+
With the default 15 minutes to fall asleep, aim for 10:15 PM for 5 cycles (7.5 hours of sleep) or 8:45 PM for 6 cycles (9 hours). If that's too early, 11:45 PM gives 4 cycles (6 hours), which is fine for a night but not as a habit.
How much sleep do adults need?+
Sleep experts such as the American Academy of Sleep Medicine and the CDC recommend at least 7 hours a night for adults, and teenagers need more. Five cycles (7.5 hours of sleep) meets that for most people; some people need closer to 9.
How long should I allow to fall asleep?+
Most healthy adults drift off within about 10–20 minutes, which is why the default is 15. Set the slider anywhere from 5 to 30 minutes to match how long it usually takes you, so the times are based on when you actually fall asleep.
Why do I feel groggy even after a full night's sleep?+
That heavy feeling is called sleep inertia and is usually worst when an alarm wakes you from deep sleep. It normally wears off within half an hour or so. Timing your alarm for the end of a cycle, keeping a regular schedule and getting daylight soon after waking can all help.
Can I use this calculator to plan a nap?+
It is built for a night's sleep and lists 3 to 6 full cycles (4.5 to 9 hours). For a daytime nap, a common rule of thumb is to keep it to about 20 minutes, before deep sleep sets in, or to sleep one full 90-minute cycle.
More free Northlane tools
- Due date calculatorEstimate a due date from LMP, conception, or ultrasound gestational age.
- Period calculatorEstimate upcoming periods and a possible fertile window from cycle length.
- Ideal weight calculatorCompare Devine, Robinson, Miller and Hamwi formula estimates.
- Body fat calculatorEstimate adult body fat using circumference or a BMI-based equation.
- Pace calculatorCalculate pace, distance or finish time with kilometre or mile splits.
- TDEE calculatorDaily calorie needs
- Calorie calculatorCalories, deficit and macros
- BMI calculatorBMI and healthy weight range
- Tip calculatorCalculate tips, tax and service charges with equal or weighted group splits, and convert the total into your home currency.
- Sales tax calculatorCalculate inclusive or exclusive sales tax with editable state and local rates.
- All toolsBrowse the full collection