Time Calculator

Time Calculator
Time & Duration

Time Calculator

Please enter durations in hh:mm:ss, hh:mm, or minutes format (e.g. 1:30:00, 90:00, or 45).
Total Duration
Total Hours (decimal)
Total Minutes
Total Seconds
Please enter both a start and end date/time, with the end after the start.
Time Between
Total Days
Total Hours
Total Minutes
Disclaimer: This tool performs straightforward time arithmetic based on the values you enter. It does not account for time zone changes, daylight saving transitions, or leap seconds. Double-check results for anything time-critical.

Time Calculator: How to Add, Subtract, and Convert Time Correctly

Quick summary: A time calculator adds or subtracts hours, minutes, and seconds by converting everything to a single unit (usually seconds), doing the math, and converting back — carrying over or “borrowing” between units along the way. This guide breaks down the exact process, walks through worked addition and subtraction examples, and explains how to convert time into decimal hours for payroll or billing.

What Is a Time Calculator?

A time calculator is a versatile online math tool that helps you quickly add, subtract, or find the difference between two time values given in hours, minutes, and seconds. It makes time math fast and error-free by automatically handling the carryovers and borrows that make manual time arithmetic so error-prone — perfect for students, teachers, payroll staff, or anyone needing quick answers involving durations, remaining time, or gaps between events.

Time math is trickier than ordinary arithmetic because it doesn’t run on a base-10 system. Unlike decimal-based systems, time uses a sexagesimal (base-60) system for minutes and seconds, which is exactly why manual calculations get confusing fast.

The Time Calculator Formula

There isn’t one single formula for adding or subtracting time — it’s a step-by-step carrying process. The cleanest way to think about it, and the method most time calculators actually use internally, is to convert every value into seconds first, do simple arithmetic, then convert back:

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

Once you have a total in seconds, you can add or subtract that total directly, then convert the result back into hours, minutes, and seconds.

Manual Addition (Without Converting to Seconds)

If you prefer working directly in H:M:S format, follow this three-step carrying process:

  1. Add the like components separately — hours with hours, minutes with minutes, seconds with seconds.
  2. If the resulting seconds are 60 or more, add 1 to the total minutes and subtract 60 from the total seconds.
  3. If the resulting minutes are 60 or more, add 1 to the total hours and subtract 60 from the total minutes.

Manual Subtraction (Without Converting to Seconds)

Subtraction works the same way in reverse, borrowing instead of carrying:

  1. Subtract the like components separately — hours from hours, minutes from minutes, seconds from seconds.
  2. If the resulting seconds are negative, add 60 to the total seconds and subtract 1 from the total minutes.
  3. If the resulting minutes are negative, add 60 to the total minutes and subtract 1 from the total hours.

This borrowing logic works the same way as long subtraction: if you’re subtracting 45 seconds from 15 seconds, the calculator borrows one minute (60 seconds) from the minutes column before performing the subtraction.

Worked Example 1: Adding Two Times

Add 1:30:45 and 2:45:20.

Method A — Seconds conversion:

  • 1:30:45 → (1×3600) + (30×60) + 45 = 3600 + 1800 + 45 = 5,445 seconds
  • 2:45:20 → (2×3600) + (45×60) + 20 = 7200 + 2700 + 20 = 9,920 seconds
  • Total: 5,445 + 9,920 = 15,365 seconds
  • Convert back: 15,365 ÷ 3600 = 4 hours, remainder 965 seconds → 965 ÷ 60 = 16 minutes, remainder 5 seconds
  • Result: 4:16:05

This matches the direct carrying method, where adding 1:30:45 and 2:45:20 also produces a sum of 4 hours, 16 minutes, and 5 seconds.

Worked Example 2: Subtracting Two Times

Starting time: 2:15:30. Subtract 0:50:15.

  • Convert starting time to seconds: (2×3600) + (15×60) + 30 = 7200 + 900 + 30 = 8,130 seconds
  • Convert subtracted time to seconds: (0×3600) + (50×60) + 15 = 3000 + 15 = 3,015 seconds
  • Subtract: 8,130 − 3,015 = 5,115 seconds
  • Convert back: 5,115 ÷ 3600 = 1 hour, remainder 1,515 seconds → 1,515 ÷ 60 = 25 minutes, remainder 15 seconds
  • Result: 1:25:15

Worked Example 3: Converting Time to Decimal Hours

Decimal hours are commonly required for payroll, billing, and spreadsheet formulas. The conversion is simple once you have total seconds:

Decimal Hours = Total Seconds ÷ 3600

Example: 1 hour 30 minutes converts to 5,400 seconds, which equals 1.5 decimal hours (or 90 decimal minutes). So an employee who worked 7 hours and 15 minutes should be paid for 7.25 hours on a decimal timesheet — a common point of confusion when payroll systems require decimal format but time clocks report in minutes.

Multiplying and Dividing Time

Time calculators can also multiply or divide durations — useful for scaling recipes, race splits, or estimating project time across multiple units. As with addition and subtraction, the safest approach is converting to a single base unit (seconds), doing the arithmetic, and converting back, since multiplying or dividing H:M:S values directly quickly produces invalid minute or second values (like “75 minutes”) that still need to be carried over.

Common Use Cases

  • Work schedules: Adding up work time in hours and minutes across a day, work week, or month, including subtracting break times and adding overtime.
  • Sports and fitness: Totaling running or swimming split times to find overall duration.
  • Sleep tracking: Summing sleep segments across a week to find total sleep time.
  • Media production: Adding or trimming segments from a film or recording — for example, a director’s cut that adds 23 minutes to a 1 hour 52 minute film results in a new runtime of 2:15:00.

Frequently Asked Questions

How do I calculate the time difference between two times?

Convert both times to 24-hour (military) format, convert each to decimal hours, then subtract the start time from the end time — the result is the elapsed duration in hours.

What is the formula for adding hours and minutes?

There isn’t a single formula; it’s a carrying process — add the minutes first, and if the total reaches 60 or more, carry the extra as an additional hour, then add the hours including that carry-over.

How do you convert time to decimal format?

Convert the time to total seconds, then divide by 3,600 to get decimal hours, or divide by 60 to get decimal minutes.

What happens if I subtract a larger time value from a smaller one?

The result is negative, and most time calculators will display it with a minus sign in front of the resulting H:M:S value rather than returning an error.

Why can’t I just subtract hours, minutes, and seconds like normal numbers?

Because time doesn’t use base-10 — minutes and seconds each roll over at 60, not 100 — so a straightforward subtraction can produce invalid results (like “−15 seconds”) unless you borrow from the next unit up.

Can a time calculator handle days as well as hours?

Yes — many time calculators also add and subtract days, borrowing 24 hours from the days column the same way minutes borrow 60 seconds or hours borrow 60 minutes.

Related Calculators

Conclusion

A time calculator solves a problem that looks simple but trips people up constantly: time doesn’t follow the base-10 rules we use for everything else. Whether you’re adding hours and minutes, subtracting a break from a shift, or converting a duration into decimal hours for payroll, the underlying method is always the same — convert to a single unit like seconds, do the arithmetic, and convert back, carrying or borrowing between hours, minutes, and seconds as needed. Once you understand that core process, you can check any time calculator’s output by hand, or do the math yourself with confidence.