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

  1. Write both times in 24-hour format. 8:45 AM stays 08:45; 5:15 PM becomes 17:15.
  2. 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.
  3. Subtract unpaid breaks. 8:30 − 0:30 lunch = 8:00.
  4. 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

StepCalculationResult
Clock in / out7:50 AM → 4:20 PM07:50 → 16:20
Time on the clock16:20 − 07:508:30
Unpaid lunch8:30 − 0:457:45
Decimal hours7 + 45 ÷ 607.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

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

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.