Time, Date, Navigation & Astronomy Clock Time, Elapsed Time & Time Zones Sexagesimal (base-60) duration arithmetic

Add and Subtract Time Calculator

Add or subtract up to three durations written as hours, minutes and seconds, and get the answer in h:m:s, in decimal hours, in minutes and in seconds. The calculator converts every term to seconds first, applies its plus or minus sign, sums them, then normalises the result back into hours, minutes and seconds — which is why carrying past 60 and borrowing across a boundary come out right every time. It also reports the average per term, the figure coaches and editors reach for after totalling laps or clips.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
How many durationsChoose how many durations you want to combine; unused terms are ignored entirely.3 terms
HoursWhole hours in the first duration.2
MinutesMinutes in the first duration; values of 60 or more are carried into hours.45
SecondsSeconds in the first duration; decimals are allowed for stopwatch times.30
OperationWhether the second duration is added to or subtracted from the running total.Add (+)
HoursWhole hours in the second duration.1
MinutesMinutes in the second duration.20
SecondsSeconds in the second duration.45
OperationWhether the third duration is added to or subtracted from the running total.Add (+)
HoursWhole hours in the third duration.0
MinutesMinutes in the third duration.30
SecondsSeconds in the third duration.0

It returns

  • Total — The signed sum normalised into hours, minutes and seconds.
  • Total in decimal hours — The total seconds divided by 3,600. This is the form payroll and billing systems want.
  • Total in minutes
  • Total in seconds
  • Average per term — The total divided by the number of terms you enabled.
  • Average in decimal hours
  • Terms used

The formula

T=k=1nσk(3600hk+60mk+sk)
decimal hours=T3600
T¯=Tn

In plain text: T = Σ σₖ(3600hₖ + 60mₖ + sₖ); H = ⌊|T|/3600⌋, M = ⌊(|T| mod 3600)/60⌋, S = |T| mod 60

  • TSigned total duration (seconds)
  • σₖSign of term k: +1 to add, −1 to subtract (±1)
  • hₖ, mₖ, sₖHours, minutes and seconds entered for term k (h, min, s)
  • nNumber of terms combined (count)
  • H, M, SNormalised hours, minutes and seconds of the answer (h, min, s)

The sign of T is carried outside the normalisation, so a negative answer reads as −(H h M m S s) rather than as three separate negative parts.

Updated Category Clock Time, Elapsed Time & Time Zones Verified against published test cases Reading time 11 min

Why time arithmetic goes wrong on a normal calculator

A pocket calculator works in base ten and a clock works in base sixty, so typing 2.45 + 1.20 for two hours forty-five plus one hour twenty gives you 3.65, which is neither 4 hours 5 minutes nor anything else meaningful. The error is not small: it is 22 minutes on that one addition, and it compounds every time you chain another term.

The reliable method is the one this calculator uses. Reduce every duration to a single count of seconds, do ordinary integer arithmetic on those counts, then split the answer back into hours, minutes and seconds at the very end. Working in one unit removes carrying and borrowing from the middle of the problem, where mistakes hide, and puts it in one place at the end where a single rule applies.

Durations are not clock times, and the difference matters. A clock time is a position on a 24-hour cycle; 23:30 plus two hours wraps to 01:30 the next day. A duration is an unbounded length; 23 h 30 m plus 2 h is 25 h 30 m and stays that way. This calculator adds durations, so nothing wraps at 24. If you want the gap between two clock readings instead, use the time duration calculator, which handles the midnight wrap deliberately.

The formula, one variable at a time

Each term is converted with Tₖ = 3600hₖ + 60mₖ + sₖ. The constants are exactly the number of seconds in an hour and in a minute, so this conversion is lossless — no rounding enters here even for stopwatch readings carrying three decimal places.

The sign σₖ is +1 or −1 according to the operation you pick for that term, and the running total is the signed sum T = Σ σₖTₖ. Because addition is commutative and associative in the integers, the order you enter the terms cannot change the answer. That is a genuine advantage over doing it on paper column by column, where the order determines when you have to borrow.

Normalising back is three floor operations on the absolute value. H = ⌊|T|/3600⌋ takes as many whole hours as fit. The remainder |T| mod 3600 is what is left inside the last hour, and M = ⌊(|T| mod 3600)/60⌋ takes the whole minutes out of that. S = |T| mod 60 is the seconds. Taking the absolute value first is what keeps a negative answer readable: −2,715 seconds becomes −(0 h 45 m 15 s), not −0 h −45 m −15 s.

Two derived figures come free. Decimal hours is T/3600, the format payroll systems, invoicing tools and spreadsheets expect — the minutes to decimal hours calculator does that single conversion on its own. The average per term is T/n, where n counts only the terms you enabled, so switching from three terms to two changes the divisor as well as the total.

