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.
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.