To calculate the duration between two times, subtract the start time from the end time, converting both to a 24-hour format or to minutes past midnight first. For example, from 9:30 AM to 2:15 PM is 4 hours and 45 minutes. This article explains the manual method, common pitfalls, and when to use a calculator.
Why Time Duration Matters
Knowing how to calculate the time between two points is a basic life skill. You use it to plan a road trip, estimate cooking time, track a work shift, or figure out how long a meeting will last. While a clock or phone can give you the answer instantly, understanding the underlying math helps you double-check results and solve problems when you don't have a device handy.
The most common mistake people make is forgetting that time uses a base-60 system, not base-10. You can't simply subtract 9:30 from 2:15 and get 7:15. You need to borrow an hour and convert it to 60 minutes, just like you'd borrow a ten when subtracting in decimal—but here you borrow a 60.
The Basic Subtraction Method
The simplest way to find a duration is to write both times in the same format (either both AM/PM or both 24-hour) and subtract the earlier from the later. Here's the step-by-step process:
- Convert to 24-hour time (if using AM/PM). For PM times (except 12 PM), add 12 to the hour. For example, 2:15 PM becomes 14:15, and 12:30 PM stays 12:30.
- Subtract minutes first. If the end minutes are less than the start minutes, borrow 1 hour (add 60 to the end minutes) and subtract 1 from the end hour.
- Subtract hours. The result is your duration in hours and minutes.
Example: From 9:30 AM to 2:15 PM. Convert 2:15 PM to 14:15. Subtract minutes: 15 - 30 is negative, so borrow: 14:15 becomes 13:75. Now subtract: 75 - 30 = 45 minutes, and 13 - 9 = 4 hours. Duration = 4 hours 45 minutes.
Using Minutes Past Midnight (The Decimal Method)
Another reliable approach is to convert each time to a single number: the total minutes since midnight. Then subtract the two numbers and convert back to hours and minutes. This method avoids the borrowing confusion entirely.
- Convert each time to minutes: (hour × 60) + minutes.
- For PM times (except 12 PM), add 12 to the hour first.
- Subtract the start minutes from the end minutes.
- Divide the result by 60 to get hours, and the remainder is minutes.
Example: 9:30 AM = (9 × 60) + 30 = 570 minutes. 2:15 PM = (14 × 60) + 15 = 855 minutes. Difference = 855 - 570 = 285 minutes. 285 ÷ 60 = 4 hours with a remainder of 45 minutes. Same answer: 4 hours 45 minutes.
Handling Times That Cross Midnight
If you start at 10:00 PM and end at 2:00 AM the next day, a simple subtraction gives a negative number. In this case, you need to add 24 hours (or 1440 minutes) to the end time before subtracting.
Example: 10:00 PM (22:00) to 2:00 AM (02:00). Convert to minutes: 22:00 = 1320 minutes, 02:00 = 120 minutes. Since 120 is less than 1320, add 1440 to the end: 120 + 1440 = 1560. Now subtract: 1560 - 1320 = 240 minutes = 4 hours. So the duration is 4 hours.
This same logic applies to shift work, overnight flights, or any period that spans midnight. If you're using a time calculator, it usually handles this automatically, but it's good to know why the answer isn't negative.
Common Mistakes and How to Avoid Them
Even with a clear method, people make errors. Here are the most frequent pitfalls:
- Mixing AM and PM without converting. Always convert to 24-hour or add 12 to PM hours.
- Forgetting that 12 PM is noon, not 0. 12:00 PM stays 12:00 in 24-hour time, while 12:00 AM is 00:00.
- Borrowing 10 instead of 60. When subtracting minutes, you borrow an hour, which is 60 minutes, not 100.
- Not accounting for midnight crossing. If the end time is earlier than the start time, you're almost certainly dealing with an overnight duration.
- Rounding incorrectly. For work or billing, 30 minutes is 0.5 hours, but 45 minutes is 0.75 hours, not 0.45.
To double-check your work, use a different method (like the minute-counting one) or estimate: if you start at 9:30 and end at 2:15, you know it's roughly 4.5 hours, so an answer of 4:45 is reasonable.
When to Use a Time Duration Calculator
While the manual method works, a dedicated time duration calculator is faster and less error-prone, especially when you have multiple intervals or need to include seconds. You should consider using one when:
- You have many start/end pairs (like a timesheet).
- You need precision to the second (e.g., for sports timing).
- You're dealing with times that cross midnight and want to avoid mistakes.
- You want to add or subtract multiple durations (like total travel time).
Most online time calculators let you enter start and end times in either 12-hour or 24-hour format and instantly give you the difference in hours, minutes, and seconds. Some also show the result in decimal hours, which is useful for payroll or billing.
Digital vs. Manual Calculation: Which Is Better?
Digital tools are undeniably convenient, but manual calculation has its own value. You can do it anywhere without a device, and it helps you develop a better intuition for time. For example, if you know a task takes 45 minutes and you start at 3:20, you can quickly figure out you'll finish at 4:05 without pulling out a phone.
However, for complex scenarios—like calculating the total time across multiple breaks, or converting between time zones—a calculator or spreadsheet is strongly recommended. Spreadsheets like Excel or Google Sheets have built-in functions (like TEXT() or MOD()) that handle time arithmetic, but they require you to format cells correctly. A dedicated online calculator removes that learning curve.
Frequently Asked Questions
How do I calculate the duration between two times in Excel?
In Excel, type the start time in one cell and the end time in another (e.g., A1 = 9:30 AM, B1 = 2:15 PM). In a third cell, enter =B1-A1 and format that cell as "h:mm" to see hours and minutes. If the result is a negative number, it means the end time is on the next day; you can use =MOD(B1-A1,1) to get a positive result.
What is the difference between elapsed time and duration?
They are essentially the same thing. Elapsed time is the total time that passes from a start moment to an end moment. Duration is a more general term that can also refer to how long something lasts, but in the context of two times, they are interchangeable.
How do I convert hours and minutes to decimal hours?
Divide the minutes by 60 and add to the hours. For example, 4 hours 45 minutes = 4 + (45/60) = 4.75 hours. This is often used for payroll, where 15 minutes = 0.25 hours, 30 minutes = 0.5 hours, and 45 minutes = 0.75 hours.
Can I calculate duration using a regular calculator?
Yes, but you need to convert times to minutes or decimal hours first. For example, 9:30 AM to 2:15 PM: convert both to minutes (570 and 855), subtract to get 285, then divide by 60 to get 4.75 hours. To get it back to hours and minutes, multiply the decimal part (0.75) by 60 to get 45 minutes.
Why does my time duration calculator show 24:00 for a full day?
Some calculators display a full 24-hour period as 24:00, while others show 0:00. Both are correct; 24:00 is the end of the day, and 0:00 is the start of the next day. If you're calculating from 12:00 AM to 12:00 AM the next day, the duration is 24 hours.