Worked example: totalling three edit segments

You have cut a documentary into three segments running 2 h 45 m 30 s, 1 h 20 m 45 s and 0 h 30 m 00 s, and you need the programme length and the mean segment length.

  1. Convert segment one. 3600 × 2 + 60 × 45 + 30 = 7,200 + 2,700 + 30 = 9,930 s.
  2. Convert segment two. 3600 × 1 + 60 × 20 + 45 = 3,600 + 1,200 + 45 = 4,845 s.
  3. Convert segment three. 3600 × 0 + 60 × 30 + 0 = 1,800 s.
  4. Add the signed terms. All three are additions, so T = 9,930 + 4,845 + 1,800 = 16,575 s.
  5. Take the whole hours. ⌊16,575 / 3600⌋ = ⌊4.6042⌋ = 4 hours, using 14,400 s.
  6. Take the whole minutes. 16,575 − 14,400 = 2,175 s left; ⌊2,175 / 60⌋ = 36 minutes, using 2,160 s.
  7. Take the seconds. 2,175 − 2,160 = 15 seconds.

The programme runs 4 h 36 m 15 s. In decimal hours that is 16,575 / 3,600 = 4.604167 h, and in minutes 16,575 / 60 = 276.25 min. The average segment is 16,575 / 3 = 5,525 s = 1 h 32 m 05 s, because 5,525 − 3,600 = 1,925 s and ⌊1,925/60⌋ = 32 with 5 seconds left over.

Now subtract a 12 m 30 s section you decided to cut. That is 750 s, so T = 16,575 − 750 = 15,825 s, which normalises to 4 h 23 m 45 s. Notice you never had to borrow: 36 minutes minus 12 minutes 30 seconds would have needed a borrow in column arithmetic, and reducing to seconds turned it into a plain subtraction.

Common durations in seconds, minutes and decimal hours

Conversion factors for the durations that turn up most often in timesheets, editing and race timing.
DurationSecondsMinutesDecimal hours
0 h 00 m 15 s150.250.004167
0 h 01 m 00 s6010.016667
0 h 06 m 00 s36060.1
0 h 15 m 00 s900150.25
0 h 20 m 00 s1,200200.333333
0 h 30 m 00 s1,800300.5
0 h 45 m 00 s2,700450.75
1 h 00 m 00 s3,600601
1 h 30 m 00 s5,400901.5
4 h 36 m 15 s16,575276.254.604167
8 h 00 m 00 s28,8004808
24 h 00 m 00 s86,4001,44024

Every row is 3600h + 60m + s, then divided by 60 and by 3,600. The six-minute row is the reason many professions bill in tenths of an hour.

How to read the result

The h:m:s figure is the one to quote to a person; the decimal-hours figure is the one to type into a system. Payroll software, most billing platforms and every spreadsheet want decimal hours, and 4 h 36 m 15 s entered as “4.36” rather than 4.604167 understates the time by about 15 minutes.

A negative total is a real answer, not an error. It tells you the subtractions outweighed the additions — you removed more footage than you had, or a stopwatch split went into the wrong box. The calculator shows the magnitude with a minus sign in front and flags it in a note, so you can decide whether the sign is what you meant.

Watch the rounding of the decimal figures. Sixty seconds is 0.016667 h, so a duration quoted to two decimal places in hours is only good to about ±18 seconds. If you are reconciling to the second — broadcast running orders, contract timing, race results — keep the seconds figure and convert once at the very end, not at every intermediate step.

The average per term is a plain arithmetic mean and inherits the mean's weaknesses. Three laps of 62 s, 63 s and 121 s total 246 s and average 82 s, a figure none of the laps resembles. When one term is an outlier, quote the range alongside the mean rather than the mean alone.

Mistakes that produce a wrong total

  • Treating a colon as a decimal point. 1:30 is 1.5 hours, not 1.30. This single substitution accounts for most disputed timesheets.
  • Rounding each term before summing. Rounding three terms to the nearest minute can move the total by up to 90 seconds. Sum exactly, round once at the end.
  • Mixing durations with clock times. Adding two hours to 23:30 gives a duration of 25 h 30 m here; if you wanted 01:30 tomorrow you wanted clock arithmetic, not duration arithmetic.
  • Forgetting that the average divides by the number of terms you enabled. Switching from three terms to two changes the divisor, so the average moves even though the two remaining durations did not.
  • Entering a negative number in an hours box. Use the subtract operation instead; the sign belongs to the whole term, not to one of its three parts.
  • Assuming every day is exactly 24 hours when you convert to days. Days containing a daylight-saving transition are 23 or 25 hours long in local civil time.

Leap seconds and why they do not appear here

