Sleep Calculator
Pick when you need to wake up, or when you're going to bed, and get times that fit whole sleep cycles so you wake up between them.
Minutes, or h:mm like 1:15. Works for night, early and split shifts.
Recommended: 7–9 hours a night.
Most people take 10–20 minutes.
About 90 minutes on average; anywhere from 80 to 110 is normal.
Sleep debt this week (optional)
Type 6.5, 6:30 or 6h 30m. Leave a night blank to skip it.
How your sleep times are worked out
Whole sleep cycles plus the time it takes to fall asleep.
- 1
Your wake-up time
Alarm at07:00
- 2
Count back whole cycles
5 × 90 min= 7 h 30 min
- 3
Add time to fall asleep
7 h 30 min+ 15 min= 7 h 45 min
- 4
Go to bed at
07:00− 7 h 45 min= 23:15
Read more: the formula, a worked example, sleep by age, naps and sleep debt
While you sleep you go round a cycle of light sleep, deep sleep and dream (REM) sleep, again and again through the night. One cycle takes about 90 minutes on average, though it can be anywhere from about 80 to 110 minutes and changes from night to night. Waking at the end of a cycle, when sleep is lighter, often feels easier than being woken from deep sleep. This calculator lines your alarm up with the end of a whole cycle.
The formula
bedtime = wake-up time − (cycles × cycle length) − time to fall asleep
wake-up time = bedtime + time to fall asleep + (cycles × cycle length)
sleep you get = cycles × cycle length
Worked example
You want to wake up at 07:00. Five cycles of 90 minutes is 5 × 90 = 450 minutes, which is 7 hours 30 minutes. Add 15 minutes to fall asleep and you need 7 hours 45 minutes in bed. 07:00 − 7 h 45 min = 23:15. With six cycles (9 hours of sleep) you would go to bed at 21:45; with four cycles (6 hours), at 00:45.
Going the other way, if you get into bed at 23:00 you will probably be asleep by 23:15. Five cycles later is 23:15 + 7 h 30 min = 06:45.
How much sleep you need by age
| Age group | Hours in 24 hours |
|---|---|
| Newborn (0–3 months) | 14–17 (including naps) |
| Baby (4–11 months) | 12–15 (including naps) |
| Toddler (1–2 years) | 11–14 (including naps) |
| Pre-school (3–5 years) | 10–13 (including naps) |
| School age (6–13 years) | 9–11 |
| Teenager (14–17 years) | 8–10 |
| Young adult (18–25 years) | 7–9 |
| Adult (26–64 years) | 7–9 |
| Older adult (65+ years) | 7–8 |
Ranges are the US National Sleep Foundation's recommendations (Hirshkowitz et al., Sleep Health, 2015). They are general guidance for healthy people; some people do well with a little more or less. For babies and young children, the cycle idea fits less well because their sleep cycles are shorter, so use the ranges as a rough guide only.
Naps
- Power nap (about 20 minutes of sleep): short enough that you usually wake before deep sleep, so you feel refreshed rather than groggy.
- 60 minutes: reaches deep sleep, so you may feel groggy for a little while after waking.
- One full cycle (about 90 minutes): includes light, deep and dream sleep and ends in lighter sleep.
The nap planner adds your time to fall asleep, so the alarm time is when to set your alarm from the moment you lie down. Late-afternoon or evening naps can make it harder to fall asleep at night.
Shift work
After a night shift, the calculator starts your sleep window when you are home and have wound down, and ends it when you need to get up for your next shift. It fits in as many whole cycles as it can. Example: a shift ending at 07:00, 30 minutes to get home and 30 to wind down means bed at 08:00. Starting again at 19:00 with an hour to get ready means getting up by 18:00. That is a 10-hour gap: (600 − 15) ÷ 90 = 6.5, so 6 whole cycles, and the alarm goes at 08:15 + 9 h = 17:15. If the main sleep is short, it suggests a top-up nap before the shift. A dark, quiet, cool room helps with daytime sleep.
Sleep debt
Sleep debt is the gap between the sleep you need and the sleep you got. With the default week (7, 6.5, 6, 7, 5.5, 8 and 9 hours), you slept 49 hours against a need of 8 × 7 = 56 hours, so the debt is 56 − 49 = 7 hours. Paying it back gently, about an extra hour a night by going to bed a little earlier, is usually easier than one very long lie-in.
This calculator gives general sleep-timing ideas, not medical advice. If you often feel very tired in the day, snore loudly, stop breathing in your sleep or can't sleep for weeks at a time, talk to a doctor. Cycle lengths vary from person to person and night to night, so treat the times as a good starting point.
Common questions
What time should I go to bed to wake up at 7am?
For five 90-minute cycles (7 hours 30 minutes of sleep) plus 15 minutes to fall asleep, go to bed at 23:15. For six cycles go to bed at 21:45, and for four cycles at 00:45. The calculator works this out for any wake-up time.
How long is a sleep cycle?
About 90 minutes on average, though it can be anywhere from about 80 to 110 minutes and changes from night to night. Each cycle goes through light sleep, deep sleep and dream (REM) sleep. You can change the cycle length in the calculator if yours is different.
How many hours of sleep do I need?
The US National Sleep Foundation recommends 7 to 9 hours for adults aged 18 to 64 and 7 to 8 hours for those 65 and over. Teenagers aged 14 to 17 need 8 to 10 hours, and younger children need more. Some people do well with a little more or less.
Why do I wake up groggy even after enough sleep?
Being woken from deep sleep often feels harder than waking at the end of a cycle, when sleep is lighter. Lining your alarm up with the end of a whole cycle can help. Cycle lengths vary from person to person and night to night, so treat the times as a good starting point.
How long should a nap be?
A power nap of about 20 minutes usually ends before deep sleep, so you wake refreshed. A 60-minute nap reaches deep sleep, so you may feel groggy for a while. A full cycle of about 90 minutes ends in lighter sleep. Late-afternoon or evening naps can make it harder to fall asleep at night.
What is sleep debt and how do I pay it back?
Sleep debt is the gap between the sleep you need and the sleep you got. Sleeping 49 hours in a week against a need of 56 leaves a debt of 7 hours. Paying it back gently, about an extra hour a night by going to bed a little earlier, is usually easier than one very long lie-in.
Related calculators
Made by Zulu Calculator, part of AlphaZulu LLC. Formulas are shown in full and rule figures are checked against official sources; see how we build calculators.