Your privacy choices

We use essential storage to remember your settings. With your permission, Google AdSense may use cookies to serve and measure ads. Privacy Policy.

Overnight shift duration

Calculate hours worked when a shift starts before midnight and ends after it.

Built and maintained by The NumberPrism Editorial TeamEditorial policy

Your details

Decimal hours, so 22.5 means 22:30.

Decimal hours, so 6.5 means 06:30.

Results update as you type. The formula and assumptions are explained below the calculator.

Paid shift length

8 hours 0 minutes

Start time22:00
End time06:30
Shift span8 hours 30 minutes
Unpaid break30 minutes
Crosses midnightYes

Assumes the shift is shorter than 24 hours and ends the following day when the end clock time is earlier than the start.

Share calculator

Use this tool

Embed

How to calculate a night shift

Enter the clock times and the unpaid break.

1

Enter the start time

Use decimal 24-hour time, so 22.5 means 22:30.

2

Enter the end time

An earlier end time is treated as the following morning.

3

Deduct the break

Add unpaid break minutes to get paid shift length.

What does this tool do?

When the end time is earlier than the start time, the shift has crossed midnight. This calculator adds 24 hours before subtracting the unpaid break, so a 22:00 to 06:30 shift is measured correctly.

The Formula

Duration = (End time − Start time + 24h if end is earlier) − Unpaid break

Frequently Asked Questions

What if the shift ends at the same time it starts?

A same start and end is ambiguous between zero hours and a 24-hour shift, so the calculator returns no result. Split a full-day shift into two entries.

Are breaks deducted automatically?

Only the unpaid break you enter is deducted. Paid rest breaks stay in the shift length.