Sleep Calculator

About this calculator

This sleep calculator suggests bedtimes or wake-up times that line up with 90-minute sleep cycles, after allowing time to fall asleep. Choose whether you know when you want to wake or when you are going to bed.

You can also switch to sleep length mode to find a time that gives an exact amount of sleep, and see the recommended hours of sleep for every age group.

I want to
Settings
minutes
minutes
hours
minutes
Embed this calculator

Paste this code into a Custom HTML block on your site. The calculator fits the width of the block. Adjust the height in the code if you want more room for results.

Find this widget in the publisher directory

Sleep cycles

During the night the brain moves through repeating stages: light sleep, deep sleep and REM sleep, where most dreaming occurs. One full pass takes about 90 minutes. Waking at the end of a cycle, when sleep is lightest, usually feels easier than being pulled out of deep sleep, which causes grogginess known as sleep inertia.

The calculation

The calculator counts backward or forward from your chosen time in whole cycles and adds the time it takes to fall asleep, 15 minutes by default. Five or six full cycles is the recommended night, and 7, 4, 3, 2 and 1 cycles are shown as alternatives.

Bedtime = wake time − fall-asleep time − (cycles × cycle length)
Wake time = bedtime + fall-asleep time + (cycles × cycle length)

Worked example

Wake at 6:00 AM with 90 minute cycles and 15 minutes to fall asleep:

  • 5 cycles (7 h 30 min): 6:00 AM − 15 min − 7 h 30 min = 10:15 PM
  • 6 cycles (9 h): 8:45 PM
  • 7 cycles: 7:15 PM; 4 cycles: 11:45 PM; 3 cycles: 1:15 AM

Going to bed at 10:45 PM instead gives wake-up times of 6:30 AM for 5 cycles and 8:00 AM for 6.

Sleep length mode

If you simply need a set amount of sleep, such as seven and a half hours, the length mode subtracts or adds that duration to your time. It does not add a fall-asleep allowance, so include that in the length if you want it.

Recommended sleep by age

Age groupRecommended
0 to 3 months14 to 17 hours
4 to 12 months12 to 16 hours per 24 hours, including naps
1 to 2 years11 to 14 hours per 24 hours, including naps
3 to 5 years10 to 13 hours per 24 hours, including naps
6 to 12 years9 to 12 hours
13 to 18 years8 to 10 hours
18 to 60 years7 or more hours
61 to 64 years7 to 9 hours
65 years and older7 to 8 hours

These ranges follow the guidance published by the CDC. Individual needs vary, and quality counts as well as quantity.

Limits of the 90 minute rule

Cycle length is an average. It runs from roughly 70 to 110 minutes between people and changes during the night, with deep sleep dominating the first cycles and REM sleep growing toward morning. Treat the suggested times as a good starting point and adjust the cycle length setting if you find a different rhythm works for you.

Tips for better sleep

  • Keep a regular schedule, including weekends.
  • Keep the bedroom dark, cool and quiet.
  • Avoid caffeine in the afternoon and heavy meals close to bedtime.
  • Put screens away for the last half hour before bed.
  • Get daylight in the morning to anchor your body clock.

If you regularly feel unrefreshed, snore loudly or stop breathing during sleep, speak to a doctor, since these can be signs of a sleep disorder.

REM and non-REM sleep

Each cycle moves from light non-REM sleep into deeper slow-wave sleep and then into REM sleep, when the brain is active and vivid dreams occur. Early cycles contain more deep sleep, which supports physical recovery, while later cycles contain longer REM periods tied to memory and mood. Cutting a night short therefore removes mostly REM sleep, and staying up late then sleeping in can leave you with plenty of hours but a disrupted pattern.

Using the times in practice

Set your alarm for the wake time and aim to be in bed with the lights out at the suggested bedtime. If you often fall asleep much faster or slower than 15 minutes, edit the setting for a more accurate result. Shift workers and napping parents can use the sleep length mode to fit a nap or a short night into a schedule, remembering that even a perfectly timed short night is no substitute for regular, sufficient sleep.

Frequently asked questions

How long is a sleep cycle?
About 90 minutes on average, though it varies between about 70 and 110 minutes from person to person.
What time should I go to bed if I wake at 6 AM?
With 90 minute cycles and 15 minutes to fall asleep, 10:15 PM (5 cycles) or 8:45 PM (6 cycles). 11:45 PM gives 4 cycles if you need a shorter night.
Why add 15 minutes?
It is a typical time for adults to fall asleep. Change the setting if you drift off faster or slower.
How many hours of sleep do adults need?
Seven or more hours a night for ages 18 to 60, and 7 to 9 hours for ages 61 to 64.

Formulas and sample results on this page were checked against independent references. Page last reviewed or updated . How we verify calculators. Project led by Shaun Connell.