Sleep Calculator

Plan a bedtime or wake-up time using sleep cycles, estimated time to fall asleep, awake time, and age-based sleep-duration guidance.

Plan your sleep

years
min
hours
min
Use the actual sleep time that usually leaves you rested.
min
Use your usual total awake time after falling asleep.

Sleep plan

10:35 PM Bedtime
Recommended sleep
7+ hours
Time asleep
8 hr
Time in bed
8 hr 25 min
Sleep cycles
5 cycles
Sleep cycle length
1 hr 36 min

Interpret your sleep calculator result

The result is a schedule planning estimate. It uses your chosen wake time or bedtime, a sleep-onset buffer, the sleep amount that usually leaves you rested, cycle-end timing, usual awake time, and age-based sleep duration guidance to suggest a practical sleep window.

Inputs that matter most

  • Wake-up time or bedtime: the calculator works backward from a wake time or forward from a bedtime.
  • Age: enter age in years. The calculator starts at age 6 because younger child sleep guidance often includes naps.
  • Time to fall asleep: the schedule includes a buffer before the first full sleep cycle starts.
  • Sleep needed to feel rested: enter the amount of actual sleep that usually leaves you rested; the result uses it as the target for a cycle-aligned plan.
  • Time awake during the night: enter the total time you are usually awake after falling asleep.
  • Estimated cycle length: the calculator estimates a cycle length, then chooses a whole number of cycles so wake-up lands at a cycle end.

Common mistakes

  • Treating a bedtime estimate as a medical sleep prescription.
  • Forgetting to include the time it usually takes to fall asleep.
  • Assuming every sleep cycle is exactly 90 minutes.
  • Ignoring sleep quality, frequent awakenings, caffeine timing, shift work, or inconsistent weekends.

When this estimate can be misleading

The estimate can be misleading when sleep is interrupted, when naps make up a large share of total sleep, during shift work, or when a sleep disorder affects rest.

Scenarios to try

  • Use wake-up mode when you need to be up for work, school, travel, or an early appointment.
  • Use bedtime mode when you know when you can get into bed and want to estimate a reasonable wake time.
  • Adjust the sleep needed to feel rested to see how the estimated cycle length changes.
  • Adjust the fall-asleep buffer if you usually need more or less time to drift off.

Next-step utilities

How to use this sleep calculator

Choose whether you know your wake-up time or bedtime, then enter the schedule details you want the calculator to use.

  1. Choose whether to calculate a bedtime from a wake-up time or a wake time from a bedtime.
  2. Enter the age of the person whose overnight sleep you are planning.
  3. Set the time it usually takes to fall asleep, the sleep needed to feel rested, and your usual awake time during the night.
  4. Review the recommended time, recommended sleep range, time asleep, time in bed, and cycle timing.

Sleep Calculator features

  • Calculate when to go to bed from a target wake-up time.
  • Calculate when to wake up from a planned bedtime.
  • Aim wake-up at the end of the final estimated sleep cycle.
  • Estimate sleep-cycle length from the sleep amount that usually leaves you rested.
  • Adjust time asleep to a cleaner whole-cycle duration when your sleep needed to feel rested is outside age-based guidance.
  • Account for your usual total awake time during the night.
  • Account for the time it usually takes to fall asleep.
  • Use a cited 90-minute sleep-cycle planning estimate as a starting point.
  • Review age-based sleep duration guidance.
  • See time asleep separately from total time in bed.

When should I go to bed?

A useful bedtime is usually the latest time that still gives you enough sleep opportunity before your wake-up time.

For many adults, a five-cycle night is a practical starting point because five 90-minute cycles equals 7 hours and 30 minutes asleep. If that is the sleep amount that leaves you rested and you also need about 15 minutes to fall asleep, that means roughly 7 hours and 45 minutes in bed. If you are usually awake for another 10 minutes during the night, the calculator adds that time directly.

