Skip to main content

Time Calculator

  • Runs in your browser: what you type is not uploaded
  • Free, no sign-up
  • Formula explained below

About Time Calculator

The Time Calculator adds or subtracts two durations expressed in hours, minutes and seconds. Each duration is converted to a total number of seconds, the two are combined, and the answer is shown back in clean H:MM:SS form alongside the total in hours, minutes and seconds.

Use it to total up timesheets, add lap or leg times together, work out how much time is left after several tasks, or find the gap between two elapsed times.

Formula

Total = (h₁·3600 + m₁·60 + s₁) ± (h₂·3600 + m₂·60 + s₂)
  • h, m, s — the hours, minutes and seconds of each duration
  • 3600 — seconds in one hour
  • 60 — seconds in one minute
  • ± — plus when adding, minus when subtracting

Fields are normalised automatically, so entering 90 minutes is treated as 1 hour 30 minutes. If a subtraction would fall below zero the result is clamped to 0:00:00, since a duration cannot be negative.

How to use the Time Calculator

  1. Enter the first duration as hours, minutes and seconds.
  2. Choose Add to combine the two durations or Subtract to find the difference.
  3. Enter the second duration in the same way.
  4. Read the combined time in H:MM:SS, plus the totals in hours, minutes and seconds.

Good to know

  • You can enter values above the usual limits (e.g. 75 minutes); they roll over correctly into hours.
  • Subtracting a larger duration from a smaller one gives a negative result, which is shown as 0:00:00 — swap the two durations to see the gap.
  • This adds lengths of time (durations), not clock times. To find the elapsed time between two clock readings, use the Time Duration Calculator.

Frequently asked questions about the Time Calculator

What is the difference between this and a time duration calculator?

This tool combines two lengths of time, such as 2h 30m + 1h 45m. A duration calculator finds the elapsed time between two points on the clock, such as 09:00 to 17:30.

Why does subtracting sometimes show 0:00:00?

Durations cannot be negative. If the second duration is larger than the first, the answer would be below zero, so it is clamped to 0:00:00. Swap the inputs to measure the positive gap instead.

Can I add more than two durations?

Add the first two, note the H:MM:SS result, then enter that total as the first duration and add the next one. Repeat to chain any number of durations.