Skip to main content

Sleep Calculator

Work out bedtimes or wake-up times from age-based sleep recommendations, with your time to fall asleep and a visual timeline.

Embed this widget

Customize the result, check the live preview, then copy the code.

Preview

Embed code type

Code to copy

Responsive and automatically resized by Bethemesh.

Your times

Start from what you already know: your wake-up time or your bedtime. Everything is calculated on your device.

I want to know

Your usual estimate, 0 to 60 minutes

Method

For each duration in the range recommended for the chosen age group, the tool subtracts the sleep time and your estimated time to fall asleep from the wake-up time, or adds them to the bedtime. The durations come from the CDC table, which combines the consensus statements of the American Academy of Sleep Medicine and the National Sleep Foundation. Times that fall on another day are flagged.

Limitations

  • The guidelines apply to healthy people; actual sleep need varies with genetics, activity, health and sleep debt.
  • Time to fall asleep is your own estimate and changes from one night to the next.
  • Babies under one year are not included: their sleep is spread across the whole day.
  • The calculation ignores clock changes and waking up during the night.

Was this tool useful?

On this page

How does this tool work?

What time should you go to bed to get enough sleep before the alarm? This calculator starts from your wake-up time, or your bedtime, and suggests times across the whole sleep range recommended for your age, taking into account how long it takes you to fall asleep.

The reference durations come from the table published by the US Centers for Disease Control and Prevention (CDC), which draws on two expert consensus statements: the American Academy of Sleep Medicine for children, teenagers and adults aged 18 to 60, and the National Sleep Foundation for adults 61 and over. Adults aged 18 to 60 should sleep at least 7 hours; teenagers aged 13 to 17, 8 to 10 hours.

For each duration in the range, in 30-minute steps, the tool subtracts the sleep time and the time to fall asleep from the wake-up time ("when to go to bed" mode), or adds them to the bedtime ("when to wake up" mode). Each suggestion separates the moment you go to bed, the estimated time you fall asleep and the wake-up time; the timeline puts them on one axis and flags times that cross midnight with "day before" or "next day".

Unlike many sleep calculators, this tool does not count 90-minute cycles. A sleep cycle, from non-REM to REM sleep, lasts about 80 to 100 minutes according to the National Heart, Lung, and Blood Institute (NHLBI), and its length varies between people and through the night. Promising a wake-up "at the end of a cycle" to the minute would be misleading.

How to use this tool

  1. Choose the mode

    "When to go to bed" if your wake-up time is fixed, "when to wake up" if you know your bedtime.

  2. Enter the time, age and time to fall asleep

    Time to fall asleep is your usual estimate; keep 15 minutes if you are not sure.

  3. Compare the suggestions

    Each row shows the sleep duration, bedtime, time asleep and wake-up time, with the day before or next day flagged.

Good to know

Two modes

Work out a bedtime from your wake-up time, or a wake-up time from your bedtime.

Sourced guidelines

Age ranges follow the AASM and National Sleep Foundation consensus statements published by the CDC.

No cycle promises

Suggestions every 30 minutes, without claiming to time your alarm to a 90-minute cycle.

Linking bedtime, falling asleep and waking up

Two durations separate bedtime from wake-up time: the time to fall asleep and the sleep itself.

Bedtime

Bedtime = Wake-up − Sleep − Time to fall asleep

Wake-up time

Wake-up = Bedtime + Time to fall asleep + Sleep

Sleep
target sleep duration, within the range recommended for the age group
Time to fall asleep
estimated time between going to bed and falling asleep, 0 to 60 minutes

Times are calculated on a 24-hour clock: a result that crosses midnight is assigned to the day before or the next day.

Use cases

Plan an early start

Alarm at 5:15 for a train: with 15 minutes to fall asleep, the tool suggests going to bed between 20:00 and 22:00 the night before to sleep 7 to 9 hours.

Set a child’s bedtime

For a 6 to 12-year-old who gets up at 7:00, the 9 to 12-hour range puts bedtime between 18:45 and 21:45 with 15 minutes to fall asleep.

Know when to get up after a late night

In bed at 1:00, with 15 minutes to fall asleep, 7 hours of sleep take you to an 8:15 wake-up.

Examples

Adult waking at 7:00

9 h of sleep: 07:00 − 9 h − 15 min = 21:45. For 7 h: 07:00 − 7 h 15 = 23:45.

Input

Wake-up 07:00; 18–60 years; 15 min to fall asleep

Result

Bedtime between 21:45 and 23:45 the night before

Teenager in bed at 23:30

23:30 + 20 min = 23:50 asleep; + 8 h = 07:50 and + 10 h = 09:50.

Input

Bedtime 23:30; 13–17 years; 20 min to fall asleep

Result

Wake-up between 07:50 and 09:50 the next day

Tips and best practices

  • Regular times, weekends included, matter as much as total sleep.
  • If falling asleep is often slow or hard, talk to a healthcare professional rather than moving your bedtime even earlier.
  • For a child who naps, subtract the nap from the daily total before picking a bedtime.
  • The calculation link keeps the mode, time, age group and time to fall asleep, which is handy for agreeing on a family schedule.

Sources and references

Frequently asked questions

How much sleep do you need by age?

According to the CDC table: 11 to 14 hours at 1–2 years and 10 to 13 hours at 3–5 years, naps included; 9 to 12 hours at 6–12; 8 to 10 hours at 13–17; 7 hours or more at 18–60; 7 to 9 hours at 61–64; and 7 to 8 hours from 65.

Should I wake up at the end of a 90-minute cycle?

Sleep cycles are real, but they last roughly 80 to 100 minutes and change through the night. Adding up 90-minute blocks does not guarantee waking from light sleep; aiming for enough sleep at regular times is a better bet.

What should I enter as time to fall asleep?

The time you usually need between turning off the light and falling asleep. 15 minutes is a starting point; adjust it from experience.

Why is there no age group for babies?

Before age one, sleep is spread over day and night with many naps, so a single bedtime makes no sense. Guidelines exist (12 to 16 hours per 24 hours from 4 to 12 months), but they belong to pediatric follow-up.

Is sleeping more than 9 hours a problem?

Not necessarily. According to the AASM consensus, more than 9 hours may be appropriate for young adults, people recovering from sleep debt and people who are ill. A lasting need for much more sleep than usual is worth discussing with a doctor.

Are my times saved anywhere?

No. The calculation runs in your browser; the share link only contains your inputs, in the page address.

Related tools

Tools similar or complementary to this one.

Similar tools

Calculate the duration between a start time and an end time, even past midnight.

Health & wellnessUse this tool

Calculate your maximum heart rate (Tanaka, 220 − age, Gulati) and your five training zones, with the Karvonen method if you know your resting heart rate.

Health & wellnessFeaturedUse this tool