Hours Calculator
The hours and minutes between two clock times, less any break, including shifts past midnight.
Result…
How it's calculated
Hours = (end − start, + 24 h if the end is past midnight) − break
Counts the time between two clock times on a 24-hour clock, then takes off a break. When the end is earlier than the start, the time runs past midnight into the next day. Decimal hours (8.5 = 8 h 30 min) are what most payroll systems use.
Your numbers, step by step
About the Hours calculator
This hours calculator works out how long you worked between two clock times, less any unpaid break. Enter a start and an end time and it shows the hours and minutes, the same time in decimal hours, the total minutes, and the time before the break was taken off. Decimal hours (8.5 = 8 h 30 min) are what most payroll systems and invoices use, so you can copy the figure straight into a timesheet. Shifts that run past midnight work too: when the end time is earlier than the start, the calculator counts on into the next day. It uses a 24-hour clock, so 17:30 is half past five in the afternoon. For a whole week with different times each day, use the time card calculator, and for the maths behind the conversion see how to convert hours and minutes to decimal hours.
How to use it
- Enter the “Start time” of the shift or task.
- Enter the “End time”. An end before the start counts as the next day.
- Enter the unpaid “Break” in minutes, or 0.
- Read the hours and minutes, then the decimal hours for your timesheet and the total minutes.
Worked example
A shift from 08:45 to 17:05 is 8 h 20 min. Take off a 30-minute break and it is 7 h 50 min, which is 7.833333 decimal hours, or 470 minutes. A night shift from 22:00 to 06:15 with no break is 8 h 15 min, or 8.25 decimal hours.
Updated
Questions people ask
How do I calculate hours worked between two times?
Subtract the start time from the end time, adding 24 hours if the shift ends after midnight, then take off any unpaid break. 07:30 to 16:10 less a 40-minute break is exactly 8 hours.
How do I turn hours and minutes into decimal hours?
Divide the minutes by 60 and add them to the hours. 7 h 50 min is 7 + 50 ÷ 60, about 7.83 hours.
Does it work for night shifts?
Yes. If the end time is earlier than the start, the calculator assumes the shift ran past midnight, so 22:00 to 06:15 is 8 h 15 min.
Is 8.30 hours the same as 8 hours 30 minutes?
No. 8 h 30 min is 8.5 decimal hours, while 8.30 decimal hours is 8 h 18 min. Typing minutes after the decimal point is the most common timesheet mistake.
What can't the hours calculator do?
It times one stretch between two clock times, up to 24 hours, with one break. For several days use the time card calculator, and to add or subtract lengths of time use the time calculator.