How to calculate hours worked
Subtract the start time from the end time, then subtract any unpaid breaks. If the shift goes past midnight, add 24 hours to the end time first.
Example
A shift from 9:00 AM to 5:30 PM is 8 hours 30 minutes. Subtract a 30-minute lunch break and you worked 8 hours. At $20 an hour, that is $160 for the day, and over a 5-day week, 40 hours or $800.
Converting minutes to decimal hours
Payroll systems usually need decimal hours. Divide the minutes by 60:
| Minutes | Decimal | Minutes | Decimal |
|---|---|---|---|
| 15 | 0.25 | 40 | 0.67 |
| 20 | 0.33 | 45 | 0.75 |
| 30 | 0.50 | 50 | 0.83 |
So 7 hours 45 minutes = 7.75 hours — not 7.45.
Overnight and night shifts
If your end time is earlier than your start time (for example 10:00 PM to 6:00 AM), the calculator treats it as an overnight shift and counts across midnight automatically: that example is 8 hours before breaks.
Overtime rules, paid breaks and rounding policies differ by employer and country. Check your contract or local labor law for how your hours are paid.
Frequently asked questions
How do I calculate hours for an overnight shift?
Just enter the start and end times. If the end is earlier than the start, the calculator assumes the shift crosses midnight.
Are breaks included?
Enter only your unpaid break time; it is subtracted from the shift. Leave it at 0 if your breaks are paid.
How do I write 8 hours 20 minutes in decimal?
Divide 20 by 60 to get 0.33, so it is 8.33 hours.
Does this calculate overtime?
Not separately. Multiply any hours above your overtime threshold by your overtime rate (often 1.5×).
Last updated November 2026 · Reviewed by the FigureBloom team