Why overnight shifts need a different approach

A shift that starts late at night and finishes the following morning crosses midnight. Subtracting clock times without accounting for the date change can produce a negative number even though the employee worked positive hours.

Basic overnight-hours formula

When the end time is on the next day, count the time from the start until midnight and add the time from midnight to the end. Then subtract unpaid break minutes. The formula assumes one overnight crossing and does not automatically handle multiday shifts.

overnight shift hours: basic overnight-hours formula illustration

Example: 10 PM to 6 AM

From 10:00 PM to midnight is two hours, and midnight to 6:00 AM is six hours. The shift lasts eight hours. Subtract a 30-minute unpaid break and the payable work duration becomes seven hours and 30 minutes.

Example: 11:30 PM to 7:15 AM

The interval is 30 minutes before midnight plus seven hours 15 minutes afterward: seven hours 45 minutes. With a 45-minute unpaid break, the net work duration is seven hours.

overnight shift hours: example: 11:30 pm to 7:15 am illustration

Breaks and paid time

Check whether breaks are paid or unpaid. Subtract only unpaid breaks from net work hours. For payroll, overtime and premiums may depend on employer rules or local law; a duration calculator alone does not determine pay.

Daylight saving time and time zones

An overnight shift across a daylight-saving change may contain a different number of actual elapsed hours than the wall-clock difference suggests. Check timestamps and local payroll rules when clocks move forward or backward.

Calculate multiple shifts

Use Time Duration Calculator for one start/end interval and Hours Calculator for several entries or a timesheet. Review next-day assumptions when the start and end times are identical: the intended duration could be zero or 24 hours.

For a single shift, try the Time Duration Calculator; for multiple entries, use the work-hours tool below.

Overnight shift examples with unpaid breaks

For a shift that crosses midnight, calculate the time from the start until midnight, then add the time from midnight to the end. Deduct unpaid breaks only after you have the full elapsed duration. A break is not automatically unpaid: whether it counts as paid working time depends on the employer’s policy and applicable rules.

ShiftElapsedUnpaid breakNet hours
10:00 PM–6:00 AM8 h30 min7 h 30 min
11:30 PM–7:15 AM7 h 45 min45 min7 h
8:00 PM–4:30 AM8 h 30 min60 min7 h 30 min
9:45 PM–1:15 AM3 h 30 min15 min3 h 15 min

Step-by-step: 9:45 PM to 1:15 AM

  1. From 9:45 PM to midnight is 2 hours 15 minutes.
  2. From midnight to 1:15 AM is 1 hour 15 minutes.
  3. Add the intervals: 3 hours 30 minutes elapsed.
  4. Subtract a 15-minute unpaid break: 3 hours 15 minutes of net time.

In decimal form, 15 minutes equals 0.25 hour, so the net duration is 3.25 hours—not 3.15 hours. Decimal hours use fractions of sixty minutes, not a base-100 clock.

Midnight and same-time entries

A shift from 12:00 AM to 8:00 AM lasts eight hours. A shift from 9:00 PM to 12:00 AM lasts three hours if midnight is the next date. But a start and end time of 9:00 AM could mean zero hours or a full 24 hours, depending on whether the end is on the following day. Always specify the end date or enable the next-day option when appropriate. Do not infer a 24-hour shift solely from matching clock times.

What about daylight saving time?

Clock-time subtraction can differ from actual elapsed time when the clocks move forward or backward. For example, in a region where the clock jumps from 2:00 AM to 3:00 AM, a shift spanning that change may contain one fewer real hour than the wall-clock difference suggests. The reverse can happen when clocks move back. For payroll-critical records spanning a daylight-saving transition, use actual timestamps with their time zones or confirm the organization’s policy. A simple clock-time calculator should not be treated as an automatic time-zone or payroll compliance system.

Calculating several night shifts in a week

Suppose you work three shifts of 10:00 PM–6:00 AM with 30-minute unpaid breaks. Each contributes 7 hours 30 minutes, so the weekly net total is 22 hours 30 minutes. Enter each shift separately in the Hours Calculator to avoid mistakes when breaks vary. For a single overnight interval, use the Time Duration Calculator.

Keep hours worked separate from pay calculations

Night premiums, overtime multipliers, paid breaks, rounding rules and shift allowances vary by employer and jurisdiction. Calculating 7.5 hours worked does not by itself determine gross pay. Preserve the raw start/end times, break duration and any policy-specific adjustments in your records so the arithmetic can be audited later.

Calculate with Zelmric

Check your result with the relevant free calculator, then confirm any special counting or workplace rules that apply.

Open Hours Calculator

Frequently asked questions

How many hours is 10 PM to 6 AM?

Eight hours before unpaid breaks, assuming the following morning and no clock change.

Do I subtract lunch from an overnight shift?

Subtract an unpaid meal break, but not a paid break.

What if the end time is earlier than the start?

It may indicate a next-day end time; confirm the date rather than treating it as a negative duration.