Hours Calculator

Work out how many hours are between two times, perfect for timesheets and shifts. Enter a start time and an end time, subtract any break, and the calculator shows the total in hours and minutes and as a decimal. Overnight shifts are handled automatically.

Total time
8h 0m
Decimal hours8.00
Total minutes480

If the end time is earlier than the start time, it is treated as the next day (an overnight shift).

How it works

The start and end times are converted to minutes. If the end is earlier than the start, the calculator assumes the shift runs past midnight and adds a day. It then subtracts any break to give the worked time, shown in hours and minutes and as a decimal number of hours.

Frequently asked questions

Does it handle overnight shifts?
Yes. If the end time is earlier than the start time, it is treated as the next day so the total is correct.
How is a lunch break handled?
Enter the break in minutes and it is subtracted from the total worked time.
What is decimal hours used for?
Payroll often uses decimal hours, where 30 minutes is 0.5 hours, to multiply by an hourly rate.