Sleep Calculator
Choose whether you want to wake up at a certain time or go to bed now, and get the best times based on full sleep cycles.
Reviewed by the ToolNestr Editorial Team — July 2026
Times assume about 15 minutes to fall asleep. The best options (more sleep) are highlighted.
About sleep cycles
Waking up in the middle of a deep sleep cycle is what makes you feel groggy. By timing your sleep around complete 90-minute cycles, you're more likely to wake up naturally and feel rested. This calculator works out those ideal times for you. According to the Centers for Disease Control and Prevention (CDC), most adults need 7 or more hours of sleep per night for optimal health. Good sleep also supports a healthy weight — pair this with the BMI Calculator and Calorie Calculator for a complete health check.
When to use this tool
Use the Sleep Calculator whenever you want to feel more refreshed in the morning — especially before a big day like an exam, interview or race. It’s also helpful if you’re struggling with morning grogginess and want to find out whether poor timing is the cause. Parents use it to plan their own sleep around irregular baby schedules, and anyone adjusting to a new time zone can use it to reset their sleep pattern faster.
Tips for best results
- Stick to a consistent sleep schedule — even on weekends — to reinforce your body’s natural circadian rhythm.
- Avoid screens, caffeine and heavy meals for at least an hour before your calculated bedtime for easier falling asleep.
- Use the "I’m going to bed now" mode to find the best alarm time, then set your alarm for the end of a sleep cycle rather than a random time.
Recommended sleep by age
Sleep needs change throughout life. The bars below show the recommended sleep duration ranges from the National Sleep Foundation for different age groups.
Student
Plan your sleep around study and exam schedules so you wake up alert and focused instead of groggy from a broken cycle.
Shift worker
Use the calculator no matter what time you sleep — the 90-minute cycle principle works for any schedule, helping you optimise rest around irregular hours.
New parent
Maximise the quality of interrupted sleep by timing your own rest around your baby's schedule using the calculator's cycle-based approach.
Athlete
Sleep is when your body repairs and builds muscle. Time your bedtime to get 6–7 full cycles and maximise recovery from training.
| Age group | Recommended sleep | Optimal cycles (90 min each) |
|---|---|---|
| Newborn (0–3 mo) | 14–17 hours | 9–11 cycles |
| Infant (4–11 mo) | 12–15 hours | 8–10 cycles |
| Pre-school (3–5 yrs) | 10–13 hours | 6–8 cycles |
| School (6–13 yrs) | 9–11 hours | 6–7 cycles |
| Teen (14–17 yrs) | 8–10 hours | 5–6 cycles |
| Adult (18–64 yrs) | 7–9 hours | 4–6 cycles |
| Older adult (65+) | 7–8 hours | 4–5 cycles |
How sleep cycles work
Sleep progresses through a repeating series of stages — light sleep, deep sleep and REM (rapid eye movement) — that together form one sleep cycle. Each cycle lasts roughly 90 minutes in adults, as documented by the Sleep Foundation. A typical night consists of 4–6 complete cycles.
Waking up during deep sleep (the first half of a cycle) causes sleep inertia — that groggy, disoriented feeling that can last 15–30 minutes. Waking at the end of a cycle, when sleep is lightest, leaves you feeling alert and refreshed.
This calculator works backwards from your wake time (or forwards from your bedtime) using an average cycle length of 90 minutes plus 15 minutes to fall asleep. It suggests times that align the end of a cycle with your target wake time.
Worked example
You need to wake up at 6:30 AM feeling refreshed. What time should you go to bed?
How to use the Sleep Calculator
Choose your mode
Select "I want to wake up at…" to find the best bedtime, or "I'm going to bed at…" to find the ideal wake-up time for complete sleep cycles.
Set your target time
Enter the time you plan to wake up (or go to bed). The calculator adds about 15 minutes for falling asleep to each option.
Pick your best option
Choose from the suggested times. The highlighted options with more sleep cycles (6 or 5) are recommended for most people.
Tips for better sleep quality
Stick to a consistent schedule
Going to bed and waking up at the same time every day (even weekends) reinforces your circadian rhythm and makes falling asleep easier over time.
Create a screen-free wind-down
Blue light from phones and laptops suppresses melatonin for 30–60 minutes. Turn off screens, dim the lights and read a book before your calculated bedtime.
Optimise your sleep environment
Keep your bedroom cool (16–19°C), dark and quiet. A consistent pre-sleep routine signals your body that it's time to wind down and transition into the first sleep cycle.
Frequently asked questions
How does the sleep calculator work?
Sleep happens in roughly 90-minute cycles. Waking at the end of a cycle (rather than mid-cycle) helps you feel refreshed. We also add about 15 minutes to fall asleep.
How many cycles should I aim for?
Most adults do best with 5–6 cycles (about 7.5–9 hours) of sleep per night.
Is this medical advice?
No — it’s a helpful guide based on average sleep cycles. Everyone is different.
What happens if I wake up in the middle of a cycle?
You’ll experience sleep inertia — that groggy, disoriented feeling that can last 15–30 minutes. Waking at the end of a cycle (when sleep is lightest) avoids this and helps you feel alert sooner.
Does the calculator work for shift workers?
Yes — the same 90-minute cycle principle applies regardless of when you sleep. Just enter the time you plan to wake up (or go to bed) and the calculator will suggest optimal times for your unique schedule.
Why do I sometimes wake up naturally before my alarm?
Your body has likely completed its last sleep cycle and transitioned to light sleep naturally. This is actually a good sign that your sleep timing is well-matched to your natural rhythm.
Is it better to get more cycles or higher quality sleep?
Quality matters more than quantity. Six solid cycles with good sleep hygiene beat eight cycles of fragmented, restless sleep. Focus on consistency, darkness and a cool room temperature.
How does alcohol affect sleep cycles?
Alcohol may help you fall asleep faster but it disrupts REM sleep and the later cycles, often causing early waking and poorer overall recovery. Avoiding alcohol within 3 hours of bed improves cycle quality.
Can I train myself to need less sleep?
Most people cannot function optimally on less than 7 hours. While you may adapt to 6 hours over time, chronic short sleep accumulates as sleep debt and affects cognition, mood and health.
How does screen time affect falling asleep?
Blue light from phones, tablets and computers suppresses melatonin production, making it harder to fall asleep and reducing sleep quality. Aim for at least 30–60 minutes of screen-free time before bed.