How to Calculate Hours Worked — Including Breaks and Overnight Shifts
Calculators give you the total instantly, but the underlying method is worth knowing — it helps you spot mistakes and understand your own timesheet. This guide walks through the calculation across several real situations.
The basic idea: end time minus start time
At its simplest, hours worked equals the time from when you started to when you finished. A shift from 9:00 to 17:00 is 8 hours. The complication is that hours and minutes don't subtract cleanly on paper the way ordinary numbers do, which is why converting everything to minutes first is a reliable method.
The minutes method
Convert each clock time into a total number of minutes since midnight, subtract, then convert the answer back. Minutes since midnight = (hours × 60) + minutes.
- 9:00 → 9 × 60 + 0 = 540 minutes
- 17:30 → 17 × 60 + 30 = 1,050 minutes
- 1,050 − 540 = 510 minutes → 510 ÷ 60 = 8 hours 30 minutes
Working in minutes avoids borrowing across the hours–minutes boundary and gives one number you can subtract and add with confidence.
Example 1 — a single shift with an unpaid break
Shift 8:00 to 17:00 with a 30-minute unpaid lunch. Convert to minutes: 8:00 = 480, 17:00 = 1,020. Elapsed = 1,020 − 480 = 540 minutes (9 hours). Subtract the unpaid break: 540 − 30 = 510 minutes =8 hours 30 minutes worked.
Subtracting breaks
When calculating paid or worked time, subtract only breaks that should be excluded from the total. Whether a particular break is included depends on the arrangements and rules that apply to your situation. This guide does not assume that a break should automatically be included or excluded.
Adding multiple work periods
A split shift or a day with a long unpaid gap is easiest to handle as separate periods. Work out each period in minutes, then add the periods together (and subtract any unpaid breaks that fall inside them).
Example 2 — two periods with a midday gap
Morning 9:00–12:00, then an unpaid lunch, then afternoon 12:30–17:00.
- Morning: 12:00 (720) − 9:00 (540) = 180 minutes
- Afternoon: 17:00 (1,020) − 12:30 (750) = 270 minutes
- Total: 180 + 270 = 450 minutes = 7 hours 30 minutes
The 30-minute gap between 12:00 and 12:30 is simply not counted, because no period covers it — so it is excluded automatically without needing a separate break entry.
Overnight shifts that cross midnight
When a shift finishes the next day, the finish time in minutes since midnight is smaller than the start time, so a straight subtraction gives a negative number. The fix is to add 24 hours (1,440 minutes) to the finish time before subtracting.
Example 3 — an overnight shift
Shift 22:00 to 06:00 with a 30-minute unpaid break.
- Start: 22:00 = 1,320 minutes
- Finish: 06:00 = 360 minutes. Since 360 < 1,320, add 1,440 → 1,800 minutes
- Elapsed: 1,800 − 1,320 = 480 minutes = 8 hours
- Minus 30-minute break: 480 − 30 = 450 minutes = 7 hours 30 minutes worked
Combining daily totals into weekly hours
Once each day is a number of minutes, the week is just a sum. Convert the weekly minute total back into hours and minutes by dividing by 60: the whole part is the hours, the remainder is the minutes.
Example 4 — a weekly total
A five-day week of: Mon 8h 00m, Tue 8h 00m, Wed 7h 30m, Thu 8h 00m, Fri 7h 00m.
- Minutes: 480 + 480 + 450 + 480 + 420 = 2,310 minutes
- 2,310 ÷ 60 = 38.5 → 38 hours 30 minutes (38.50 decimal hours)
Hours-and-minutes versus decimal hours
The same total can be written two ways. 7 hours 30 minutes is 7h 30m in time form and7.50 in decimal form (30 ÷ 60 = 0.5). Time form is how people read a shift length; decimal form can be used when multiplying hours by a rate. For the full conversion method and a reference chart, see the minutes to decimal hours guide.
Common mistakes and edge cases
- Writing minutes as decimals. 7h 45m is 7.75 hours, not 7.45 — minutes are base-60.
- Forgetting the midnight wrap. 22:00 to 06:00 is 8 hours, not −16. Add 1,440 minutes when the finish is earlier than the start.
- Subtracting paid breaks. Only unpaid breaks reduce worked time; paid breaks stay in.
- Not carrying minutes past 60. 90 minutes is 1h 30m, not 1h 90m — divide by 60 and keep the remainder.
- Counting a midday gap twice. If you total separate periods, the unpaid gap between them is already excluded; don't subtract it again as a break.