How to calculate hours between two times
Subtract the start time from the end time, then take off any unpaid break. It is easiest in 24-hour time, where 5:00 PM is 17:00:
17:00 − 09:00 = 8 hours
When the minutes do not line up, borrow an hour. From 8:45 AM to 4:20 PM: 16:20 becomes 15:80, and 15:80 − 8:45 is 7 hours 35 minutes. The calculator does this for you and also gives the answer as decimal hours (7.58), which is what you multiply by an hourly rate.
Overnight shifts
If the end time is earlier on the clock than the start time, the calculator treats it as the following day. 10:00 PM to 6:30 AM is 8 hours 30 minutes. If start and end are identical the result is zero rather than 24 hours.
Common shift lengths
| Shift | On the clock | With 30-min break | With 1-hour break |
|---|---|---|---|
| 8:00 AM – 4:00 PM | 8h | 7h 30m (7.50) | 7h (7.00) |
| 8:00 AM – 4:30 PM | 8h 30m | 8h (8.00) | 7h 30m (7.50) |
| 9:00 AM – 5:00 PM | 8h | 7h 30m (7.50) | 7h (7.00) |
| 9:00 AM – 5:30 PM | 8h 30m | 8h (8.00) | 7h 30m (7.50) |
| 7:00 AM – 7:00 PM | 12h | 11h 30m (11.50) | 11h (11.00) |
| 10:00 PM – 6:00 AM | 8h | 7h 30m (7.50) | 7h (7.00) |
Need a whole week at once? The time card calculator totals up to seven days with overtime and pay.
Frequently asked questions
How many hours is 9 AM to 5 PM?
9:00 AM to 5:00 PM is 8 hours. With a 30-minute unpaid lunch it is 7 hours 30 minutes, or 7.5 decimal hours.
What if the end time is after midnight?
When the end time is earlier on the clock than the start time, the calculator assumes it falls on the next day. 11:00 PM to 7:00 AM is 8 hours.
What are decimal hours?
Decimal hours express minutes as a fraction of an hour: 30 minutes is 0.5 hours and 45 minutes is 0.75 hours. Payroll systems multiply decimal hours by the hourly rate, so 7 hours 45 minutes is entered as 7.75.