Short answer
For a shift crossing midnight, add 24 hours to the end clock time before subtracting the start time, then subtract unpaid break minutes. A 22:00 to 06:30 shift with a 30-minute unpaid break equals 8 hours 0 minutes (8.00 decimal hours).
Scope and assumptions
Covers single-shift wall-clock duration and unpaid break subtraction; excludes shift-differential pay rates, statutory meal-break rules, and DST 23/25-hour night adjustments.
Short answer: When an overnight shift ends on the next calendar day, add 24 hours to the clock-out time before subtracting clock-in—or simply check "Ends next day" in the Hours calculator. A 22:00 → 06:30 shift spans 8h 30m gross; subtracting a 30-minute unpaid meal break yields 8h 00m (8.00 decimal hours).
Checked overnight shift examples (with unpaid breaks)
Every row below can be reproduced directly in the Hours calculator with the next-day toggle turned on:
| Clock-in (Day 1) | Clock-out (Day 2) | Gross span | Unpaid break | Net shift (H:MM) |
Decimal hours |
|---|---|---|---|---|---|
| 22:00 | 06:30 | 8h 30m | 0 min | 8h 30m | 8.50 h |
| 22:00 | 06:30 | 8h 30m | 30 min | 8h 00m | 8.00 h |
| 23:15 | 07:00 | 7h 45m | 45 min | 7h 00m | 7.00 h |
| 21:30 | 05:45 | 8h 15m | 30 min | 7h 45m | 7.75 h |
Two ways to compute midnight-crossing shifts by hand
- Split at midnight (easiest mentally): Count minutes from clock-in to
24:00, then add minutes from00:00to clock-out. For21:30 → 05:45:2h 30mbefore midnight +5h 45mafter midnight =8h 15m. Minus 30 min break =7h 45m = 7.75 h. - Add 24 hours (best for spreadsheets): Treat
05:45next day as29:45, then subtract21:30=8h 15m. In Excel or Google Sheets,=MOD(End - Start, 1)handles midnight wrap automatically without producing negative####errors.
Special edge cases on overnight schedules
- Pay-period midnight cutoff: Some payroll systems credit all hours of an overnight shift to the shift start date, while others split pre-midnight hours into Day 1 and post-midnight hours into Day 2 (which matters when a shift straddles Sunday night into a new pay week or a public holiday). Confirm your employer's timekeeping policy.
- Daylight Saving Time (DST) nights: Twice a year in DST regions, a clock-time shift from
22:00to06:00actually lasts 7 real elapsed hours on spring-forward night and 9 real elapsed hours on fall-back night. Because the Hours calculator measures plain wall-clock differences, double-check DST transition nights against actual elapsed minutes or the Time Duration calculator. - Decimal conversion: Never write
7h 45mas7.45hours—divide minutes by 60 (45 ÷ 60 = 0.75) to get7.75hours. See decimal hours to clock minutes for a full conversion table.
Frequently asked questions
Why did subtracting 22:00 from 06:30 give me a negative number in my spreadsheet?
Plain End − Start assumes both times fall on the same date (6.5 − 22 = −15.5). Add 24 hours (or use =MOD(End - Start, 1) in spreadsheets) whenever clock-out occurs after midnight.
Should I subtract unpaid meal breaks before or after converting to decimal hours?
Subtract break minutes first while everything is in whole minutes, then convert the net total once via minutes ÷ 60 so rounding errors never accumulate.
What if an on-call shift lasts longer than 24 hours across two nights?
Use the Time Duration calculator, which accepts full start and end calendar dates with clock times rather than a single 24-hour wrap.