Time Card for a Shift That Crosses Midnight
October 23, 2026
A shift that starts before midnight and ends after it needs a specific adjustment: since clock-out time is numerically earlier in the day than clock-in time, 24 hours must be added to the clock-out time before subtracting to get the correct shift length.
Skip the math and get your answer instantly:
Open the Time Card Calculator →Worked Example
Clock in: 10:00 PM (22:00). Clock out: 6:00 AM (06:00) the next day.
- Naive (incorrect) subtraction: 06:00 − 22:00 = −16:00 (nonsensical negative result)
- Correct calculation: add 24 hours to clock-out: 06:00 + 24:00 = 30:00; then 30:00 − 22:00 = 8 hours
Why This Matters for Payroll Accuracy
A payroll system or manual calculation that doesn't account for the midnight crossing would either produce an error or, worse, silently calculate a wrong (negative or tiny) number — confirming that a time-tracking method correctly handles overnight shifts is worth checking specifically if overnight work is common at a given workplace.
Frequently Asked Questions
How do you calculate hours for a shift that crosses midnight?
Add 24 hours to the clock-out time before subtracting the clock-in time, since clock-out falls numerically earlier in the 24-hour clock.
What's the shift length for a 10:00 PM to 6:00 AM shift?
8 hours.
What happens if you subtract without the 24-hour adjustment?
You get a nonsensical negative result, since the clock-out time is numerically smaller than the clock-in time.
Is this adjustment specific to overnight shifts?
Yes — any shift that crosses midnight needs this adjustment; a same-day shift doesn't require it.