Skip to content
CalculatorGeek

Hours Minutes and Seconds to Decimal Hours

On this page

Convert a duration with seconds by adding hours + minutes/60 + seconds/3,600. For example, 2 hours 30 minutes 30 seconds is 2 + 30/60 + 30/3,600 = 2.508333... decimal hours.

Formula

decimal hours = hours + minutes / 60 + seconds / 3,600

An equivalent method converts the entire duration to seconds and divides by 3,600. This is useful for software because it creates one normalization path.

Worked examples

DurationTotal secondsExact decimal hoursTwo-decimal display
00:23:471,4270.396388...0.40
01:30:305,4301.508333...1.51
02:45:459,9452.76252.76
40:15:00144,90040.2540.25

Verify any value with the Decimal Hours Calculator.

Carry and normalization rules

Sixty seconds equals one minute, and 60 minutes equals one hour. An input such as 1 hour 59 minutes 60 seconds should either normalize to 2:00:00 or be rejected with a precise validation message, depending on the interface contract. It should never produce two different meanings.

Rounding once

Do not round seconds to minutes and then round decimal hours again. Normalize the exact duration, calculate, and apply one final display rule. If a decimal value must be reversed, use the unrounded source.

Durations above 24 hours

Elapsed duration can exceed one day. Forty hours 15 minutes is 40.25 hours. It should not wrap to 16.25 hours or 16:15.

When seconds matter

Second-level precision is useful for machine runtime, athletics, media duration, laboratory timing, support logs, and usage billing. A workplace may still have a separate reporting rule, so preserve the original record.

Frequently asked questions

How many decimal hours is 23 minutes 47 seconds?

It is 1,427/3,600 = 0.396388... hours, normally displayed as 0.40 at two decimals.

Is 2.51 hours exactly 2 hours 30 minutes 30 seconds?

No. 2.51 hours is 2 hours 30 minutes 36 seconds. The value 2.51 is a rounded display of 2.508333....

Can I enter fractional seconds?

Only if the calculator documents its supported precision. The implementation should state how fractions are rounded.

Source

NIST Guide to the SI, Chapter 5