Skip to content

Time Calculator: Add or Subtract Hours, Minutes and Seconds

List durations one per line and get their sum or difference as h:mm:ss, with the carry between seconds, minutes and hours done for you and a running total beside each line.

Runs in your browserFree, no sign-upLast reviewed

Settings

One per line, as h:mm:ss, h:mm, or with units such as 1h 30m 15s or 90 min. Start a line with - to subtract it or + to add it.

Results update automatically as you type.

Result

Total
5:06:30
h:mm:ss
In words
5 hours 6 minutes 30 seconds
Decimal hours
5.11
Total minutes
306.5
Total seconds
18,390
Average of 3 entries
1:42:10
h:mm:ss

Running total

#EntryOperationDurationRunning total
11:45:30Start1:45:301:45:30
22:30:45Add2:30:454:16:15
30:50:15Add0:50:155:06:30

Calculation

1:45:30 + 2:30:45 + 0:50:15 = 5:06:30

Quick answers

How do I add hours and minutes together?
Add the minutes, then the hours. If the minutes reach 60 or more, subtract 60 and add 1 to the hours. For 2:05 + 1:50 + 3:20: the minutes total 75, which is 1 hour 15 minutes, and the hours total 6, so the answer is 7 hours 15 minutes.
How do I subtract one time from another?
Subtract seconds, then minutes, then hours, borrowing 60 from the next unit up when the top number is smaller. For 2:15:10 minus 0:45:50: borrow to get 1:74:70 minus 0:45:50, which is 1:29:20.
What is 45 minutes plus 30 minutes?
1 hour 15 minutes. 45 + 30 = 75 minutes, and 75 minutes is one full hour with 15 minutes left over. As a decimal that is 1.25 hours.
What is 8 hours minus 1 hour 15 minutes?
6 hours 45 minutes, or 6.75 hours. Borrow one hour from the 8 to make 7 hours 60 minutes, then subtract 1 hour 15 minutes.
How do I work out an average time?
Add the times, convert the total to seconds, divide by how many there are, and convert back. Four laps of 3:45, 4:12, 3:58 and 5:01 total 16:56, which is 1,016 seconds. Divided by 4 that is 254 seconds, or 4:14 per lap.
How do you add time when the total goes past 24 hours?
Keep counting hours. A duration is not a clock, so it does not reset at 24. 12:30 + 14:45 + 9:50 is 37 hours 5 minutes, which can also be written as 1 day 13 hours 5 minutes.

Why use Time Calculator

Adding time means adding hours, minutes and seconds separately, then carrying every 60 seconds into a minute and every 60 minutes into an hour. 1:45:30 plus 2:30:45 plus 0:50:15 comes to 5:06:30. This time calculator does that for a whole list at once: type or paste one duration per line and it returns the total as h:mm:ss, in words, as decimal hours, and as total minutes and seconds, along with a running total after every line. Put a minus sign in front of a line to subtract it. It works on lengths of time, such as lap times, track lengths, flight legs or hours worked each day, not on clock times or dates.

Adding and subtracting time: worked examples

Each input is what goes in the Durations box, with a slash standing for a new line.

Three durations with seconds

1:45:30 / 2:30:45 / 0:50:15

Total 5:06:30 (5 hours 6 minutes 30 seconds), Decimal hours 5.11, Total minutes 306.5, Total seconds 18,390, Average of 3 entries 1:42:10

This is the list the page loads with. The running total goes 1:45:30, 4:16:15, 5:06:30.

A week of hours worked

7:30 / 8:15 / 7:45 / 8:00 / 6:30

Total 38:00:00, Decimal hours 38.00, Total minutes 2,280, Average of 5 entries 7:36:00

Track lengths in minutes and seconds

3:42 / 4:05 / 2:58 / 3:31 / 4:47, with two-part times set to Minutes:seconds

Total 0:19:03 (19 minutes 3 seconds), Total seconds 1,143, Average of 5 entries 0:03:48.6

Left on Hours:minutes, the same five lines would be read as 19 hours 3 minutes.

Subtracting two lines from the first

10:00:00 / 2:45:30 / 1:20:45, Operation set to Subtract the other lines from the first

Total 5:53:45, Decimal hours 5.90, Total minutes 353.75. Running total 10:00:00, 7:14:30, 5:53:45

Adding and subtracting in one list

1:15:00 / +0:50:00 / -0:20:00

Total 1:45:00, Decimal hours 1.75, Total minutes 105

Mixed unit entries

1h 30m / 45 min / 2.5 hours / 90s

Total 4:46:30, Decimal hours 4.78, Total seconds 17,190

Lap times with hundredths of a second

1:23.45 / 1:24.10 / 1:22.98, with two-part times set to Minutes:seconds

Total 0:04:10.53, Total seconds 250.53, Average of 3 entries 0:01:23.51

How time addition carries between seconds, minutes and hours

Total seconds = hours × 3,600 + minutes × 60 + seconds, summed over every line; then hours = total ÷ 3,600, minutes = remainder ÷ 60, seconds = what is left

