How to Calculate Hours Worked: Breaks, Overnight Shifts and Weekly Pay
To find hours worked, subtract the start time from the end time and then remove unpaid breaks. Three situations cause most errors: minutes entered as decimals, shifts that pass midnight, and breaks.
Entering times as decimal hours
This calculator takes the start and end as hours on a 24-hour clock, with minutes entered as decimals. 9:00 is 9, 17:30 is 17.5, and 17:45 is 17.75, because 45 ÷ 60 = 0.75. From 9 to 17.5 the result is 8.50 hours, which is 8 hours 30 minutes. If you have times in hours and minutes, divide the minutes by 60 and add them to the hour.
Overnight shifts
When the end time is earlier than the start time, the shift crosses midnight. The calculator adds 24 hours: a shift from 22 to 6 is 6 − 22 + 24 = 8 hours. Do the same by hand: 24 − 22 = 2 hours to midnight, plus 6 after, equals 8.
Subtracting unpaid breaks
The calculator does not subtract breaks itself, so remove them from the result. If the 8.50 hours above includes a 30-minute unpaid lunch, paid time is 8.50 − 0.50 = 8.00 hours. Whether breaks are paid depends on the employer and local law, so check your contract.
From weekly hours to pay
Suppose you work 8 paid hours a day for five days, which is 40 hours, at $18.50 an hour: gross pay is 40 × $18.50 = $740.00. If you work an extra 5 hours in the week and overtime is paid at 1.5 times the normal rate, those hours earn 5 × $27.75 = $138.75, bringing the week to $878.75. Overtime rules, including the threshold and multiplier, differ by country, state and type of job.
Keeping a timesheet
- Record start and end times each day rather than totals at the end of the week.
- Write down break times at the time they happen.
- Convert minutes to decimals consistently, and round the same way each time, following the employer's policy.
- Keep a copy of your own records in case of a dispute.
Common mistakes
- Entering 17.30 for 5:30 pm. That means 17 hours and 18 minutes; use 17.5.
- Forgetting an overnight shift needs a 24-hour wrap.
- Counting unpaid breaks as paid time.
- Mixing 12-hour and 24-hour times.
Related tasks
To add several durations together, use the Time Calculator. To convert an hourly rate into an annual figure, use the Salary Calculator.
Try these scenarios
| Start | End | Hours worked | After 0.5 unpaid break |
|---|---|---|---|
| 9 | 17.5 | 8.50 | 8.00 |
| 8.25 | 16.75 | 8.50 | 8.00 |
| 22 | 6 | 8.00 | 7.50 |
| 6.5 | 14.75 | 8.25 | 7.75 |
Remember that 8.25 means 8:15 and 16.75 means 16:45. The second row is the same shift as the first, just starting and ending 15 minutes earlier.
Frequently asked questions
How do I calculate hours between 8:15 and 16:45?
8:15 is 8.25 and 16:45 is 16.75, so the difference is 8.5 hours, or 8 hours 30 minutes.
How do I convert 7.25 hours to hours and minutes?
0.25 × 60 = 15, so 7 hours 15 minutes.
Does the calculator work for shifts longer than 24 hours?
No. It assumes a shift of less than a day. For longer periods, use the Date Calculator or add shifts separately.