Tools Guides
Health Free No signup

Sleep Calculator

Calculate your ideal bedtime or wake-up time based on 90-minute sleep cycles.

Loading tool…

About this tool

Our bodies sleep in 90-minute cycles — waking between cycles leaves you feeling refreshed. Enter your target wake-up time to see the best bedtimes, or enter when you plan to sleep to see optimal alarm times. A 15-minute fall-asleep buffer is included, and each result shows how many cycles you will get.

How to use

  1. 1 Step 1: Choose a mode: 'Wake up at…', 'Sleep at…', or 'Wake up in X hours'.
  2. 2 Step 2: Enter your target time or hours. The current time is pre-filled for convenience.
  3. 3 Step 3: Review the five recommended times, each labeled with the number of sleep cycles.
  4. 4 Step 4: Read the sleep stage tips to understand REM, light, and deep sleep.

Why waking up at the right moment matters more than total hours

You have felt it: eight hours of sleep that left you groggy, and a shorter night that left you sharp. The difference is often when in your sleep cycle the alarm went off. Sleep is not a flat state — it runs in repeating cycles of roughly 90 minutes, each moving through light sleep, deep restorative sleep, and REM (dream) sleep. Waking in the middle of a cycle, especially out of deep sleep, produces sleep inertia: that heavy, disoriented grogginess that can linger for half an hour. Waking at the end of a cycle, when sleep is naturally lightest, feels far cleaner. This calculator works backwards and forwards from the 90-minute cycle to find those clean wake points.

The model behind the numbers

The tool uses two constants: a 90-minute cycle length and a 15-minute buffer for the time it takes the average person to actually fall asleep after getting into bed. Every suggested time is built from complete cycles plus that buffer, so the alarm lands at a cycle boundary rather than mid-cycle. It offers three modes:

ModeYou enterIt gives you
Wake up at…Your target wake timeSeveral bedtimes to aim for
Sleep at…When you'll fall asleepSeveral good wake times
Hours until wakeHours availableHow many full cycles fit

A worked example

Suppose you must be up at 07:00. Choose "Wake up at…", enter 07:00, and the calculator counts backward in 90-minute cycles, adding the 15-minute fall-asleep buffer. It suggests bedtimes such as 21:45 (6 cycles, 9 hours of sleep), 23:15 (5 cycles, 7.5 hours), and so on. Each row is tagged for quality: six or more cycles is marked Optimal, five cycles is Good, and fewer is the bare Minimum. The logic runs the same way in reverse for "Sleep at…": tell it you will be asleep by 23:00 and it lists clean wake times like 06:30 or 08:00. The "Hours until wake" mode is the late-night reality check — enter 6.5 and it tells you that fits roughly 4 full cycles and, helpfully, how many extra minutes would complete one more.

How to use it well

  • Aim for 5 or 6 cycles. Five cycles is about 7.5 hours and six is about 9 hours — both land squarely in the healthy adult range. Pick the latest bedtime that still gives you five.
  • Treat the buffer as real. The 15 minutes assumes you are actually trying to sleep. Scrolling your phone in bed pushes your true sleep onset later, so the suggested wake time drifts.
  • Use "hours until wake" for naps and short nights. It tells you whether you have time for a full cycle or whether you would be better off with a short 20-minute nap that avoids deep sleep entirely.
  • Pick a consistent target. The biggest gains come from keeping the same wake time daily so your body learns to end a cycle right before the alarm on its own.

What happens in each stage

Understanding why the cycle matters makes the suggestions more useful. Light sleep (stages N1 and N2) is the on-ramp and makes up about half the night; it is easy to wake from. Deep sleep (N3) is the restorative stage where the body repairs tissue and the immune system does its work — waking out of this is what produces the worst grogginess. REM sleep is where vivid dreaming happens and where memory and learning get consolidated; it grows longer in the later cycles of the night, which is one reason cutting sleep short robs you disproportionately of REM.

Honest limitations

  • 90 minutes is an average, not your exact number. Real cycles vary from roughly 80 to 120 minutes and shift through the night. Treat the suggested times as well-aimed targets, not precise guarantees.
  • Fall-asleep time is personal. If you routinely take longer than 15 minutes to drop off, shift the bedtime earlier to compensate.
  • Cycle timing does not replace enough sleep. Five well-timed cycles beat a badly-timed eight hours, but chronic short sleep is not fixed by clever alarms.
  • Not medical advice. Persistent fatigue, insomnia, or loud snoring warrant a conversation with a clinician, not a calculator.

All of the arithmetic runs in your browser using your device's clock; nothing about your schedule is sent anywhere. Set a target, read off a bedtime, and let the cycle do the work.

Frequently Asked Questions

{# Alpine.js — self-hosted. (The previous jsdelivr CDN tag had a stale SRI integrity hash, so the browser refused to run it and window.Alpine was never defined — silently breaking every FAQ accordion and Alpine tool.) #}