Everyday life · Time arithmetic

Time Calculator

Add or subtract two durations entered in hours, minutes, and seconds. The result is normalized, so seconds and minutes roll into the next unit, and a subtraction that goes below zero keeps a visible minus sign instead of wrapping around.

Add combines the two durations. Subtract takes B from A and shows a signed result when B is longer.

Durations

Duration A

h
min
s

Duration B

h
min
s

Blank components count as zero. Hours are whole numbers from 0 to 9,999; minutes and seconds accept 0–59. Carries and borrows happen in the result, not in the inputs.

Calculated in your browser.
Added duration

4:15:00 h:mm:ss

A 2:30:00 + B 1:45:00

Duration A2:30:00hours:minutes:seconds
Duration B1:45:00hours:minutes:seconds
Decimal hours4.25 hSigned result
Total minutes255 minSigned result
Total seconds15,300 sSigned result
Absolute difference4:15:00Magnitude only
Calculation2:30:00 + 1:45:00 = 4:15:00Seconds: 0 + 0 = 0Minutes: 30 + 45 = 75 → 15 min, carry 1 hHours: 2 + 1 + 1 carry = 4Seconds carry into minutes and minutes into hours at 60. Normalization happens in the result, so each displayed component stays below 60.

Durations only. No clock time, calendar date, time zone, daylight-saving change, payroll rule, overtime rate, or rounding policy is applied.

Two durations, one result

How to add or subtract durations

This tool works on durations, not on clock readings. You enter two spans such as 2 hours 30 minutes and 1 hour 45 minutes; it does not ask when either span starts. Use the Time Duration Calculator when the input is a start and end time instead.

Internally each duration becomes a count of seconds. The operation is applied to those two counts, and the result is split back into hours, minutes, and seconds. Because the sum or difference is normalized after the operation, a carry or borrow is a display step rather than something you have to do by hand.

Formulasduration seconds = h × 3,600 + min × 60 + ssum = A seconds + B secondsdifference = A seconds − B secondshh:mm:ss = hours, minutes, and seconds of the absolute result

The page opens with 2 hours 30 minutes plus 1 hour 45 minutes. The result is 4 hours 15 minutes, displayed as 4:15:00, or 4.25 decimal hours.

Carries and borrows, explained

Adding the components directly can put more than 59 minutes in the minutes column. In the default example, 30 + 45 = 75 minutes. Seventy-five minutes is 1 hour 15 minutes, so the result keeps 15 minutes and carries 1 hour into the hours column: 2 + 1 + 1 carry = 4 hours.

Default additionSeconds: 0 + 0 = 0Minutes: 30 + 45 = 75 → 15 min, carry 1 hHours: 2 + 1 + 1 carry = 4

Subtraction borrows in the opposite direction. For 1:00:00 − 0:30:30, the seconds column cannot take 30 from 0, so it borrows one minute: 60 − 30 = 30 seconds. The minutes column then has 0 − 30 − 1 borrow, borrows an hour, and becomes 60 − 30 − 1 = 29 minutes. The hours column is 1 − 0 − 1 = 0, so the result is 0:29:30.

Borrowing exampleSeconds: borrow 1 min → 60 − 30 = 30 sMinutes: borrow 1 h → 60 − 30 − 1 = 29 minHours: 1 − 0 − 1 = 0

The inputs themselves stay in range: minutes and seconds must be 0–59. Enter 1 hour 30 minutes rather than 90 minutes. Normalization belongs to the result, so each input still describes the component you meant.

Negative results when subtracting

When duration B is longer than duration A, A − B is below zero. The calculator keeps the sign: 1:00:00 − 1:15:00 = −0:15:00, and the result panel states that B is longer. It does not wrap to 23:45 or borrow from an unstated day.

This is a deliberate policy. A duration of −0:15:00 means the second span exceeds the first by 15 minutes. The absolute difference is shown in its own row, and the signed decimal hours and totals carry the minus sign as well. If you expected a positive result, swap the two durations or use Add.

The negative result is not a time of day. It is a signed quantity of time, so there is no 12-hour or 24-hour clock reading to interpret.

Worked examples

The same normalization rule applies to every row: seconds carry at 60, minutes carry at 60, and a borrow moves one unit down the same way.

A and BOperation → result
2:30:00 and 1:45:00Add → 4:15:00
1:00:00 and 0:30:30Subtract → 0:29:30
2:30:00 and 1:45:00Subtract → 0:45:00
1:00:00 and 1:15:00Subtract → −0:15:00

Input rules and totals

  • Hours accept whole numbers from 0 to 9,999; minutes and seconds accept 0–59.
  • Blank components count as zero, but each duration needs at least one entered value.
  • The total fields show the signed result in decimal hours, minutes, and seconds.
  • The absolute-difference row removes the sign so you can read the size of a negative result.
  • Decimal hours are rounded to two places for display; the total-seconds row keeps the exact count.
  • Each duration is capped at 9,999:59:59, so the combined result stays within a safe integer range.

Seconds are the smallest unit here. The tool does not accept milliseconds, fractions of a second, or a mixed clock-and-duration entry such as “1:30 PM plus 45 minutes.”

What the calculator does not do

  • It does not use dates, time zones, or daylight-saving offsets; it only combines durations.
  • It does not apply payroll, overtime, rounding, or legal break rules; those are outside arithmetic.
  • It does not convert clock readings, so 1:30 PM must be expressed as a duration first.
  • It does not accept minutes or seconds above 59 in a single input; normalized values are outputs.
  • It does not subtract an end time from a start time; the Time Duration Calculator does that.

If the task is a calendar gap, a deadline, or a weekday count, use the Date Calculator. If the task is a shift measured between two clock times, use the Time Duration Calculator.

Time calculator FAQs

What happens when the minutes add up to 60 or more?

They are normalized in the result. In 2:30:00 + 1:45:00, the minutes total 75, so the result keeps 15 minutes and carries 1 hour. The same rule applies to seconds at 60. You do not need to convert the inputs first.

Can I subtract a longer duration from a shorter one?

Yes. The result is negative and keeps its sign, for example 1:00:00 − 1:15:00 = −0:15:00. The tool also shows the absolute difference and explains that duration B is longer. It does not wrap the answer around 24 hours.

Why can I not enter 90 minutes in the minutes field?

Each input component must stay in its own range so the entered duration is unambiguous. Enter 1 hour 30 minutes instead. Carrying happens in the result, where 75 minutes becomes 1 hour 15 minutes.

Does this convert a clock time like 9:00 AM to 17:00?

No. This tool adds or subtracts durations and never reads a clock time. For a span between 9:00 AM and 5:00 PM, use the Time Duration Calculator, which accepts a start and end time.