Sleep Calculator

Tell it when you need to get up, or when you're going to bed, and get times that line up with whole sleep cycles.

 

Recommended: 7 or more hours a night

Bedtimes include 15 minutes to fall asleep and count each cycle as 90 minutes. Pick a time to see that night on the timeline.

Adjust for how you sleep
Minutes to fall asleep
min
Sleep cycle length
min

A cycle averages about 90 minutes, but real cycles run about 80 to 100 minutes and change through the night.

A planning guide, not medical advice. If you often feel tired after enough sleep, or struggle to fall or stay asleep, a doctor can help.

How we calculate this: Health calculatorsLast reviewed:

How bedtimes are worked out from a wake-up time

Start with the time you have to be up, count back a whole number of sleep cycles, then take off a little extra for falling asleep. With five 90-minute cycles and a 15-minute allowance, a 7:00 a.m. alarm means getting into bed at 11:15 p.m. Six cycles moves that to 9:45 p.m.

Bedtime = Wake-up time − (Cycles × 90 minutes) − 15 minutes
Cycles = how many full sleep cycles you want, usually 5 or 6 for adults
90 minutes = the length of an average cycle
15 minutes = the time allowed for falling asleep

Example: An alarm at 6:30 a.m.

  1. Six cycles: 6 × 90 = 540 minutes, or 9 hours
  2. Add 15 minutes to fall asleep: 9 hours 15 minutes
  3. 6:30 a.m. minus 9 hours 15 minutes = 9:15 p.m.
  4. Five cycles instead: 7 hours 30 minutes plus 15 minutes, so 10:45 p.m.

Aim to be in bed by 9:15 p.m. for 9 hours of sleep, or by 10:45 p.m. for 7.5 hours.

The same math runs forward when you know your bedtime instead. Lights out at 11:00 p.m. plus 15 minutes, then five cycles, gives 6:45 a.m. Six cycles gives 8:15 a.m. If you're heading to bed right now, the calculator starts from the current time on your device.

The 15 minutes is an allowance, not a rule. If you usually drop off within a few minutes, or tend to read for half an hour first, change it so the times match your real nights.

What happens during one sleep cycle

Sleep isn't one steady state. Through the night you move through three stages of non-REM sleep and then a stretch of REM sleep, and that loop is one cycle. The National Heart, Lung, and Blood Institute puts a full loop at about 80 to 100 minutes, with four to six loops in a typical night and sometimes brief awakenings between them.

The stages within each cycle
StageWhat's happeningWhen it's most common
Non-REM stage 1The changeover from waking to sleep; usually lasts several minutesAt the start of the night and after brief awakenings
Non-REM stage 2Light sleep; heart rate and breathing slow and body temperature dropsThroughout; it fills more of each cycle than any other stage
Non-REM stage 3Deep, slow-wave sleep; it can be hard to wake fromLonger stretches in the first half of the night
REM sleepEyes move quickly, the brain is nearly as active as when awake, and most dreaming happensFirst about 90 minutes after falling asleep, then in longer periods toward morning

That pattern is the reason cycle timing gets attention. Deep sleep is the stage when it can be hard to wake someone, and an alarm that lands in it can leave you feeling rough. Timing the alarm for the end of a cycle is a way to aim away from it.

Why 90 minutes is only an average

Ninety minutes sits in the middle of the 80 to 100 minute range, so it's a sensible default, but nobody's cycles are stamped out like clockwork. Cycle length differs between people and from night to night, and the mix of stages changes as the night goes on. The error also adds up: if your cycles run 80 minutes, five of them end 50 minutes earlier than the 90-minute math says.

So treat the times as a starting point and test them. Pick one wake-up time, go to bed at the matching time for a week, and notice how you feel when the alarm goes off. If mornings are still a struggle, try moving the bedtime 15 minutes either way, or change the cycle length setting in the calculator.

Total sleep matters more than perfect timing. If you need at least 7 hours, five cycles that end a little off schedule beat four cycles that end on the dot.

Making a new bedtime stick

A calculated bedtime only helps if you actually get into bed then. The advice from NINDS is practical: keep the same sleep and wake times every day, keep caffeine and nicotine for earlier in the day, and skip alcohol before bed. A few habits make the new time easier to keep.

  • Fix the wake-up time first, weekends included, and let the bedtime follow from it.
  • Start winding down about half an hour before the bedtime. A short, quiet session with the Meditation Timer works as a signal that the day is over.
  • Keep the bedroom for sleep: dim, quiet, a comfortable temperature, and no TV or phone in bed.
  • Exercise most days, but not within a few hours of bedtime.
  • If you can't sleep, get up and do something calm, like reading, until you feel tired, instead of lying there watching the clock.
  • For a short daytime nap, the Alarm Clock in a browser tab is handy. For the morning, use your phone's built-in alarm, which rings even when the screen is locked.

See a doctor if you have trouble sleeping most nights or feel unusually tired during the day despite enough hours. Most sleep disorders can be treated.

Sources and further reading

How to use it

  1. 1Choose whether you know your wake-up time or your bedtime, or pick Sleep now to start from the current time.
  2. 2Enter the time and your age group. Change the minutes to fall asleep if 15 doesn't sound like you.
  3. 3Pick a time from the list. Times that give the recommended hours of sleep for your age are marked.

Questions

How long is one sleep cycle?

About 90 minutes on average, but it varies. The National Heart, Lung, and Blood Institute says a cycle runs about 80 to 100 minutes and most people go through four to six a night. You can set your own cycle length in the calculator.

Is it bad to wake up in the middle of a cycle?

It isn't harmful, but it can feel rough. Deep sleep comes mostly early in the night and can be hard to wake from, so lining the alarm up with the end of a cycle aims to avoid it. Cycle lengths vary, so treat the times as a guide. Getting enough total sleep matters more than hitting an exact minute.

How many hours of sleep do I need?

The CDC recommends 7 or more hours a night for adults aged 18 to 60, 7 to 9 hours from 61 to 64, and 7 to 8 hours from 65. Teens aged 13 to 17 need 8 to 10 hours, and children aged 6 to 12 need 9 to 12 hours.

Also handy: Online Alarm Clock, Meditation Timer, Kilograms to Pounds Converter