The sleep calculator works out how long you slept as soon as you enter the two times. This guide shows the method behind it, so you can check a night in your head, and the two places people most often get it wrong: noon and midnight, and the time it took to fall asleep.
Count to midnight, then add the morning
Subtracting 11:20 PM from 6:45 AM doesn't work, because the wake-up time is on the next day. Split the night at midnight instead: the minutes from your bedtime to 12:00 AM, plus the hours from midnight to the time you woke.
Example: bed at 11:20 PM, up at 6:45 AM
Total sleep: 7 hours 25 minutes
In 24-hour time it's one step: if the wake-up time is smaller than the bedtime, add 24 hours to it. 6:45 becomes 30:45, and 30:45 − 23:20 is 7:25.
Common nights, worked out
- 12:00 AM (midnight) to 6:00 AM: 6 hours
- 9:00 PM to 6:00 AM: 9 hours
- 10:30 PM to 7:00 AM: 8 hours 30 minutes
- 11:30 PM to 6:45 AM: 7 hours 15 minutes
- 9:41 PM to 6:30 AM: 8 hours 49 minutes
- 11:09 PM to 4:50 AM: 5 hours 41 minutes
Slept at 12: AM or PM?
12:00 AM is midnight, the start of the day; 12:00 PM is noon. "I slept at 12 and woke up at 6" almost always means midnight to 6:00 AM, which is 6 hours. Asleep at 12:00 AM and up at 12:00 PM is a full 12 hours. If a night comes out 12 hours longer or shorter than you expected, an AM/PM mix-up is the usual cause.
Time in bed isn't time asleep
Bedtime to wake-up is your time in bed. To estimate the sleep itself, take off how long it took you to drop off and any long stretch you lay awake in the night. In bed at 10:15 PM and up at 5:40 AM is 7 hours 25 minutes in bed; if it took you 20 minutes to fall asleep and you were awake for half an hour around 3 AM, you slept about 6 hours 35 minutes.
In decimal hours
Sleep trackers and spreadsheets often want decimal hours: divide the minutes by 60. 7 hours 25 minutes is 7 + 25 ÷ 60 = 7.42 hours; 8 hours 49 minutes is 8.82. The minutes to decimal converter has the full chart.
Is it enough?
The American Academy of Sleep Medicine and the CDC recommend 7 or more hours a night for adults, and 8 to 10 for teenagers. If you're planning tonight rather than counting last night, the sleep calculator also suggests bedtimes that end on a full 90-minute sleep cycle for the time you need to be up.
The two clock-change nights
On the night the clocks go back (in the US, the first Sunday in November) you sleep an hour longer than the clock says: 11:00 PM to 7:00 AM is 9 hours, not 8. On the night they go forward, the second Sunday in March, the same night is 7 hours. When the clocks change has the dates for other countries.