🕒 Hours Calculator
Calculate hours worked between a start and end time, including overnight shifts and unpaid breaks.
Shift Details
Result
Tip: for payroll, calculate each day's shift separately with this tool, then add the decimal hours together for your weekly total (e.g. 5 days × ~7.5 hours ≈ 37.5 hours/week).
How the Hours Calculator Works
This calculator finds the elapsed time between a start and end time, automatically handling overnight shifts where the end time is earlier in the clock than the start time, then subtracts any unpaid break.
Formula
hoursWorked = rawHours − (breakMinutes / 60)
Frequently Asked Questions
How are overnight shifts handled?
If the end time is earlier than the start time (e.g. 22:00 to 06:00), the calculator assumes the shift crosses midnight and adds 24 hours before computing the duration.
Should I include my lunch break?
Enter your unpaid break length in minutes and it will be subtracted from the total shift time to give your actual hours worked.
How do I use this for a full payroll timesheet?
Calculate each day's shift separately, note the decimal hours worked, and add the daily totals together to get your weekly total for payroll purposes.