Duration Calculator

Type durations one per line, in whatever form you have them. The total comes out as hours, minutes and seconds, in decimal hours, and in ISO 8601.

How it works

Each line is read as one duration. It can use units (1h 30m, 90 min, 2 days 3 hours), a clock form (2:20:00), or an ISO 8601 duration (PT1H30M). A bare number is minutes.

A line that starts with a minus sign is taken away. Every duration is held as a whole number of milliseconds, so adding a long list does not collect rounding errors.

Months and years are refused, because a month is 28 to 31 days long and the page would have to guess which. Use days instead. Nothing you type leaves your browser.

How to use it

  1. 1 Type or paste your durations into the box, one per line.
  2. 2 Put a minus sign in front of any line you want to take away, such as a lunch break.
  3. 3 Choose how to read a two-part time such as 1:30: hours and minutes, or minutes and seconds.
  4. 4 Read the total, and copy it in the form you need.

Good to know

  • For a timesheet, the "In hours" result is the decimal form most payroll systems ask for: 7 hours 30 minutes is 7.5.
  • Track lengths and video clips are usually written as minutes and seconds. Switch "Read 1:30 as" to minutes and seconds before pasting them.
  • If a line cannot be read, the error names the line number, so you can fix it without hunting.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

Adding up a week of hours

Say you log your hours each day as a clock time: Monday 7:45, Tuesday 8:10, Wednesday 6:30, Thursday 8:00 and Friday 7:15. Paste the five values into the box, one per line, with "Read 1:30 as" set to hours and minutes. The total is 37:40:00. In decimal hours that is 37.6667, and in words it is 1 day, 13 hours and 40 minutes.

Now say Thursday included an unpaid 45 minute break that you forgot to remove. Add a line that says - 45m. The total drops to 36:55:00, or 36.9167 hours. You can mix forms freely on different lines, so a list can hold 7:45 next to 1h 20m next to 90 min, and each line is read on its own.

The decimal hours row is the one to check against a payslip. Minutes are sixtieths of an hour, not hundredths, so 7 hours 30 minutes is 7.5 hours, and 7 hours 15 minutes is 7.25. A common mistake is to write 7:15 as 7.15 hours, which underpays by six minutes a day. The page avoids that by converting from the exact total.

The ISO 8601 row is for software. Calendar files, APIs and video formats often store a length as a string like PT36H55M. Paste one of those into the box and it is read back, so the page also works as a converter between ISO durations and everyday forms.

There are limits. A bare number is read as minutes, so type 45s for seconds. The page refuses months and years rather than guessing their length. It adds lengths of time only; to add a duration to a clock time, use the Time Calculator, and to add days to a date, use Add / Subtract Days. Long lists are capped at 100,000 characters, which is far more than a year of daily entries.

Frequently asked questions

Is 1:30 an hour and a half or a minute and a half?

It depends on where it came from, so the page asks. With "Hours and minutes" chosen, 1:30 is 90 minutes. With "Minutes and seconds", it is 90 seconds. Three-part times such as 1:30:00 are always hours, minutes and seconds.

Why is the total not rolled over into days?

Durations such as work hours and video lengths are usually counted in hours, so 26 hours stays 26:00:00. The "In words" row does split out days, for when that reads better.

Why does the ISO 8601 form use hours instead of days?

In ISO 8601 a D means a calendar day, which can be 23 or 25 hours on a daylight saving change. PT26H always means exactly 26 hours, so it is the safer form for an elapsed time.

Can I add months or years?

No. A month has no fixed length, so adding "1 month" to a duration has no single right answer. To add months to a date, use Add / Subtract Days, which works with real calendar months.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.