The "right" bedtime is not only a math result. It also depends on sleep quality, consistency, light exposure, caffeine, alcohol, exercise timing, stress, naps, and whether you wake during the night. Use the result as a planning anchor, then adjust based on how rested you feel and whether the schedule is realistic.

How much sleep do I need?

Recommended sleep changes with age. This calculator starts at school age because younger child guidance often includes naps.

For the ages in this calculator, the CDC lists these daily sleep ranges: school-age children need 9 to 12 hours, teens need 8 to 10 hours, adults 18 to 60 need 7 or more hours, adults 61 to 64 need 7 to 9 hours, and adults 65 and older need 7 to 8 hours. CDC guidance for toddlers and preschoolers includes naps, so this calculator does not turn those totals into one overnight sleep plan.

Those ranges are population guidance, not a personalized diagnosis. If you regularly feel sleepy after spending enough time in bed, wake often, snore heavily, gasp or pause breathing during sleep, or have trouble functioning during the day, the schedule math is not enough. A clinician can help evaluate sleep quality and possible sleep disorders.

Sleep calculator methodology and sources

The calculator combines age-based sleep duration guidance with a personalized sleep-cycle timing model.

Bedtime from wake-up time
bedtime = wake time - sleep latency - awake time - planned sleep
Wake time from bedtime
wake time = bedtime + sleep latency + awake time + planned sleep
Estimated cycle length
cycle length = sleep needed to feel rested / estimated cycles
Cycle-aligned sleep
planned sleep = sleep cycles * estimated cycle length

Wake alignment: the calculator aims to place wake-up at the end of the final estimated sleep cycle, when sleep is usually lighter.

Estimated cycle length: the calculator uses the sleep amount that usually leaves you rested when it fits age guidance, then falls back to a common 90-minute whole-cycle plan when it does not.

Age-based sleep recommendations are based on CDC sleep guidance. The sleep-cycle timing uses the NHLBI description of non-REM and REM sleep, including the note that sleep cycles commonly restart every 80 to 100 minutes and that a typical night often includes four to six cycles.

The calculator optimizes for waking at the end of a complete estimated sleep cycle, not simply for matching the sleep amount that usually leaves you rested exactly. When that sleep amount is outside the age-based guidance, it uses the nearest common 90-minute whole-cycle duration within that guidance when one is available. That is why time asleep can differ from the amount you enter.

The calculator starts at age 6 because CDC guidance for toddlers and preschoolers includes naps. A single overnight sleep plan would be a confusing fit for age groups whose recommended total sleep may be split across night sleep and daytime naps.

Awake time is shown as a planning input. The calculator adds the awake time you enter to the total time in bed, but it does not predict when those wake windows will happen.

Sleep calculator FAQ

Is 90 minutes always one sleep cycle?
No. A 90-minute sleep cycle is a planning estimate. NHLBI describes sleep cycles as commonly restarting every 80 to 100 minutes, and real cycle length varies across people and across the same night.
How does the calculator choose sleep cycles?
It optimizes for waking at the end of a complete estimated sleep cycle. If the sleep amount that usually leaves you rested fits the age guidance, it compares 4 through 9 possible cycles and chooses the count that makes that amount closest to a 90-minute cycle. If that amount is outside the guidance, it uses the nearest common whole-cycle duration inside the guidance when possible.
Why include awake time?
The result includes the fall-asleep buffer and the awake time you enter. That awake time is a planning estimate, not a guarantee of exactly when you will wake or how long each wake window will last.
Why does the calculator start at age 6?
CDC guidance for toddlers and preschoolers includes naps. This calculator focuses on one main overnight sleep window, so it starts with school-age children where a night-only schedule is a clearer fit.
Can this diagnose a sleep problem?
No. This is a timing and planning tool. Talk with a healthcare provider if you regularly have trouble sleeping, wake often, feel very sleepy during the day, or suspect a sleep disorder.

Built and maintained by utilkit. Updated . Found an issue? Send corrections to contact@utilkit.com