Night & Graveyard Shifts

Overnight Shift Calculator

Calculate work hours for shifts that cross midnight without spreadsheet calculation errors. Automatically adds 24 hours to morning clock-out times and deducts unpaid meal breaks.

Cross-Midnight Graveyard Shift

Automatic date rollover calculation without negative hours

Midnight Handling
Midnight Crossover Breakdown
Day 1 (Before Midnight)10:00 PM → 12:00 AM (2h 0m)
Day 2 (After Midnight)12:00 AM → 6:30 AM (6h 30m)
Shift Timeline +1 day overnight
Worked (8.00h)
Start10:00 PM
Unpaid Break30 mins
End6:30 AM (+1d)
100% In-Browser Math
No Account Required
Reviewed September 2026
Quick Answer: Calculating Shifts Across Midnight

Overnight Hours = (1,440 − Start Minutes) + End Minutes − Unpaid Break Minutes.

When clock-out occurs the next morning, add 24 hours (1,440 minutes) to eliminate negative duration. For example: A shift from 10:00 PM to 6:30 AM with a 30-minute unpaid break equals 8 hours and 30 minutes elapsed minus 30 minutes = 8.00 paid hours (8.00 decimal hours).

The Math Behind Cross-Midnight Shift Calculation

When a shift spans past 12:00 AM into the following morning, standard clock math requires dividing the calculation into two distinct periods:

Segment 1 (Evening to Midnight): 1440 minutes - Clock-In minutes
Segment 2 (Midnight to Morning): Clock-Out minutes
Total Worked: (Segment 1 + Segment 2) - Unpaid Break minutes

Frequently Asked Questions

In standard subtraction (End Time - Start Time), an end time like 6:30 AM is smaller than 10:00 PM (06:30 < 22:00), which results in a negative number unless you add 24 hours (1440 minutes). Our calculator detects when clock-out is earlier than clock-in and automatically adds 24 hours.

Related Tools