Add and subtract time durations in hours, minutes, and seconds
Adding and subtracting time durations is a common task that is surprisingly easy to get wrong with mental arithmetic. Unlike regular numbers, time uses a base-60 system: 60 seconds in a minute and 60 minutes in an hour. This means carrying over from seconds to minutes and minutes to hours requires careful handling. This calculator takes two time durations in hours, minutes, and seconds, and adds or subtracts them precisely. This tool is useful for a wide range of everyday and professional tasks. Runners and athletes use it to add up split times or calculate pace over multiple laps. Project managers use it to sum task durations for scheduling. Students use it to add up study sessions. Musicians use it to calculate total recording or performance time. Anyone tracking time for billing, payroll, or timesheets benefits from having an accurate, instant calculation. The calculator outputs the result in three formats: hours, minutes, and seconds (the standard format); total seconds (useful for calculations); and decimal hours (the format commonly used in timesheets and payroll systems). If a subtraction results in a negative value, the calculator shows the absolute difference and marks it as negative.
To add or subtract time durations: 1. Enter the first duration. Set the hours, minutes, and seconds using the input fields. For example, 2 hours 30 minutes 0 seconds. 2. Select the operation. Choose "Add" to combine the two durations or "Subtract" to find the difference. 3. Enter the second duration. For example, 1 hour 45 minutes 30 seconds. 4. View the results. The calculator shows the result in h:m:s format, as total seconds, and in decimal hours. For the example above (2h30m + 1h45m30s), the result is 4 hours, 15 minutes, 30 seconds, which equals 15,330 total seconds or 4.26 decimal hours. 5. For subtraction, if the first duration is smaller than the second, the result will be marked as negative. The hours, minutes, and seconds shown represent the absolute difference.
The calculator converts both durations to total seconds, performs the operation, then converts back. Conversion to seconds: total seconds = (hours x 3,600) + (minutes x 60) + seconds For addition: result = total seconds 1 + total seconds 2 For subtraction: result = total seconds 1 - total seconds 2 Conversion back to h:m:s: hours = floor(result / 3,600). Remaining = result mod 3,600. Minutes = floor(remaining / 60). Seconds = remaining mod 60. Decimal hours: total seconds / 3,600 (rounded to 2 decimal places). For example, 2h30m0s + 1h45m30s: first = 2 x 3600 + 30 x 60 + 0 = 9,000 seconds. Second = 1 x 3600 + 45 x 60 + 30 = 6,330 seconds. Result = 9,000 + 6,330 = 15,330 seconds. Hours = floor(15330 / 3600) = 4. Remaining = 15330 mod 3600 = 930. Minutes = floor(930 / 60) = 15. Seconds = 930 mod 60 = 30. Result: 4h 15m 30s.
Decimal hours are widely used in payroll, billing, and project management because they are easier to multiply by hourly rates. For example, 7 hours and 30 minutes is 7.5 decimal hours, and at a rate of 15 per hour that equals 112.50. If you need to calculate hours between two clock times rather than add durations, use the Hours Calculator instead.