Skip to content
OverCalculator
  1. Home
  2. Time & Date
  3. Time Duration Calculator
Time & Date

Time Duration Calculator

Calculate the duration between two clock times, add time, subtract time, and convert results into hours, minutes, and seconds.

Published

Time result
Duration
04:15:00
Total hours
4.25
Total minutes
255.00
Total seconds
15,300

Time difference from 13:30:00 to 17:45:00.

Calculation type

Results update as you type.

Time Duration Calculator

The time duration calculator measures a precise clock interval, adds time to a base clock, or subtracts an interval from a clock time. It is useful for work logs, event run sheets, workouts, kitchen timing, audio and video edits, study blocks, support response windows, and any task where hours, minutes, and seconds need to agree.

Choosing the right mode

Use Time Difference when you have a start time and an end time and want to know the elapsed duration. This mode is ideal for “13:30:00 to 17:45:00” or “23:10:15 to 01:05:45.” Use Add Time when the question is “what time will it be after this interval?” Use Subtract Time when you need to count backward from a deadline or scheduled start.

This page is clock-focused. It does not know about time zones, daylight saving changes, or calendar dates except for a simple next-day adjustment in difference mode. For a workday that includes breaks, use the shift calculator. For a weekly timesheet and overtime split, use the time card calculator. For converting New York to London before measuring an interval, use the time-zone calculator. For age or birthday spans, the age calculator handles calendar months and leap years.

Method and calendar rules

The calculator converts every clock time into seconds after midnight:

seconds after midnight=3600×hours+60×minutes+seconds\text{seconds after midnight} = 3600 \times \text{hours} + 60 \times \text{minutes} + \text{seconds}

In Time Difference mode, it subtracts the start seconds from the end seconds:

difference seconds=end secondsstart seconds\text{difference seconds} = \text{end seconds} - \text{start seconds}

If that value is negative, the calculation adds 86,400 seconds, which is one 24-hour day:

adjusted difference={difference seconds,if difference seconds0difference seconds+86400,if difference seconds<0\text{adjusted difference} = \begin{cases}\text{difference seconds}, & \text{if difference seconds} \ge 0 \\\text{difference seconds} + 86400, & \text{if difference seconds} \lt 0\end{cases}

The result is then broken into days, hours, minutes, and seconds with integer division and remainders. Because the method only adds one day, difference mode is intended for intervals shorter than 24 hours. A start and end time alone cannot identify a multi-day span without dates.

In Add Time and Subtract Time modes, the interval is converted to seconds:

interval seconds=86400×days+3600×hours+60×minutes+seconds\text{interval seconds} = 86400 \times \text{days} + 3600 \times \text{hours} + 60 \times \text{minutes} + \text{seconds}

the calculation adds or subtracts that interval from the base seconds, then wraps the value into the range from 0 to 86,399 seconds. Negative results are increased by 86,400 until they are nonnegative, and all results are reduced modulo 86,400. The returned primary value is therefore a time of day, not a calendar date.

Checked examples

For a standard difference, enter 13:30:00 as the start and 17:45:00 as the end. Start seconds are 13 times 3,600 plus 30 times 60, or 48,600. End seconds are 17 times 3,600 plus 45 times 60, or 63,900. The difference is 15,300 seconds, which breaks into 4 hours, 15 minutes, 0 seconds. The total hours item shows 4.25, total minutes show 255.00, and total seconds show 15,300.

For a crossing past midnight, enter 23:50:00 to 00:20:30. The raw difference is negative: 1,230 - 85,800 = -84,570. The calculator adds 86,400 and reports 1,830 seconds, or 00:30:30. That is the next occurrence of 00:20:30 after 23:50:00.

For add mode, start with 22:15:00 and add 0 days, 3 hours, 50 minutes, 0 seconds. The result wraps past midnight to 02:05:00. The total hours into day item is 2.08 because the resulting clock time is 2 hours and 5 minutes after midnight, not because the interval was 2.08 hours.

Interpreting totals and outputs

The clock-style primary result is easiest to read, but the supporting totals are often the numbers you need for a spreadsheet. Billing systems frequently use decimal hours, so 4 hours 15 minutes becomes 4.25 hours. Training plans often use minutes, so the same span is 255 minutes. Technical logs often use seconds, so the same span is 15,300 seconds.

Be careful when using totals for payroll. The calculator has no rounding policy and does not decide whether a break is paid. If the interval represents work time, combine it with official timekeeping rules or move to the time card calculator for weekly totals. If it represents a meeting across regions, convert the local times first, because daylight saving changes can make wall-clock subtraction wrong on transition days.

Edge cases and common mistakes

The biggest limitation is that the calculator is clock-only. It does not know that an event began on Monday and ended Wednesday. Difference mode assumes the end is either later the same day or the next day if it appears earlier. Add and subtract mode intentionally discard whole days after wrapping. That behavior is useful for alarms and schedules, but it is not a date calculator.

Another mistake is putting decimal values in the minute fields. Minutes and seconds are sexagesimal units, so 90 minutes should be entered as 1 hour and 30 minutes only if you want a normalized display; the calculator itself expects minute values from 0 to 59. Use leading zeros when copying results into schedules: 02:05:00 is clearer than 2:5.

Clock and date boundaries

Clock inputs have no calendar date or time zone. Overnight mode adds one 24-hour day when the end is earlier than the start; it cannot represent multiple days. Daylight-saving days of 23 or 25 hours are not modeled. Gregorian month boundaries and leap days are irrelevant until actual dates are supplied, so use a dated IANA-zone workflow when those boundaries matter.

Sources

Frequently asked questions

How do I calculate the duration between two times?
Choose time difference, enter the start hour, minute, and second, then enter the end hour, minute, and second. The calculator converts both times to seconds after midnight. If the end is earlier than the start, it adds one 24-hour day and reports the forward duration.
Can this calculator add time to a clock time?
Yes. Choose add time, enter the base clock time, and enter the interval in days, hours, minutes, and seconds. The calculator adds the interval in seconds, then wraps the answer within a 24-hour clock, so the primary result is a time of day rather than a dated timestamp.
Can it subtract time across midnight?
Yes. In subtract mode, the calculator subtracts the interval seconds from the base time. If the result is negative, it repeatedly adds 24 hours until it lands back on the daily clock, then displays hours, minutes, and seconds from 00:00:00.
Why is 1.5 hours different from 1 hour 50 minutes?
Decimal hours use base ten, but clock minutes use base sixty. One and a half hours is 1 hour 30 minutes because 0.5 of an hour equals 30 minutes. If you mean 1 hour 50 minutes, enter 1 in the hour field and 50 in the minute field.
Does the calculator track calendar dates?
No. Difference mode can represent a crossing past midnight by adding one day, but add and subtract mode wrap the result to a time of day and return zero days. For date-aware spans, deadlines, or ages, use a calendar calculator instead of relying on this clock-only result.
What are total hours, minutes, and seconds for?
The totals express the same duration in single units. Total hours are useful for billing or payroll decimals, total minutes fit workouts and media logs, and total seconds help with technical timing. They are derived directly from the same second count as the clock-style result.

Related calculators

Time Duration Calculator updated at