The short answer
To calculate hours worked, subtract the start time from the end time, then subtract unpaid breaks. 9:00 AM to 5:30 PM is 8 hours 30 minutes; minus a 30-minute lunch, that is 8 hours. For payroll, convert minutes to decimals by dividing by 60, so 7 hours 45 minutes is 7.75 hours. If the shift ends after midnight, add 24 hours to the end time before subtracting.
How the calculation works
- Span = end time − start time (add 24 hours if the end is earlier than the start)
- Hours worked = span − unpaid breaks
- Decimal hours = hours + minutes ÷ 60
- Pay = decimal hours × hourly rate
Worked example
A shift from 7:45 AM to 4:15 PM with a 30-minute unpaid lunch:
- Span: 16:15 − 7:45 = 8 hours 30 minutes
- Minus the break: 8 hours 0 minutes
- At $22 an hour: 8 × $22 = $176
Common shifts
| Shift | Unpaid break | Hours worked | Decimal |
|---|---|---|---|
| 9:00 AM – 5:00 PM | 30 min | 7 h 30 min | 7.50 |
| 9:00 AM – 5:30 PM | 30 min | 8 h 00 min | 8.00 |
| 8:00 AM – 5:00 PM | 60 min | 8 h 00 min | 8.00 |
| 7:00 AM – 3:30 PM | 30 min | 8 h 00 min | 8.00 |
| 7:00 AM – 7:00 PM | 30 min | 11 h 30 min | 11.50 |
| 10:00 PM – 6:00 AM | none | 8 h 00 min | 8.00 |
| 11:00 PM – 7:30 AM | 30 min | 8 h 00 min | 8.00 |
Tips for accurate hours
- Record times as you go, not at the end of the week.
- Note unpaid meal breaks separately. Short rest breaks are generally paid time.
- For a whole week, use the time card calculator, which totals each day and works out overtime.
Frequently asked questions
How do I calculate hours between two times?
Convert both times to a 24-hour clock, subtract the start from the end, and convert the leftover minutes. 8:15 to 16:45 is 8 hours 30 minutes.
How do I calculate hours for an overnight shift?
Add 24 hours to the end time if it is earlier than the start time. A shift from 10:00 PM to 6:00 AM is (6 + 24) − 22 = 8 hours.
Do breaks count as hours worked?
Under federal rules, short rest breaks of about 5 to 20 minutes count as paid work time. Meal periods of 30 minutes or more usually do not, as long as the employee is fully relieved from duty.
How many hours is 9 to 5?
9:00 AM to 5:00 PM is 8 hours. With an unpaid 30-minute lunch, it is 7.5 hours of paid time; with an unpaid hour, 7 hours.
How do I convert hours and minutes to decimal?
Divide the minutes by 60 and add them to the hours. 6 hours 20 minutes is 6 + 20 ÷ 60 = 6.33 hours.
Sources
Related calculators
About this calculator. Every formula on this page is tested against worked examples from the sources above before publishing. Results are estimates for planning; confirm with your supplier, employer or local rules.
Spotted a problem? Tell us and we will check it.