Xerobit

Sleep Cycle Calculator: Find Your Ideal Bedtime

A sleep cycle calculator works backward from your target wake-up time in 90-minute increments to suggest when you should fall asleep. Add about 15 minutes to fall asleep, and you get your ideal bedtime. This tool runs entirely in your browser, so no data is uploaded anywhere.

Suggested Bedtimes

  • 6 cycles (9 hrs)
    9:45 PM

    Fall asleep by 10:00 PM

  • 5 cycles (7.5 hrs)
    11:15 PM

    Fall asleep by 11:30 PM

  • 4 cycles (6 hrs)
    12:45 AM

    Fall asleep by 1:00 AM

  • 3 cycles (4.5 hrs)
    2:15 AM

    Fall asleep by 2:30 AM

Based on a 7:00 AM wake-up time and 15 minutes to fall asleep.

How to use the sleep cycle calculator

  1. Enter your wake-up hour using the 24-hour clock (for example, 7 for 7:00 AM or 15 for 3:00 PM).
  2. Set the wake-up minute if your alarm goes off at a specific minute past the hour.
  3. Adjust the minutes to fall asleep field. The default is 15 minutes, which matches the average sleep latency for most adults.
  4. Review the list of suggested bedtimes. Each option shows how many full sleep cycles you will complete and the total hours of sleep.

How the sleep cycle math works

A typical sleep cycle lasts about 90 minutes. During one cycle, your brain moves through light sleep, deep sleep, and REM sleep. Waking up at the end of a cycle leaves you feeling alert, while waking up during deep sleep causes grogginess, sometimes called sleep inertia.

This sleep cycle calculator subtracts multiples of 90 minutes from your wake-up time, then subtracts your sleep latency (the time it takes to fall asleep) to find your bedtime. For example, if you need to wake up at 7:00 AM and take 15 minutes to fall asleep:

  • Sleep onset: 7:00 AM minus 15 minutes = 6:45 AM
  • 6 cycles (9 hours): 6:45 AM minus 540 minutes = 9:45 PM
  • 5 cycles (7.5 hours): 6:45 AM minus 450 minutes = 11:15 PM
  • 4 cycles (6 hours): 6:45 AM minus 360 minutes = 12:45 AM

The formula is simply: Bedtime = Wake Time - (Cycles x 90) - Latency.

Why sleep latency matters

Sleep latency is the amount of time between lying down with the intention to sleep and actually falling asleep. Most online tools ignore this and tell you to go to bed exactly 7.5 hours before your alarm. In reality, if you lie down at 11:15 PM but do not fall asleep until 11:30 PM, you have lost one-sixth of a cycle.

The average adult takes 14 to 15 minutes to fall asleep. However, this varies widely. People who consume caffeine late in the day, use screens in bed, or experience stress may take 30 minutes or more. Setting the latency field accurately in this sleep cycle calculator ensures your first sleep cycle begins at the right time, keeping all subsequent cycles aligned with your alarm.

What happens inside a 90-minute cycle

Each 90-minute sleep cycle contains distinct stages that serve different biological functions. Understanding them explains why timing your alarm matters.

  • Stage 1 (Light Sleep): Lasts 1 to 5 minutes. Your heart rate slows and muscles relax. You can be woken easily.
  • Stage 2 (Light Sleep): Lasts 10 to 25 minutes. Body temperature drops. This stage makes up about half of total sleep time.
  • Stage 3 (Deep Sleep): Lasts 20 to 40 minutes in early cycles. Tissue repair and immune system strengthening happen here. Waking up during this stage causes severe grogginess.
  • REM Sleep: Lasts 10 to 60 minutes. Brain activity increases, dreaming occurs, and memory consolidation takes place. REM periods get longer in later cycles.

In the first half of the night, cycles contain more deep sleep. In the second half, they contain more REM sleep. This is why cutting your sleep short by two hours removes a disproportionate amount of REM sleep, affecting focus and mood the next day.

