How to use the overnight shift calculator
- Choose the date the shift starts, then enter the start and finish times. A finish time earlier than the start is automatically the next morning.
- Enter your unpaid break and say when you took it. This only affects how the hours split around midnight — the total is the same either way.
- Optionally set a night period (for example 22:00 to 06:00) to see how many paid hours fall inside it.
- Keep daylight saving switched on to have the real elapsed time checked against your device’s time zone. On the two nights a year when clocks change, the result will tell you.
Worked examples
Example
A standard night shift
Friday 22:00 to Saturday 06:30, 30-minute unpaid break taken after midnight.
- Time on shift: 8 h 30 min. Paid: 8:00 (8.00 decimal).
- Before midnight (Friday): 2:00. After midnight (Saturday): 6:30 − 0:30 break = 6:00.
- In a 22:00–06:00 night period: 7:30 (the 06:00–06:30 part falls outside it, and the break isn’t paid).
Example
A night when clocks go forward
In a time zone where clocks go forward from 02:00 to 03:00, a 22:00 to 06:00 shift that night is only 7 hours long in real time, even though the clock times suggest 8. When clocks go back, the same shift lasts 9 hours. The calculator detects this from the date and your device’s time zone and adjusts the after-midnight hours.
Example
Splitting hours for different day rates
If Sunday hours are paid at a different rate from Saturday hours, a Saturday 20:00 to Sunday 04:00 shift with no break splits into 4:00 on Saturday and 4:00 on Sunday. To turn that into pay with different multipliers, use the shift earnings calculator.
How the calculation works
Times are converted to minutes after midnight. When the finish is earlier than the start, 24 hours are added to the finish:
Before midnight = 24:00 − start − any break taken before midnight
After midnight = finish − 00:00 − any break taken after midnight
Paid hours = before + after
For the night period, the calculator walks through the shift minute by minute and counts paid minutes whose clock time falls inside the period (a period such as 22:00–06:00 wraps past midnight).
Daylight saving: the start and end are turned into real moments in your device’s time zone and the difference is compared with the clock-face difference. Any gap — usually one hour — is applied to the after-midnight portion, where clock changes normally happen. Switch the option off to use clock-face time only.
Frequently asked questions
Which day do overnight hours count towards?
It depends on your employer. Many count the whole shift on the day it starts; others split it at midnight, especially when weekend or public holiday rates apply. This calculator shows both the total and the split so you can use either.
How do I calculate a night shift by hand?
Work out the time to midnight, then the time after midnight, and add them. For 21:30 to 05:15: 2 h 30 min + 5 h 15 min = 7 h 45 min. Then subtract unpaid breaks. The guide to calculating overnight shift hours has more examples.
Does the break position change my total hours?
No. It only changes how the hours are split either side of midnight and inside the night period. The total paid hours are the same.
What happens on daylight-saving nights?
When clocks go forward, an overnight shift is an hour shorter in real time; when they go back, it is an hour longer. The calculator uses your device’s time zone rules to detect this for the date you enter. Whether you are paid for the clock hours or the real hours depends on your employer.
Can I enter a shift that lasts more than 24 hours?
Not here, because clock times repeat every 24 hours. Use the time duration calculator with dates for longer periods.
Think a result is wrong? Report a problem with this tool.