Math Guides
How to Calculate Time Differences and Durations
February 11, 2025 · 8 min read
Learn how to calculate time differences and durations accurately, handle AM/PM and overnight spans, convert to hours and minutes, and avoid common timekeeping mistakes.
Figuring out how much time passed between two moments comes up constantly: tracking hours worked, timing a workout, planning travel across schedules, or measuring how long a task took. It seems trivial until the clock wraps past midnight or you mix up AM and PM, and suddenly your answer is off by twelve hours. Learning to calculate time differences and durations reliably is a small skill with a big payoff. This guide walks through the method step by step, handles the tricky overnight and AM/PM cases, and shows you how to convert results into whatever unit you need.
The Foundation: Time Is Base 60
Unlike money or length, time does not run on tens. There are 60 seconds in a minute and 60 minutes in an hour, so time uses a base-60 system called sexagesimal. That means when minutes exceed 60 you carry an hour, and when you subtract and run short on minutes you borrow 60 from the hours column. Keeping that in mind prevents most errors. If you would rather skip the arithmetic entirely, the time tool in our free math tools does it instantly, but understanding the steps lets you check the result.
Step-by-Step: Subtracting Two Times
- Convert to 24-hour time. This removes AM/PM confusion. 1:30 PM becomes 13:30, and 9:00 AM stays 09:00. Midnight is 00:00 and noon is 12:00.
- Subtract the start from the end. Subtract hours from hours and minutes from minutes.
- Borrow if needed. If the end minutes are smaller than the start minutes, borrow one hour (60 minutes) from the hours column before subtracting.
- Handle overnight spans. If the end time is earlier than the start time, the period crosses midnight. Add 24 hours to the end time before subtracting.
Worked Example: A Work Shift
Suppose you start at 9:15 AM and finish at 5:45 PM.
- Convert to 24-hour time: start 09:15, end 17:45.
- Subtract minutes: 45 minus 15 equals 30 minutes.
- Subtract hours: 17 minus 9 equals 8 hours.
- Result: 8 hours and 30 minutes.
Now suppose your finish time were 5:10 PM instead. The minutes column needs borrowing: 10 is less than 15, so borrow an hour. The end becomes 16 hours and 70 minutes. Then 70 minus 15 equals 55 minutes, and 16 minus 9 equals 7 hours, giving 7 hours and 55 minutes.
Worked Example: An Overnight Span
A flight departs at 10:30 PM and lands at 6:15 AM the next day.
- Convert: departure 22:30, arrival 06:15.
- Because arrival is earlier than departure, add 24 hours: 06:15 becomes 30:15.
- Subtract minutes with borrowing: 15 is less than 30, so borrow an hour. 30 hours 15 minutes becomes 29 hours 75 minutes. Then 75 minus 30 equals 45 minutes.
- Subtract hours: 29 minus 22 equals 7 hours.
- Result: 7 hours and 45 minutes.
Converting a Duration Into Other Units
Once you have a duration, converting it is straightforward. To express 8 hours and 30 minutes as total minutes, multiply the hours by 60 and add the minutes: 8 multiplied by 60 equals 480, plus 30 equals 510 minutes. To express it as decimal hours, divide the minutes by 60 and add: 30 divided by 60 equals 0.5, so the duration is 8.5 hours. Decimal hours are especially useful for payroll, where 8 hours and 30 minutes is billed as 8.5 hours. This is closely related to the broader topic of unit conversion, just applied to base-60 time.
Calculating Time Across Multiple Days
For durations spanning days, count whole days first, then handle the leftover hours and minutes. From Monday 8:00 AM to Wednesday 2:00 PM, count two full days (48 hours) from Monday 8:00 AM to Wednesday 8:00 AM, then add the 6 hours from 8:00 AM to 2:00 PM, for a total of 54 hours. This is the same year-month-day logic used when finding someone's exact age, which you can read about in our age and date practice material.
Common Mistakes to Avoid
- Confusing 12 AM and 12 PM. 12 AM is midnight (00:00) and 12 PM is noon (12:00). Mislabeling these flips your result by 12 hours.
- Treating minutes as base 10. Subtracting 8.45 from 5.10 as decimals is wrong; 45 and 10 are minutes out of 60, not hundredths.
- Forgetting the overnight adjustment. If the end time is earlier than the start, always add 24 hours.
- Ignoring time zone changes. Travel across zones requires converting both times to a single zone first.
Frequently Asked Questions
How do I calculate hours between two times that cross midnight?
Add 24 hours to the end time, then subtract the start time normally. For 10:30 PM to 6:15 AM, treat the arrival as 30:15 and subtract 22:30 to get 7 hours and 45 minutes.
How do I convert minutes into decimal hours?
Divide the minutes by 60 and add to the whole hours. 8 hours and 15 minutes is 15 divided by 60, which is 0.25, giving 8.25 hours.
What does 12 AM mean exactly?
12 AM is midnight, the start of a new day, written as 00:00 in 24-hour time. 12 PM is noon, written as 12:00.
Why convert to 24-hour time before subtracting?
The 24-hour format removes AM/PM ambiguity, so a single subtraction works without accidentally mixing morning and afternoon times.
How do I total many short durations, like lap times?
Add all the minutes and seconds separately, then carry: every 60 seconds becomes a minute and every 60 minutes becomes an hour. This keeps the base-60 system accurate.