Time Calculator

Add or subtract two durations in hours, minutes and seconds — no clock-in rollovers.

Input

Runs in your browser
Result
—
Total in hours
—
Total in minutes
—
Total in seconds
—

Formula & explanation

T = (aH·3600 + aM·60 + aS) ± (bH·3600 + bM·60 + bS)

This time calculator adds or subtracts two durations expressed in hours, minutes and seconds. Each duration is converted to seconds, combined, and the total is split back into a clean hour / minute / second breakdown — carries at 60 handled automatically, so you never see a malformed result like 3 hours 75 minutes.

Worked example — add. 2h 45m 30s + 1h 30m 45s: the 75 seconds become 1 min 15 s, the 76 minutes become 1 h 16 min, giving 4h 16m 15s. In decimal hours that is 15,375 ÷ 3600 ≈ 4.27 h, the format payroll expects.

Worked example — subtract. A shift from 9:15 to 17:00 is 7h 45m; subtract a 0h 30m unpaid lunch and you bill 7h 15m. Subtract a longer duration from a shorter one and the result keeps a minus sign.

Where it matters. Timesheets and billable hours, video and audio editing, cooking and interval timing, race and lap splits, and project estimates. The totals row shows the same answer in decimal hours (payroll), minutes (lap times) and seconds (stopwatch comparisons).

Common mistakes. (1) Writing 1h 75m instead of carrying to 2h 15m. (2) Expecting the total to wrap at 24 h — it does not: 23h 45m + 2h 30m is 26h 15m, not 2h 15m of the next day. (3) Confusing decimal hours (4.25 h) with clock format (4h 25m); 4.25 h is 4h 15m. Everything runs locally in your browser.

Example

Hours (1)2
Minutes (1)45
Seconds (1)30
Hours (2)1
Minutes (2)30
Seconds (2)45
2h 45m 30s + 1h 30m 45s4h 16m 15s
Same in decimal hours4.2708
Total in minutes256.25
Total in seconds15375

Frequently asked questions

How do I add two times?

Add each unit separately and carry 60 seconds as 1 minute and 60 minutes as 1 hour. 2h 45m 30s + 1h 30m 45s = 4h 16m 15s because the 75 seconds become 1 min 15 s and the 76 minutes become 1 h 16 min.

Can the result be negative?

Yes. If you subtract a longer duration from a shorter one, the calculator returns a negative total with a minus sign — useful to see how far short a budget or estimate came.

Does the total wrap at 24 hours?

No. Totals keep going past 24 hours: 23h 45m + 2h 30m returns 26h 15m, not 2h 15m of the next day. To work with clock times that roll over midnight, add 24 to the smaller side first.

How are decimal hours calculated?

Decimal hours = total seconds ÷ 3600. So 4h 16m 15s = 15,375 seconds ÷ 3600 ≈ 4.27 hours. Payroll systems and spreadsheets expect decimal hours, not clock-style h:mm.

What is the difference between 4.25 hours and 4h 25m?

They are different. 4.25 decimal hours is 4h 15m (0.25 × 60 = 15 min). 4h 25m is 4.4167 decimal hours. Mixing the two is a frequent payroll error.

Can I subtract a lunch break from a shift?

Yes. Enter the shift length as the first duration and the break as the second, then subtract. A 7h 45m shift minus a 0h 30m lunch bills 7h 15m.

Is my data sent anywhere?

No. The calculation runs entirely in your browser; nothing you enter is uploaded or stored.

Read the guide

Related tools