Time Duration Calculator: Add and Subtract Hours

Use this time duration calculator to find how long something lasted. Type the end time on the first line and the start time on the next line with a minus sign, such as 17:30 and -9:15, to get 8:15:00 between them. For a shift that ends after midnight, write the end time as more than 24 hours, such as 30:00 for 6:00 the next morning. Or add and subtract time values to total a list of tasks.

Time Duration Calculator

Add and subtract hours, minutes and seconds.

-
Everything runs in your browser. Nothing you enter or upload is sent to a server.

How to use the Time Duration Calculator

  1. Type one duration per line.
  2. Use h:mm:ss, h:mm, or words like 2h 15m, 90m, 45s.
  3. Start a line with - to subtract it.
  4. Read the total in h:mm:ss, decimal hours, minutes and seconds.

How it works

Each line is converted to seconds and added (or subtracted). The total is then shown as hours, minutes and seconds, as decimal hours (minutes divided by 60) and as days, hours and minutes.

Example

1:30:00 + 0:45:30 + 2:15 = 4:30:30, which is 4.5083 decimal hours or 270.5 minutes.

Frequently asked questions

How do I convert minutes to decimal hours?

Divide by 60. 45 minutes is 0.75 hours.

Can I add lap or song times?

Yes. Choose minutes:seconds for two-part times like 3:45.

Can the total be negative?

Yes, if you subtract more than you add.

See also: Online Timer.

Find time between times

How to use it

  1. Enter the end time on the first line.
  2. Enter the start time on the next line with a minus sign in front.
  3. Read the duration.
  4. Or add a list of times.

More questions

Does it work past midnight?

Yes, with one extra step. Add 24 hours to the end time, so a shift that ends at 6:00 the next morning is entered as 30:00, then subtract the start time, such as -22:00, to get 8:00:00.

Can I add many times?

Yes. Type one time per line, and it shows the total.

Can I get decimal hours?

Yes. It shows the total in decimal hours too, which is handy for timesheets.

Related tools: Hours Calculator, Time to Decimal Converter, Date Calculator.