Sleep Calculator

Wake up refreshed, not groggy. Time your sleep around natural 90-minute cycles.

Common times
15 min
5 min30 min
Power nap
20 min — alertness
20 min
NASA nap
26 min — proven +34% performance
26 min
Full cycle nap
90 min — 1 full REM cycle
90 min

How the Sleep Calculator Works

Sleep happens in 90-minute cycles made up of light sleep, deep sleep, and REM. Waking up at the end of a cycle — rather than in the middle — is what makes you feel rested. This calculator adds 15 minutes to fall asleep, then counts backward (or forward) in 90-minute increments to find the best times.

5 to 6 cycles (7.5–9 hours) is the recommended range for most adults. Fewer than 4 cycles is generally insufficient for full recovery.

The Science of Sleep Cycles

A complete sleep cycle lasts approximately 90 minutes and consists of four distinct stages. The first stage, N1, is the transition into sleep — a very light phase lasting 1 to 5 minutes where you can be easily woken and may experience hypnic jerks (the sudden muscle twitches that sometimes happen as you drift off). N2 follows, lasting 10 to 25 minutes per cycle, during which your heart rate slows, body temperature drops, and your brain begins producing sleep spindles — bursts of neural activity that seem to play a role in memory consolidation.

N3 is deep or slow-wave sleep, lasting 20 to 40 minutes in early cycles, characterized by the slowest brain waves (delta waves). This is the most restorative phase: growth hormone is released, tissue repair occurs, and the immune system is strengthened. Finally, REM (Rapid Eye Movement) sleep, lasting 10 to 60 minutes per cycle, is when most vivid dreaming occurs. During REM, the brain is nearly as active as when awake, and this phase is critical for emotional processing, creative problem-solving, and long-term memory formation.

Most adults need 4 to 6 complete cycles per night, which translates to roughly 6 to 9 hours of sleep. The composition of those cycles shifts across the night: early cycles (cycles 1 and 2) are dominated by N3 deep sleep, which is why the first few hours are often described as the most physically restorative. Later cycles (cycles 4, 5, and 6) contain progressively more REM sleep and less N3.

This explains why people who sleep only 5 or 6 hours miss most of their REM sleep, which accumulates in the final cycles of a full night — leading to reduced cognitive performance, emotional regulation difficulties, and impaired learning consolidation despite feeling physically rested.

Waking up during N3 deep sleep causes a phenomenon called sleep inertia — the groggy, disoriented, and cognitively impaired feeling that can last 20 to 90 minutes after waking. Sleep inertia is caused by adenosine (the sleep-pressure chemical) clearing slowly while the brain transitions from delta-wave activity to wakefulness. The sleep calculator helps you avoid this by targeting wake times that fall at the natural end of a cycle — when you're in the lightest N1 or early N2 sleep and your brain is already close to the surface of wakefulness.

Tips for Better Sleep Quality

  • Keep a consistent sleep schedule, even on weekends. Your circadian rhythm — the internal 24-hour clock that regulates sleepiness and wakefulness — is anchored by consistent wake times. Sleeping in on weekends causes "social jetlag," shifting your internal clock out of sync with your work week and making Monday mornings harder than they need to be.
  • Avoid screens 1 hour before bed — blue light suppresses melatonin. Blue-wavelength light emitted by phones, tablets, and computer screens suppresses the production of melatonin, the hormone that signals to your brain that it's nighttime. Reduced melatonin delays sleep onset and can shift your circadian rhythm later. If screen avoidance is impractical, blue-light filtering glasses or night mode settings reduce (but don't eliminate) this effect.
  • Keep your bedroom cool — 18–20°C (65–68°F) is optimal. Core body temperature needs to drop by about 1–2°C to initiate and maintain sleep. A cool bedroom facilitates this thermoregulatory process. Sleeping in a room that's too warm increases the number of awakenings and reduces the proportion of deep N3 sleep, leaving you feeling less rested even if you spent the same number of hours in bed.
  • Limit caffeine after 2 PM — its half-life is 5 to 6 hours. Caffeine works by blocking adenosine receptors in the brain, preventing the buildup of sleep pressure. With a half-life of 5 to 6 hours, a 200 mg coffee at 3 PM still leaves 100 mg of caffeine in your system at 9 PM — enough to delay sleep onset and reduce slow-wave sleep quantity even if you feel sleepy enough to fall asleep. Sensitivity to caffeine also increases with age.
  • Exercise regularly, but not within 3 hours of bedtime. Regular physical exercise is one of the most effective non-pharmacological interventions for improving sleep quality — it deepens N3 sleep, reduces sleep onset time, and increases total sleep duration. However, vigorous exercise elevates core body temperature, heart rate, and cortisol levels, all of which are incompatible with sleep initiation. Morning or early afternoon exercise produces the greatest sleep benefits for most people.

