Guides

How to Determine Time Duration in Hours

Learn how to determine time duration in hours: convert seconds and minutes to hours, add days as 24-hour blocks, and express as hh:mm:ss or decimal hours.

Miryori Editorial Team2 min read
Try the Time Duration Calculator

Some forms, timesheets and spreadsheets ask for a duration as a single number of hours rather than a hours-and-minutes pair. The calculator's FAQ sets out a short conversion method for that case, and it also notes that there is no single prescribed way to write a duration.

To determine a time duration in hours, first write both times in 24-hour form and subtract to get hours, minutes and seconds. Then divide the seconds by 60 and add the result to the minutes, divide the minutes by 60 and add the result to the hours, and, if the interval spans days, multiply each day by 24 and add it to the hours. The result is a single decimal number of hours.

What is the formula for converting a duration to hours?

Once you have the difference in its component parts, fold the smaller units upward into hours:

total hours=hours+minutes60+seconds3600+24×days\text{total hours} = \text{hours} + \frac{\text{minutes}}{60} + \frac{\text{seconds}}{3600} + 24 \times \text{days}

This is the same two-step division described in the source: seconds are divided by 60 and added to the minutes, then the minutes are divided by 60 and added to the hours.

Which conversions does the method use?

From To Operation
Seconds Minutes Divide by 60
Minutes Hours Divide by 60
Days Hours Multiply by 24

Worked example: 8 hours 42 minutes as decimal hours

Take the 8 hours 42 minutes obtained from 8:13 am to 4:55 pm. There are no seconds and no whole days, so only one conversion is needed: 42 minutes divided by 60 gives 0.7. Adding that to the 8 whole hours gives 8.7 hours. If the interval had included days, each one would contribute 24 hours on top.

How can a time duration be written?

There is no set way to write a time duration. For shorthand, the hh:mm:ss format is usually enough, and you can add further columns for days or milliseconds if you need them. You can also write the duration out in words, for example 1 hour, 26 minutes, and 49 seconds. The decimal-hours form is simply another representation, useful where a single number is required.

Frequently Asked Questions

How do I turn seconds into hours?

First divide the seconds by 60 and add them to the minutes, then divide the resulting minutes by 60 and add them to the hours.

Why divide minutes by 60 rather than 100?

Because one hour contains 60 minutes. The same applies when subtracting times by hand: a borrowed hour adds 60 minutes, not 100.

Can a duration be written in words?

Yes. The source gives the example of writing a duration explicitly as 1 hour, 26 minutes, and 49 seconds, rather than using the hh:mm:ss shorthand.

References

  • The Omni "Time Duration Calculator" FAQ, "How do I determine the duration of time intervals in hours?".
  • The Omni FAQ "How do I write time duration?" for hh:mm:ss and written forms.
  • Standard time arithmetic: 60 seconds per minute, 60 minutes per hour and 24 hours per day.
Calculator

Time Duration Calculator

Calculate Time Duration with practical date & time formulas, interactive references and step-by-step results. Free, fast and private.

Try the Time Duration Calculator