Guide

Calculating overnight shift hours

Night shifts break the simple “finish minus start” rule, because the finish time is on the next day. Here are two reliable methods, how to deal with breaks and day-based pay rates, and what happens on the nights the clocks change.

3 min readUpdated

This guide explains general calculation methods. Rules on breaks, overtime and pay differ between countries, industries and contracts, so check your employment agreement or local regulations for what applies to you.

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.

Shift length = (finish + 24:00) − start

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:

Before midnight = 24:00 − start
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:

= MOD(finish − start, 1) * 24

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

↑↓ to moveEnter to open

Preferences

Appearance
Clock times in results
Weeks start on

Changes only the symbol shown with pay amounts. Nothing is converted between currencies: enter rates in the currency you are paid in.

Your saved data

Timesheets, favourites, recent tools and these preferences are stored in this browser’s local storage. They are never sent to our servers.

Save