What this calculator does
Sleep duration is the gap between the time you go to bed and the time you get up. When the wake time is earlier on the clock than the bedtime, the night crosses midnight and the calculation has to add a day. This calculator converts both times to minutes, handles that wrap, and returns the total in hours and minutes plus decimal hours, which is handy for sleep logs and shift schedules.
How to use it
- Enter the bedtime hour and minute on a 24-hour clock.
- Enter the wake hour and minute.
- Read the duration in hours and minutes.
- Check the decimal hours for logs or apps.
- Note the next-day flag when the night crosses midnight.
How it works
Example calculations
Example 1: 23:00 to 07:00
The wake time is earlier on the clock, so it becomes 07:00 on the next day. The difference is 480 minutes, or 8 hours 0 minutes, which is 8.00 decimal hours, and the next-day flag is set.
Example 2: 01:30 to 08:15
Both times fall on the same calendar day, so no day is added. The difference is 405 minutes, or 6 hours 45 minutes, which is 6.75 decimal hours, with no next-day flag.
Example 3: 22:45 to 06:30
Adding a day to the wake time gives a difference of 465 minutes, or 7 hours 45 minutes, which is 7.75 decimal hours, and the next-day flag is set.
What the result means
Crossing midnight is the main trap. A 10:00 p.m. bedtime and a 6:00 a.m. wake time is eight hours, not negative sixteen. The calculator treats equal times as zero minutes, though that entry could also mean a full 24 hours; check which one you intended. This is time in bed between two clock times, not measured sleep: falling asleep takes time, and waking during the night reduces the total. Most adults are advised to get at least seven hours a night, but needs vary with age, health, and activity. Keep bedtime and wake time consistent, and treat a single night as one data point rather than a trend.
Common mistakes
- Subtracting the times without adding a day when the night crosses midnight.
- Entering 11:00 for 11 p.m. on a 24-hour clock, which reads as 11 a.m.
- Reading 6.75 hours as 6 hours 75 minutes.
- Treating time in bed as actual sleep.
- Entering the same time for both and assuming eight hours.
Assumptions and limits
- Both times use a 24-hour clock in the same time zone.
- The sleep period is less than 24 hours.
- No daylight saving change occurs during the night.
- Equal times are reported as zero minutes.
- Time in bed is reported, not measured sleep.
Frequently asked questions
What if I go to bed at 1 a.m.?
Enter 01:00 and the wake time, such as 08:15. Because the wake time is later on the clock, no day is added and the night stays on one calendar date.
What does the next-day flag mean?
It means the wake time falls on the calendar day after bedtime. A 23:00 bedtime with a 07:00 wake time sets the flag.
Why is 6.75 not 6:45?
6.75 is decimal hours, where 0.75 of an hour is 45 minutes. The hours and minutes line shows 6 hours 45 minutes.
What if bedtime and wake time are identical?
The calculator returns zero. Identical clock times could mean no sleep or a full day, so check the entry.
Does this account for falling asleep?
No. It measures the interval between the times you enter. Sleep latency and waking during the night are not included.
Can I use this for shift work?
Yes for a single sleep period. Enter the bedtime and wake time as they appear on the clock; the next-day flag shows whether sleep crossed midnight.
Sources
2026 update
How to use the professional output
This page is not just a formula box. The result is designed to be checked, compared, and taken away.
- Professional worksheet. The result includes the inputs used, the method and scope, and a one-variable sensitivity check for finance calculators.
- A/B scenarios. Save two input sets in the browser and compare the primary, secondary, and breakdown figures side by side.
- Print / PDF and CSV. Print a branded worksheet, or export the year-by-year table when the calculator produces one.
The formulas and assumptions above still govern the number. The worksheet makes the estimate auditable; it does not make it a lender quote, tax return, or personalized advice.
Go deeper
