Night and graveyard shifts

Overnight Shift Hours Calculator

When an end time is earlier than the start time, the shift usually ends the following day. This calculator handles that midnight rollover and subtracts an optional unpaid break.

Reviewed July 25, 2026 · Informational calculations only

Calculate a shift that crosses midnight

Worked time
8h 0m
8.00 decimal hours

How midnight rollover works

Convert both clock times to minutes after midnight. If the end is earlier than the start, add 24 hours to the end before subtracting. A 10:00 PM to 6:30 AM shift is therefore 8 hours 30 minutes before breaks, not a negative duration.

The main weekly calculator applies the same rollover logic and includes a Night Shift input mode. Explicit AM/PM or 24-hour values such as 22:00 and 06:30 reduce ambiguity.

Recording the shift on the correct date

A shift can cross a calendar date, a workday boundary, or even an employer’s fixed workweek boundary. Those concepts are not always identical. Follow the employer’s established payroll practice and preserve the actual start and stop timestamps.

Do not assume that working at night automatically creates federal overtime or premium pay. Under federal law, extra pay for nights is generally a matter of agreement, while hours above the applicable overtime threshold may require a premium.

  • Use explicit AM/PM or 24-hour notation.
  • Record the starting date alongside the times.
  • Subtract a meal period only when it was genuinely off duty and unpaid.
  • Check whether the shift crosses the employer’s workweek boundary.
  • Add any contractual night differential separately from worked hours.

Common overnight time-card mistakes

The most frequent errors are treating the end time as the same morning, subtracting a paid rest break, assigning every hour to the wrong workweek, and forgetting that daylight-saving transitions can alter elapsed clock time.

This simple calculator assumes a normal 24-hour day. For a shift spanning a daylight-saving change, preserve timestamp and timezone records and use the employer’s approved system.

How this works in practice

Employee scenario

A security employee clocks in Tuesday at 10:00 PM and out Wednesday at 6:30 AM with a 30-minute off-duty meal. The shift is eight worked hours, but the employer’s workday boundary determines how those hours appear in daily overtime records.

Employer scenario

An employer should store both timestamps with dates and timezone, not only an eight-hour duration. That record makes midnight rollover, daylight-saving changes, consecutive-hours rules, and workweek allocation reviewable.

Errors to catch before payroll

Error: Reading 06:30 as earlier on the same date.
Correction: Carry the end into the next day when it follows an overnight start.
Error: Splitting the shift at midnight automatically.
Correction: Use the established workday and workweek rules, which may not begin at midnight.
Error: Ignoring a daylight-saving transition.
Correction: Use timezone-aware timestamps for the affected night.

Decision checklist

  • ✓ Are both dates recorded?
  • ✓ Did the shift cross a workday or workweek boundary?
  • ✓ Was the break fully off duty?
  • ✓ Is there a night differential or consecutive-hours rule?

Overnight shift example

Clock in
10:00 PM
Clock out
6:30 AM next day
Elapsed time
8 hours 30 minutes
Unpaid meal
30 minutes
Worked time
8.00 hours

The break is deducted after the calculator carries the end time into the following day.

Frequently asked questions

Does night shift automatically receive overtime?

Not under the general federal rule. Overtime and night differentials are different concepts. State law, a union agreement, or employer policy may provide additional rights.

What if my shift is longer than 24 hours?

This helper is designed for a single shift shorter than 24 hours. Use dated records and an employer-approved system for longer on-duty periods.

Should I enter 12:00 AM or 00:00?

Either can represent midnight, but 00:00 is clearer in 24-hour notation. The main calculator accepts both 12-hour and 24-hour formats.

Build a detailed weekly time card

Enter dated start and end times, subtract unpaid breaks, choose a regional rule, and download a printable PDF.

Open the free calculator

Related guides