Sleep Calculator
Wake up refreshed.
Find your ideal bedtime or wake-up time based on 90-minute sleep cycles. Stop fighting your alarm — work with your body's natural rhythm.
The science behind sleep cycles
Sleep isn't a single state — your brain cycles through distinct stages roughly every 90 minutes. Waking mid-cycle (especially during deep sleep) triggers sleep inertia: that groggy, disoriented feeling that can last hours. This calculator helps you time your sleep so you wake at the lightest stage.
Keep a consistent schedule
Same bedtime and wake time every day — even weekends. Regularity anchors your circadian rhythm and dramatically improves sleep quality within 1–2 weeks.
Dim lights 60 min before bed
Bright and blue-spectrum light suppresses melatonin. Use warm bulbs or Night Shift / Night Mode on screens starting an hour before your target bedtime.
Keep your bedroom cool & dark
Core body temperature needs to drop ~1°C to initiate sleep. A room between 16–19°C (60–67°F) with blackout curtains is optimal for most adults.
Cut caffeine after 2 PM
Caffeine has a half-life of ~6 hours. A 3 PM coffee still has half its caffeine at 9 PM, delaying sleep onset and reducing deep sleep time.
Exercise regularly (but not late)
Regular aerobic exercise improves sleep quality and duration. Finish vigorous workouts at least 3 hours before bed to avoid the stimulating after-effect.
Wind down with a routine
A 20–30 min pre-sleep ritual (reading, light stretching, journaling) trains your brain to recognise bedtime cues, cutting the time to fall asleep significantly.
A sleep cycle lasts approximately 90 minutes and consists of four stages: N1 (light), N2 (consolidated), N3 (deep/slow-wave), and REM. Waking mid-cycle — especially during N3 — causes sleep inertia, that groggy feeling that can last 30–60 minutes. Waking at the end of a cycle, during light sleep, leaves you feeling alert and refreshed. This sleep calculator helps you time your sleep to hit those natural wake windows.
Most adults need 5–6 complete sleep cycles per night (7.5–9 hours). Teens need 5–7 cycles (8–10 hours), school-age children 6–7 cycles, and younger children even more. The calculator marks your age group's ideal range with the "Ideal" badge, but individual variation is normal — some people genuinely feel best on 5 cycles, others need 6.
REM (Rapid Eye Movement) sleep is the dreaming stage where your brain is nearly as active as when awake. It's critical for emotional regulation, memory consolidation, and creativity. REM periods are short (~10 min) in early cycles and get progressively longer — your final cycle before waking is often 45–60 min of REM. This is why cutting sleep short by even 90 minutes disproportionately slashes REM time.
For most adults, no. Research by the American Academy of Sleep Medicine consistently shows that fewer than 7 hours of sleep is associated with increased risk of cardiovascular disease, obesity, reduced immune function, and cognitive impairment. Some people have a rare genetic mutation (DEC2) that allows them to thrive on 6 hours, but only about 1–3% of the population carry it. If you feel fine on 6 hours, you've likely just adapted to the impairment — similar to how chronic hunger stops feeling acute.
Switch to "I'm going to sleep now" mode above. The calculator will add your average sleep-onset time (the time it takes you to fall asleep), then calculate wake times at the end of each complete 90-minute cycle. Pick the time that gives you the most complete cycles while fitting your schedule. The "Ideal" badge marks the option that lands in the recommended range for your age group.
Yes. Naps build up "sleep pressure" differently depending on their length. A 20-min power nap restores alertness without meaningfully reducing nighttime sleep need. A 90-min nap is one full cycle and can delay your bedtime by up to 1–2 hours. Napping after 3 PM, or napping longer than 30 min, frequently causes difficulty falling asleep at your target bedtime and should be factored into your overall sleep schedule.
What is the Sleep Calculator?
The Sleep Calculator is a free online tool that helps you find the optimal bedtime or wake-up time based on your natural 90-minute sleep cycles. Instead of guessing when to go to bed, you can calculate the exact times that allow you to complete full cycles — so you wake up at the lightest stage of sleep, feeling refreshed rather than groggy.
Whether you're searching for a bedtime calculator, a sleep cycle calculator, a REM sleep calculator, or simply want to know "what time should I wake up?" — this tool gives you precise, science-backed answers in seconds.
How does the Sleep Calculator work?
The calculator uses one core principle: the average human sleep cycle lasts approximately 90 minutes. Each night, you cycle through light sleep (N1, N2), deep slow-wave sleep (N3), and REM sleep — repeating this pattern 4–6 times. Waking mid-cycle, especially during deep sleep, causes sleep inertia. Waking at the natural end of a cycle feels effortless.
The tool works in two modes:
- Wake-up time mode: Enter your desired alarm time and how long you typically take to fall asleep. The calculator counts back in 90-minute intervals to give you the best bedtimes.
- Sleep now mode: Already in bed? Enter the current time and your sleep-onset latency. The calculator shows the ideal times to wake up — complete cycles forward from when you'll actually be asleep.
Sleep requirements by age
The National Sleep Foundation recommends different sleep durations for different age groups. The calculator adjusts its "Ideal" recommendation accordingly:
- Newborns (0–3 months): 14–17 hours
- Infants (4–11 months): 12–15 hours
- Toddlers (1–2 years): 11–14 hours
- Preschoolers (3–5 years): 10–13 hours
- School-age children (6–13 years): 9–11 hours
- Teenagers (14–17 years): 8–10 hours
- Adults (18–64 years): 7–9 hours
- Seniors (65+ years): 7–8 hours
Sleep cycle calculator — understanding the 90-minute cycle
A single 90-minute sleep cycle consists of four stages. N1 is the lightest stage, lasting just 1–7 minutes, during which you drift off and can be easily woken. N2 is consolidated sleep where heart rate slows and sleep spindles appear — this is when real rest begins. N3, or slow-wave deep sleep, is the most physically restorative stage: growth hormone is released, tissue is repaired, and immune function is strengthened. Finally, REM (Rapid Eye Movement) sleep is the dreaming phase where emotional processing and long-term memory consolidation happen.
Using this sleep calculator as a REM sleep calculator is particularly valuable because REM cycles get longer toward morning — your last cycle before waking can have 45–60 minutes of REM. Cutting sleep short by just 90 minutes eliminates nearly all of this final REM period.
If I go to sleep now, when should I wake up?
This is the most common sleep calculation question. The answer depends on your sleep-onset latency (typically 10–20 minutes for healthy adults) plus the number of 90-minute cycles you want to complete. For example, if you're going to bed at 11:30 PM and take 15 minutes to fall asleep, you'll actually be asleep by 11:45 PM. From there: 1 cycle = 1:15 AM, 2 cycles = 2:45 AM, 3 cycles = 4:15 AM, 4 cycles = 5:45 AM, 5 cycles = 7:15 AM, 6 cycles = 8:45 AM. For most adults, 5–6 cycles (7:15 or 8:45 AM) is ideal.
Sleep calculator for better productivity
Using a sleep time calculator isn't just about feeling rested — it directly impacts cognitive performance. Studies show that one night of 6-hour sleep impairs reaction time and decision-making as severely as 24 hours of total sleep deprivation. A consistent sleep schedule, timed with this online sleep calculator, is one of the highest-leverage changes you can make for focus, mood, and longevity.
Updated on April 03, 2026 · Sources: National Sleep Foundation, American Academy of Sleep Medicine, Sleep Foundation