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.
- Convert segment one. 3600 × 2 + 60 × 45 + 30 = 7,200 + 2,700 + 30 = 9,930 s.
- Convert segment two. 3600 × 1 + 60 × 20 + 45 = 3,600 + 1,200 + 45 = 4,845 s.
- Convert segment three. 3600 × 0 + 60 × 30 + 0 = 1,800 s.
- Add the signed terms. All three are additions, so T = 9,930 + 4,845 + 1,800 = 16,575 s.
- Take the whole hours. ⌊16,575 / 3600⌋ = ⌊4.6042⌋ = 4 hours, using 14,400 s.
- Take the whole minutes. 16,575 − 14,400 = 2,175 s left; ⌊2,175 / 60⌋ = 36 minutes, using 2,160 s.
- 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
| Duration | Seconds | Minutes | Decimal hours |
|---|---|---|---|
| 0 h 00 m 15 s | 15 | 0.25 | 0.004167 |
| 0 h 01 m 00 s | 60 | 1 | 0.016667 |
| 0 h 06 m 00 s | 360 | 6 | 0.1 |
| 0 h 15 m 00 s | 900 | 15 | 0.25 |
| 0 h 20 m 00 s | 1,200 | 20 | 0.333333 |
| 0 h 30 m 00 s | 1,800 | 30 | 0.5 |
| 0 h 45 m 00 s | 2,700 | 45 | 0.75 |
| 1 h 00 m 00 s | 3,600 | 60 | 1 |
| 1 h 30 m 00 s | 5,400 | 90 | 1.5 |
| 4 h 36 m 15 s | 16,575 | 276.25 | 4.604167 |
| 8 h 00 m 00 s | 28,800 | 480 | 8 |
| 24 h 00 m 00 s | 86,400 | 1,440 | 24 |
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.
Where this sits among the other time tools
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.
