Free online time duration calculator
This time duration calculator works out exactly how much time passes between a start time and an end time — the answer to "how many hours is that shift?" in a single glance. Enter two times and it instantly shows the duration in hours and minutes, the total number of minutes, and the equivalent in decimal hours for payroll and invoices. It handles overnight spans that cross midnight and can subtract an unpaid break, so it's ideal for timesheets, work shifts, cooking, study sessions, and billing. Everything runs in your browser, so your times stay private.
How to calculate the time between two times
- Enter your Start time in the first field.
- Enter your End time in the second field.
- Tick overnight if the end time falls on the next day.
- Add any unpaid break minutes to subtract from the total.
- Read the live result, then click Copy summary for a timesheet or message.
How the calculation works
Each time is converted to minutes since midnight, then the start is subtracted from the end. When the overnight box is ticked or the end time is earlier than the start, a full 24 hours is added so the result is never negative. Any break minutes are then taken off and clamped at zero. Need whole calendar days instead of clock times? Try the date difference calculator. Working with epoch values? Use the Unix timestamp converter.
Time duration examples
Enter both times and any break to reproduce these results. The calculator shows the remaining duration after the break, plus its equivalent in decimal hours rounded to two places.
| Start → end | Break | Duration | Decimal hours |
|---|---|---|---|
| 13:32 → 14:16 | 0 min | 44 min | 0.73 |
| 09:00 → 17:00 | 30 min | 7 h 30 min | 7.50 |
| 22:00 → 06:00 next day | 30 min | 7 h 30 min | 7.50 |
| 09:00 → 09:00 next day | 0 min | 24 h | 24.00 |
From 1:32 pm to 2:16 pm is 44 minutes. A 9 am to 5 pm shift is eight hours before a break; subtracting 30 minutes leaves 7 hours 30 minutes. In decimal form, that is 7.5 hours, not 7.30 hours, because 30 minutes is half an hour.
Same time, next day, or a longer date range?
If both clock times are equal, the same-day result is zero. Tick End time is on the next day to count 24 hours instead. An earlier end time automatically means the next day; use the checkbox when the next-day end time is equal to or later than the start time.
This tool compares clock times without dates, time zones, or daylight-saving adjustments. For a span of several calendar days, use the days between two dates calculator. To find a deadline a set number of days away, use the date calculator.
Private and instant
There is no sign-up and nothing is uploaded — the calculation happens locally on your device. Bookmark this page the next time you need a fast, accurate count of the hours and minutes between two times.