Work out how long you were in bed from your bedtime and wake time, including nights that cross midnight. It is a quick way to compare your schedule with sleep-duration guidelines or to plan a bedtime.
How to use the Sleep Duration calculator
- Enter Bedtime (HH:MM) on a 24-hour clock, for example 22:45 for 10:45 pm.
- Enter Wake time (HH:MM), for example 06:30.
- Read the hours. A wake time earlier than the bedtime is treated as the next morning.
How the sleep duration calculation works
Time in bed is not time asleep
The result is the gap between the two clock times. It does not subtract the time it takes to fall asleep or time spent awake during the night, so actual sleep is usually shorter. If you want at least 7 hours of sleep and usually take 20 minutes to drop off, plan for about 7 hours 20 minutes in bed.
On the night clocks spring forward for daylight saving time, the real interval is an hour shorter than this tool shows; in the fall it is an hour longer.
Comparing with guidelines
The CDC lists 7 or more hours a night for adults aged 18 to 60, 7 to 9 hours for ages 61 to 64, and 7 to 8 hours for 65 and older. Teens aged 13 to 17 are listed at 8 to 10 hours, and children aged 6 to 12 at 9 to 12. These are population guidelines; talk to a doctor if you are often tired despite enough time in bed.
Worked example
Bedtime (HH:MM): 22:45 · Wake time (HH:MM): 06:30
- 22:45 to midnight is 75 minutes.
- Midnight to 06:30 is 390 minutes.
- 75 + 390 = 465 minutes; 465 ÷ 60 = 7.75 hours (7 hours 45 minutes).
Result: 7.75 hours
Assumptions and limits
At most one overnight span; equal times mean zero. No sleep cycles, awakenings or DST adjustments.
Formula and worked examples last checked November 20, 2026. Spotted a problem? Report an error.
Frequently asked questions
How many hours of sleep do adults need?
The CDC lists at least 7 hours a night for adults aged 18 to 60, and 7 to 9 hours for ages 61 to 64. Individual needs vary.
How do I enter 11 pm?
Use the 24-hour clock: 23:00. Midnight is 00:00 and 12:30 pm is 12:30.
What does 7.75 hours mean in hours and minutes?
Multiply the decimal by 60: 0.75 × 60 = 45, so 7 hours 45 minutes.
What if my bedtime and wake time are the same?
The calculator returns 0 hours rather than 24. It handles at most one overnight span.