Sleep Calculator

The Sleep Calculator helps you determine the best times to fall asleep or wake up based on the science of 90-minute sleep cycles. This tool is useful for anyone wanting to improve their sleep quality and wake up feeling more refreshed.

S. Siddiqui

Edited by

S. SiddiquiFounder & Editor-in-Chief
Sources:CDCNIHWHOMayo ClinicUpdated May 2026

Disclaimer: This tool is for informational purposes only and does not constitute medical advice, diagnosis, or treatment. Results are estimates based on population averages. Always consult a qualified healthcare professional before making health decisions.

We add 15 minutes to fall asleep, then calculate 90-minute sleep cycles.

Wake up at…

7:45 AM

9 hrs — 6 cycles

Ideal

6:15 AM

7.5 hrs — 5 cycles

Good

4:45 AM

6 hrs — 4 cycles

Minimum

3:15 AM

4.5 hrs — 3 cycles

Avoid

How sleep cycles work

Each 90-minute cycle moves through light sleep, deep sleep, and REM. Waking mid-cycle leaves you groggy — waking at the end of a cycle feels natural. The average adult needs 5–6 cycles (7.5–9 hrs).

What Is the Sleep Calculator?

The sleep calculator helps you figure out the best time to go to sleep or wake up based on your sleep cycles. Rather than just counting hours, it works around the natural 90-minute cycles your brain moves through during sleep, each comprising lighter and deeper stages including REM (rapid eye movement) sleep. Waking up at the end of a complete cycle rather than mid-cycle tends to leave you feeling more refreshed and alert, even if the total sleep time is the same. The Sleep Foundation explains this relationship between sleep architecture and morning alertness in detail.

According to the CDC guidance on sleep duration, adults aged 18 to 60 need at least 7 hours of sleep per night for optimal health. Consistently sleeping less than 7 hours is associated with increased risk of obesity, cardiovascular disease, diabetes, and mental health problems. This tool helps you plan your sleep and wake times to maximise both duration and the quality of how you feel when you get up.

How to Use the Sleep Calculator

  1. Choose whether you want to work out what time to wake up or what time to go to sleep.
  2. Enter your target wake time or bedtime.
  3. The calculator adds approximately 15 minutes for the time it takes to fall asleep, then counts backwards or forwards in 90-minute increments.
  4. It returns a list of optimal sleep or wake times corresponding to 4, 5, or 6 complete sleep cycles.
  5. Select the option that best fits your schedule while prioritising at least 5 complete cycles (7.5 hours) where possible.

Sleep Cycle Methodology

A typical sleep cycle lasts approximately 90 minutes and moves through four stages: N1 (light sleep), N2 (consolidated light sleep), N3 (deep slow-wave sleep), and REM sleep. The proportion of time spent in each stage changes through the night: early cycles contain more deep sleep, while later cycles contain more REM sleep, which is associated with memory consolidation and emotional regulation.

The calculator assumes a sleep onset latency of 15 minutes, which is the average time it takes most people to fall asleep after going to bed. It then schedules wake times at the end of 4, 5, or 6 complete cycles:

Cycles Total sleep time Notes
4 cycles 6 hours Below recommended minimum for adults, suitable for recovery naps
5 cycles 7.5 hours Within the recommended range for most adults
6 cycles 9 hours Suitable for those recovering from sleep debt or those with higher needs

Key Considerations

Sleep cycle length is not fixed at exactly 90 minutes for everyone. It can range from 70 to 110 minutes depending on the individual and varies over the course of the night, with cycles later in the night tending to be slightly longer. Given that, the times this calculator produces are approximations that work well as planning tools but may not correspond precisely to your personal cycle length.

Sleep quality matters as much as duration. Even with the right number of hours, fragmented sleep caused by noise, light, sleep apnoea, or frequent waking reduces the restorative benefit of each cycle. What is more, consistency in wake time is one of the most important factors in regulating your circadian rhythm. Waking at the same time every day, even at weekends, helps anchor your body clock and tends to make falling asleep and waking up more natural over time.

Caffeine, alcohol, bright screen light in the hour before bed, and large meals close to bedtime can all interfere with sleep onset and quality. On top of that, if you consistently struggle to fall asleep or stay asleep despite good sleep habits, it is worth speaking to a GP, as conditions such as insomnia disorder and sleep apnoea are treatable and have significant effects on health when left unaddressed.

What to Do With Your Result

Choose a sleep or wake time from the calculator results that fits your daily schedule and allows for at least 5 complete cycles. Set a consistent alarm and, where possible, a consistent bedtime. Keep track of how you feel after each option over a week or two, as individual responses to different sleep durations vary. If you find you feel best after 7.5 hours on weekdays but need more at weekends, that may be a sign of accumulated sleep debt earlier in the week that is worth addressing by moving your weekday bedtime slightly earlier.

Conclusion

