Duration Calculator

Write a sum of durations in plain text, like 1h 30m + 2:20:00 - 45m, and get the total straight away. It understands weeks, days, hours, minutes and seconds in short or long form, clock forms like 2:20:00 and 4:30, decimals like 1.5h, and ISO 8601 durations like PT20M or P1DT2H. The total comes out as h:mm:ss, in words, in decimal hours, minutes and seconds, and as an ISO 8601 duration. If something can't be read, the exact part is highlighted.

Units: w, d, h, m, s (or hours, mins...). 2:20:00 is h:mm:ss and 4:30 is m:ss. ISO 8601 like PT1H30M works too.

Total

4:55:00

4 hours 55 minutes

Hours : minutes : seconds4:55:00
In words4 hours 55 minutes
Decimal hours4.9167
Total minutes295
Total seconds17,700
ISO 8601 durationPT4H55M
  • 1h 30m1:30:00
  • + 2:20:002:20:00
  • - 45m-0:45:00
  • + 1.5h1:30:00
  • + PT20M0:20:00

Everything runs in your browser. What you type never leaves this device.

Features

  • Type a whole sum: + and - between parts

  • Units w, d, h, m, s, and long forms like hours, mins, seconds

  • Clock forms: 2:20:00 (h:mm:ss) and 4:30 (m:ss)

  • Decimals: 1.5h, 0.25 d

  • ISO 8601 durations in and out: PT1H30M, P1DT2H

  • Each part's value listed, and errors highlighted where they are

  • Runs in your browser; free, no signup

Good for

Video and audio

Add up track or episode lengths written as 42:15 + 38:50 + 41:05.

Developers

Convert between human durations and ISO 8601 for APIs, YouTube data, calendar files and config.

Study and work logs

Paste a day's entries like 2h 10m + 45m + 1h 5m and get the total in decimal hours.

Running and workouts

Add split times or interval sets like 25m + 5m + 25m + 5m + 25m.

What you can type

Units and forms

  • w, week, weeks = 7 days
  • d, day, days = 24 hours
  • h, hr, hrs, hour, hours
  • m, min, mins, minute, minutes
  • s, sec, secs, second, seconds
  • 2:20:00 = 2 hours 20 minutes; 4:30 = 4 minutes 30 seconds; 1:02:03.5 keeps the half second
  • Parts next to each other add up: 1h 30m = 90 minutes

Plus and minus

A + or - applies to everything up to the next sign, so 3h - 1h 30m is 1 hour 30 minutes. A total below zero is shown with a minus sign.

ISO 8601 durations

ISO 8601 writes a duration as P, then days, then T and the time parts: PT1H30M is 1 hour 30 minutes, P1DT2H is 1 day and 2 hours, P2W is two weeks. Years and months (P1Y, P1M) are refused, because a month can be 28 to 31 days; write them as days instead. YouTube's API and many calendar and config formats use these strings.

Clock times

To work with times of day, like the hours between 9:30 am and 6:15 pm or what time it is 8 hours after 10 pm, use the time calculator.

Duration Calculator - FAQ