Common mistakes when planning bedtime

Relying solely on total hours without considering cycles is the most frequent error. Sleeping 8 hours straight sounds ideal, but 8 hours is 480 minutes, which does not divide evenly by 90. You would wake up 30 minutes into a new cycle, likely during deep sleep. Sleeping 7.5 hours (5 cycles) often results in feeling more rested than sleeping 8 hours.

Another mistake is assuming the 90-minute rule is exact. While 90 minutes is the accepted average, individual cycles range from 70 to 120 minutes. Use this sleep cycle calculator as a strong starting point, but pay attention to how you feel upon waking. If you consistently wake up tired at a suggested time, try shifting your bedtime by 10 to 15 minutes earlier or later to match your personal cycle length.

An estimate, not medical advice

The sleep cycle calculator uses a standard published formula, and formulas describe averages, not you. Age, body composition, medical conditions, medication, pregnancy and training history can all move the real number. Use the result as a starting point for planning, and speak to a doctor, dietitian or qualified coach before making health, diet or training decisions, especially if you have a medical condition.

Worked examples

Each result below was produced by the same code the tool runs, so you can check your own numbers against them.

ExampleInputResult
Standard 7 AM alarmWake-up hour (24h): 7; Wake-up minute: 0; Minutes to fall asleep: 156 cycles (9 hrs): 9:45 PM; 5 cycles (7.5 hrs): 11:15 PM; 4 cycles (6 hrs): 12:45 AM; 3 cycles (4.5 hrs): 2:15 AM
Early 5:30 AM shiftWake-up hour (24h): 5; Wake-up minute: 30; Minutes to fall asleep: 156 cycles (9 hrs): 8:15 PM; 5 cycles (7.5 hrs): 9:45 PM; 4 cycles (6 hrs): 11:15 PM; 3 cycles (4.5 hrs): 12:45 AM
Late 9 AM weekendWake-up hour (24h): 9; Wake-up minute: 0; Minutes to fall asleep: 206 cycles (9 hrs): 11:40 PM; 5 cycles (7.5 hrs): 1:10 AM; 4 cycles (6 hrs): 2:40 AM; 3 cycles (4.5 hrs): 4:10 AM
Fast sleeper at 6:15 AMWake-up hour (24h): 6; Wake-up minute: 15; Minutes to fall asleep: 56 cycles (9 hrs): 9:10 PM; 5 cycles (7.5 hrs): 10:40 PM; 4 cycles (6 hrs): 12:10 AM; 3 cycles (4.5 hrs): 1:40 AM

FAQ

How long is one sleep cycle?

The average sleep cycle lasts 90 minutes, though individual cycles can range from 70 to 120 minutes. A full night of rest typically consists of four to six of these cycles.

Is it better to sleep 6 or 7.5 hours?

Both 6 hours (4 cycles) and 7.5 hours (5 cycles) align perfectly with 90-minute sleep cycles. However, 7.5 hours is generally recommended for adults because it provides enough time for both deep physical restoration and REM sleep.

Why do I feel tired after sleeping 8 hours?

Eight hours equals 480 minutes, which is not a multiple of 90. Your alarm likely woke you up in the middle of a sleep cycle, possibly during deep sleep, causing sleep inertia. Try sleeping 7.5 or 9 hours instead.

Does this sleep cycle calculator store my data?

No. All calculations run locally in your browser. Your wake-up time and settings are never sent to any server.

What if I cannot fall asleep within 15 minutes?

Increase the "minutes to fall asleep" field to match your experience. If you regularly take 30 or 45 minutes to fall asleep, entering that number ensures your first sleep cycle starts at the correct time rather than being delayed.

Are sleep cycles the same for everyone?

The 90-minute average applies to most adults, but children have shorter cycles (around 50 to 60 minutes), and some adults naturally have slightly longer or shorter cycles. Consistent sleep schedules help stabilize your personal cycle length.