A duration answers the question "how long did that take?" or "how long will that last?" - it is the length of an event, a task or a journey, measured from its start to its finish. You know the start time and the end time, and you want the length of time sitting between them. It sounds like plain subtraction, and it is, but only after you translate the clock readings into a form where subtraction behaves. Clock times are written in a mixed system: hours that reset every 12 or 24, and minutes that reset every 60. Subtract them like ordinary numbers and you get answers that are quietly wrong, usually by exactly one hour.
The reliable fix is to convert both times into minutes since midnight before you subtract anything. One unit, one subtraction, no borrowing, no special cases. Once you have the answer in minutes you can present it however you like: hours and minutes, a decimal number of hours, or a full breakdown with seconds. Every example in this guide uses that single method.
The minutes method, step by step
- Convert the start time to minutes since midnight. On the 24-hour clock that is hours times 60 plus minutes. 9:15 AM is 9 x 60 + 15 = 555 minutes.
- Convert the end time the same way. For PM times other than 12 PM, add 12 to the hour first: 2:45 PM is 14:45, which is 885 minutes.
- If the end time is smaller than the start time, the span crosses midnight. Add 1,440 minutes (one full day) to the end time.
- Subtract the start from the end. What is left is the duration in minutes.
- Divide by 60 to split the answer into hours and leftover minutes. 330 minutes is 5 hours 30 minutes.
That is the whole technique. If your times include seconds, convert to seconds since midnight instead (hours times 3,600, plus minutes times 60, plus seconds) and divide the answer back into hours, minutes and seconds at the end. The shape of the method never changes.
Example 1: an ordinary daytime duration
A training session runs from 9:15 AM to 2:45 PM. How long is it? The start converts to 555 minutes. The end, 2:45 PM, is 14:45 on the 24-hour clock, which converts to 885 minutes. Subtract: 885 - 555 = 330 minutes. Divide by 60 and you get 5 hours with 30 minutes left over, so the session lasts 5 hours 30 minutes. In the decimal form that booking systems like, that is 5.5 hours. A quick finger check agrees: 9:15 to 2:15 is five hours, and the last stretch to 2:45 adds the half hour.
Example 2: when the minutes will not subtract
Now a span from 9:45 AM to 3:10 PM. Column subtraction fails immediately because 10 minutes minus 45 minutes will not go, and the traditional fix is to borrow an hour and rewrite the end as 2:70 PM. Borrowing works, but it is the single most common place for a silent one-hour error. The minutes method sidesteps it completely. The start is 585 minutes. The end, 3:10 PM, is 15:10, which is 910 minutes. 910 - 585 = 325 minutes, and 325 minutes is 5 hours 25 minutes. No borrowing, nothing to forget halfway through, and the answer matches the borrowing method exactly.
Example 3: a duration that crosses midnight
A security guard works from 10:30 PM to 6:15 AM. The start converts to 1,350 minutes. The end, 6:15 AM, converts to just 375 minutes, which is smaller than the start. That is the signal to apply step 3: add 1,440 to the end, making 1,815. Now subtract: 1,815 - 1,350 = 465 minutes, which is 7 hours 45 minutes. You can verify it in two chunks: 10:30 PM to midnight is 1 hour 30 minutes, midnight to 6:15 AM is 6 hours 15 minutes, and the two chunks add up to 7 hours 45 minutes. Any duration under 24 hours works with this one adjustment, including a full 7 PM to 7 AM night shift, which comes out at exactly 720 minutes.
When the duration needs seconds
Some durations are measured with a stopwatch rather than a wall clock: a download, a chemical reaction, a race split, a video render. The method scales down without changing. Convert both readings to seconds since midnight (or since the timer started), subtract once, then divide back. Say a process starts at 10:14:22 AM and finishes at 12:05:40 PM. In seconds, the start is 36,862 and the finish is 43,540. The difference is 6,678 seconds. Divide by 3,600 for 1 whole hour, leaving 3,078 seconds; divide that by 60 for 51 minutes, leaving 18 seconds. The duration is 1 hour 51 minutes 18 seconds. Our guide to elapsed time in hours, minutes and seconds goes deeper on this seconds-level version, including how to borrow cleanly when you would rather not convert.
Quick reference: common durations
| Start | End | Duration | Decimal hours |
|---|---|---|---|
| 8:00 AM | 12:15 PM | 4 hours 15 minutes | 4.25 |
| 1:30 PM | 6:45 PM | 5 hours 15 minutes | 5.25 |
| 9:50 AM | 11:05 AM | 1 hour 15 minutes | 1.25 |
| 11:40 PM | 12:55 AM | 1 hour 15 minutes | 1.25 |
The last row is the one worth staring at. A start of 11:40 PM and an end of 12:55 AM looks backwards on paper, yet the duration is a perfectly ordinary 1 hour 15 minutes once you add the day to the end time. Overnight spans are not a special topic; they are the same subtraction with one extra step.
Checking your answer
Every duration can be verified by running it backwards: add the duration to the start time and you should land exactly on the end time. Start 9:45 AM plus 5 hours 25 minutes is 3:10 PM. Start 10:30 PM plus 7 hours 45 minutes is 6:15 AM the next morning. If the check misses, the error is almost always one of three things: a PM time that never got its extra 12 hours, a midnight crossing that never got its extra 1,440 minutes, or a borrow that dropped an hour. And when the two readings sit on different calendar days rather than just across midnight, use the dates version of this method in our guide to the duration between two dates and times.
Try it the fast way
For anything you would rather not convert by hand, the time duration calculator on this site takes two times or two full dates and returns the duration broken into days, hours, minutes and seconds, plus the total in each unit. If instead you need to add several separate lengths of time together, like the scenes of a video or the legs of a trip, the time calculator on the homepage is built for adding durations rather than subtracting clock readings.
Frequently asked questions
What is the difference between duration and elapsed time?
They describe the same measurement from two angles. Duration is the length of an event from its start to its finish, like a film running 2 hours 10 minutes. Elapsed time is how much time has passed since something started, like a timer showing 40 minutes since you put the roast in. The arithmetic is identical either way.
How do I calculate the duration if the end time is earlier than the start time?
That means the span crosses midnight. Convert the end time to minutes since midnight, add 1,440 (the minutes in a full day), then subtract the start time as usual. A span from 10:30 PM to 6:15 AM is 465 minutes, or 7 hours 45 minutes, once you add the day to the end.
How do I write a duration as a decimal number?
Keep the whole hours as they are and divide the leftover minutes by 60. A duration of 5 hours 30 minutes becomes 5.5 hours, and 5 hours 25 minutes becomes about 5.42 hours. Payroll systems and invoices almost always want this decimal form.
Can a duration be longer than 24 hours?
Yes. Once a span runs past a full day, clock times alone are not enough and you need the dates as well. Count the whole days first, multiply by 24 hours, then add the duration between the two clock times on the end days. Project timelines, rentals and multi-day trips all work this way.
Why did my duration come out negative?
A negative result means the end time was treated as earlier than the start time on the same day. Either the span really does cross midnight, in which case you add 24 hours to the end, or the AM and PM labels were swapped somewhere. Check those two things first and the negative sign almost always disappears.
