Sleep Duration Calculator

Pick the times — your sleep duration appears right below
More features: one-week sleep log, working back to your bedtime

Was this week enough? (sleep-debt check)

Each time you enter a day’s sleep (in hours, decimals OK), the average and the difference from 7 hours a day are calculated from just the days entered so far (blank days are ignored).

Work back to when you should go to bed

Enter your target sleep duration, and the bedtime is worked back from the wake-up time in the form above.

This tool calculates the simple time difference between going to bed and getting up — an approximation. It does not include the time it takes to fall asleep or time awake during the night, so the time actually asleep may be shorter.
What this tool tells you

Just enter when you went to bed and when you got up to instantly see how long you slept — calculated correctly even across midnight. Useful for getting your sleep rhythm in order.

How to use

  1. Enter your bedtime (the time you fall asleep).
  2. As soon as you enter your wake-up time, the sleep duration appears right below. No button needed.
  3. “Up at 6 and want 7 hours of sleep” — you can also use it to try out bedtimes worked back from your wake-up time.

How it is calculated

Sources and assumptions

Assumptions and notes

Frequently asked questions

How many hours of sleep are ideal?

Sleep needs vary greatly with age and between individuals, and there is no single right answer. A practical yardstick is whether you can get through the day without strong sleepiness.

I heard waking up at a multiple of 90 minutes is better?

The sleep cycle is often said to be “about 90 minutes”, but the actual cycle varies between people (and even within one night), so this tool does not make 90-minute recommendations.

How should I handle going back to sleep or hitting snooze?

Use the time you finally got out of bed as the wake-up time to get your “time lying down”, or the time you first woke up to get your “main sleep”. Choose whichever matches your purpose.

Related tools