Sleep Calculator
Work out a bedtime, a wake-up time or your sleep duration, allowing for the time it takes to fall asleep.
Schedule planner • CDC sleep recommendations by age
Sleep tips
A calculator can help you plan, but it cannot guarantee sleep quality.
- Keep a consistent schedule: go to bed and get up at about the same times every day, including weekends.
- Allow enough time in bed for the sleep you need, rather than cutting sleep short to match a calculated cycle.
- Keep your bedroom quiet, dark, comfortable and cool.
- Wind down before bed: put screens away, and avoid caffeine later in the day and large meals or alcohol close to bedtime.
- Notice how alert you feel during the day; your own needs may differ from a general recommendation.
If you regularly have trouble falling or staying asleep, wake often, snore loudly or stop breathing during sleep, or feel very sleepy during the day despite enough time in bed, talk to a healthcare provider. These tips are not a substitute for medical care.
This calculator plans a schedule from the times you enter. It does not measure your sleep, assess sleep quality or diagnose sleep problems. Your inputs stay in your browser and are not stored or sent anywhere.
This sleep calculator plans your sleep schedule. Work out when to go to bed for a given wake-up time, when to wake up after a given bedtime, or how long you slept between two times, allowing for the minutes it takes to fall asleep. Choose your age group to see the CDC's recommended sleep and pick a sleep duration from it, and optionally see approximate 90-minute sleep-cycle times.
The results are a schedule based on the times you enter. The calculator does not measure sleep or diagnose sleep problems, and no calculated time can guarantee you will wake up refreshed.
What Is a Sleep Calculator?
A sleep calculator does the clock arithmetic for planning sleep. Use it as a bedtime calculator (when to get into bed for a given wake-up time), a wake-up time calculator (when to set an alarm after a given bedtime), or to calculate sleep duration between two times. It allows for the minutes it takes to fall asleep, and it can show sleep recommendations for your age group.
It only works with the times and estimates you enter. It does not track or measure your sleep, judge its quality or diagnose sleep problems.
How Much Sleep Do You Need?
Sleep needs change with age: babies and young children need far more than adults, and recommendations for young children include naps. The CDC recommends the following amounts. Depending on the group, they are ranges or minimums, and individual needs vary with health, lifestyle and circumstances.
| Age group | Recommended sleep |
|---|---|
| Newborn (0–3 months) | 14–17 hours per day |
| Infant (4–12 months) | 12–16 hours per 24 hours, including naps |
| Toddler (1–2 years) | 11–14 hours per 24 hours, including naps |
| Preschool (3–5 years) | 10–13 hours per 24 hours, including naps |
| School age (6–12 years) | 9–12 hours per 24 hours |
| Teen (13–17 years) | 8–10 hours per 24 hours |
| Adult (18–60 years) | 7 or more hours per night |
| Adult (61–64 years) | 7–9 hours |
| Adult (65 years and older) | 7–8 hours |
For most adults, aiming for 7–9 hours is a reasonable starting point, but not everyone needs exactly the same amount. How alert you feel during the day is a useful check on whether you are getting enough.
How to Calculate Your Bedtime
Bedtime = Wake-up Time − Desired Sleep Duration − Time to Fall Asleep
Example: to wake at 6:30 AM after 8 hours of sleep, taking about 15 minutes to fall asleep, count back 8 hours to 10:30 PM (when you should be asleep), then another 15 minutes to 10:15 PM the evening before, which is when to get into bed. Your best time to go to bed depends on when you need to get up and how much sleep you need, so the calculator works backward from your own wake-up time.
How to Calculate Your Wake-up Time
Wake-up Time = Bedtime + Time to Fall Asleep + Desired Sleep Duration
Example: get into bed at 10:30 PM, fall asleep about 15 minutes later at 10:45 PM, then add 8 hours of sleep to reach 6:45 AM the next morning. Counting from when you fall asleep, not when you get into bed, avoids setting an alarm too early.
Understanding Sleep Cycles
Sleep has two main types. Non-REM sleep has three stages, from the light transition into sleep, through stage 2, to deep (slow-wave) sleep. In REM (rapid eye movement) sleep, the brain is active, most dreaming happens, and the muscles relax. According to the National Heart, Lung, and Blood Institute, the cycle through these stages repeats about every 80–100 minutes, usually four to six times a night. Deep sleep is more common early in the night and REM sleep later.
A sleep cycle calculator that uses 90-minute intervals is making an approximation. Cycle length differs between people and through the night, so it cannot tell what stage you will be in at a particular time. This calculator shows cycle-based times only as optional, labelled estimates, and never suggests a shorter night to fit a cycle: getting enough sleep matters more.
Why Consistent Sleep Schedules Matter
The body's internal clock (circadian rhythm) influences when you feel sleepy and alert. Going to bed and getting up at about the same times every day, including weekends, is one of the CDC's basic sleep tips, and a regular wake-up time is a useful anchor for working out a recommended bedtime. How rested you feel also depends on sleep quality, health, stress and routine, so a calculated time on its own cannot promise better sleep, health or productivity.
Sleep Duration vs. Time in Bed
- Time in bed runs from getting into bed to getting up: 11:00 PM to 7:00 AM is 8 h.
- Estimated sleep duration subtracts the time it takes to fall asleep: with 20 minutes to fall asleep, that is 7 h 40 min.
- Actual sleep is usually less again, because brief awakenings during the night also take time away. You can enter time awake in the duration mode if you know it, but the calculator cannot detect it.
The National Sleep Foundation's sleep quality indicators include falling asleep within 30 minutes or less. If it regularly takes you much longer, or you wake often, it is worth talking to a healthcare provider.
Related Calculators
For other everyday health estimates, the BMR calculator estimates the energy your body uses at rest, the calories calculator estimates daily energy needs, and the water intake calculator gives a general fluid estimate. None of them can assess sleep or tell you how much sleep you need.
Sources
- Centers for Disease Control and Prevention. About sleep: how much sleep do I need, and sleep tips.
- National Heart, Lung, and Blood Institute. Sleep phases and stages.
- Ohayon M, et al. National Sleep Foundation’s sleep quality recommendations: first report. Sleep Health. 2017;3(1):6–19.
How to Use the Sleep Calculator
- Choose what to calculate: a bedtime from your wake-up time, a wake-up time from your bedtime, or the sleep duration between two times.
- Enter the time (or both times for sleep duration).
- Set how long you want to sleep, or choose your age group and pick one of the suggested durations based on CDC recommendations.
- Enter about how many minutes it usually takes you to fall asleep (15 minutes is used as an example).
- Read the result, which shows whether it falls on the previous or next day, and the estimated time you fall asleep. Optionally turn on approximate 90-minute cycle times.
- Switch between 12-hour and 24-hour time, and use Copy result or Reset as needed.
Frequently Asked Questions
How does a sleep calculator work?
It does clock arithmetic. For a bedtime, it subtracts your desired sleep and the time it takes you to fall asleep from your wake-up time. For a wake-up time, it adds them to your bedtime. For sleep duration, it measures the time between two times and subtracts the time to fall asleep. It does not measure your actual sleep.
What time should I go to bed?
Work backward from when you need to get up: wake-up time minus the sleep you need minus the time it takes you to fall asleep. To wake at 6:30 AM with 8 hours of sleep and 15 minutes to fall asleep, get into bed at 10:15 PM.
What time should I wake up?
Add the time it takes you to fall asleep and the sleep you need to your bedtime. In bed at 10:30 PM, asleep about 10:45 PM, plus 8 hours gives a 6:45 AM wake-up. Keeping the wake-up time similar every day also helps.
How many hours of sleep do adults need?
The CDC recommends 7 or more hours a night for adults aged 18–60, 7–9 hours for ages 61–64, and 7–8 hours for 65 and older. Individual needs vary, so treat these as general guidance.
How long does it usually take to fall asleep?
It varies from person to person and night to night. The National Sleep Foundation counts falling asleep within 30 minutes or less as one indicator of good sleep quality. The calculator lets you enter your own estimate; 15 minutes is only an example.
Are sleep cycles exactly 90 minutes long?
No. The National Heart, Lung, and Blood Institute describes cycles that repeat about every 80–100 minutes, usually four to six times a night, and they change through the night. 90 minutes is only a convenient approximation.
Is it better to wake up at the end of a sleep cycle?
A calculator cannot know when your cycles end, because their length varies. Cycle-based times are shown here only as optional estimates, and only for options at least as long as your sleep target. Getting enough sleep is more important than matching an estimated cycle.
Can a sleep calculator guarantee that I will wake up refreshed?
No. It only plans a schedule. How rested you feel depends on how long and how well you actually sleep, your health and your routine, which a calculator cannot measure.
What is the difference between time in bed and sleep duration?
Time in bed runs from getting into bed to getting up. Sleep duration is shorter: it leaves out the time it takes to fall asleep and any time awake during the night. 11:00 PM to 7:00 AM is 8 hours in bed, but about 7 h 40 min of sleep if you take 20 minutes to fall asleep.
What should I do if I regularly have trouble sleeping?
Try a consistent schedule and a quiet, dark, comfortable bedroom, and cut back on screens, caffeine and alcohol near bedtime. If you regularly struggle to fall or stay asleep, snore loudly, or feel very sleepy during the day, talk to a healthcare provider.
Related Calculators
BMR Calculator
Estimate your basal metabolic rate (resting energy expenditure) with the Mifflin–St Jeor equation.
Calories Calculator
Estimate your daily maintenance calories, BMR and TDEE from age, height, weight and activity level.
Water Intake Calculator
Estimate daily fluid intake from body weight and exercise time, in ounces, liters and cups.
Caffeine Calculator
Estimate your daily caffeine intake from coffee, tea, energy drinks and more, with a drink-by-drink breakdown and sourced reference amounts.
BMI Calculator
Calculate your Body Mass Index (BMI) from height and weight and see your adult BMI category.
Ideal Weight Calculator
Estimate ideal body weight by height with the Devine formula, compare other formulas, and see the adult BMI-based weight range.
TDEE Calculator
Estimate total daily energy expenditure from estimated BMR and your activity level.
Pregnancy Due Date Calculator
Estimate a due date from your last period or a known conception date, with gestational age and trimester.
More Health Calculators
Last updated: October 25, 2026.