Skip to content

General Math

How to Add and Subtract Time Durations (HH:MM:SS Math)

Learn how time addition and subtraction works. Convert to seconds, add or subtract, convert back. Practical guide for timesheets, cooking, and project tracking.

OurDailyCalc Team 4 min read

Adding time isn’t as simple as adding regular numbers. 1:45:30 + 0:30:45 isn’t 1:75:75 — minutes and seconds wrap at 60. Here’s how time arithmetic actually works.

The universal method: convert to seconds

Every time duration can be expressed in total seconds:

Total seconds = (Hours × 3600) + (Minutes × 60) + Seconds

Example: 2:45:30 = (2 × 3600) + (45 × 60) + 30 = 7200 + 2700 + 30 = 9930 seconds

Adding two durations

  1. Convert both to seconds
  2. Add them
  3. Convert back to HH:MM:SS

Example: 1:30:00 + 2:45:30

Duration 1: 1×3600 + 30×60 + 0 = 5400 seconds
Duration 2: 2×3600 + 45×60 + 30 = 9930 seconds
Sum: 5400 + 9930 = 15330 seconds
Hours: floor(15330 / 3600) = 4
Remaining: 15330 - 14400 = 930
Minutes: floor(930 / 60) = 15
Seconds: 930 - 900 = 30
Result: 4:15:30

Subtracting durations

Same method, but subtract instead of add. If the result is negative, it means Duration 2 was longer than Duration 1.

Example: 1:00:00 − 1:30:00 = -0:30:00 (negative 30 minutes)

Can results exceed 24 hours?

Yes! When working with durations (not clock time), there’s no wrap at 24. Working 18 hours on Day 1 and 10 hours on Day 2 gives 28:00:00 total.

Common use cases

  • Timesheets: Adding up daily work hours across a week
  • Cooking: “Marinate 2:30 + bake 1:45 + rest 0:20 = total time”
  • Video editing: Total runtime of clips
  • Running/exercise: Lap times, total workout duration
  • Project tracking: Time spent on tasks

Calculate time additions instantly with the OurDailyCalc time calculator.

TL;DR

  • Convert all durations to seconds first
  • Add or subtract the seconds
  • Convert back: hours = floor(s/3600), minutes = floor(remainder/60), seconds = remainder%60
  • Results can exceed 24 hours (these are durations, not clock times)
#time calculator #add time #subtract time #duration
DC

OurDailyCalc Team

OurDailyCalc — beautiful tools for everyday calculations.