Hours worked calculator
Calculate hours worked between two date-times after deducting a break, including overnight shifts.
Formula
Worked hours = (end − start − break minutes) ÷ 60
Shift start = 2026-10-12T09:00 · Shift end = 2026-10-12T17:30 · Break (minutes) = 30
How to use
- Enter the start and end dates and times.
- Enter unpaid break minutes.
- Read decimal hours and hours plus minutes.
Examples
- 09:00 to 17:30 with a 30-minute break gives 8 hours.
Frequently asked questions
How do I enter an overnight shift?
Set the end date to the following day.
Is payroll rounding applied?
No. The result uses the times entered; no overtime or rounding rules are assumed.
What about daylight saving changes?
Use UTC times for shifts crossing an offset change.
Sources
Updated: