Sleep Calculator

Find the best time to go to sleep or set your alarm. The calculator lines up your night with 90-minute sleep cycles so you wake up between cycles, feeling fresher.

Sleep cycle calculator
I want to
min

TimeSleep

Based on an average sleep cycle of 90 minutes. Real cycles vary from about 70 to 120 minutes, so treat the times as a guide. Most adults need 7 to 9 hours of sleep a night, which is 5 or 6 cycles.

On this page

A sleep calculator helps you choose a bedtime or alarm time that lands at the end of a sleep cycle, so you wake up feeling refreshed instead of groggy. Sleep runs in cycles of roughly 90 minutes. Waking in the middle of deep sleep leaves you foggy, while waking between cycles feels much easier. Enter the time you need to get up, or the time you’re going to bed, and the calculator shows the best times based on complete cycles plus the time it takes you to fall asleep.

For example, to wake up at 7:00 AM and allowing 15 minutes to fall asleep, the best bedtimes are 9:45 PM for six full cycles (9 hours) or 11:15 PM for five cycles (7.5 hours).

How to use the sleep calculator

  1. Choose what you want to work out: when to go to bed for a set wake-up time, when to wake up for a set bedtime, or when to wake up if you go to sleep right now.
  2. Enter the time. Times are shown in both 12-hour and 24-hour format.
  3. Adjust the time it usually takes you to fall asleep. The average is 10 to 20 minutes, and 15 is the default.
  4. Press Calculate to see the recommended times for 3 to 6 full sleep cycles.

How the calculation works

The calculator adds or subtracts whole 90-minute cycles plus your time to fall asleep:

  • Bedtime = wake-up time − (number of cycles × 90 minutes) − time to fall asleep
  • Wake-up time = bedtime + time to fall asleep + (number of cycles × 90 minutes)

Going to bed at 11:00 PM and taking 15 minutes to fall asleep means sleep begins at 11:15 PM. Five cycles of 90 minutes is 7 hours 30 minutes, so the ideal alarm time is 6:45 AM. Six cycles would take you to 8:15 AM.

What happens during a sleep cycle

Each night, you move through four to six cycles, each made up of several stages:

StageWhat happensShare of the night
N1 (light sleep)The transition from waking to sleep. Lasts a few minutes, and you’re easily woken.About 5%
N2 (light sleep)Heart rate and body temperature drop. The brain produces sleep spindles linked to memory.About 45 to 55%
N3 (deep sleep)Slow-wave sleep, when the body repairs tissue and strengthens the immune system. Hardest to wake from.About 15 to 25%
REM sleepRapid eye movement and vivid dreaming. Important for learning, memory and mood.About 20 to 25%

Deep sleep dominates the first half of the night, and REM periods grow longer towards morning. That’s why cutting sleep short at either end has different effects: going to bed late reduces deep sleep, while waking too early cuts into REM.

Why waking between cycles helps

If your alarm goes off during deep sleep, you’re likely to feel sleep inertia, the heavy, disoriented feeling that can last 15 to 30 minutes or longer. Waking at the end of a cycle, when sleep is lightest, usually feels easier, even if you slept slightly less.

How much sleep do you need?

The US National Sleep Foundation recommends these amounts of sleep in each 24 hours:

AgeRecommended sleep
Newborns (0 to 3 months)14 to 17 hours
Infants (4 to 11 months)12 to 15 hours
Toddlers (1 to 2 years)11 to 14 hours
Preschoolers (3 to 5 years)10 to 13 hours
School-age children (6 to 13 years)9 to 11 hours
Teenagers (14 to 17 years)8 to 10 hours
Young adults (18 to 25 years)7 to 9 hours
Adults (26 to 64 years)7 to 9 hours
Older adults (65 and over)7 to 8 hours

For most adults, that means five cycles (7.5 hours) or six cycles (9 hours). Regularly sleeping less than 7 hours is linked to weight gain, high blood pressure, diabetes, heart disease, depression and a weaker immune system, as well as slower reactions and more accidents.