Converting everything to seconds first avoids carrying by hand. For 1:45:30 + 2:30:45 + 0:50:15 the three lines are 6,330, 9,045 and 3,015 seconds, which sum to 18,390. 18,390 ÷ 3,600 is 5 hours with 390 seconds left; 390 ÷ 60 is 6 minutes with 30 seconds left. The total is 5:06:30. Subtraction is the same sum with the subtracted lines counted as negative. Decimal hours are total seconds ÷ 3,600, so 18,390 seconds is 5.11 hours to two places.

Quick sums of common hours and minutes

Results from the calculator for pairs and short lists that come up often.

CalculationResult (h:mm:ss)In wordsDecimal hours
0:45 + 0:301:15:001 hour 15 minutes1.25
1:10 + 0:55 + 2:354:40:004 hours 40 minutes4.67
2:05 + 1:50 + 3:207:15:007 hours 15 minutes7.25
1:15:30 + 0:45:452:01:152 hours 1 minute 15 seconds2.02
23:59:59 + 0:00:0124:00:0024 hours24.00
12:30 + 14:45 + 9:5037:05:0037 hours 5 minutes37.08
5:00 − 1:453:15:003 hours 15 minutes3.25
8:00 − 1:156:45:006 hours 45 minutes6.75
2:15:10 − 0:45:501:29:201 hour 29 minutes 20 seconds1.49
0:20 − 1:00-0:40:00minus 40 minutes-0.67

Two-part entries in this table are hours:minutes.

Duration formats you can type on each line

  • Hours, minutes and seconds with colons: 1:45:30. Seconds may have decimals, as in 0:00:59.6.
  • Two parts with a colon: 1:45. This is hours:minutes unless you switch the setting to Minutes:seconds, in which case decimals such as 1:23.45 are allowed.
  • Units written out or abbreviated: 1h 30m 15s, 1 hr 30 min, 2 hours 15 minutes, 45 sec, 1 day 2 hours. Decimals work too, so 2.5 hours is 2:30:00.
  • Values above 59 in the minutes or seconds position: 0:90 is read as 1 hour 30 minutes and carried.
  • A leading + or - to set whether that line is added or subtracted. A sign on a line overrides the Operation setting for that line.
  • Blank lines are ignored, so you can group entries.
  • A bare number such as 90 is rejected because its unit is unknown. Write 90 min or 1:30 instead.

Durations are not clock times

Everything entered here is treated as a length of time. 5:30 means five and a half hours (or five and a half minutes), not half past five, and AM or PM is not accepted. That is why totals run past 24 hours instead of wrapping round to zero.

To find how long it is from one clock time to another, such as 9:00 AM to 5:30 PM, use the hours calculator on this site. To add a list of shifts with breaks and pay, use the timesheet calculator. To change a result such as 7:45 into 7.75 for payroll, the Decimal hours figure here already does that for the total.

The average appears only when every line is added and there are at least two lines. It is the total divided by the number of entries, rounded to the nearest thousandth of a second. A total below zero is shown with a minus sign and a note, since it usually means the lines are in the wrong order. Up to 500 lines are accepted in one go.

Using Time Calculator

  1. 1

    In Durations, enter one length of time per line, for example 1:45:30, 2:30 or 1h 30m 15s.

  2. 2

    To take a line away instead of adding it, start it with a minus sign, as in - 0:20:00. Or set Operation to Subtract the other lines from the first.

  3. 3

    If your entries are minutes and seconds such as 3:45, change A two-part time like 3:45 means to Minutes:seconds. Three-part entries are always hours:minutes:seconds.

  4. 4

    Read Total under Result, along with In words, Decimal hours, Total minutes and Total seconds. When every line is added, an average is shown as well.

  5. 5

    Check the Running total table to see the sum after each line, and copy the Calculation line if you need to show the working.

Frequently asked questions

Why is 3:45 being read as 3 hours 45 minutes?
Two-part entries default to hours:minutes. Change the setting labelled A two-part time like 3:45 means to Minutes:seconds and the same entry becomes 3 minutes 45 seconds. To avoid any doubt, write all three parts, as in 0:03:45.
Can I add more than two times?
Yes. Each line is one duration and up to 500 lines are totalled in a single run. The Running total table shows the sum after each line, so you can see where a particular entry took it.
Can it add clock times such as 2:30 PM plus 45 minutes?
No. It adds lengths of time and does not accept AM or PM. You can still do the sum in 24-hour form by entering 14:30 and 0:45, which gives 15:15:00, but the result will not wrap past 24:00.
Does it handle days?
Yes, as a unit: 1 day 2 hours or 1d 2h is read as 26 hours. The Total always stays in hours, and when it reaches 24 hours or more an extra With days figure splits it into days, hours, minutes and seconds.
What does a negative result mean?
The time subtracted is longer than the time it was taken from. For example 0:20 minus 1:00 gives -0:40:00. Swap the order of the lines if you wanted the gap between the two.
How precise is it with fractions of a second?
Entries are held to the nearest thousandth of a second, so 0:00:59.6 plus 0:00:00.4 gives exactly 0:01:00. Decimal hours and Total minutes are rounded to two places for display; Total seconds is exact.
Can I paste a column from a spreadsheet?
Yes, if each cell holds a duration in one of the accepted forms. A copied column arrives as one value per line, which is what the Durations box expects. Cells formatted as clock times with AM or PM need reformatting first.
Is my list sent anywhere?
No. The sum is worked out in your browser and nothing is uploaded or saved.

Looking for something else? Browse all date & time tools or see every tool.