Coordinated Universal Time occasionally inserts a leap second, so a real UTC minute can contain 61 seconds. Duration arithmetic in this calculator uses the idealised 60-second minute and 3,600-second hour, which is what every timesheet, stopwatch and edit suite also uses. The difference only matters if you are subtracting two absolute UTC instants separated by a leap-second insertion, and even then it is one second per insertion. The General Conference on Weights and Measures resolved in 2022 to stop inserting leap seconds by 2035, which will remove the ambiguity entirely.

Use this calculator when you have lengths and want their sum. Use the time duration calculator when you have two clock readings and want the gap between them, including overnight shifts. Use the time zone converter when the two readings sit in different zones, because then the arithmetic has to pass through UTC before any subtraction is meaningful.

For durations measured in days rather than hours, the age in days calculator counts calendar days between dates, and the Unix timestamp converter does the same job in epoch seconds, which is the representation most software actually stores. Epoch arithmetic is this calculator's method scaled up: reduce everything to one unit, subtract, then convert once.

Spreadsheets can do this too, but with a trap. Excel and Google Sheets store a duration as a fraction of a day, so 4 h 36 m 15 s is 0.19184 in the cell. The format [h]:mm:ss with square brackets displays totals beyond 24 hours; the plain h:mm:ss format wraps silently, and a 30-hour weekly total appears as six hours.

Key terms

Duration
A length of time with no position on the calendar. Durations add without limit — there is no 24-hour ceiling.
Sexagesimal
Base sixty. Minutes and seconds are sexagesimal subdivisions inherited from Babylonian astronomy, which is why 60 rather than 100 is the carry point.
Normalisation
Rewriting a count of seconds as the largest whole number of hours, then minutes, then the remaining seconds, so that minutes and seconds both fall in the range 0 to 59.
Decimal hours
A duration expressed as a single number of hours with a fractional part: 90 minutes is 1.5 decimal hours.

Frequently asked questions

How do I add 2 hours 45 minutes and 1 hour 20 minutes?

You get 4 hours 5 minutes. Convert both to minutes — 165 and 80 — add to 245, then divide by 60: 245 = 4 × 60 + 5. The mistake to avoid is typing 2.45 + 1.20 into a calculator, which returns 3.65 and is wrong by 22 minutes because a calculator carries at 100 and a clock carries at 60.

Why is my total more than 24 hours?

Because durations do not wrap. Twenty-five and a half hours of recorded footage is 25 h 30 m, not 1 h 30 m. Only clock times wrap at midnight. If your total should have wrapped, you are adding positions on a clock rather than lengths, and the time duration calculator is the tool you want.

Can I subtract a longer duration from a shorter one?

Yes, and you get a negative duration. The calculator shows it with a leading minus sign — 0 h 20 m minus 1 h 05 m 15 s gives −2,715 seconds, displayed as −0 h 45 m 15 s — and adds a note explaining that the subtractions outweighed the additions. That is often the signal that two stopwatch splits went into the wrong boxes.

What if I type 90 in the minutes box?

It is handled correctly: 0 h 90 m 90 s becomes 5,400 + 90 = 5,490 seconds, which normalises to 1 h 31 m 30 s. The calculator raises a note when any minutes or seconds field is 60 or more, purely because that pattern is often a typo — a value meant for the box to its left.

How do I convert the answer to decimal hours for a timesheet?

Divide the total seconds by 3,600, which the calculator already shows. 4 h 36 m 15 s is 16,575 / 3,600 = 4.604167 hours. Round only at that final step; rounding each segment to two decimals first can shift a weekly total by several minutes. Many professions bill in tenths of an hour, which is a six-minute unit.

Does the average handle unequal terms sensibly?

It is a plain arithmetic mean — the total divided by the number of terms you enabled — so a single long term pulls it upward. Three laps of 62 s, 63 s and 121 s total 246 s and average 82 s, which describes none of them. When one term is clearly an outlier, report the range alongside the mean.

Are leap seconds included?

No. Every minute is treated as exactly 60 seconds and every hour as 3,600, which matches every stopwatch, timesheet and edit suite. Leap seconds only affect the difference between two absolute UTC instants that straddle an insertion, and the effect is one second per insertion. International timekeeping bodies agreed in 2022 to stop inserting them by 2035.

Why does my spreadsheet show a different total?

Almost always because of the cell format. Excel and Google Sheets store durations as fractions of a day, and the format h:mm:ss wraps at 24 hours, so a 30-hour week displays as 6:00:00. Use [h]:mm:ss with square brackets to show totals past a day, or format the cell as a plain number and multiply by 24 to get decimal hours.

Can I add more than three durations?

Add them in passes. Total the first three, then re-enter that total as term one and continue with the next two. Because the arithmetic is exact in seconds and the result carries no rounding, chaining passes gives the same answer as a single long sum — which is not true if you round each pass to the nearest minute first.

References