← All How-To Guides

How to Calculate Work Hours (Including Overnight Shifts)

Clock-in to clock-out, minus breaks, in the decimal hours payroll actually uses - with the overnight-shift rule and the 45-minutes-is-0.75 trap most people fall into.

Most timesheet mistakes come from three places: AM/PM mix-ups, forgotten breaks, and one decimal conversion that almost everyone gets wrong the first time. The method below avoids all three by doing the whole job in minutes first, and converting to decimal hours once, at the very end. It works for a single shift, an overnight shift, and a whole week.

Step 1 — Convert both clock times to 24-hour format

AM/PM arithmetic is where errors start, so remove it. In 24-hour format, 9:00 AM is 09:00 and 5:30 PM is 17:30. The rule for PM times is simply "add 12" — 1 PM becomes 13:00, 6 PM becomes 18:00 — except for the two edge cases: 12 PM (noon) stays 12:00, and 12 AM (midnight) becomes 00:00.

Step 2 — Subtract start from end, working in minutes

Convert each time to minutes since midnight by multiplying the hour by 60 and adding the minutes. Then subtract:

  • End: 17:30 → (17 × 60) + 30 = 1,050 minutes
  • Start: 09:00 → (9 × 60) + 0 = 540 minutes
  • 1,050 − 540 = 510 minutes = 8 hours 30 minutes

Working in minutes isn't just tidiness — it eliminates the "borrow an hour" errors that creep in when you subtract clock times directly, like trying to take 5:45 from 17:15 in your head. A second example, of exactly the kind that breaks paper math: 8:45 AM to 5:15 PM. In minutes that's 525 and 1,035 — and 1,035 − 525 = 510 minutes, the same 8 hours 30 minutes, with no borrowing and no guessing.

Step 3 — Overnight shift? Add 24 hours to the end time first

If the shift crosses midnight, the end time is smaller than the start time and a plain subtraction goes negative. The fix: add 24 hours — 1,440 minutes — to the end time before subtracting, because that end time belongs to the next day. Example, a 10:00 PM to 6:00 AM shift:

  • Start: 22:00 → 1,320 minutes
  • End: 06:00 → 360 minutes, + 1,440 = 1,800 minutes
  • 1,800 − 1,320 = 480 minutes = 8 hours

Sanity-check the result whenever a shift crosses midnight: if the math produces a negative number, the +24 was missed — and if it produces an implausible 20-hour shift, it was probably applied to a shift that didn't actually cross midnight.

Step 4 — Subtract unpaid breaks

Breaks come out before anything is converted or rounded. If the day shift from step 2 included a 30-minute unpaid lunch, the paid time is 510 − 30 = 480 minutes — exactly 8 hours. If you take two unpaid breaks in a shift, subtract both — what comes out is your total unpaid break minutes, not a per-break allowance. The key word is unpaid: meal breaks are normally deducted, while short paid rest breaks normally stay in. If you're unsure which of your breaks are unpaid, check your employer's policy once — applying the same wrong assumption every day is how small errors grow into a short paycheck.

Step 5 — Convert to decimal hours for payroll

Payroll systems don't accept "8 hours 30 minutes" — they want 8.5. The conversion is: minutes ÷ 60. So 480 minutes ÷ 60 = 8.0 hours, and 510 minutes ÷ 60 = 8.5 hours.

Here is the most common timesheet error of all: writing 45 minutes as 0.45. It looks right and it's wrong — 0.45 hours is 45% of an hour, which is 27 minutes. Forty-five minutes is three-quarters of an hour: 0.75. The conversions worth memorizing:

  • 15 minutes = 0.25 hours
  • 30 minutes = 0.50 hours
  • 45 minutes = 0.75 hours

For a full week, run each day through the same five steps, convert each day to decimal hours, and then add the decimals together for your total. Converting day by day — rather than adding up hours and minutes across the week and converting once — keeps rounding and break deductions clean and auditable if payroll ever questions a figure.

One last wrinkle: rounding. Many employers round clock times to the nearest five minutes, tenth of an hour, or quarter hour before paying. With quarter-hour rounding, a start time of 8:07 counts as 8:00, while 8:08 counts as 8:15. That kind of rounding is acceptable only because it evens out over time — it has to cut both ways, not systematically in the employer's favor. Keeping your own minutes-first record is what lets you check that it actually does.

Do a whole week in seconds

Enter your start, finish, and break times in the free Hours Calculator — overnight shifts and the decimal conversion are handled for you.

Calculate My Hours

More How-To Guides

Why Is My Keyword Not Ranking? 6 Checks That Find the Real Cause

Your page is published but nowhere on Google. Work through the six checks in order - indexing, real position, intent, competition, content, technical - and find the actual blocker.

How to Calculate GPA (With Worked Examples)

Letter grades to grade points, weighted by credits - the exact method, a worked 3.5 GPA example, cumulative GPA done right, and how Honors and AP classes change the number.

PDF Too Large to Email? How to Shrink It and Send It

Gmail stops at 25 MB and Outlook at 20 MB. Here is why PDFs balloon in size, how to compress one properly, and the split-and-merge fallback when compression is not enough.