Sleep Calculator
Calculate optimal sleep times based on 90-minute cycles
What is a Sleep Calculator?
The Sleep Calculator helps plan bedtime or wake-up time around typical sleep cycles. A cycle is often approximated at about 90 minutes and includes lighter and deeper stages; waking near the end of a cycle may feel easier than waking from deep sleep. The tool supports rough planning before work, school, travel, exams, naps, or early appointments. It is not a medical diagnosis and cannot know how quickly you fall asleep or how your body will move through sleep stages on a given night. Stress, caffeine, alcohol, illness, medication, shift work, and sleep disorders can change sleep quality significantly. Persistent fatigue, snoring, or breathing issues should be discussed with a professional.
How to Use
How to use
- Choose mode: calculate bedtime from wake time, or wake time from bedtime
- Enter your planned wake-up or fall-asleep time
- Review recommended times and choose what fits your schedule
Using the Suggestions
- The recommended times are based on sleep-cycle estimates; adjust them for your own sleep latency, commute, medication, or shift schedule.
- If you often wake up tired despite enough time in bed, treat the result as a scheduling hint rather than a health diagnosis.
Use Cases
Technical Principle
The calculator builds on the polysomnography model that healthy adults cycle through NREM stage 1, stage 2, slow-wave NREM stage 3, and REM sleep roughly every 90 minutes. The National Sleep Foundation recommends 7-9 hours per night for adults, which lines up with 4-6 complete cycles. Each cycle ends in REM, and waking near the end of a REM phase tends to feel easier than being pulled out of slow-wave sleep, where sleep inertia and grogginess are strongest. The arithmetic is straightforward: when a wake time is given, the tool computes wake - n * 90 minutes - 14 minutes of sleep latency for n in [3, 4, 5, 6], producing four candidate bedtimes. When a bedtime is given, it computes bedtime + 14 minutes + n * 90 minutes for the same range of n to produce wake-time options. The 14-minute offset is the median sleep onset latency reported in adult sleep studies; people who consistently take longer should manually shift the bedtime earlier. Circadian biology adds context the pure cycle math cannot model. Melatonin secretion is suppressed by short-wavelength blue light, body temperature drops about two hours before natural sleep onset, and chronotype (morning lark vs night owl) shifts the optimal window by an hour or more. The tool returns scheduling hints, not a medical recommendation, and conditions such as obstructive sleep apnea, shift work disorder, or chronic insomnia need clinical evaluation rather than alarm-clock arithmetic.
- Cycle length: about 90 minutes per NREM 1 -> NREM 2 -> NREM 3 (slow-wave) -> REM rotation, repeated 4-6 times per night
- Sleep onset latency: median 14 minutes added to bedtime calculations, based on adult polysomnography studies
- Wake time formula: wake = bedtime + 14 min + n * 90 min for n in {3, 4, 5, 6}; bedtime formula reverses the sign
- NSF recommendation: 7-9 hours per night for adults aged 18-64, which corresponds to roughly 5-6 complete cycles
- Sleep inertia: waking inside slow-wave NREM 3 produces 15-30 minutes of grogginess; waking at REM end usually does not
- Circadian modifiers: blue-light suppression of melatonin, core body-temperature dip about 2 hours pre-sleep, chronotype shifts of 1-3 hours
- Out of scope: sleep apnea, restless legs, shift-work disorder, and chronic insomnia need clinical assessment beyond cycle arithmetic
Examples
Wake up at 06:30 - when should I go to bed?
Mode: I want to wake up at 06:30
(15-min fall-asleep buffer included)
6 cycles (9.0 h, Optimal): 21:15
5 cycles (7.5 h, Optimal): 22:45
4 cycles (6.0 h, Good): 00:15
3 cycles (4.5 h, Acceptable): 01:45
Recommend: lights out by 22:45 for a refreshed wake-upFall asleep at 23:00 - when to set alarm?
Mode: I will fall asleep at 23:00
(no fall-asleep buffer needed)
5 cycles (7.5 h, Optimal): 06:30
6 cycles (9.0 h, Optimal): 08:00
4 cycles (6.0 h, Good): 05:00
Tip: 06:30 lands at the end of REM, easier than 06:00 mid-deep-sleepPower nap before evening shift
Mode: I want to fall asleep at 14:00
Goal: short restorative nap, avoid deep-sleep inertia
1 cycle (1.5 h): 15:30 (full cycle, refreshed)
20-min power nap: 14:20 (stay in light sleep)
Avoid: 14:45 wake-up - lands in slow-wave sleep, groggyRed-eye flight, multi-day jet lag plan
Flight: SFO -> LHR, arrive 14:00 local
Day before (SFO): bed 22:00 -> wake 05:30 (5 cycles)
Day of flight: nap 11:00 -> 12:30 (1 cycle)
Day 1 LHR: bed 23:00 -> wake 06:30 (5 cycles)
Goal: anchor wake time first, bedtime drifts to matchFAQ
How does the calculator decide the best wake-up time?
It works in 90-minute sleep cycles. Healthy sleep moves through light → deep → REM in about 90 minutes; waking at the end of a cycle leaves you fresher than waking mid-deep-sleep. The calculator suggests bed or wake times that are multiples of 90 minutes apart, plus the typical 14 minutes to fall asleep.
Is the 90-minute cycle exact?
It is an average. Real cycles run anywhere from 70 to 110 minutes and shift across the night, with deep sleep dominating the first half and REM dominating the second half. Use the suggestions as a planning tool, not a fitness-tracker prescription.
How many cycles do I need?
Most adults function well on 5-6 cycles (7.5-9 hours). Younger adults often need 6 cycles, older adults sometimes do well with 5. Teens and children need significantly more (7+ cycles for teens, 8+ for younger children). The page caps suggestions at sensible defaults for your age band.
Why do I still feel tired even when I sleep enough?
Total time matters less than continuity. Frequent micro-awakenings (caffeine, alcohol, sleep apnea, irregular schedule) destroy sleep architecture even if the clock shows 8 hours. If you consistently wake unrefreshed, see a doctor - this calculator can't diagnose underlying issues.
Should I include time-to-fall-asleep in my plan?
Yes. The page adds 14 minutes by default to account for sleep latency. Adjust this if you typically fall asleep faster or slower; a chronic >30-minute latency suggests insomnia worth addressing.
Does this account for sleep debt or naps?
Naps and prior-night sleep debt aren't modeled. A 20-30 minute power nap recovers some alertness without disrupting nighttime sleep; longer naps may. For chronic sleep debt, a single night of long sleep doesn't fully repay it - consistent schedule does.
Is my schedule data saved?
No. Inputs are local to the page and cleared on refresh.