Overnight & Overtime Hours: How to Calculate Them Right
When a shift ends earlier on the clock than it started, add 24 hours to the clock-out time before subtracting. A 22:00 to 06:30 night is 30:30 − 22:00 = 8:30, not a negative number. Deduct unpaid breaks, assign the shift to one workday, then total the week — anything past 40 hours is overtime.
Overtime rules here are general United States guidance, not legal or tax advice. States, contracts, and union agreements add their own rules, and some of them differ from the federal baseline. Check the ones that apply to you before relying on a number.
Why are overnight hours harder than day hours?
A day shift is one subtraction. Clock in 08:00, clock out 16:30, and 16:30 − 08:00 = 8:30. Everything about the arithmetic is comfortable: the second number is bigger than the first.
An overnight shift breaks that. Clock in 22:00, clock out 06:30, and the second number is smaller. Subtract straight across and you get −15:30 — a negative shift, which nobody worked. The clock reset at midnight and the subtraction never knew.
That single fact causes almost every night-shift error: negative totals, weeks that come out 24 hours short, spreadsheets that quietly display the wrong number, and overtime that goes uncounted because the hours were never added correctly in the first place.
How do you calculate a shift that crosses midnight?
- Write both times in 24-hour form. 10 p.m. is
22:00; 6:30 a.m. is06:30. Working in 24-hour time removes the a.m./p.m. guesswork that causes half of these mistakes. - Check whether the clock-out is smaller than the clock-in. If it is, the shift crossed midnight.
- Add 24 hours to the clock-out.
06:30 + 24:00 = 30:30. This is just saying "6:30 the next morning" in a form arithmetic can use. - Subtract.
30:30 − 22:00 = 8:30. Borrow 60 minutes from the hours column if the minutes do not subtract cleanly. - Subtract unpaid breaks. A 30-minute unpaid meal makes it
8:30 − 0:30 = 8:00paid. - Convert to decimal only at the end, if payroll needs it:
8:00 = 8.00hours,8:30 = 8.5hours.
There is a second method that gives the same answer and is easier to do in your head: split the shift at midnight. From 22:00 to midnight is 2:00. From midnight to 06:30 is 6:30. Add them: 2:00 + 6:30 = 8:30. Same answer, and it is a good way to check the first method.
What do real overnight shifts look like?
Three shifts, each worked all the way through, with the arithmetic shown so you can check it:
| Shift | The subtraction | Elapsed | Decimal |
|---|---|---|---|
| 22:00 → 06:30 | 30:30 − 22:00 | 8:30 | 8.50 |
| 23:15 → 07:45 | 31:45 − 23:15 | 8:30 | 8.50 |
| 18:45 → 05:20 | 29:20 − 18:45 | 10:35 | 10.58 |
The third one needs borrowing, so it is worth walking through. 29:20 − 18:45: 20 minutes will not cover 45, so borrow an hour and rewrite the top as 28:80. Now 28:80 − 18:45 = 10:35. Check it the other way: 18:45 to midnight is 5:15, midnight to 05:20 is 5:20, and 5:15 + 5:20 = 10:35. Both roads arrive at the same place.
If you prefer one number to work with, convert both clock readings to minutes since midnight. 18:45 is 1125 minutes, 05:20 is 320 minutes, and 320 + 1440 = 1760. Then 1760 − 1125 = 635 minutes, which is 10 hours 35 minutes. The hours between two times guide covers that shortcut in more depth.
Why do calculators and spreadsheets get this wrong?
Two separate failures, and they look nothing alike.
The negative result. Type 06:30 − 22:00 into anything that does not know the date changed and you get −15:30. There is a quick repair: add 24 hours to the negative answer. −15:30 + 24:00 = 8:30. If you ever see a negative elapsed time on a single shift, that is what it means — not that the arithmetic is broken, but that a day rollover went unrecorded.
The 24-hour wrap. This one is worse because the number looks plausible. Clock formats are built to roll over at midnight, so a weekly total of 44:00 in a default-formatted spreadsheet cell displays as 20:00 — 44 minus 24. The sum is right; the display threw away a day. In Excel and Google Sheets the fix is to format the total cell as [h]:mm, with the square brackets, which lets hours run past 24. To get decimal hours, multiply the total by 24.
And the ordinary base-10 problem sits underneath both: a phone calculator reads 8:30 as 8.30, so it never sees the 30 minutes as half an hour. That is why 8:15 + 7:45 is 16:00 and not 15.60 — the mechanics are in how to add hours and minutes.
Which workday does an overnight shift belong to?
The hours are the same either way; where they land is what changes. Under general United States federal rules, overtime is counted over a fixed, regularly recurring seven-day workweek that the employer sets. So a shift straddling midnight has to be assigned somewhere, and two conventions are common:
- Credit the whole shift to the day it started. A 22:00 Monday to 06:30 Tuesday shift counts 8:30 to Monday. This is the simpler bookkeeping and the more common convention.
- Split it at midnight. Monday gets 2:00, Tuesday gets 6:30. More work, but each hour lands on the calendar day it was actually worked.
Either is workable. What causes real problems is switching between them, or using one on your own time card while payroll uses the other. Pick the rule your employer uses and stay with it every week.
The convention matters most at the seam of the workweek. If the workweek starts Sunday at 00:00 and you work Saturday 22:00 to Sunday 06:30, the split method puts 2:00 in the old week and 6:30 in the new one — which can be the difference between crossing 40 hours and not.
How does a week of night shifts turn into overtime?
Here is a full warehouse night week. Each night is calculated with the add-24 method, and each has a 30-minute unpaid meal break.
| Night | In → Out | Elapsed | Unpaid break | Paid |
|---|---|---|---|---|
| Mon | 22:00 → 06:30 | 8:30 | 0:30 | 8:00 |
| Tue | 22:00 → 06:45 | 8:45 | 0:30 | 8:15 |
| Wed | 21:45 → 06:15 | 8:30 | 0:30 | 8:00 |
| Thu | 22:15 → 07:00 | 8:45 | 0:30 | 8:15 |
| Fri | 22:00 → 07:30 | 9:30 | 0:30 | 9:00 |
| Week | — | 44:00 | 2:30 | 41:30 |
Total the elapsed column the H:MM way. Minutes first: 30 + 45 + 30 + 45 + 30 = 180 minutes, which is 3 hours exactly. Hours next: 8 + 8 + 8 + 8 + 9 = 41. Carry the 3 across and the week is 44:00. Take off five 30-minute breaks — 2:30 — and the paid week is 41:30.
Check it in decimal, which should agree: 8.0 + 8.25 + 8.0 + 8.25 + 9.0 = 41.5 hours, and 0.5 of an hour is 30 minutes. Both methods say 41:30.
Now the overtime split. Under the general federal rule, the first 40 hours are straight time and everything past 40 is overtime at 1.5× the regular rate. So 41:30 paid splits into 40:00 regular and 1:30 overtime, which is 1.5 overtime hours.
At $21.00 an hour:
- Regular:
40 × $21.00 = $840.00 - Overtime rate:
$21.00 × 1.5 = $31.50 - Overtime:
1.5 × $31.50 = $47.25 - Gross:
$840.00 + $47.25 = $887.25
Notice what the breaks did. Without deducting them the week reads 44:00, which is 4 overtime hours instead of 1.5 — a difference of $78.75 in the wrong direction. Breaks are not a rounding detail. The full overtime mechanics, including bonuses and multiple rates, are in how to calculate overtime and time-and-a-half.
Does working nights make hours overtime by itself?
No. Under general United States federal rules, overtime is about how many hours you worked in the workweek, not what time of day you worked them. A 22:00 to 06:30 shift is eight and a half ordinary hours. It becomes overtime only once the week goes past the threshold — 40 hours federally.
What nights often do attract is a night differential: an extra amount per hour for time worked in a defined window, typically something like 22:00 to 06:00. Federal law does not require one, so where it exists it comes from an employer policy, a contract, or a union agreement. If you do get one, it normally counts as part of your regular rate for overtime purposes, which nudges the overtime rate up as well. Payroll should handle that, but it is worth knowing the differential is not simply bolted on afterward.
Some states and some contracts also add daily overtime rules, where hours past a daily threshold count as overtime regardless of the weekly total. Those genuinely vary, so check what applies where you work rather than assuming the federal baseline is the whole story.
What happens on daylight saving weekends?
Twice a year the clock stops being a reliable measure of elapsed time, and night shifts are the ones caught by it.
On the spring-forward night the clock jumps straight from 2:00 to 3:00. A 22:00 to 06:00 shift shows an eight-hour gap between the two readings but only 7:00 was actually worked. On the fall-back night the 1:00 hour happens twice, so the same 22:00 to 06:00 shift is 9:00 of real work.
Pay follows hours actually worked, so those are the numbers that belong on the timesheet. It is a small thing twice a year, but it is also the one night where a correct-looking subtraction gives the wrong answer — so make a note on the card while you remember why.
How should you round overnight hours?
As little as possible, and never in the middle. Rounding each night and then adding compounds the error five times over; adding in H:MM and converting once at the end does not.
Take five nights of 8:35 each. The true week is 42:55 — 175 minutes of extra time is 2:55, plus 40 hours — which is 42.9167 decimal hours. Round each night down to the nearest quarter hour first, and each 8:35 becomes 8:30, so the week reports as 42:30. That is 25 minutes lost, or $8.75 at $21.00 an hour, every week it happens.
The rule that avoids all of it: add in H:MM, convert to decimal once, at the very end. What are decimal hours covers the conversion, and calculating a weekly timesheet covers the weekly total.
A checklist for a clean overnight week
- Write every time in 24-hour form on the card, as it happens.
- For any shift where the clock-out is smaller than the clock-in, add 24 hours before subtracting.
- Sanity-check anything negative or anything suspiciously close to 24 hours short.
- Deduct unpaid breaks per shift, not once at the end of the week.
- Assign each shift to a workday using one rule, and use the same rule every week.
- Total the week in H:MM, then convert to decimal once.
- Split at the overtime threshold, then apply the rates.
- Keep the record — a saved history or an exported CSV or PDF is what settles a disagreement later.
Night shifts, without the midnight math
Hours adds and subtracts time in H:MM, handles overnight shifts and negative totals without a 24-hour ceiling, flips to decimal in one tap, applies your hourly rate, keeps a saved history, and exports a timesheet to CSV or PDF. Free, offline, no ads, no sign-in.
Frequently asked questions
How do you calculate hours for an overnight shift?
Add 24 hours to the clock-out, then subtract the clock-in: 30:30 − 22:00 = 8:30. Then subtract any unpaid break. Splitting at midnight gives the same answer — 2:00 + 6:30 = 8:30.
Why does my calculator give a negative number for a night shift?
It subtracted without noticing the date changed. Add 24 hours to the negative result: −15:30 + 24:00 = 8:30. A negative elapsed time on one shift always means a missing day rollover.
Why does a spreadsheet show 20:00 for a 44-hour week?
The total cell is using a clock format that wraps at 24 hours, so 44:00 shows as 20:00. Format it as [h]:mm — square brackets included — and multiply by 24 for decimal hours.
Which day does an overnight shift count toward?
Whichever your employer's rule says: the day it started, or split at midnight. Both are defensible; mixing them is not. Match your timesheet to payroll and keep it consistent. General information, not legal advice.
Do overnight hours automatically count as overtime?
No. Federally, overtime depends on hours in the workweek, not the time of day. Nights become overtime only once the week passes 40 hours. Some states and contracts add daily rules.
How does night differential pay work?
It is an extra per-hour amount for hours in a defined window, such as 22:00 to 06:00. Federal law does not require it, so it comes from a policy or contract — and where it is paid, it generally counts toward the regular rate used for overtime.
How many hours is a shift from 10 p.m. to 6:30 a.m.?
8:30, which is 8.5 decimal hours. With a 30-minute unpaid break it is 8:00 paid — 8.0 hours, or $168.00 at $21.00 an hour.
What happens to a night shift on a daylight saving weekend?
Spring forward turns a 22:00–06:00 shift into 7:00 of work; fall back turns it into 9:00. Pay the hours actually worked, not the gap between the clock readings.