Time Calculator
Add or subtract hours, minutes, and seconds. Get a normalized duration plus total hours, minutes, and seconds.
How to add time durations
Enter Duration A and Duration B, then choose Add. Unused fields count as zero. Enter at least one value, including 0, to calculate. Results update automatically.
The calculator adds both durations as integer seconds, then converts the sum back. For example, 45m + 35m is 80 minutes, shown as 1h 20m.
How to subtract time durations
Choose Subtract to calculate A minus B. For example, 3h - 1h 45m is 1h 15m. Matching durations give zero.
Swap durations reverses A and B without changing the operation. For subtraction, it reverses the sign of a nonzero result.
Negative time results
If B exceeds A, the difference is negative. 1h - 1h 30m gives -30m, or -0.50 total hours. The minus sign applies to the entire duration and every total. This is a valid result, not an error.
Converting minutes and seconds
Total seconds = hours x 3,600 + minutes x 60 + seconds
Enter minutes and seconds from 0 to 59. For a duration of 90 minutes, enter 1 hour and 30 minutes; for 75 seconds, enter 1 minute and 15 seconds. Addition carries overflow automatically.
Hours can exceed 24. For example, 30h + 20h is 2d 2h, with 50.00 total hours. Total hours never wrap at 24.
Total hours divide the seconds by 3,600; total minutes divide them by 60. Hours use two to four decimal places, and fractional minutes use up to four. Only these displays are rounded; the normalized duration and total seconds stay exact.
For converting hours and minutes to decimal hours without adding or subtracting, use the Decimal Hours Calculator.
Worked examples
- 1h 30m + 45m
- 2h 15m, 2.25 hours, 135 minutes, 8,100 seconds.
- 2h 20m + 1h 55m
- 4h 15m, 4.25 hours, 255 minutes.
- 3h - 1h 45m
- 1h 15m, 1.25 hours, 75 minutes.
- 1h - 1h 30m
- -30m, -0.50 hours, -30 minutes.
- 23h + 3h
- 1d 2h, 26.00 total hours, 1,560 minutes.
- 1m 45s + 30s
- 2m 15s, 2.25 minutes, 135 seconds.
- 1h - 59m 59s
- 1s. The duration stays exact even when decimal totals need rounding.
Frequently asked questions
How do I add hours and minutes?
Enter each duration in its Hours and Minutes fields, leave Seconds blank if unused, and select Add. For example, 1h 30m plus 45m gives 2h 15m.
How do I subtract time?
Enter the duration to subtract from as A and the amount to remove as B, then select Subtract. The calculation is A minus B.
Can the result be negative?
Yes. If B is larger than A, subtraction gives a negative difference. Negative inputs are not accepted; use Subtract to calculate the difference.
Can I enter more than 24 hours?
Yes. Enter 100 in Hours for a 100-hour duration. Results include whole days when appropriate, while Total hours shows the full amount. For example, 150 hours is 6d 6h.
How are minutes and seconds normalized?
Every 60 seconds becomes a minute, every 60 minutes an hour, and every 24 hours a day. Input minutes and seconds must each be 0 to 59; the calculation carries any overflow in the sum.
How is this different from the Hours Calculator?
This tool adds or subtracts amounts of time, not clock readings. For the time between two clock times, use the Hours Calculator.