Why overnight shifts are tricky
For a shift from 22:00 to 06:00, subtracting the numbers gives 06:00 − 22:00 = −16 hours. The answer is obviously 8 hours — the calculation just needs to know that the finish is on the following day.
Method 1: add 24 hours to the finish
If the finish time is earlier than the start time, add 24 to the finish hour, then subtract as normal.
Example
21:30 to 05:45
05:45 + 24:00 = 29:45. Then 29:45 − 21:30 = 8 h 15 min.
This is the method the work hours calculator and timesheet calculators use automatically.
Method 2: split at midnight
Work out the hours before midnight and after midnight, then add them:
After midnight = finish − 00:00
Shift length = before + after
Example
21:30 to 05:45
Before midnight: 24:00 − 21:30 = 2 h 30 min. After midnight: 5 h 45 min. Total: 8 h 15 min.
The split matters whenever the two days are treated differently — for example a Saturday night shift that runs into Sunday, when Sunday hours attract a different rate, or a shift that starts on the last day of a pay period. The overnight shift calculator shows the split for any shift.
Breaks on night shifts
Subtract unpaid breaks from the total exactly as you would on a day shift. If you also need the before/after-midnight split, take each break off the side of midnight it was taken on.
Example
A break after midnight
22:00 to 06:30 with a 30-minute unpaid break at 02:00. Before midnight: 2:00. After midnight: 6:30 − 0:30 = 6:00. Paid total: 8:00.
Which day do the hours belong to?
There are two common conventions, and your employer will use one of them:
- Whole shift on the start day. The simplest approach, and the one most timesheets use. A Friday night shift is recorded on Friday.
- Split at midnight. Hours before midnight go to the first day and hours after midnight to the next. Common where weekend or public holiday rates depend on the calendar day.
Whichever applies, record the actual start and finish times — that way the hours can be allocated either way later.
Nights when the clocks change
In places that use daylight saving time, two nights a year contain a clock change, usually around 01:00–03:00:
- When clocks go forward, an hour is skipped. A 22:00–06:00 shift lasts only 7 real hours.
- When clocks go back, an hour repeats. The same shift lasts 9 real hours.
Employers handle this differently — some pay for the hours actually worked, others for the scheduled hours. If you work nights, note these dates and check how yours is recorded. The overnight shift calculator and time duration calculator detect clock changes using your device’s time zone.
Overnight shifts in a spreadsheet
Spreadsheets store times as fractions of a day, so a negative result means the shift crossed midnight. The MOD function fixes it:
This returns the shift length in decimal hours whether or not the shift crosses midnight. Subtract unpaid breaks (in hours) afterwards.
Recording night shifts accurately
- Write the date the shift started next to the times, so a “06:00” finish is never confused with a morning start.
- Use the 24-hour clock, or always include am/pm.
- Note the time and length of breaks taken, not just the scheduled break.
- For the full week, enter each night shift on the day it started in the weekly timesheet calculator — it detects next-day finishes automatically.
Tools for this guide
-
Overnight shift calculator
Night shifts across midnight, with before/after-midnight split.
-
Shift earnings calculator
Gross shift pay with penalty rates and allowances.
-
Work hours calculator
Hours worked between a start and finish time, minus breaks.