How to use the sleep calculator
- Choose I want to wake up at and enter your alarm time to get the best bedtimes, or choose I’m going to bed at (or tap “Going to bed now”) to get the best wake-up times.
- Adjust time to fall asleep if you usually take more or less than 15 minutes to drift off.
- Pick one of the times marked Ideal — five or six complete sleep cycles. Times are shown in your device’s 12- or 24-hour format.
Sleep cycles explained
During the night your brain repeats a cycle of sleep stages. Each cycle starts with light sleep (stage N1, then N2), moves into deep slow-wave sleep (N3), and ends with REM (rapid eye movement) sleep, when most vivid dreaming happens. A full cycle lasts about 90 minutes on average, and a typical night contains four to six cycles. Early cycles contain more deep sleep; later cycles contain longer REM periods.
Being woken during deep sleep often causes sleep inertia — that heavy, groggy feeling that can last for 15–30 minutes. Timing your alarm for the end of a cycle, when sleep is lighter, makes waking up easier. That is the idea behind this calculator.
Worked examples
- Wake up at 7:00 AM, 15 minutes to fall asleep: go to bed at 9:45 PM (6 cycles, 9 h), 11:15 PM (5 cycles, 7 h 30 min), 12:45 AM (4 cycles, 6 h) or 2:15 AM (3 cycles, 4 h 30 min).
- Go to bed at 11:00 PM, asleep by 11:15 PM: wake up at 3:45 AM (3 cycles), 5:15 AM (4 cycles), 6:45 AM (5 cycles) or 8:15 AM (6 cycles).
How much sleep do you need?
The table below shows the National Sleep Foundation’s recommended ranges (Hirshkowitz et al., 2015) alongside the American Academy of Sleep Medicine (AASM) consensus recommendations for children (2016) and adults (2015). Infant and child figures include naps.
| Age group | National Sleep Foundation | AASM consensus |
|---|---|---|
| Newborn (0–3 months) | 14–17 hours | Not specified |
| Infant (4–11 / 4–12 months) | 12–15 hours | 12–16 hours |
| Toddler (1–2 years) | 11–14 hours | 11–14 hours |
| Preschool (3–5 years) | 10–13 hours | 10–13 hours |
| School age (6–13 / 6–12 years) | 9–11 hours | 9–12 hours |
| Teen (14–17 / 13–18 years) | 8–10 hours | 8–10 hours |
| Young adult (18–25 years) | 7–9 hours | 7 hours or more |
| Adult (26–64 years) | 7–9 hours | 7 hours or more |
| Older adult (65+ years) | 7–8 hours | 7 hours or more |
Tips for better sleep
- Keep a consistent sleep and wake time, including at weekends.
- Get daylight in the morning and dim screens and lights in the hour before bed.
- Avoid caffeine late in the day and large meals or alcohol close to bedtime.
- Keep the bedroom cool, dark and quiet.
This calculator gives general guidance, not medical advice. If you regularly struggle to fall or stay asleep, snore loudly, or feel very sleepy during the day despite enough time in bed, talk to a doctor or sleep specialist.