Sleep Calculator — When to Go to Bed Based on Your Wake Time
Enter your target wake-up time and get precise bedtime recommendations aligned to 90-minute sleep cycles. Includes 15-minute sleep onset buffer. Free, no signup.
Interactive Calculator
Your Sleep Details
Your Sleep Analysis
Recommended Sleep
Sleep Debt
Sleep Duration vs Recommended
Sleep Cycle (24h Timeline)
The formula
How Sleep Is Calculated
This calculator uses the National Sleep Foundation's age-based sleep duration recommendations, which are derived from systematic reviews of peer-reviewed sleep research. Your actual sleep duration is calculated from your bedtime and wake time, and compared to the recommended range for your age group. The calculator then assesses your sleep quality based on how close your actual sleep is to the ideal midpoint of the recommended range.
Sleep needs change across the lifespan. Newborns require up to 17 hours per day, while older adults typically need 7–8 hours. The calculator uses the midpoint of each age range as the "ideal" target and categorizes deviation from this target into mild, moderate, or significant sleep deficiency or excess.
The Formula
Sleep Duration is calculated in hours and minutes
Sleep Quality is expressed as a percentage of the recommended midpoint
Formula Source
This calculator uses the **age-based sleep duration recommendations** from **National Sleep Foundation, Hirshkowitz M et al., Sleep Health** published in **2015**.
Reference URL: https://pubmed.ncbi.nlm.nih.gov/29073412/
Last Verified: 2026-07-30
Recommended Sleep by Age
| Age Group | Recommended Sleep |
|---|---|
| Newborns (0–3 months) | 14–17 hours |
| Infants (4–11 months) | 12–15 hours |
| Toddlers (1–2 years) | 11–14 hours |
| Preschoolers (3–5) | 10–13 hours |
| School-age (6–13) | 9–11 hours |
| Teenagers (14–17) | 8–10 hours |
| Young Adults (18–25) | 7–9 hours |
| Adults (26–64) | 7–9 hours |
| Older Adults (65+) | 7–8 hours |
Worked Example
A 35-year-old adult who goes to bed at 10:30 PM and wakes at 6:00 AM gets 7.5 hours of sleep. The recommended range for adults is 7–9 hours, so 7.5 hours is within the optimal range — this represents good sleep duration. If the same person went to bed at 12:30 AM and woke at 6:00 AM, they would get 5.5 hours, which is significantly below the recommended range and would be categorized as a significant sleep deficiency.
FAQ-Style Explanations
Is it possible to sleep too much? Yes. Regularly sleeping more than 9–10 hours for adults (without medical cause) is associated with health risks including depression, obesity, and cardiovascular disease. This is called long sleep and may indicate an underlying health issue.
Does sleep quality matter as much as duration? Yes. Poor sleep quality (frequent waking, trouble falling asleep, non-restorative sleep) can be as detrimental as insufficient sleep. Both duration and quality are important for health.
How does age affect sleep patterns? Sleep patterns change with age. Older adults typically experience lighter sleep, more frequent waking, and earlier wake times. The recommended duration decreases slightly after age 65, but the need for quality sleep remains.
Known Limitations
- The calculator estimates sleep duration from bedtime and wake time but does not account for time spent awake during the night (sleep latency, nighttime waking), which can significantly reduce actual sleep.
- Individual sleep needs vary. Some people function well on 6 hours while others need 10 hours — the ranges are population averages, not individual prescriptions.
- The calculator does not assess sleep quality factors such as sleep environment, stress, or medical conditions that affect sleep.
Scenario guide
Reverse Calculating Bedtime From Your Wake Time
Most people have a fixed wake-up obligation — an alarm at 6:30 AM for work, a school bus at 7:00 AM, or a family routine that starts at 5:45 AM. What is flexible is bedtime, and the bedtime calculator is designed precisely for this direction of planning: you tell the tool when you must be up, and it tells you when you should be asleep. The tool then works backward through complete 90-minute sleep cycles to produce a list of recommended bedtimes, each one corresponding to an integer number of full cycles ending at your target wake hour. The approach respects the fact that the wake hour is often immovable while the bedtime is where you have the most latitude to choose.
The 15-Minute Sleep Onset Buffer
A critical detail in any bedtime calculator is the distinction between "going to bed" and "being asleep." The moment you lie down with the lights off is not the moment your first sleep cycle begins. Most healthy adults take about 15 minutes to progress from wakeful lying-down into the first light sleep stage (N1). Some people fall asleep in five minutes; others take 30 minutes or longer, especially after evening caffeine, alcohol, or screen time. The standard buffer of 15 minutes is subtracted from the target wake hour before the cycle subtraction begins, so the resulting bedtime is the moment you should be in bed ready to fall asleep, not the moment the first cycle actually starts. Adjusting this buffer for your own sleep latency is one of the most impactful personalizations you can make.
How the Calculator Works Backward Through Cycles
Imagine your target wake time is 6:45 AM. The calculator first subtracts the 15-minute sleep onset buffer to establish 6:30 AM as the ideal time to be asleep, then subtracts 90-minute increments to generate each recommended bedtime. Six full cycles back from 6:30 AM lands at 10:30 PM, giving nine hours of sleep. Five cycles back lands at 12:00 AM, giving seven and a half hours. Four cycles back lands at 1:30 AM, giving six hours, and so on. The resulting list typically spans a range from four cycles (six hours) up to six or seven cycles (nine to ten and a half hours), and the sweet spot for most adults is five or six cycles. The output should be presented as a clear list so you can pick the earliest bedtime you are able to achieve while still staying in the recommended range.
Choosing Between the Recommended Bedtimes
When faced with multiple candidate bedtimes, lean toward the later recommended time only if it still leaves you with at least seven hours of actual sleep. The common mistake is to pick the bedtime that requires the least lifestyle adjustment — say, midnight instead of 10:30 PM — without noticing that it lands you at only four and a half cycles (six and a half hours). That may feel fine for a night or two, but repeated short-cycle nights accumulate sleep debt that is surprisingly slow to recover. A better heuristic is to pick the first recommended bedtime that lands at five full cycles (seven and a half hours) and adjust your evening routine to make that time realistic: dim the lights, put away screens, and aim for a pre-sleep ritual that signals your body it is time to wind down.
Common Mistakes When Using a Bedtime Calculator
One common mistake is entering the time you want to lie down instead of the time you actually want to be asleep. If you say "I want to be in bed at 11 PM," your actual sleep onset is closer to 11:15 PM, and the cycle math shifts accordingly. Another mistake is ignoring the recommended bedtime when your alarm has to stay fixed, simply because the earlier option feels inconvenient. In those cases, the better strategy is often to shift the alarm earlier by one cycle so the bedtime you can realistically achieve still produces a complete cycle count. Finally, many users forget that alcohol close to bedtime delays sleep onset and fragments later cycles, effectively breaking the precise cycle math the calculator depends on. Moderate alcohol intake at least three hours before the recommended bedtime helps preserve the cycle structure.
Frequently Asked Questions
Related calculators & guides
Sleep Calculator — When to Wake Up
Calculate optimal wake-up times based on 90-minute sleep cycles.
Sleep Cycles Calculator
Understand the N1, N2, N3, and REM stages within each 90-minute cycle.
How Much Sleep Do I Need Calculator
Find your age-specific recommended sleep duration using NSF guidelines.
Sleep Calculator for Teens
Sleep timing guidance for adolescents needing 8 to 10 hours per night.