Sleep Calculator

Sleep Calculator. Enter your wake-up time or bedtime to find your optimal sleep schedule based on 90-minute sleep cycles. The Sleep Calculator shows you the best times to fall asleep or wake up so you rise between cycles — not in the middle of one — leaving you feeling refreshed and alert. Also try the Circadian Rhythm Calculator.

Sleep Calculator inputs
I want to calculate my… *

For Bedtime mode: enter the time you need to wake up. For Wake-Up mode: enter the time you plan to fall asleep.

min

The average person takes about 15 minutes to fall asleep.

min

One full sleep cycle is typically 90 minutes.

Results

Recommended Time

--

Total Sleep Duration

--

Complete Sleep Cycles

--

Option 1 (3 cycles)

--

Option 2 (4 cycles)

--

Option 3 (5 cycles)

--

Option 4 (6 cycles)

--

Results Table

Want to wake up refreshed instead of dragging through the morning? This sleep calculator works backward from the time you need to wake up and finds a bedtime that ends on a 90-minute boundary, so you wake during lighter sleep. Enter when you need to be up or when you go to bed, and you get a sleep schedule built on 90-minute sleep cycles that leaves you energized for the day. See also our Ovulation Date Calculator.

How to Use the Sleep Cycle Calculator

Pick the question you need answered, then follow three quick steps. Entering your bedtime turns it into a wake up time calculator, and entering your morning deadline turns it into a bedtime calculator.

  • Choose wake mode and type the time you must be up, or choose bedtime mode and type when you plan to get into bed.
  • Set how long you usually take to doze off. Most defaults assume about 14 minutes.
  • Press calculate and read the suggested times; the five- and six-cycle options are the ones most adults do best on.

Sleep Calculator Formula: Working Back from Your Alarm

Good sleep timing comes down to simple arithmetic. Count back one 90-minute block for every complete cycle you want, then subtract the minutes you need to fall asleep. Five complete cycles add up to 7.5 hours, which suits most adults.

$$\text{Bedtime} = \text{Wake} - (n \times 90\ \text{min}) - \text{buffer}$$

Here \(n\) is the number of complete cycles. Because the same math runs forward, a bedtime returns the alarm times that land on a cycle boundary, which is why a 6:30 alarm beats one set at a random minute. The result is your ideal bedtime for that day.

The Fall-Asleep Buffer

Nobody drops off the second the light goes out. The gap between lying down and sleeping, called sleep onset latency, is the buffer you subtract. If you tend to fall asleep within 5 minutes, enter 5; if it takes 30, enter 30, since a longer buffer pushes bedtime earlier for the same wake time. Some tools default to a 15-minute allowance instead.

Best Bedtime for a 6:30 AM Alarm

Say you must wake at 6:30 AM and need 20 minutes to nod off. Working back gives these options:

CyclesTotal sleepBedtime
69 h 00 min9:10 PM
57 h 30 min10:40 PM
46 h 00 min12:10 AM
34 h 30 min1:40 AM

The best bedtime here is 10:40 PM: 5 cycles and 7 hours 30 minutes of sleep. Going to bed at 9:10 PM adds a sixth for 6 cycles, while 12:10 AM leaves only 4 cycles, a workable compromise on a busy night.

Heatmap of bedtimes for a 6:30 AM alarm by number of sleep cycles and minutes to fall asleep, with 10:40 PM outlined
Bedtime for a 6:30 AM alarm by cycles and fall-asleep time; the outlined cell is the worked example.

How Sleep Cycles Work Through the Night

Your night is a chain of repeating sleep cycles. Each one drifts from light sleep into deep sleep and ends in REM sleep, the rapid eye movement stage where most dreaming happens. Early cycles hold more slow-wave sleep for the body, later ones tilt toward REM, and your circadian rhythm keeps the pattern on a 24-hour clock. In REM your brain is nearly as active as in wakefulness.

Timeline of a night from a 10:40 PM bedtime through five 90-minute sleep cycles to a 6:30 AM alarm
The 10:40 PM night from the worked example, cycle by cycle.

The Four Sleep Stages in Each of Your Sleep Cycles

N1 is the brief slide into light sleep. N2 follows, with sleep spindles, short bursts of brain waves that prepare you for N3, the deepest stage, when immune function strengthens and physical recovery peaks. REM then closes the cycle, and the immune system benefits as the sequence repeats.

