What time should you go to bed to wake up rested?
Sleeping in full cycles of about 90 minutes helps you wake up from light sleep instead of the middle of deep sleep. Pick when you want to wake up or fall asleep and this sleep calculator gives you the best times, with your night drawn stage by stage.
01 What do you want to calculate?
02 Tune it to your body
03 Your night, stage by stage
—
- Awake
- REM
- N1 light
- N2 light
- N3 deep
Illustrative: this is how a typical night is distributed. Deep sleep (N3) dominates the first cycles and REM gets longer toward morning. Your actual night changes with age, stress, alcohol or exercise.
04 Facts worth knowing
What happens while you sleep
Eight science-backed facts that explain why the time your alarm goes off matters as much as how many hours you sleep.
Cycles of about 90 minutes
Every night you go through four to six cycles. They last 90 minutes on average, though they can range from 80 to 110 depending on the person and the night.
Four stages per cycle
N1 is the transition (a few minutes), N2 takes up about half the night, N3 is deep sleep, and REM is when you dream most vividly.
Sleep inertia
If your alarm goes off during deep sleep, you can feel groggy for anywhere from a few minutes to half an hour or more. At the end of a cycle, sleep is lighter.
Caffeine lasts longer than you think
Its half-life is about 5 hours (2 to 10 depending on the person). A coffee at 4 PM still has about half its effect at 9 PM.
Light and screens at night
Bright light, including the blue light from screens, delays melatonin. Dim the lights and screen brightness an hour before bed and get natural light in the morning.
Naps of 20 or 90 minutes
A 10 to 20 minute nap recharges you without leaving you groggy. If you need more, complete a full cycle of about 90 minutes. Avoid naps late in the afternoon.
Cool room: 64 to 68 °F (18 to 20 °C)
To fall asleep, your body temperature drops slightly. A cool, dark, quiet bedroom makes that shift easier.
Consistency counts
Going to bed and getting up at the same time, weekends included, stabilizes your body clock. Staying up late on Saturday feels like a little jet lag.
Sleep hygiene in five habits
- Use your bed for sleep. If you can't fall asleep within about 20 minutes, get up, do something calm in dim light and come back when you feel sleepy.
- Eat a light dinner two or three hours before bed and avoid alcohol at night: it helps you nod off, but it fragments sleep in the second half of the night.
- Move during the day. Regular exercise improves sleep; if it's very intense, try to finish a few hours before bedtime.
- Build a short routine of 20 to 30 minutes: a warm shower, reading on paper, stretching or slow breathing. Always in the same order.
- Keep your phone out of bed. Turn on night mode and don't check email or social media right before sleep.
If it takes you more than 30 minutes to fall asleep, or you wake up and can't get back to sleep three or more nights a week for months (persistent insomnia). If you snore loudly with pauses in your breathing, wake up gasping or feel very sleepy during the day even after enough sleep (possible sleep apnea). Also if you nod off unintentionally while driving.
This calculator is for information only and is not a substitute for advice from a healthcare professional.
Three steps and done
- 01
Choose what you want to know
If you already have a wake-up time, use “I want to wake up at…”. If you know when you're going to bed, use “I want to fall asleep at…” or the “I'm going to sleep now” button.
- 02
Tune it to your body
Change how many minutes it takes you to fall asleep and how long your cycles last. Choose your age to see which options fall within the recommended hours.
- 03
Pick a time and save your alarm
Tap a time to see your night stage by stage, download the alarm for your calendar or copy the summary to share it.
Sleep in cycles, not hours
Sleep isn't one even block. During the night your brain goes through cycles of about 90 minutes: it enters light sleep (N1 and N2), drops into deep sleep (N3) and ends in REM sleep, when the most vivid dreams happen. At the end of each cycle sleep is lighter, and it's common to wake for a few seconds without remembering it.
That's why your alarm time matters. If it goes off during deep sleep, you get sleep inertia: that heavy, foggy feeling that can last anywhere from a few minutes to half an hour or more. If it goes off at the end of a cycle, waking up is usually easier, even if you slept a little less.
The calculator does the math for you. For each option it adds or subtracts full cycles (1 to 6) plus the time it takes you to fall asleep, which defaults to 15 minutes. If you want to wake up at 7:00 AM with 90-minute cycles, going to bed at 9:45 PM gives you six cycles (9 hours) and at 11:15 PM gives you five (7 and a half hours).
Five or six cycles, between 7.5 and 9 hours, line up with what the National Sleep Foundation recommends for adults: 7 to 9 hours. Three or four cycles will do for a short night, but not as a habit. Fewer than three leave little real rest.
Cycles aren't exactly 90 minutes for everyone. They range from 80 to 110 depending on the person, their age and the night, and the last ones tend to be longer because of REM. Use the calculator as a starting point: if you wake up groggy for a week, move the cycle length by five minutes and compare how you feel.
Bedtime or wake-up time
Two modes and a sleep-now button. Six options with full cycles, from most to least rest.
Quality of each option
Recommended with five or six cycles, acceptable with three or four, and too little rest with fewer than three.
Recommended hours by age
National Sleep Foundation ranges for children, teens, adults and people 65 and older.
Your night in a chart
Illustrative hypnogram with light, deep and REM sleep, cycle by cycle and with real clock times.
Alarm for your calendar
Download an .ics file with your bedtime and wake-up time, reminder included.
Remember and share
Your settings are saved on this device; copy a summary or a link with your times. 12- or 24-hour format.
