How to calculate overnight shift hours

If a shift starts in the evening and ends the next morning, a straight subtraction on the clock fails because the end time looks earlier than the start. Split the shift at midnight, then subtract unpaid breaks.

The midnight-split method

  1. Count the minutes from clock-in to midnight (24:00).
  2. Count the minutes from midnight to clock-out.
  3. Add those two amounts. That is the gross shift length.
  4. Subtract unpaid break minutes. The result is hours worked.

In 24-hour arithmetic it is the same as: (clock-out + 24:00) − clock-in − breaks.

Example 1: 22:00 to 06:30, 30-minute break

22:00 to midnight is 2 hours (120 minutes). Midnight to 06:30 is 6 hours 30 minutes (390 minutes). Gross time is 8 hours 30 minutes. Subtract 30 minutes for the break: 8 hours 00 minutes, or 8.00 decimal hours.

Example 2: 23:45 to 07:15, 20-minute break

23:45 to midnight is 15 minutes. Midnight to 07:15 is 7 hours 15 minutes. Gross time is 7 hours 30 minutes. Subtract 20 minutes: 7 hours 10 minutes, or 7.17 decimal hours.

Example 3: 10:00 PM to 6:00 AM, no unpaid break

10:00 PM is 22:00. Minutes to midnight: 120. Minutes after midnight: 360. Total: 8 hours 00 minutes.

Common mistakes

  • Subtracting 6:00 from 22:00 and getting a negative or “wrong day” result, then guessing.
  • Forgetting to subtract only unpaid breaks. A paid rest usually stays in the total; an unpaid lunch does not. Follow your workplace policy.
  • Treating 12:00 AM as noon. 12:00 AM is midnight; 12:00 PM is noon. If this is confusing, switch the calculator to 24-hour time.

Use the calculator

The hours calculator applies this method automatically. When clock-out is earlier than clock-in, it labels the result as overnight. For a full week of night shifts, use the weekly timesheet.

Frequently asked questions

How do you calculate overnight shift hours?

Add the minutes from clock-in to midnight to the minutes from midnight to clock-out, then subtract unpaid breaks.

Why does subtracting the times give a negative number?

The end time is on the next calendar day. Add 24 hours to the end time, or split the shift at midnight, before you subtract.

This page explains time arithmetic only. It is not advice about night-work pay, penalties, or legal limits on hours.