Skip to content

Sleep Calculator: Best Time to Go to Bed and Wake Up

Tell it when you want to wake up and get times to go to bed, or tell it when you're going to bed and get times to wake up. It counts sleep cycles of about 90 minutes plus the time you take to fall asleep, marks the options that meet the recommended hours for your age, and adds a nap planner, a mode for after a night shift and a reminder for your calendar.

Works anywhere in the world, wherever you are.

What do you want to work out?
Settings: cycle, time to fall asleep and clock

How long you usually take. It's added before the first cycle.

90 is an average; real cycles run from about 70 to 120 minutes.

Clock

Times to go to bed

For 26–60 years: 7–9 h of sleep (what every source covering that age agrees on). Tap an option to use it for the calendar reminder.

Bedtime reminder

An event from 11:15 PM to 7:00 AM in your calendar, with a reminder before bed.

Repeat

Opens in Google Calendar, Apple Calendar, Outlook and others. The file is made on your device; some apps apply their own default reminder instead of the file's.

This is general guidance, not medical advice. If you often sleep badly, snore loudly, wake up gasping or feel sleepy in the day despite enough sleep, talk to a health professional. Everything is worked out in your browser; nothing is sent.

About this calculator

How it works: cycles of about 90 minutes

Through the night, sleep runs through the same stages several times: light sleep, deep sleep and REM sleep, with REM periods getting longer toward morning (NIH/NINDS, “Brain Basics: Understanding Sleep”). Each full round is a cycle. The reference textbook Principles and Practice of Sleep Medicine (chapter by Carskadon and Dement) puts the first cycle at about 70–100 minutes and later ones at about 90–120.

So 90 minutes is a round average, not an exact clock. The calculator uses it by default and lets you set anything from 70 to 120 minutes, along with the time you usually take to fall asleep (15 minutes unless you change it).

Example: to wake up at 7:00 AM with 15 minutes to fall asleep, the times to go to bed are 9:45 PM (6 cycles, 9 h of sleep), 11:15 PM (5 cycles, 7 h 30 min), 12:45 AM (4 cycles) and 2:15 AM (3 cycles). If you go to bed at 11:00 PM, the times to wake up are 3:45 AM, 5:15 AM, 6:45 AM and 8:15 AM.

Waking at the end of a cycle is an approximation: nothing in a browser can tell which stage you're in. If the times feel slightly off, adjust the cycle length until they match how you feel.

How many hours of sleep by age

Adults: the American Academy of Sleep Medicine (AASM) and the Sleep Research Society recommend that adults aged 18 to 60 sleep 7 or more hours per night on a regular basis (Watson et al., Sleep 2015). That statement gives no figure for people over 60.

Children and teens, per the AASM (Paruthi et al., Journal of Clinical Sleep Medicine 2016), per 24 hours: 4 to 12 months, 12–16 h; 1 to 2 years, 11–14 h; 3 to 5 years, 10–13 h, naps included at those three ages; 6 to 12 years, 9–12 h; 13 to 18 years, 8–10 h. There is no recommendation under 4 months, because sleep varies so widely.

The US National Sleep Foundation (Hirshkowitz et al., Sleep Health 2015) recommends: newborns 0 to 3 months, 14–17 h; 4 to 11 months, 12–15 h; 1 to 2 years, 11–14 h; 3 to 5 years, 10–13 h; 6 to 13 years, 9–11 h; 14 to 17 years, 8–10 h; 18 to 64 years, 7–9 h; and 65 and older, 7–8 h.

Where both sources cover an age, the calculator marks as “recommended” what meets both. For kids, the “Hours by age” mode works out a bedtime window: a 3- to 5-year-old who wakes at 7:00 AM and naps for 1 hour should be in bed between 6:45 PM and 9:45 PM; a 6- to 12-year-old who wakes at 6:30 AM, between 7:15 PM and 9:15 PM.

Naps: 10, 20 or 90 minutes

One study compared afternoon naps of 5, 10, 20 and 30 minutes after a short night (Brooks and Lack, Sleep 2006). The 10-minute nap improved alertness and performance right away; the 20- and 30-minute naps also helped, but only after a spell of grogginess (sleep inertia), and the 5-minute nap did little.

A nap of about 90 minutes tries to complete one whole cycle so you don't wake from deep sleep. It's the same approximation as at night. The planner adds the time to fall asleep: a 20-minute nap starting at 2:00 PM, with 15 minutes to fall asleep, puts the alarm at 2:35 PM.

If you work nights

Enter when your shift ends, how long it takes to get home and wind down, when the next shift starts and how long you need to get up and get there. The calculator tells you when to go to bed, the latest you can wake up and how many full cycles fit. With a shift ending at 7:00 AM, an hour to get home and wind down, the next shift at 11:00 PM and 90 minutes to get ready, you go to bed at 8:00 AM and must wake by 9:30 PM; 5 cycles would wake you at 3:45 PM and 6 at 5:15 PM.

If the hours recommended for your age don't fit, it tells you. Daytime sleep is harder: occupational-health material such as NIOSH's (US CDC) training for nurses on shift work stresses a dark, quiet bedroom and protecting that sleep time.

The reminder in your calendar

Pick an option and download an .ics file: it creates an event from bedtime to wake-up, every day or just once, with a reminder at bedtime or 15, 30 or 60 minutes before. It opens in Google Calendar, Apple Calendar, Outlook and most calendar apps.

The event uses the calendar standard's “floating” local time (RFC 5545), so it stays at 10:30 PM even if you travel to another time zone. It's marked as free so it doesn't block your schedule. The file is made on your device; nothing is sent.

Important limitations

  • 90-minute cycles are an average from adult studies: your real cycle can run from about 70 to 120 minutes and changes through the night. The times are an approximation, not a measurement.
  • The calculator doesn't track your sleep or use sensors: it can't know which stage you're in.
  • The hours by age are general recommendations for healthy people. Some people, conditions and life stages need different amounts.
  • It isn't medical advice and doesn't replace a consultation. If you often sleep badly, snore loudly, wake up gasping or feel very sleepy during the day, talk to a health professional.
  • Some calendar apps ignore the file's reminder and apply their own default one.

Frequently asked questions

Because it's the most quoted average. According to Principles and Practice of Sleep Medicine, the first cycle lasts about 70–100 minutes and later ones about 90–120. If the times don't suit you, change the cycle length in the settings.

The AASM and the Sleep Research Society recommend 7 or more hours per night on a regular basis for adults aged 18 to 60. The National Sleep Foundation gives 7–9 hours from 18 to 64 and 7–8 hours from 65.

It depends on age. Per the AASM, per 24 hours: 11–14 h at 1 to 2 years and 10–13 h at 3 to 5 years (naps included), 9–12 h at 6 to 12 years and 8–10 h at 13 to 18. The “Hours by age” mode gives you the bedtime window from the time they wake up.

With 90-minute cycles and 15 minutes to fall asleep: 8:45 PM (6 cycles), 10:15 PM (5 cycles) or 11:45 PM (4 cycles). For an adult, the first two meet the recommended 7 or more hours.

In Brooks and Lack's study (2006), a 10-minute nap gave the most immediate benefit; 20- and 30-minute naps helped after a spell of grogginess. One of about 90 minutes aims to complete a whole cycle. The planner tells you when to set the alarm.

Everything is worked out in your browser. Your options are remembered only on this device and go in the Share link if you use it; the calendar file is made on your device and isn't sent to any server.

This calculation runs in your browser and is never sent to a server. Your last values may be saved on your device only, for convenience. Results are estimates and are not financial, tax, accounting or legal advice.