The sleep calculator is a practical way to plan your sleep schedule around your body's natural cycles rather than arbitrary round numbers. By timing your sleep in complete 90-minute increments and accounting for the time it takes to fall asleep, it gives you the best chance of waking up at a naturally lighter stage of sleep and starting your day feeling genuinely rested. Pair it with consistent sleep and wake times for the greatest benefit over time.

Last reviewed: May 31, 2026
Founder's Real-World Experience
S. Siddiqui

S. Siddiqui

Founder & Editor-in-Chief, YourToolsBase

How the 90-minute cycle rule changed when I set my alarm

I had been waking up exhausted for months despite getting seven to eight hours of sleep. I kept track of when I fell asleep and when I woke up and noticed no obvious pattern. When I built this calculator and looked into sleep cycle research through the Sleep Foundation's guidance on sleep cycles, I came across something I had not paid attention to before: waking up mid-cycle, particularly during deep NREM sleep, produces significantly more grogginess than waking at the end of a 90-minute cycle. The calculator works backwards from a target wake time to suggest bedtimes that land you at a cycle boundary.

I tested this personally across two weeks in January 2026. I aimed to wake at 06:45 and the calculator suggested bedtimes of either 23:15 for five full cycles or 21:45 for six. I went with 23:15. In the first week my alarm woke me mid-cycle most mornings. In the second week, after being more consistent about the 23:15 bedtime, I started waking naturally a few minutes before the alarm on four out of seven mornings. That is not a controlled clinical study, but the felt difference was noticeable enough that I kept the routine.

What I came up with is that the problem had never been the total hours. It had been the timing. Shifting my bedtime by 30 minutes to align with cycle boundaries made more difference than any of the supplements or wind-down routines I had tried before.

2-week personal testWoke naturally 4 of 7 morningsBedtime shifted 30 minutes
Also used alongside: BMR Calculator

Frequently Asked Questions

How many hours of sleep do adults need?
The CDC recommends at least 7 hours of sleep per night for adults aged 18 to 60. Adults aged 61 to 64 are advised to get 7 to 9 hours, and those 65 and older are recommended 7 to 8 hours. These are minimum recommendations based on population health data, and some individuals naturally function best with slightly more or less sleep than the average figure suggests.
What is a sleep cycle and how long does it last?
A sleep cycle is a sequence of sleep stages that the brain moves through during a night of sleep. It typically lasts around 90 minutes and includes light sleep (N1 and N2), deep slow-wave sleep (N3), and REM sleep. A full night of sleep usually consists of 4 to 6 complete cycles, with the proportion of deep sleep decreasing and REM sleep increasing in later cycles.
Why do I feel more tired after 8 hours than after 7.5 hours of sleep?
This is likely because waking up mid-cycle, particularly during a deep sleep stage, leaves you feeling groggy and disoriented, a phenomenon called sleep inertia. Waking at the end of a complete 90-minute cycle, even if the total sleep time is slightly shorter, tends to result in feeling more alert and refreshed. The sleep calculator is designed to help you time your wake alarm to coincide with the end of a cycle.
What is sleep debt and can it be recovered?
Sleep debt is the cumulative shortfall between the sleep you need and the sleep you are actually getting. Research suggests that short-term sleep debt of a few days can largely be recovered through subsequent longer or better-quality sleep. However, chronic sleep deprivation over weeks or months has lasting effects on cognitive function and health that are not fully reversed by a single night of catch-up sleep. Consistent adequate sleep is more effective than trying to compensate at weekends.
Does napping count toward my daily sleep total?
Short naps of 10 to 30 minutes can reduce daytime fatigue without significantly affecting night-time sleep quality. Longer naps, particularly those over 90 minutes, may reduce sleep pressure and make it harder to fall asleep at night. If you nap regularly, aiming for the end of a cycle (roughly 90 minutes) or a very short power nap (around 20 minutes) tends to leave you feeling less groggy than waking mid-cycle.
What time should I go to sleep if I need to wake up at 6am?
Based on 90-minute cycles and a 15-minute sleep onset time, the ideal bedtimes for a 6am wake-up are approximately 8:45pm (6 cycles, 9 hours), 10:15pm (5 cycles, 7.5 hours), or 11:45pm (4 cycles, 6 hours). For most adults, 10:15pm is the optimal target as it delivers 7.5 hours of sleep covering 5 complete cycles, which falls within the recommended range.

Formula

Rate This Tool

Was this tool helpful?

Be the first to rate this tool

💡 Pro Tip

Sleep consistency matters more than duration. Going to bed and waking at the same time every day — even weekends — dramatically improves sleep quality.

About the Author

S. Siddiqui

S. Siddiqui

Founder & Editor-in-Chief

LinkedIn Profile

S. Siddiqui is the founder and editor-in-chief of YourToolsBase, overseeing all content, tool accuracy, and editorial standards.

View full profile

Authoritative Sources

Formulas and data in this tool are based on guidelines from the above sources.