Direct answer
For an overnight shift, count forward past midnight instead of subtracting the end time as if it happened on the same day. Then subtract only unpaid breaks.
This question usually goes wrong when someone mixes clock time, paid time, and decimal time. For calculating a shift that starts one day and ends the next morning, keep the original schedule visible, then subtract only the time that should not be paid or counted.
Before using the result, compare it with your time card, schedule, payroll export, or calendar rule. The math is only as good as the hours, dates, rates, or policy wording behind it.
Formula and example
Overnight hours = hours from start time to midnight plus hours from midnight to end time minus unpaid breaks.
10:00 PM to 6:00 AM is 8.0 total hours. With a 30-minute unpaid break, paid time is 7.5 hours.
Run the formula once on the clean shift or date range before adding unpaid breaks, overnight shifts, rounded punches, weekends, holidays, and custom work schedules. That makes the source of any difference easier to find.
Comparison table
| Case | Rule | Example | Use it when |
|---|---|---|---|
| Simple case | Overnight hours = hours from start time to midnight plus hours from midnight to end time minus unpaid breaks. | 10:00 PM to 6:00 AM is 8.0 total hours. With a 30-minute unpaid break, paid time is 7.5 hours. | Good for a first estimate |
| Policy detail | Check time card, schedule, payroll export, or calendar rule | Adjust when unpaid breaks, overnight shifts, rounded punches, weekends, holidays, and custom work schedules matter. | Good before relying on it |
| Follow-up question | Open Hours Worked Calculator | Use the calculator when the inputs need testing. | Good for comparing scenarios |
| Official check | Compare with source records | Use the estimate as planning support. | Good before a real work decision |
Step-by-step calculation
Key checks
- Write down the times, dates, breaks, workday rules, and rounding assumptions before opening the calculator.
- Separate clock time from paid time before adding the week or date range.
- Use the formula for the simple case first: Overnight hours = hours from start time to midnight plus hours from midnight to end time minus unpaid breaks.
- Adjust for unpaid breaks, overnight shifts, rounded punches, weekends, holidays, and custom work schedules only after the clean result makes sense.
- Compare the estimate with your time card, schedule, payroll export, or calendar rule before making a real timesheet, payroll, PTO, or deadline decision.
Worked example
Use the example as a small time-card audit, not just a final number.
10:00 PM to 6:00 AM is 8.0 total hours. With a 30-minute unpaid break, paid time is 7.5 hours.
If your result differs, change one thing at a time: lunch treatment, overnight timing, rounding, holiday removal, or the date-range rule.
Key checks
- Keep the original input visible so the result can be audited later.
- Convert units before adding or subtracting, especially when minutes, decimal hours, days, or pay periods are mixed.
- Save or copy the result only after the calculator inputs match the real situation.
What can change the result
The result can change when unpaid breaks, overnight shifts, rounded punches, weekends, holidays, and custom work schedules are involved. These details do not make the calculation impossible; they simply decide which inputs should be counted.
A workplace may use a rule that differs from the plain math. Payroll systems can round time, HR systems can track PTO in hours, and calendars can skip holidays or custom closure dates.
If the answer affects pay, PTO, resignation timing, or a deadline, treat the calculator result as a planning estimate and verify the official rule before acting.
Common mistakes to avoid
Key checks
- Do not mix clock time, decimal hours, and minutes without converting first.
- Do not subtract paid breaks or holidays unless the rule says they should be removed.
- Do not use a weekly total before every daily shift has been checked.
- Do not ignore unpaid breaks, overnight shifts, rounded punches, weekends, holidays, and custom work schedules when they are part of the real situation.
- Do not treat a planning time estimate as the official payroll or scheduling record.
When to use the calculator
Use the Hours Worked Calculator when the rough answer is clear but the exact inputs still need testing.
It is most useful before you copy a time total into payroll, a spreadsheet, a PTO request, or another calculator.
If the result raises a second question, follow the related guides and tools instead of forcing one calculator to answer every part of the decision.
Open Hours Worked Calculator