To calculate time across midnight, treat the ending time as occurring on the following day. You can split the duration at midnight or add 24 hours to the ending time before subtracting. For example, the duration from 10:00 PM to 6:00 AM is eight hours.
Calculate elapsed hours and minutes, overnight duration, break deductions, decimal hours, and total minutes.
The evening portion and morning portion are added together to obtain the complete elapsed time.
Why Overnight Time Needs an Adjustment
On a normal 24-hour clock, an early-morning ending time has a smaller clock value than a late-evening starting time.
The ending time is not truly earlier; it belongs to the following day.
The Time Duration Calculator automatically recognises an earlier ending time as an overnight period.
Method 1: Split the Duration at Midnight
Calculate the time from the starting point to midnight.
Calculate the time from midnight to the ending point.
Add the two portions together.
Example: 10:00 PM to 6:00 AM
There are two hours from 10:00 PM to midnight.
There are six hours from midnight to 6:00 AM.
Adding the two portions gives eight hours.
Method 2: Add 24 Hours to the End Time
Convert both times into minutes after midnight.
Add 1,440 minutes to the ending value because it occurs on the next day.
Subtract the starting value from the adjusted ending value.
The Same Example in Minutes
Ten o'clock at night equals 1,320 minutes after midnight.
Six o'clock in the morning equals 360 minutes, which becomes 1,800 after adding 1,440.
Subtracting 1,320 from 1,800 gives 480 minutes, or eight hours.
Example: 11:45 PM to 12:15 AM
There are 15 minutes from 11:45 PM to midnight.
There are another 15 minutes from midnight to 12:15 AM.
The complete duration is 30 minutes.
Example: 8:30 PM to 2:10 AM
There are 3 hours 30 minutes from 8:30 PM to midnight.
There are 2 hours 10 minutes from midnight to 2:10 AM.
The total duration is 5 hours 40 minutes.
Subtracting an Overnight Break
Calculate the complete overnight duration first.
Convert the excluded break into minutes.
Subtract the break from the elapsed total.
A shift from 10:00 PM to 6:00 AM lasts eight hours. With a 30-minute break, the counted duration is 7 hours 30 minutes.
Identical Start and End Times
The same time on the same day represents zero duration.
The same time on the following day represents exactly 24 hours.
A next-day setting is needed to distinguish these two meanings.
Midnight in 12-Hour Time
Midnight is written as 12:00 AM.
Noon is written as 12:00 PM.
Confusing these labels can change a duration by 12 hours.
Midnight in 24-Hour Time
Midnight at the beginning of a day is written as 00:00.
Ten o'clock at night is 22:00 and six o'clock in the morning is 06:00.
When 06:00 is on the following day, it must be placed after 22:00 on the timeline.
Common Overnight Durations
The following examples show typical midnight-crossing periods.
| Start time | End time | Duration |
|---|---|---|
| 10:00 PM | 6:00 AM | 8 hours |
| 11:00 PM | 1:00 AM | 2 hours |
| 11:45 PM | 12:15 AM | 30 minutes |
| 8:30 PM | 2:10 AM | 5 hours 40 minutes |
| 6:00 PM | 6:00 AM | 12 hours |
Common Mistakes
Do not subtract the smaller morning value directly from the larger evening value without a next-day adjustment.
Do not confuse 12:00 AM with 12:00 PM.
Do not add 24 hours more than once.
Confirm whether the ending time is truly on the next day.
Conclusion
Split the period at midnight or add 24 hours to the ending time.
Both methods produce the same elapsed duration.
Use the Time Duration Calculator to calculate overnight hours, minutes, and break-adjusted time.
FAQs
How do I calculate time across midnight?
Add the time before midnight to the time after midnight, or add 24 hours to the ending time before subtracting.
How long is 10:00 PM to 6:00 AM?
The duration is eight hours.
How long is 11:45 PM to 12:15 AM?
The duration is 30 minutes.
Why is the ending time smaller?
Its clock value is smaller because it belongs to the following day.
Can I subtract an overnight break?
Yes. Calculate the complete duration first and subtract the break afterwards.