Time Duration Calculator
Find the hours and minutes between two times, subtract a break and get decimal hours. Handles overnight shifts.
Time settings
If the end time is earlier than the start time, the calculator treats it as the next day.
Time breakdown
| Item | Hours and minutes | Decimal hours |
|---|
How to use the time duration calculator
This tool finds the hours and minutes between two times. It is handy for a single shift, a task or a billing entry.
- Enter the start time and the end time.
- Add an unpaid break in minutes, if there was one.
- Set the number of days if you worked the same shift more than once.
- Add an hourly rate if you want an estimated gross pay.
Press Load example to try a 9:00 AM to 5:30 PM shift with a 30-minute break.
How the time between two times is calculated
Paid time = (End time − Start time) − Unpaid break
Example. From 9:00 AM to 5:30 PM is 8 hours 30 minutes. A 30-minute unpaid break leaves 8 hours 0 minutes, or 8.00 decimal hours. Over 5 days, total paid time is 40 hours.
Times that cross midnight
When the end time is earlier than the start time, the calculator adds 24 hours. That treats the end time as the next morning.
| Start | End | Shift length |
|---|---|---|
| 10:00 PM | 6:30 AM | 8h 30m |
| 11:15 PM | 7:00 AM | 7h 45m |
| 6:00 PM | 2:00 AM | 8h 00m |
Decimal hours
Many payroll and invoicing systems want decimal hours. The tool shows both formats side by side.
| Hours and minutes | Decimal hours |
|---|---|
| 8h 30m | 8.50 |
| 7h 45m | 7.75 |
| 6h 20m | 6.33 |
| 9h 10m | 9.17 |
| 7h 50m | 7.83 |
To convert by hand, divide the minutes by 60. See the full chart in how to convert minutes to decimal hours.
Time duration calculator FAQ
How do I calculate the hours between two times?
Subtract the start time from the end time. If the end is earlier than the start, add 24 hours first. Then subtract any unpaid break.
Does it work for overnight shifts?
Yes. A shift from 10:00 PM to 6:30 AM counts as 8 hours 30 minutes before any break.
How do I convert the result to decimal hours?
The calculator shows decimal hours automatically. By hand, divide the minutes by 60 and add the whole hours.
Can I add several days?
Yes. Enter the number of days and the tool multiplies paid time per day by that number.
Is my data saved or sent anywhere?
No. The calculation runs in your browser, and nothing you type is sent to a server or saved.