Skip to content
K Knidox Search…
Time & Date · Duration

Time Duration Calculator

Find the time between two moments, or add and subtract durations in h:m:s.

Mode
Common spans — tap to try
Duration
8 h 30 min

8:30:00 (h:m:s) • 510 min • 30,600 s.

To find the duration between two times, convert each to seconds since midnight and subtract. From 09:15 to 17:45 is 63,900 − 33,300 = 30,600 seconds, which normalizes to 8 h 30 min — the same as 8:30:00 or 510 total minutes.

Two ways to work with time spans

The calculator has two modes. Between two times takes a start and an end time of day and returns the elapsed duration. Add / subtract combines two durations expressed in hours, minutes, and seconds — useful for totalling lap times, stacking video clips, or working out how much study time is left. Every result is shown three ways: as a tidy h:m:s label, as a clock-style h:m:s figure, and as a total in minutes and seconds.

duration = (end − start) seconds, then h = ⌊s ÷ 3600⌋, m = ⌊(s mod 3600) ÷ 60⌋, s = s mod 60

Work entirely in seconds, then split the total back into whole hours, minutes, and seconds.

  1. 1
    Convert each time to seconds since midnight. 09:15 = 9 × 3600 + 15 × 60 = 33,300 s, and 17:45 = 17 × 3600 + 45 × 60 = 63,900 s.
  2. 2
    Subtract the start from the end. 63,900 − 33,300 = 30,600 seconds of elapsed time.
  3. 3
    Handle times that cross midnight. If the end is earlier than the start, add 86,400 s (one day) so an overnight shift like 22:00 → 06:00 reads as 8 h, not −16 h.
  4. 4
    Normalize back to h:m:s. 30,600 ÷ 3600 = 8 h with 1,800 s left; 1,800 ÷ 60 = 30 min, 0 s — so 8 h 30 min, or 510 total minutes.

Carry and conversion rules

Minutes and seconds roll over at 60; the tool normalizes any oversized field for you.

AmountNormalizes toIn seconds
90 min1 h 30 min5,400 s
150 s2 min 30 s150 s
1 h60 min3,600 s
1 min60 s60 s
8 h 30 min510 min30,600 s
24 h1,440 min86,400 s

Crossing midnight, negative results, and carries

Overnight spans. When the end time is earlier than the start, the tool assumes the end falls on the next day and adds 24 hours. That makes an overnight shift from 22:00 to 06:00 read as 8 hours rather than a negative span. If you genuinely want a same-day backward difference, swap the two times.

Negative durations. In Add / subtract mode, subtracting a larger duration from a smaller one gives a negative result, shown with a leading minus sign (for example, 45 min − 1 h = −15 min). This is handy for checking whether you are over or under a time budget.

Carries. You do not have to keep minutes and seconds under 60. Enter 90 minutes and the tool reports 1 h 30 min; enter 150 seconds and it reports 2 min 30 s. Everything is summed in seconds first, then split back into whole hours, minutes, and seconds.

How is the duration between two times calculated?
Each time of day is converted to seconds since midnight, the start is subtracted from the end, and the resulting seconds are split back into whole hours, minutes, and seconds. So 09:15 to 17:45 is 30,600 s, or 8 h 30 min.
What happens if the end time is before the start time?
The tool assumes the end is on the next day and adds 24 hours, so an overnight span from 22:00 to 06:00 reads as 8 h rather than a negative value. To measure a same-day backward gap instead, swap the two times.
Can I enter seconds, not just hours and minutes?
Yes. The time inputs accept an optional seconds field (HH:MM:SS), and Add / subtract mode has a dedicated seconds box for each duration. Results always show hours, minutes, and seconds.
Do minutes and seconds have to be under 60?
No. In Add / subtract mode you can enter 90 minutes or 150 seconds and the tool normalizes them — 90 min becomes 1 h 30 min and 150 s becomes 2 min 30 s — because it works in total seconds first.
Why show total minutes and total seconds too?
A single unit is often easier to plug into other work. 8 h 30 min is 510 minutes or 30,600 seconds; timesheets, billing, and media editing frequently want one flat number rather than a mixed h:m:s figure.
Can the result be negative?
Only in Add / subtract mode. Subtracting a longer duration from a shorter one yields a negative result shown with a minus sign, such as 45 min − 1 h = −15 min. Duration between two times is never negative because overnight spans wrap to the next day.