By Iqbal Hussain, Founder and calculator developer · Formulas checked against worked examples · Last updated
Overnight Hours Calculator
Calculate durations crossing midnight.
How Overnight Hours Calculator Works?
The Overnight Hours Calculator works by adding 24 hours (1,440 minutes) to the end time whenever the end time is earlier than the start time. The added day accounts for the midnight crossing.
- 1
Enter the evening start time
Type the start of the overnight period, for example 10:00 PM (22:00).
- 2
Enter the morning end time
Type the end time on the next day, for example 6:30 AM (06:30). The calculator detects the midnight crossing.
- 3
Subtract breaks and read the result
Enter break minutes. A 10:00 PM to 6:30 AM shift with a 30-minute break returns 8h 0m (8.00 hours).
Overnight Hours Calculator Formula
The Overnight Hours formula is Duration = (End + 1,440) − Start − Break, with all values in minutes, applied when End is smaller than Start.
- Start: start time in minutes after midnight (10:00 PM = 1,320).
- End: end time in minutes after midnight (6:00 AM = 360).
- 1,440: minutes in 1 day (24 hours).
- Break: unpaid minutes deducted from the shift.
Example: 11:00 PM to 7:15 AM with a 45-minute break gives (435 + 1,440) − 1,380 − 45 = 450 minutes, or 7 hours 30 minutes (7.5 hours).
Overnight Hours Calculator Conversion Table
The Overnight Hours conversion table lists 8 shifts that cross midnight and the net hours after the break.
| Start | End (next day) | Break | Net Hours | Minutes |
|---|---|---|---|---|
| 6:00 PM | 2:00 AM | 30 min | 7h 30m | 450 |
| 7:00 PM | 7:00 AM | 60 min | 11h 0m | 660 |
| 8:00 PM | 4:30 AM | 30 min | 8h 0m | 480 |
| 9:00 PM | 5:00 AM | 0 min | 8h 0m | 480 |
| 10:00 PM | 6:00 AM | 30 min | 7h 30m | 450 |
| 11:00 PM | 7:00 AM | 30 min | 7h 30m | 450 |
| 11:30 PM | 8:00 AM | 45 min | 7h 45m | 465 |
| 12:00 AM | 8:00 AM | 0 min | 8h 0m | 480 |
What is Overnight Hours Calculator?
The Overnight Hours Calculator is a shift tool that calculates the length of a time period that starts before midnight and ends after midnight. Night workers, caregivers, and security staff use the calculator for graveyard shifts.
Simple subtraction returns a negative number for an overnight shift: 6:00 AM minus 10:00 PM equals −16 hours. The Overnight Hours Calculator corrects the value to +8 hours by adding 1 full day (24 hours) to the end time.
What are the uses of Overnight Hours Calculator?
There are 5 main uses of the Overnight Hours Calculator, including night shift time cards, hospital rotations, and sleep tracking.
-
Night shift time cards
Warehouse and factory workers log a 9:00 PM to 5:30 AM shift as 8.5 gross hours.
-
Hospital rotations
Nurses total a 7:00 PM to 7:30 AM rotation as 12.5 hours before a 30-minute meal break.
-
Security patrols
Guards confirm an 11:00 PM to 7:00 AM post covers exactly 8 hours (480 minutes).
-
Sleep duration
Individuals measure bedtime at 11:15 PM to wake time at 6:45 AM as 7.5 hours of sleep.
-
Late events
Venue staff count an 8:00 PM to 2:00 AM concert shift as 6 hours (360 minutes).
Overnight Hours Calculator FAQ
How do I use the Overnight Hours Calculator?
1. Enter the evening start time: Type the start of the overnight period, for example 10:00 PM (22:00). 2. Enter the morning end time: Type the end time on the next day, for example 6:30 AM (06:30). The calculator detects the midnight crossing. 3. Subtract breaks and read the result: Enter break minutes. A 10:00 PM to 6:30 AM shift with a 30-minute break returns 8h 0m (8.00 hours).
What formula does the Overnight Hours Calculator use?
The Overnight Hours formula is Duration = (End + 1,440) − Start − Break, with all values in minutes, applied when End is smaller than Start. In short: If End < Start: Duration (min) = (End + 1440) − Start − Break.
Can you show a worked example?
11:00 PM to 7:15 AM with a 45-minute break gives (435 + 1,440) − 1,380 − 45 = 450 minutes, or 7 hours 30 minutes (7.5 hours).