How to Calculate Hours Worked (Including Breaks and Night Shifts)
Calculate hours worked between two times, subtract breaks, handle overnight shifts, and convert minutes to decimal hours for timesheets and payroll.
Whether you're filling in a timesheet, checking a payslip or billing a client, you need an accurate count of hours. Here's the method, including the two things that trip most people up: overnight shifts and decimal hours.
The basic method
Hours worked = end time − start time − unpaid breaks
Example: 9:00 AM to 5:30 PM is 8 hours 30 minutes. With a 30-minute unpaid lunch, that's 8 hours.
Overnight shifts
If a shift crosses midnight, the end time looks "earlier" than the start. Add 24 hours to the end time before subtracting. A shift from 10:00 PM (22:00) to 6:00 AM (6:00 + 24 = 30:00) is 30 − 22 = 8 hours.
Converting to decimal hours
Payroll systems and invoices usually need decimal hours. Divide the minutes by 60:
- 15 minutes = 0.25 hours
- 30 minutes = 0.5 hours
- 45 minutes = 0.75 hours
So 7 hours 45 minutes is 7.75 hours. A common mistake is writing it as 7.45, which undercounts by 18 minutes.
Weekly totals and pay
Add up each day's decimal hours to get your weekly total, then multiply by your hourly rate. If some hours are overtime, calculate those separately with the multiplier from your contract; our guide on calculating overtime pay shows how.
Do it automatically
The hours calculator handles breaks and overnight shifts for you. For pay, use the overtime calculator.