Time Duration Calculator
Free time duration calculator. Add or subtract two hours:minutes:seconds durations and get the exact combined or remaining time, including negative results.
Time Duration Calculator
Background.
This time duration calculator adds or subtracts two durations, each entered as hours, minutes, and seconds, and returns the combined or remaining time as a clean h:m:s breakdown plus a single signed total-seconds figure. It answers a different question from a clock-time span calculator: instead of asking 'how much time passed between these two clock readings', it asks 'what do these two ALREADY-KNOWN durations add up to (or differ by)' — combining a 2-hour-45-minute-30-second task with a 1-hour-30-minute-45-second task, reconciling a logged duration against a budgeted one, or totaling up several video-editing clip lengths two at a time.
Addition is the straightforward case: the two durations are converted to a common unit (seconds) and summed, then converted back to an hours/minutes/seconds display. Subtraction is where the calculator does something most quick mental-math attempts get wrong at the boundary — borrowing across the minute and hour columns the way you would with pen and paper (subtracting 45 seconds from 30 seconds requires borrowing a minute, exactly like subtracting 7 from 3 requires borrowing a ten), and, when duration 2 is actually longer than duration 1, returning a properly signed negative result rather than silently clamping to zero or throwing an error.
A negative subtraction result is a legitimate, common answer, not an edge case to be avoided: if you budgeted 1 hour 30 minutes for a task and it actually took 2 hours 45 minutes 30 seconds, 'duration 1 minus duration 2' is meaningfully negative — you went over budget by 1 hour 14 minutes 45 seconds. The calculator reports the magnitude of that overage in the main hours/minutes/seconds fields and flags the direction explicitly with a 'Negative result?' indicator, so the number itself is never ambiguous about which duration was actually longer.
The calculator places no upper bound on the hours field beyond a generous practical maximum, so it works equally well for sub-minute durations (a few seconds of song intro) and multi-day durations (150 hours of combined project time) without any special-casing — everything is converted to a single common unit of seconds internally before the addition or subtraction happens, and only converted back to the h:m:s display format at the very end.
This tool is deliberately narrower than a full date-and-time calculator: it never touches a calendar date, a time zone, or a specific clock reading, because durations by definition are lengths of time rather than points in time. That narrowness is a feature — video editors totaling clip lengths, race organizers combining split times, and hourly contractors reconciling logged task durations against a client's budgeted estimate all need exactly this pared-down arithmetic, without the extra fields a full scheduling tool would require. Pair it with the hours-between-times calculator when you need to derive a duration from two clock readings first, or with time-card when the duration in question is a payable work shift that also needs a break deduction and an overtime rule applied.
What is time duration calculator?
A duration, in this calculator's sense, is a length of elapsed time expressed as hours, minutes, and seconds — distinct from a specific moment in time (a clock reading or a calendar date). Two durations can be combined (added) to find a total, or compared (subtracted) to find a difference. This calculator performs both operations by first converting each duration to a single common unit — total seconds — since seconds are the finest granularity either duration is specified in, then performing plain arithmetic on that common unit, and finally converting the result back into an hours/minutes/seconds breakdown for display. This conversion-to-a-common-unit-and-back approach is the standard technique for any duration arithmetic, and it is exactly analogous to converting fractions to a common denominator before adding them: hours, minutes, and seconds are simply units of different sizes (3,600, 60, and 1 second respectively) that cannot be added or subtracted directly without a common footing.
How to use this calculator.
- Choose 'Add durations' to combine two time lengths, or 'Subtract' to find how much longer duration 1 is than duration 2 (the result can be negative if duration 2 is actually longer).
- Enter duration 1's hours, minutes, and seconds.
- Enter duration 2's hours, minutes, and seconds.
- Read the primary hours/minutes/seconds result for the combined or remaining time.
- Check 'Negative result?' when using subtract mode — if it reads Yes, the hours/minutes/seconds figures describe how much SHORTER duration 1 was than duration 2, not the reverse.
- Use 'Total seconds (signed)' when you need a single comparable number instead of the h:m:s breakdown — for example, to compare the magnitude of two separate duration calculations against each other.
The formula.
Each duration is first converted to a single total-seconds figure: d = hours×3600 + minutes×60 + seconds. In add mode, totalSeconds = d1 + d2. In subtract mode, totalSeconds = d1 − d2, which may be negative if d2 is larger than d1.
To produce the display breakdown, the calculator takes the absolute value of totalSeconds (absSeconds = |totalSeconds|) and decomposes it: resultHours = floor(absSeconds / 3600), then the remainder after removing those hours is split into resultMinutes = floor(remainder / 60) and resultSeconds = remainder mod 60. Because the breakdown always uses the absolute value, resultHours/Minutes/Seconds are always non-negative magnitudes — the sign of the overall result is reported separately via the isNegative flag (true when totalSeconds < 0), so the two pieces of information (magnitude and direction) never get confused with each other in a single signed h:m:s display.
A worked example.
Adding a duration of 2 hours 45 minutes 30 seconds to a duration of 1 hour 30 minutes 45 seconds. Converting each to total seconds: the first is 2×3600 + 45×60 + 30 = 7,200 + 2,700 + 30 = 9,930 seconds. The second is 1×3600 + 30×60 + 45 = 3,600 + 1,800 + 45 = 5,445 seconds. Summing gives 9,930 + 5,445 = 15,375 total seconds. Converting back: 15,375 / 3,600 = 4 whole hours (14,400 seconds), leaving a remainder of 975 seconds; 975 / 60 = 16 whole minutes (960 seconds), leaving 15 seconds. So the combined duration is 4 hours, 16 minutes, 15 seconds. Now compare the subtract case with the same two durations: 9,930 − 5,445 = 4,485 seconds, which breaks down to 1 hour, 14 minutes, 45 seconds — and reversing the order (5,445 − 9,930 = −4,485) produces the identical 1h 14m 45s magnitude but with 'Negative result?' reading Yes instead of No.
Frequently asked questions.
What happens if I subtract a longer duration from a shorter one?
How is this different from the hours-between-times calculator?
Is there a limit to how large the hours value can be?
Why do I need to enter minutes and seconds separately instead of just decimal hours?
Can I add or subtract more than two durations at once?
Does the calculator round or truncate the seconds component?
References& sources.
- [1]International Organization for Standardization, ISO 8601-1:2019 — Date and time representations. Defines the standard duration representation (PnYnMnDTnHnMnS) that the hours/minutes/seconds concept in this calculator is drawn from.
- [2]U.S. National Institute of Standards and Technology (NIST), Time and Frequency Division. Reference for the SI second and the hour/minute/second unit hierarchy this calculator's arithmetic is built on.
- [3]Bureau International des Poids et Mesures (BIPM), The International System of Units (SI), 9th edition. Defines the second as the SI base unit of time from which minutes and hours are derived (60 and 3,600 seconds respectively).
In this category
Embed
Quanta Pro
Paid features are coming later.
- All 313 calculators remain free
- No billing is enabled