Every shift calculation is a subtraction: end time minus start time. Day shifts behave because both times sit on the same date. Night shifts do not. A shift from 10:00 PM to 6:00 AM asks you to subtract 22:00 from 06:00, and the honest answer, negative sixteen hours, is obviously wrong - the shift was eight hours, and anyone who worked it knows it. The failure is not in your arithmetic. It is in the assumption that both times belong to the same day, when the whole point of the shift is that they do not.
The good news is that the repair is a single idea, and once you have used it twice it becomes automatic. Every overnight calculation in this guide, and every one a payroll system performs, is that one idea wearing different clothes.
The add-24 method
When the end time is earlier than the start time, the end time belongs to the next day. So before subtracting, add 24 hours to the end time. In clock terms: 6:00 AM becomes 30:00. Now subtract the start: 30:00 minus 22:00 is 8:00 - eight hours, which matches reality. That is the entire trick.
- Write both times in 24-hour format. 10:00 PM is 22:00; 6:00 AM is 06:00.
- If the end time is smaller than the start time, add 24 to the end time's hour. 06:00 becomes 30:00.
- Subtract as normal. The result is the full span of the shift.
- Take off unpaid breaks exactly as you would on a day shift. A meal break at 2:00 AM is still a meal break.
If the minutes are awkward, do the same thing in minutes instead. Convert both times to minutes since midnight, add 1,440 to the end time if it is the smaller one, and subtract. 9:45 PM is 1,305 minutes. 6:15 AM is 375 minutes, plus 1,440 is 1,815. The difference is 510 minutes, or 8 hours 30 minutes. Our work time calculator applies this automatically whenever the end time is earlier than the start, which is why it never asks you which day the shift ended on.
The common night patterns, worked out
Most night work falls into a handful of patterns. Here they are with a 30-minute unpaid meal break taken off each, which is how the paid figures are reached.
| Shift | Span | Paid time | Decimal |
|---|---|---|---|
| 10:00 PM - 6:00 AM | 8:00 | 7:30 | 7.50 |
| 11:00 PM - 7:00 AM | 8:00 | 7:30 | 7.50 |
| 7:00 PM - 7:30 AM | 12:30 | 12:00 | 12.00 |
| 6:00 PM - 2:30 AM | 8:30 | 8:00 | 8.00 |
| 9:45 PM - 6:15 AM | 8:30 | 8:00 | 8.00 |
| 12:00 AM - 8:00 AM | 8:00 | 7:30 | 7.50 |
The last row deserves a note. A shift starting exactly at midnight is not an across-midnight problem at all - both times are on the same date, and the plain subtraction works. The problems only begin when the start is before midnight and the end is after it. It is also worth noticing that the awkward 9:45 pattern produces a perfectly round answer. Night times look irregular because the start times are irregular, not because the maths is.
Which day does the shift belong to?
Once the length is right, a second question appears: whose shift is it - the day it started, or the day it ended? Employers answer this in one of two ways. Most assign the whole shift to the day it starts, so a Friday night shift is Friday's shift even though most of it happens on Saturday. Some payroll systems split the shift at midnight, putting the pre-midnight hours on one day and the rest on the next. For a single shift the total is identical either way, so most people never notice the convention exists. It becomes visible in two situations: states with daily overtime rules, where splitting can change which day crosses 8 hours, and the end of the workweek, where it can move hours between weeks. Know your employer's convention before you need it, because after a disputed paycheck is the worst time to learn it.
The pay-week trap
Here is the trap with real money attached. Suppose your workweek runs Sunday to Saturday, you have worked 36 hours by Friday, and you pick up a Saturday night shift, 10:00 PM to 6:00 AM, worth 8 hours after the meal break is already accounted for. If the shift belongs to the day it starts, the week totals 44 hours and 4 of them are overtime. If the system splits at midnight, only 2 hours fall in the old week, taking it to 38 with no overtime at all, and the other 6 hours land in the new week, where they may never reach the overtime line either. Same shift, same worker, four hours of premium gained or lost purely by convention. Neither treatment is automatically unlawful, but a convention that appears and disappears depending on which way benefits the employer is a red flag. If your stubs show a Saturday night shift producing no overtime in a long week, this is the first thing to check - and entering the week into the work time calculator with the shift on its start day will show you the figure the other convention produces.
Breaks, lunch and the small hours
Everything else about a night shift follows day-shift rules. A meal break of 30 minutes or more, fully relieved, is unpaid; if you eat at the desk or stay responsible for the floor, it is not a real break and should not be deducted, which matters more at night when staffing is thin and breaks are interrupted. Short rest breaks stay paid. And the automatic lunch deduction problem is at its worst overnight, because systems deduct the standard 30 minutes from every long shift while night staff often take their meal in fragments. Keep a note of what actually happened each night; the general time calculator on our homepage will total a fragmented break, like 12 minutes plus 18 minutes, in one step when you need to show payroll the true figure.
Frequently asked questions
How long is a shift from 11 PM to 7 AM?
Eight hours. Add 24 to the end time because it falls on the next day: 7 AM becomes 31, and 31 minus 23 (11 PM in 24-hour time) is 8. Then take off any unpaid meal break as usual, so with a 30-minute lunch the paid time is 7.5 hours.
How do I calculate 9:45 PM to 6:15 AM?
Convert both times to minutes from midnight. 9:45 PM is 1,305 minutes. 6:15 AM is 375 minutes, which is earlier than the start, so add 1,440 minutes (a full day) to get 1,815. Subtract: 1,815 minus 1,305 is 510 minutes, which is 8 hours 30 minutes. This minutes method never fails, however awkward the times are.
Which day counts for overtime when a shift crosses midnight?
It depends on your employer's convention, and both common ones are acceptable if applied consistently. Most employers count the whole shift in the day and week it starts. Some payroll systems split the hours at midnight. For weekly overtime the split can matter a lot on the last night of the workweek, so find out which rule your workplace uses.
Does crossing midnight change my hourly rate?
Not by itself. Midnight is just a clock event. Your rate changes only if your employer pays a night differential for some or all of the shift, or if the shift runs into a day with a premium, such as a holiday. Those are policy questions, not calculation questions, and the hours themselves are counted exactly the same way.
What if my shift crosses into a public holiday?
Whether the whole shift earns the holiday premium or only the hours after midnight depends on your employer's rule, which usually follows the same convention as the day assignment: most count the shift by the day it starts. Check the policy before swapping shifts around a holiday, because the difference on a long shift is significant.
