Hours and minutes between two times.
How long is it from 9:15 am to 5:40 pm? Or from 10 pm to 6:30 am? This time duration calculator gives the time between two clock times in hours and minutes, and also in decimal hours, total minutes and seconds. It handles times that cross midnight, and you can take off a break in minutes.
Quick answer: to find the time between two times, subtract the start time from the end time. From 9:15 to 17:40 is 8 hours 25 minutes, or 8.42 decimal hours. If the end time is earlier than the start, it is on the next day, so add 24 hours.
How to Use the Time Duration Calculator
- Enter the start time.
- Enter the end time.
- Enter a break in minutes, if you want one taken off.
- Read the duration, decimal hours, minutes and seconds.
If the end time is earlier than the start time, the calculator assumes it is the next day and tells you.
Time Duration Examples
| Start | End | Break | Duration | Decimal hours |
|---|---|---|---|---|
| 9:15 | 17:40 | None | 8 h 25 min | 8.42 |
| 9:15 | 17:40 | 30 min | 7 h 55 min | 7.92 |
| 22:00 | 6:30 | None | 8 h 30 min (overnight) | 8.50 |
How to Calculate Time Between Two Times by Hand
- Convert both times to minutes after midnight. 9:15 = 9 × 60 + 15 = 555. 17:40 = 17 × 60 + 40 = 1,060.
- Subtract. 1,060 − 555 = 505 minutes.
- If the answer is negative, the end is on the next day, so add 1,440 (the minutes in a day).
- Take off any break.
- Convert back. 505 ÷ 60 = 8 hours, remainder 25 minutes.
Converting Minutes to Decimal Hours
Payroll and timesheet systems often use decimal hours. Divide the minutes by 60:
| Minutes | Decimal |
|---|---|
| 10 | 0.17 |
| 15 | 0.25 |
| 20 | 0.33 |
| 30 | 0.50 |
| 45 | 0.75 |
| 50 | 0.83 |
So 8 hours 25 minutes is 8 + 25 ÷ 60 = 8.42 hours, not 8.25. Writing 8:25 as 8.25 is one of the most common timesheet mistakes.
12-Hour and 24-Hour Times
The time boxes follow your device’s settings, so you may see AM and PM or the 24-hour clock. Both work the same way. 5:40 PM is 17:40.
Related Time Tools
- For a full week of shifts with breaks, overtime and pay, use the work hours calculator.
- To count days rather than hours, use the days between dates calculator.
Time Duration FAQs
How do I calculate hours between two times?
Subtract the start time from the end time. If you are working by hand, convert both to minutes first, then divide the difference by 60.
How does the calculator handle overnight times?
If the end time is earlier than the start time, it adds 24 hours, so 22:00 to 06:30 gives 8 hours 30 minutes.
Can it handle more than 24 hours?
No. It measures the time between two clock times, which is always under 24 hours. For longer periods, use the days between dates calculator.
Does it adjust for daylight saving time?
No. On the night the clocks change, an overnight shift is one hour longer or shorter than the result shows.
How we checked this page: every duration in the table was worked out by hand in minutes and matches the calculator.
