Add or subtract two time durations with precision down to the second.
Duration 1
Operation
Duration 2
Total Duration
4h 15m 0s
2h 30m 0s + 1h 45m 0s
Total Hours4.25
Total Minutes255
Total Seconds15,300
Enter hours, minutes, and seconds for each duration. The result shows the combined time for addition, or the difference for subtraction. If the second duration is larger than the first in subtract mode, the result is zero.
Share
What is the Time Calculator?
A time calculator is a duration arithmetic tool that combines or compares two time periods (hours, minutes, seconds). Unlike a simple clock subtraction, it handles carry-over between units (e.g., 45 minutes + 30 minutes = 1 hour 15 minutes) automatically and displays results in both time format (HH:MM:SS) and decimal hours for flexibility.
How it works
The calculator converts each duration into total seconds, performs the arithmetic operation (addition or subtraction), then converts the result back into hours, minutes, and seconds. For addition, it sums the two totals; for subtraction, it finds the difference (clamped to zero if the second duration is larger). All unit carryover is handled automatically.
Each duration is converted to seconds (hours × 3600, minutes × 60, plus seconds). Addition sums both totals; subtraction finds the positive difference. The result is then split back into hours (÷ 3600), remaining minutes (÷ 60), and remaining seconds.
Shows results in multiple formats: HH:MM:SS, decimal hours, total minutes, total seconds.
Works for any duration: sub-minute intervals, multi-day spans, or anything in between.
Useful for timesheets, project planning, event scheduling, and workout logging.
No installation or sign-up; runs entirely in your browser.
Tips & common mistakes
Common mistakes
Forgetting unit conversion: confusing 90 minutes with 1 hour 30 minutes; the calculator converts for you.
Entering invalid ranges: putting 75 minutes or 90 seconds in the inputs; the calculator accepts any positive number and handles overflow.
Misreading the operation: forgetting to toggle between Add and Subtract before entering the second duration.
Assuming negative results: in Subtract mode, if Duration 2 is larger, the result is clamped to zero, not negative.
Tips
Use decimal hours (shown in stats) when you need to log time in spreadsheets or time-tracking apps.
For recurring timesheets, bookmark this tool and reuse it daily—it remembers your last inputs.
Convert days to hours first: 1 day = 24 hours, so a 36-hour duration is 1 day 12 hours or just enter 36h 0m 0s.
Test the Subtract mode carefully: larger subtrahends (second duration) return zero, not negative time.
Frequently asked questions
Can I add or subtract more than two durations?
Not in one step. To combine three durations, add the first two, then add the result to the third. Or convert all to minutes, sum them, and paste the total as minutes into the calculator.
What happens if I subtract a larger duration from a smaller one?
The result is clamped to zero. Time cannot be negative in this context, so 1 hour minus 2 hours returns 0h 0m 0s.
Can I use decimal inputs, like 1.5 hours instead of 1h 30m?
No—enter decimal values in the hours field. The calculator treats any decimal as hours, so 1.5 in the hours field becomes 1 hour 30 minutes automatically (though it displays as 1h 0m).
Why does the calculator show a decimal hours output?
Decimal hours are standard in time-tracking and payroll systems. 1 hour 15 minutes = 1.25 hours, which is easier to multiply for hourly rates or billing.
Is my data stored or sent anywhere?
No. This calculator runs 100% in your browser. Your durations are never sent to a server or stored. Refresh the page and the inputs reset.
Can I use this for calculating working hours across days?
Yes. Convert the span to hours first (e.g., 1 full day = 24 hours) or use the total-hours output to track billable time. For complex schedules, spreadsheets may be clearer.