Sleep Calculator
Choose when you need to wake up to see bedtimes that end on a complete sleep cycle, or enter a bedtime to see the best times to set your alarm.
How to use the Sleep Calculator
- Pick what you want to work out using the tabs: I want to wake up at or I am going to bed at.
- Set Wake-up time.
- Enter Time to fall asleep.
- Read your answer in the results panel. It updates as you type, and the breakdown, step-by-step working and any charts or tables appear below it.
- Use Share link to save or send the exact calculation, or Copy to paste the results elsewhere.
Sleep cycles
Sleep is not one continuous state. Through the night you pass through repeating cycles of light sleep, deep sleep and REM (dreaming) sleep. A cycle lasts roughly 90 minutes on average, though it ranges from about 80 to 120 minutes. Waking at the end of a cycle, during light sleep, tends to feel easier than being woken from deep sleep, which can leave you groggy for a while. This grogginess is called sleep inertia.
How the times are calculated
The calculator adds a buffer for falling asleep, 15 minutes by default, then counts whole 90-minute cycles.
Bedtime = wake time − time to fall asleep − cycles × 90 min
Wake time = bedtime + time to fall asleep + cycles × 90 min
Six cycles give 9 hours of sleep, five give 7.5 hours and four give 6 hours. Five or six cycles fit the 7 to 9 hours recommended for most adults.
Worked example
You need to get up at 6:30 AM and usually take 15 minutes to drop off. For six cycles, go to bed at 6:30 − 9 h − 15 min = 9:15 PM. For five cycles, go to bed at 10:45 PM. If you go to bed at 10:00 PM instead, set an alarm for 5:45 AM (five cycles) or 7:15 AM (six cycles).
How much sleep do you need?
| Age | Recommended per day |
|---|---|
| Newborn (0–3 months) | 14–17 hours |
| Infant (4–11 months) | 12–15 hours |
| Toddler (1–2 years) | 11–14 hours |
| Preschool (3–5 years) | 10–13 hours |
| School age (6–13 years) | 9–11 hours |
| Teen (14–17 years) | 8–10 hours |
| Adult (18–64 years) | 7–9 hours |
| Older adult (65+) | 7–8 hours |
These ranges come from the National Sleep Foundation’s expert panel and are consistent with American Academy of Sleep Medicine advice for adults.
Tips for better sleep
- Keep the same wake time every day, including weekends.
- Get daylight in the morning and dim the lights in the evening.
- Avoid caffeine for at least six hours before bed and limit alcohol, which fragments sleep.
- Keep your bedroom cool, dark and quiet.
If you regularly snore loudly, stop breathing during sleep or feel exhausted despite enough hours in bed, talk to a doctor. The times here are estimates, not medical advice.
Frequently asked questions
What time should I go to bed to wake up at 6 AM?
With a 15-minute buffer, 8:45 PM gives six cycles (9 hours), 10:15 PM gives five cycles (7.5 hours) and 11:45 PM gives four cycles (6 hours).
Is it better to sleep 6 or 7 hours?
Most adults need 7 to 9 hours. Six hours ends on a cycle boundary and may feel easier to wake from, but regularly getting less than 7 hours is linked with poorer health and concentration.
How long is a sleep cycle?
About 90 minutes on average, though it varies from roughly 80 to 120 minutes between people and through the night, with more deep sleep early and more REM sleep towards morning.