Tips for better sleep

  • Keep a regular schedule. Going to bed and getting up at the same time every day, including weekends, sets your body clock.
  • Get daylight in the morning. Bright light early in the day helps you feel sleepy at the right time in the evening.
  • Limit caffeine after midday. Caffeine can stay active in your body for six hours or more.
  • Go easy on alcohol. It may help you fall asleep, but it disrupts sleep later in the night, especially REM.
  • Make your bedroom dark, quiet and cool. Around 16 to 19 °C (60 to 67 °F) suits most people.
  • Put screens away. Stop using phones and laptops 30 to 60 minutes before bed.
  • Don’t lie awake for long. If you can’t sleep after about 20 minutes, get up and do something calm in dim light until you feel sleepy.
  • Keep naps short. 20 minutes in the early afternoon refreshes without entering deep sleep.

Sleep debt and catching up

Losing an hour or two of sleep a night builds up a sleep debt. A lie-in at the weekend can help a little, but it doesn’t fully reverse the effects of regular short sleep, and a big shift in your weekend schedule can make Monday mornings harder. The best fix is a steady, sufficient amount of sleep most nights.

Your chronotype

People naturally differ in when they prefer to sleep. Morning types, or larks, feel alert early and sleepy early, while evening types, or owls, prefer later bedtimes and wake-ups. Teenagers tend to shift later, and older adults earlier. Where possible, choosing a schedule that suits your natural timing makes sleep easier, and the calculator can help you find cycle-friendly times within it.

When to see a doctor

Talk to a doctor if you regularly struggle to fall or stay asleep for more than three months, feel very sleepy during the day despite enough time in bed, snore loudly or stop breathing during sleep, or have an uncomfortable urge to move your legs at night. These can be signs of insomnia, sleep apnoea or restless legs syndrome, which are common and treatable.

Naps

A short nap can improve alertness and mood, especially if you didn’t sleep well. Naps of 10 to 20 minutes are usually best because you wake before entering deep sleep, so you’re less likely to feel groggy. A nap of about 90 minutes allows a full sleep cycle, which can also leave you refreshed but is harder to fit into the day. Avoid napping late in the afternoon or evening, as it can make it harder to fall asleep at night.

Sleep for children and teenagers

Children and teenagers need more sleep than adults. The American Academy of Sleep Medicine recommends 9 to 12 hours a night for children aged 6 to 12 and 8 to 10 hours for teenagers aged 13 to 18. Teenagers’ body clocks naturally shift later, so they often feel sleepy later at night and struggle with early mornings. A consistent bedtime, a screen-free hour before bed and a dark, quiet bedroom help young people get the sleep they need.

Shift work

If you work night shifts, try to keep the same sleep schedule on work days, block out light with blackout curtains, and avoid caffeine in the last few hours before sleep.

Sleep and caffeine

Caffeine can stay in your system for many hours. Avoiding coffee, tea, cola and energy drinks for at least six hours before bed helps you fall asleep more easily.

Sources

  • Hirshkowitz M, et al. National Sleep Foundation’s sleep time duration recommendations. Sleep Health, 2015; 1: 40–43.
  • Watson NF, et al. Recommended amount of sleep for a healthy adult: a joint consensus statement of the American Academy of Sleep Medicine and Sleep Research Society. Sleep, 2015; 38: 843–844.
  • Patel AK, Reddy V, Shumway KR, Araujo JF. Physiology, sleep stages. StatPearls, 2024.
  • Centers for Disease Control and Prevention. Sleep and sleep disorders.

Related calculations

You may also find the calories burned calculator useful to estimate calories burned in over 30 activities, while the pace calculator lets you work out your running pace, finish time or distance.

Frequently asked questions

About 90 minutes on average, though cycles range from roughly 70 to 120 minutes and vary through the night.

Allowing 15 minutes to fall asleep, aim for 8:45 PM (6 cycles) or 10:15 PM (5 cycles).

Allowing 15 minutes to fall asleep, aim for 9:45 PM (6 cycles, 9 hours) or 11:15 PM (5 cycles, 7.5 hours).

For most adults, no. Experts recommend at least 7 hours a night. Six hours is four complete cycles, which is fine occasionally but not every night.

Seven hours or more is better for health. If you only have time for about 6 to 7 hours, waking after four full cycles (6 hours) may feel easier than waking mid-cycle.

Most healthy adults fall asleep in 10 to 20 minutes. Taking under 5 minutes may mean you're sleep deprived, and regularly over 30 minutes may suggest insomnia.

A 20-minute nap boosts alertness without grogginess. A 90-minute nap covers a full cycle. Naps of 30 to 60 minutes often end in deep sleep and leave you groggy.