Time Duration Calculator

Enter durations in many styles, such as 1h 30m, 2d 4h or 01:30:45, and add them up, subtract them or average them, with the total shown in every unit.

Use the tool

Why this tool exists

Adding up hours worked, video lengths, build times or task estimates by hand gets messy when they are written in different styles: one in hours and minutes, another as a clock time, another in minutes only. Spreadsheets handle times badly once totals pass 24 hours.

This calculator reads each line in the form you wrote it, understands units from milliseconds to weeks, and accepts clock style like 1:30:00. A leading minus subtracts in sum mode. It can also take the first duration minus the rest, or compute the average. The result appears as a readable breakdown, a clock value and totals in days, hours, minutes, seconds and milliseconds. It is for durations, not calendar dates.

How to use it

  1. Enter one duration per line, in any supported style.
  2. Choose sum, first minus rest or average, and what a bare number means.
  3. Read the total and the conversions in each unit.

Frequently asked questions

How is 1:30 interpreted?

As 1 minute 30 seconds. Three parts, such as 1:30:00, mean hours, minutes and seconds. Write 1h 30m if you mean an hour and a half.

Which units are understood?

ms, s, sec, m, min, h, hr, d, day, w and week, in singular or plural forms and with or without spaces, for example 2 hours, 30 minutes.

How are negative values treated?

A minus sign in front of a line subtracts it in sum mode. In first minus rest mode, all later lines are subtracted whatever their sign.

Does it account for months or daylight saving?

No. A day is exactly 24 hours and months are not offered. For calendar arithmetic, use a date difference tool.