About the Time Calculator
This calculator adds or subtracts two time durations given in hours and minutes — for example, "how long is 2h 45m plus 1h 20m?" or "what's left if I subtract 1h 20m from 2h 45m?" It uses the standard method for time arithmetic: convert every duration to a single unit (minutes), do ordinary addition or subtraction on those numbers, then convert the result back into hours and minutes.
The formula
For a duration of H hours and M minutes, the total in minutes is:
- Total minutes = H × 60 + M
Once both Time A and Time B are converted this way, the calculator adds or subtracts the two totals: Result (minutes) = Total A ± Total B. To turn that back into hours and minutes, divide by 60 and keep the remainder:
- Result hours = floor(Result minutes ÷ 60)
- Result minutes (remainder) = Result minutes mod 60
From the same total-minutes value, seconds and decimal hours follow directly: seconds = minutes × 60, and decimal hours = minutes ÷ 60.
Why convert to minutes first
Clock time is a base-60 (sexagesimal) system, not base-10, so you cannot add "2 hours 45 minutes" and "1 hour 20 minutes" by simply adding the hour digits and the minute digits when the minutes overflow 59. Converting everything to one unit (minutes) sidesteps the carrying rules during the addition itself — the carry only has to be handled once, when converting the total back to hours and minutes at the end.
Worked example
Add 2h 45m and 1h 20m: Total A = 2 × 60 + 45 = 165 minutes. Total B = 1 × 60 + 20 = 80 minutes. Sum = 245 minutes. Converting back: 245 ÷ 60 = 4 remainder 5, so the result is 4h 5m — equivalently 245 minutes, 4.08 decimal hours, or 14,700 seconds.
Common uses
- Timesheets and payroll: adding worked hours across shifts, or converting hours and minutes to decimal hours for billing.
- Cooking and recipes: combining prep time and cook time, or figuring out how much time remains.
- Workouts and training: summing interval or lap times.
- Scheduling: finding how much time is left between tasks, or how long a combined block of meetings runs.
Precision note
This calculator performs pure duration arithmetic — it does not account for clock-time wraparound (like crossing midnight), time zones, or calendar effects (different month lengths, leap years). For calculating the difference between two calendar dates and times, use a dedicated time-between-dates tool instead.