Skip to content

Overnight Shift Calculator

Enter a start and end time. If the end is numerically earlier than the start, it's treated as landing the next day. See both the total and the exact split across the two calendar dates.

Need to subtract a break from an overnight shift too? See Hours Calculator.

Worked example

A shift running 22:00 to 06:00 totals 8 hours overall, split into 2 hours before midnight and 6 hours after it. That split matters more than it might seem, since a payroll or scheduling system that keys hours by calendar date needs to know how much of the shift belongs to each of the two dates it actually spans, not just the total length. A shorter overnight shift, say 23:30 to 01:00, splits very differently, with only 30 minutes falling before midnight and a full 90 minutes after it, even though the total length is a modest 90 minutes. Reporting the before and after midnight portions separately, alongside the plain total, is what distinguishes this calculator from a simple duration calculation that only cares about the overall length.

Common mistakes

  • Assuming a shift that crosses midnight belongs entirely to one calendar date for reporting purposes. It genuinely spans both dates, and how those two portions are attributed is a separate question covered in the overnight shift resource linked below.
  • Entering a shift that does not actually cross midnight and expecting a nonzero after-midnight split. If the end time is genuinely on the same day as the start, the entire total falls before midnight.

Limitations

This does not deduct any break from the total. For a break-adjusted total on a shift that also happens to cross midnight, use the Hours Calculator, which supports both the overnight span and break deduction together.

Frequently asked questions

What happens if the shift does not cross midnight at all?
The full total is reported as before-midnight hours, with the after-midnight portion showing zero, since nothing about the shift actually falls on the next date.
Does this handle a shift longer than 24 hours?
No, this models a single overnight shift crossing one midnight boundary. A multi-day span needs a different calculation entirely.