Free online tool

Time Duration Calculator

Enter a total number of seconds to see the duration breakdown.

Instant calculation

Time Duration Calculator

Enter a total number of seconds to see the duration breakdown.

Calculation inputs are processed in your browser. Copying or sharing a result is your choice. See our privacy policy for advertising and technical logs.

Tool and explanation maintained by Leslie. Report an incorrect result.

Input steps

How to use this calculator

  1. 01

    Enter total seconds

    Type the total number of seconds.

  2. 02

    Calculate

    See complete days and the remaining hours, minutes and seconds.

  3. 03

    Read format

    Read all four components; 1 day and 1 hour means 25 elapsed hours.

The formula

How this calculation works

For whole non-negative seconds S, extract complete days first, then the remaining hours, minutes and seconds.

Time Duration Calculator

Days = floor(S/86400); Hours = floor((S mod 86400)/3600); Minutes = floor((S mod 3600)/60); Seconds = S mod 60

Check the method

Worked examples

Each example follows the same formula used by the calculator.

3,665 seconds — how many hours and minutes?

1 hour (3600) + 1 minute (60) + 5 seconds0 days, 1 hour, 1 minute, 5 seconds

90,061 seconds — does the result lose the day?

86400 + 3600 + 60 + 1 = 900611 day, 1 hour, 1 minute, 1 second

Split a total number of seconds

3665 seconds is 1 hour, 1 minute and 5 seconds. This decomposes a duration; it does not identify a time of day or an event timestamp.

Split seconds without discarding the remainder

5400 seconds becomes 0 days, 1 hour and 30 minutes; 90061 seconds becomes 1 day, 1 hour, 1 minute and 1 second. The second duration is equivalent to 25 hours, 1 minute and 1 second, but the displayed result separates complete days from the remaining hours. Check it with 86400 + 3600 + 60 + 1 = 90061.

Distinguish decimal hours from clock notation

3660 seconds is 1 hour 1 minute, or about 1.0167 decimal hours, not 1.01 decimal hours. This page accepts whole non-negative seconds; it does not preserve milliseconds or convert a Unix timestamp into a date. When working with a media clip, confirm whether its source duration is seconds, milliseconds or a formatted time string before entering the value.

Method notes updated by Leslie.

Common questions

Questions about this calculation

Will a long duration wrap at midnight?

A duration can be longer than 24 hours. The result separates complete days from hours, minutes and seconds, so keep the Days component when interpreting elapsed time. It is not a clock time that discards elapsed days.