How Long Is One Sleep Cycle?

On average, 90 minutes. Sleep lab studies using polysomnography show a sleep cycle running 80 to 110 minutes, so 90-minute cycles are a strong starting estimate, not a promise. Research and science both suggest refining it with a steady routine.

Wake-Up Time and Sleep Inertia

Sleep inertia is the groggy, sluggish feeling after waking, and it comes mostly from deep sleep being interrupted. An alarm that lands in N3 can impair cognitive function for 20 minutes or more, while one timed to the end of a cycle catches you in lighter sleep and cuts the grogginess. Pick when you wake up with that in mind and performance, mood and focus all start the day stronger.

REM Sleep and Your Bedtime

REM sleep is back-loaded: the first REM period begins 70 to 90 minutes after you drift off and lasts about 10 minutes, while the longest stretches arrive in the final cycles. Trimming a six-cycle night to four removes nearly half your REM but little deep sleep, which hurts memory consolidation and emotional regulation. Chronic sleep deprivation compounds the loss, so protect REM with an earlier bedtime and a day of recovery.

How Much REM Sleep Do You Need?

Roughly a quarter of a night, which is about two hours across 7.5 hours of sleep. That share is where most vivid dreaming happens, and it grows only when the night runs long enough to reach the final cycles.

Planning a 5:50 AM Alarm with the Bedtime Calculator

Dana has a 6:35 AM train, so the alarm is set for 5:50 AM and the question is when to turn the lights off. Over a week of notes, Dana's fall-asleep buffer averages 11 minutes, so that is what goes into this sleep calculator, along with five complete cycles, the usual choice for adults.

The arithmetic: 5 × 90 = 450 minutes, plus the 11-minute buffer, is 461 minutes, or 7 h 41 min, before the alarm. Counting back from 5:50 AM lands on 10:09 PM. Cross-check forward: asleep at 10:20 PM plus 450 minutes is exactly 5:50 AM, so the alarm falls on a cycle boundary and sleep inertia should be light. Seven and a half hours also sits inside the 7-9 hours that adults are advised to get.

Now the sensitivity rerun. Change only the buffer:

Time to fall asleepTotal before alarmBedtime
11 min7 h 41 min10:09 PM
25 min7 h 55 min9:55 PM

The number to watch is that buffer, because every extra minute moves the bedtime a full minute earlier, while the cycle count moves it 90. A four-cycle option exists at 11:39 PM, but it gives up 90 minutes of REM-heavy sleep and starts a sleep debt, so I would use it rarely.

One caveat: if Dana normally feels alert at 80 minutes into a cycle, the 90-minute assumption drifts. After five cycles that is 50 minutes of error, enough to land the alarm mid-cycle with grogginess anyway. In that case, trust a week of real mornings over the calculated bedtime and shift it in 15-minute steps.

Free Sleep Calculator Settings and Sleep Needs by Age

Any tool like this is only as accurate as its settings. Beyond the fall-asleep buffer, check the age setting and cycle length. With an online sleep calculator you can shorten cycles to 80 or 85 minutes if you wake naturally early, or stretch them to 95 or 100. Other sleep calculators work the same way, but science puts healthy sleep duration at 7-9 hours for adults, yet recommended sleep and personal sleep needs still differ from person to person.

How Much Sleep Do You Need by Age?

Age groupAge rangeRecommended sleep
Newborn0-3 months14-17 hours
Infant4-12 months12-16 hours
Toddler1-2 years11-14 hours
Teen13-18 years8-10 hours
Adult18-64 years7-9 hours

Most adults need seven to nine hours, which is five or six cycles, while teens need more.

Better Sleep Quality and a Steadier Sleep Schedule

Consistent timing lifts sleep quality more than any single trick, and the calculator makes it repeatable: enter the same wake time every day and you get the same bedtime. A regular sleep schedule supports heart health and mental health, helps with weight management, and lowers the risk of depression, anxiety, obesity, diabetes and hypertension, with more energy, better rest and less stress.

Sleep Debt and Shift Workers

Sleep debt builds when you miss cycles night after night, and one long lie-in does not repay it. A shift worker should run the calculator with each shift's wake time, anchor sleep to the same cycle math and add a short nap before a late shift, since sleep deprivation hits that group hardest. You might also find our use the Sleep Cycle Calculator useful.