Time Calculator — Add & Subtract Hours & Minutes

DaysHoursMinSec
Time 1
+
Time 2
<iframe src="https://gimmecalc.com/embed/time-calculator/" width="100%" height="500" style="border:none;border-radius:12px" title="Time Calculator — Add & Subtract Hours & Minutes" loading="lazy"></iframe>

Related calculators

What is a time calculator?

A time calculator is a tool that lets you add or subtract two time values expressed in days, hours, minutes, and seconds. It handles all the unit carry-overs automatically — so if you add 45 minutes and 30 minutes, it correctly returns 1 hour 15 minutes instead of 75 minutes.

How to add and subtract time?

To add time, work from the smallest unit to the largest. Add the seconds first — if the total exceeds 59, subtract 60 and carry 1 to minutes. Repeat for minutes (carry at 60) and hours (carry at 24). To subtract, borrow from the next unit when the top number is smaller than the bottom.

What is the time addition formula?

The simplest approach is to convert both times to total seconds, perform the addition or subtraction, then convert the result back: days = floor(seconds ÷ 86400), remaining hours = floor((seconds mod 86400) ÷ 3600), remaining minutes = floor((seconds mod 3600) ÷ 60), remaining seconds = seconds mod 60.

What are some time calculation examples?

  • 2h 45m + 1h 30m = 4h 15m (= 255 total minutes)
  • 5d 0h 10m 13s − 2d 21h 56m 18s = 2d 2h 13m 55s
  • 1h 20m + 40m = 2h (the minutes carry over into a new hour)
  • 8h 0m 0s − 2h 30m 0s = 5h 30m 0s (= 5.5 total hours)

When is a time calculator useful?

A time calculator is useful for tracking work hours across multiple shifts, summing split times from running or swimming, calculating how long a project took, adding up sleep hours over a week, or figuring out how much overtime was worked. To look up someone's exact age in years and months from a birth date, the age calculator handles that automatically. If you also need to verify word counts on a timesheet report or written summary, our word and character counter can help.

How do I calculate total hours worked?

Enter your start and end times as two separate values and choose Subtract. For a shift from 8:00 to 16:30, enter 16h 30m and 8h 0m — the result is 8h 30m. The "Total hours" field shows 8.5 h in decimal format, which is what payroll systems and timesheets typically require. To convert any HH:MM result to decimal hours: decimal hours = hours + minutes ÷ 60 (e.g., 8h 45m = 8 + 45÷60 = 8.75 h). To calculate a full week, run one subtraction per day then add them up with the Add mode.

How does time unit borrowing work in subtraction?

When the seconds being subtracted exceed the top seconds, borrow 1 minute (= 60 seconds) from the minutes column. If minutes are also too small, borrow 1 hour (= 60 minutes) from hours. If hours are too small, borrow 1 day (= 24 hours) from days. This is exactly like long subtraction with place values.