Overnight shift hours calculator
Calculate an overnight shift of less than 24 hours with an unpaid break. Equal start and end times mean zero hours.
Input
Tip: press Ctrl + Enter to run
Saved settings
About this tool
Night shifts in hospitals, warehouses, security and hospitality run past midnight, which trips up simple subtraction. This calculator takes a single shift’s start and end time and an unpaid break, works across midnight automatically, and returns paid hours as a decimal and in minutes.
It handles one shift at a time. For a whole week of shifts with overtime and pay, use the time card calculator.
How to use it
- Enter the shift start time.
- Enter the end time; if it is earlier than the start, the shift is treated as ending the next day.
- Enter the unpaid break in minutes (0 if paid or none).
- Run the calculation to see decimal hours and minutes.
How the calculation works
Minutes worked = ((end − start + 1,440) mod 1,440) − break. Decimal hours = minutes ÷ 60. A start time equal to the end time counts as zero hours, not 24.
((end − start + 1440) mod 1440 − break) ÷ 60Worked example
A nurse works from 19:00 to 07:30 with a 45-minute unpaid meal break. The shift is 11.75 hours, or 705 minutes, which is what payroll needs on a decimal time sheet.
Sample input and result
21:00 → 09:00; 30 min → 11.5 h
Limitations
- One shift shorter than 24 hours.
- Daylight-saving changes are not accounted for.
- Breaks from 0 to 1,440 minutes.
Last updated:
Frequently asked questions
Why does 8:00 to 8:00 give zero hours?
Equal times are treated as no time worked. For a full 24-hour shift, use the time duration calculator with dates.
How do I convert 11.75 hours to hours and minutes?
0.75 × 60 = 45, so 11.75 hours is 11 hours 45 minutes.
Does it handle daylight-saving changes overnight?
No. On the night clocks change, a shift is one hour longer or shorter than the clock times suggest.
Troubleshooting
The hours are negative or zero.
The break is longer than the shift, or the start and end times are the same.
Payroll shows one hour less on a November night.
Clocks went back during the shift; the actual time worked was an hour longer.
I need several shifts added up.
Use the time card calculator.
Privacy & Free to use
Are my inputs stored?
Your inputs stay in this tab. We do not receive your files, pasted text or calculation values.
Is this tool free?
Yes. No signup or payment is required.
See also
Useful next steps
Date difference calculator
Count elapsed calendar days and equivalent weeks between two dates, excluding the end date.
Date & timeAge calculator
Calculate completed years, months and days at a reference date. Month-end anniversaries clamp to the last valid day.
Date & timeAdd or subtract days
Move a calendar date forward or backward by a whole number of days.
Date & time