Three modes, one slider, three nap presets

The calculator now runs three modes: Wake-up time (pick a target alarm, get bedtime options), Bedtime (pick when you're going to sleep, get wake-up times), and Sleep now — which auto-fills the current time so you can skip the entry step entirely. The fall-asleep slider goes from 5 to 30 minutes with a default of 15. If you tend to be out in 8 minutes, drag it down. If you spend 25 minutes staring at the ceiling, drag it up. The cycle math adjusts in real time.

Three nap presets are included: Power nap (20 min) — enough for alertness without entering deep sleep, so no grogginess on waking. NASA nap (26 min) — derived from a NASA pilot study that found a 26-minute nap improved performance by 34% and alertness by 54%. Full-cycle nap (90 min) — one complete cycle including REM, useful for catching up on missed sleep. What's not there: snooze-chain math, 'optimal nap time' by chronotype, or any kind of account to store your history.

Frequently Asked Questions

How long is a sleep cycle exactly?
A full sleep cycle lasts approximately 90 minutes and includes four stages: N1 (light sleep), N2 (light sleep), N3 (deep/slow-wave sleep), and REM (rapid eye movement). The proportion of deep sleep is higher in early cycles, while REM sleep dominates later cycles — which is why cutting sleep short often means less REM and more grogginess.
How many hours of sleep do adults actually need?
Most adults need 7–9 hours of sleep per night, which corresponds to 5–6 complete sleep cycles. Individual needs vary — some people function well on 7 hours (about 5 cycles), while others need 9 hours (6 cycles). Consistently sleeping fewer than 6 hours is associated with higher risks of health issues including cardiovascular disease, obesity, and cognitive decline.
What if I can't fall asleep in exactly 15 minutes?
The 15-minute estimate is an average. If you typically fall asleep faster (under 10 minutes), aim for the next cycle earlier. If you often take 20–30 minutes, factor that in by setting your bedtime 5–15 minutes earlier. The cycle math is more important than the exact sleep-onset time — being within one cycle is still much better than waking mid-cycle.
So what is REM sleep and why does it matter?
REM (Rapid Eye Movement) sleep is the stage associated with vivid dreaming, during which the brain is highly active and the body is temporarily paralyzed to prevent acting out dreams. REM sleep is critical for emotional regulation, creative thinking, and consolidating procedural and emotional memories. People who are chronically REM-deprived — because they sleep fewer hours or have disrupted sleep — often experience increased anxiety, reduced cognitive flexibility, and difficulty learning new skills.
Is a nap equivalent to a full night of sleep?
No — a nap can partially compensate for lost sleep but can't replace the benefits of a full night. Short naps of 10 to 20 minutes improve alertness and performance without causing sleep inertia. A 90-minute nap covers one full cycle and provides significant restoration, but napping too long or too late in the day can reduce sleep pressure at night and delay bedtime. The ideal nap is short (10–20 minutes) and taken in the early afternoon, not within 6 hours of your intended bedtime.

You might also need

See all tools →

Complementary tools based on what you're doing