Time math5 min readUpdated August 31, 2026
Across midnight, without confusion

How to Calculate Overnight Shift Hours

An overnight shift belongs to two calendar dates but can still be understood as one continuous work record. The essential step is treating clock-out as a time on the following day.

Calculate an overnight shift
Quick answer

When clock-out is earlier than clock-in, move clock-out to the next calendar day. Add the time before and after midnight, then subtract the unpaid break once.

Overnight paid time = next-day clock-out − clock-in − unpaid breaks

Move the end time to the next date

Suppose a shift begins at 8:00 PM and ends at 4:30 AM. Reading both times as if they happened on the same date creates a negative duration. The correct timeline starts at 8:00 PM on day one and ends at 4:30 AM on day two.

Midnight is only a date boundary. It does not subtract time and it does not require you to discard the original start date.

Worked example: 8:00 PM to 4:30 AM

There are four hours from 8:00 PM to midnight and four hours 30 minutes from midnight to 4:30 AM. The shift span is therefore 8 hours 30 minutes. With a 30-minute unpaid break, paid time is 8 hours.

4h before midnight + 4h 30m after − 30m = 8h paid

Keep separate work blocks separate

If the overnight shift includes a long gap or separate call-outs, record the actual blocks when possible. One guessed break total hides whether the gap happened before or after midnight and makes later review harder.

For a simple uninterrupted shift, one record with a break is clear. For distinctly separate sessions, two entries can preserve the source timeline better.

Check the pay-period and workweek boundary

A shift can begin in one calendar day, workweek, or pay period and end in another. A personal calculator can show the elapsed time, but the way an official system allocates those hours may depend on its configured workweek and rules.

Keep the full start and end timestamps so you can compare your personal total with the official record. If you use the optional overtime estimate, split a shift at the workweek boundary rather than making the calculator guess how to allocate it.

Overnight review checklist

Before adding the shift to a weekly total, confirm the details that are easiest to misread.

  • The start date is the date you actually clocked in.
  • The earlier end time has been carried to the following day.
  • The unpaid break was subtracted once.
  • The shift does not overlap another entry.
  • The job and rate match the work performed.
Put the guide to work

Calculate the full period without sharing your inputs.

Add multiple shifts, breaks, overnight work, jobs, rates, and an optional weekly overtime scenario in one browser-only workspace.

Open the free calculator
Private on iPhone

Stop rebuilding the same work week.

EarnTrace keeps jobs, work blocks, breaks, rates, pay periods, and exports in one local-first record.

Track future shifts on iPhoneNo account · Free core · Annual or Lifetime Pro