Time Duration Calculator
PrintDetermining the duration between two times is essential for scheduling travel, logging work hours, tracking shipping transits, and running laboratory experiments. Because time is based on a base-60 sexagesimal system rather than a standard decimal system, subtracting times requires specific carrying and borrowing operations.
Our free online Time Duration Calculator determines the exact hours, minutes, and seconds between two times in two different modes:
- Time Duration: Find the hours, minutes, and seconds between two daily times (e.g., 8:30:00 AM to 5:30:00 PM), with a swap option to invert times instantly.
- Time Between Two Dates: Calculates the cumulative days, hours, minutes, and seconds elapsed between different dates.
How to Calculate Duration Between Two Times
Subtracting time by hand within the same day can be tricky due to AM/PM transitions and non-decimal carrying rules. Below is the step-by-step method to calculate time differences manually:
Step 1: Convert to 24-Hour Military Format
To avoid AM and PM calculation errors, convert both times to a 24-hour clock.
- AM hours remain identical (e.g.,
8:30 AMis08:30). - For PM hours, add 12 to the hour value (e.g.,
5:30 PMbecomes17:30).
Step 2: Compare the Minute Values
Examine whether the starting time has more minutes than the ending time. Your subtraction path will depend on this relationship:
Case A: Ending Minutes are Larger than (or Equal to) Starting Minutes
If the ending time’s minutes are greater, you can subtract directly as you would standard decimals, keeping hours on the left of the colon and minutes on the right.
Example: 1:57 PM (13:57) minus 9:22 AM (09:22)
13 : 57 - 09 : 22 _________ 04 : 35 (4 hours and 35 minutes)
Case B: Starting Minutes are Larger than Ending Minutes
If the starting time has more minutes, you must borrow time. Subtract 1 hour from the ending time’s hour portion, and add 60 minutes to the ending time’s minute portion. Then perform the subtraction.
Example: 1:57 PM (13:57) minus 9:58 AM (09:58)
Because 58 is greater than 57, we borrow 1 hour from 13 (reducing it to 12) and add 60 minutes to 57 (increasing it to 117):
12 : 117 - 09 : 58 __________ 03 : 59 (3 hours and 59 minutes)
To perform calculations by adding or subtracting time offsets from a specific date, visit the Time Calculator. For day-level calculations, use our Date Calculator, or verify chronological age intervals with the Age Calculator.
Frequently Asked Questions (FAQ)
How do you calculate duration across midnight?
If the ending time is on the next day, add 24 hours to the ending time’s hour portion before subtracting.
Example: Calculating duration from 10:00 PM (22:00) to 2:00 AM (02:00 next day):
02:00 + 24:00 = 26:00
26:00 - 22:00 = 4 hours.
How many minutes are in 1.5 hours?
To convert decimal hours to minutes, multiply the decimal portion by 60. For 1.5 hours:
1 hour + (0.5 × 60 minutes) = 1 hour and 30 minutes.
Conversely, to convert minutes to decimals, divide the minutes by 60.
Why do we borrow 60 instead of 10 in time math?
Time is structured around the ancient Babylonian sexagesimal system, which uses base-60. Because 1 hour consists of 60 minutes (and 1 minute consists of 60 seconds), borrowing from the left column shifts 60 units to the right column, unlike base-10 decimals where borrowing shifts 10 units.
How does the calculator handle seconds?
The borrowing rule extends to seconds. If starting seconds exceed ending seconds, you borrow 1 minute (60 seconds) from the minute column and add 60 to the seconds column before subtracting.