How to Calculate Hours Worked (With Lunch and Night Shifts)
Last updated · By the DropFlick team
Working out hours by hand is easy once you convert everything to one unit. Here is a method that always works, including for lunch breaks, split shifts and shifts that run past midnight.
The 4-step method
- Write both times in 24-hour format. 8:45 AM stays 08:45; 5:15 PM becomes 17:15.
- Subtract start from end. Subtract minutes first; if you can't, borrow 60 minutes from the hours. 17:15 − 08:45 → 16:75 − 08:45 = 8:30.
- Subtract unpaid breaks. 8:30 − 0:30 lunch = 8:00.
- Convert to decimal if payroll needs it. Divide the minutes by 60: 8:00 = 8.00 hours; 7:45 = 7.75 hours.
Or skip the arithmetic and use the hours calculator, which does exactly these steps.
Example 1: a standard day with lunch
| Step | Calculation | Result |
|---|---|---|
| Clock in / out | 7:50 AM → 4:20 PM | 07:50 → 16:20 |
| Time on the clock | 16:20 − 07:50 | 8:30 |
| Unpaid lunch | 8:30 − 0:45 | 7:45 |
| Decimal hours | 7 + 45 ÷ 60 | 7.75 |
Example 2: a shift that crosses midnight
When the end time is earlier than the start time, add 24 hours to the end time before subtracting. A 10:00 PM to 6:30 AM shift: 06:30 + 24:00 = 30:30; 30:30 − 22:00 = 8:30. Minus a 30-minute unpaid break, that's 8:00 hours worked.
Example 3: a split shift
Work out each part separately and add them. 6:00–10:00 (4:00) plus 15:00–19:15 (4:15) = 8:15, or 8.25 decimal hours. The time between the two parts is not counted.
Adding up a whole week
Add the hours and the minutes in separate columns, then convert every 60 minutes into an hour. For example, five days of 7:45 is 35 hours + 225 minutes = 35 hours + 3 hours 45 minutes = 38:45 (38.75 decimal). Converting each day to decimal first and adding the decimals gives the same answer and is easier on a normal calculator. The time card calculator does the whole week for you, including overtime.
Common mistakes
- Treating minutes as decimals. 7:45 is not 7.45 hours. It's 7.75.
- Deducting paid breaks. Short paid rest breaks are usually working time, so only deduct unpaid breaks.
- Mixing AM and PM. 12:30 AM is just after midnight; 12:30 PM is just after noon.
- Forgetting the overnight rule. A negative result means the shift crossed midnight: add 24 hours.
Method 2: Convert to decimals first
Some people find it easier to turn each clock time into decimal hours before subtracting. Divide the minutes by 60: 7:50 AM is 7 + 50 ÷ 60 = 7.83, and 4:20 PM is 16 + 20 ÷ 60 = 16.33. Then 16.33 − 7.83 = 8.50, and taking off a 0.75-hour lunch leaves 7.75 hours, the same answer as Example 1. Keep two decimal places, or rounding errors can add up over a week.
Using a 24-hour clock avoids AM/PM errors
Writing times as 24-hour values (07:50, 16:20) removes the most common hand-calculation slip: subtracting a PM time as if it were AM. If your workplace uses military time, the military time chart shows every conversion.
Should you round your times?
Record the exact minutes if you can. Some employers round clock punches to 5, 6 or 15 minutes. That's allowed in the US as long as it evens out over time, so your total may differ slightly from your own exact count. See time clock rounding rules for how to compare the two.
Keeping an accurate record
- Write times down when they happen, not at the end of the week.
- Note unpaid breaks separately from paid rest breaks. Only unpaid breaks are subtracted (see paid vs unpaid breaks).
- For shifts that finish after midnight, record the shift on the day it started. Night shift hours covers the details, including daylight saving nights.
- Keep your own copy. If a payslip looks wrong, a dated personal record is the easiest way to sort it out.
Frequently asked questions
How many hours is 9 to 5?
9:00 AM to 5:00 PM is 8 hours on the clock. With a 30-minute unpaid lunch it's 7.5 hours worked; with a 1-hour unpaid lunch it's 7 hours.
How many hours is 8 AM to 4:30 PM?
8 hours 30 minutes on the clock, or 8:00 worked after a 30-minute unpaid lunch.
How do I total hours for a two-week pay period?
Total each week separately, because overtime is usually checked per week. The biweekly time card example goes through a full pay period.