Guides

How to Convert Time to Decimal Hours (hh:mm:ss)

Convert hh:mm:ss to decimal hours, minutes, and seconds: formula, a worked 2:30:35 example, a conversion table, and how to use the time to decimal calculator.

Miryori Editorial Team3 min read
Try the Time to Decimal Calculator

The time to decimal calculator turns a clock time written as hh:mm:ss into plain decimal numbers — hours only, minutes only, or seconds only. A clock keeps those three components in separate columns, but timesheets, payroll spreadsheets and physics formulas usually want one decimal figure. This tool converts all three components at once, including the seconds, so you can do arithmetic with the result.

To convert hh:mm:ss to decimal hours, add the hours to the minutes divided by 60 and the seconds divided by 3600: decimal hours = hh + mm/60 + ss/3600. Minutes are divided by 60 because an hour has 60 minutes, and seconds by 3600 because 60 × 60 = 3600. For 2:30:35 that is 2 + 0.5 + 0.009722 = 2.5097 hours, the same time as 150.58 decimal minutes or 9035 decimal seconds.

What is the formula for converting time to decimals?

The rule is to express the smaller components in the unit you want, then add them to the whole units. For decimal hours, convert minutes and seconds into hours and add them to the hour count:

decimal hours=hh+mm60+ss3600\text{decimal hours} = hh + \frac{mm}{60} + \frac{ss}{3600}

Here hhhh, mmmm and ssss are the hours, minutes and seconds components of the clock time. Dividing by 60 converts minutes to hours because there are 60 minutes in an hour; dividing by 3600 converts seconds to hours because there are 60 seconds in a minute and 60 minutes in an hour (60 × 60 = 3600).

The same idea gives the other two decimal forms. Multiply the decimal hours by 60 for minutes, or by 3600 for seconds — or convert each component directly:

decimal minutes=60×decimal hours=(hh×60)+mm+ss60\text{decimal minutes} = 60 \times \text{decimal hours} = (hh \times 60) + mm + \frac{ss}{60}
decimal seconds=3600×decimal hours=(hh×3600)+(mm×60)+ss\text{decimal seconds} = 3600 \times \text{decimal hours} = (hh \times 3600) + (mm \times 60) + ss
Component of 2:30:35 Value Divisor to hours Decimal hours contribution
Hours (hhhh) 2 1 2
Minutes (mmmm) 30 60 0.5
Seconds (ssss) 35 3600 0.009722
Total — — 2.5097

Once two times are written in the same unit, for example both as decimal hours, you can add, subtract or otherwise operate on them as regular numbers.

Worked example: converting 2:30:35 to decimals

Take the time 2:30:35 — two hours, thirty minutes and thirty-five seconds.

  1. Decimal hours: 2+30/60+35/3600=2+0.5+0.009722=2.50972 + 30/60 + 35/3600 = 2 + 0.5 + 0.009722 = 2.5097 hr.
  2. Decimal minutes: (2×60)+30+35/60=120+30+0.5833=150.58(2 \times 60) + 30 + 35/60 = 120 + 30 + 0.5833 = 150.58 min.
  3. Decimal seconds: (2×3600)+(30×60)+35=7200+1800+35=9035(2 \times 3600) + (30 \times 60) + 35 = 7200 + 1800 + 35 = 9035 s.

All three answers describe the same moment, just in different units. The decimal hours figure is the one that drops straight into a timesheet or a spreadsheet calculation; the minutes and seconds versions are useful when the rest of a formula works in those units.

How do I use the time to decimal calculator?

Enter all three components of the time — hours, minutes and seconds — in their fields. If a time has no minutes or seconds, such as 2:30:00, enter a zero in the empty field. The calculator then displays the decimal values of hours, minutes and seconds, and you can use whichever one fits your calculation.

Frequently Asked Questions

Why divide seconds by 3600 instead of 60?

Seconds must become hours, and one hour contains 60 minutes × 60 seconds = 3600 seconds. Dividing by 60 only takes seconds to minutes; the extra factor of 60 completes the conversion to decimal hours.

Can I do arithmetic with decimal hours?

Yes. Once two times are in the same unit, such as hours, you can perform mathematical operations on them like regular numbers. That is the reason for converting to decimals in the first place.

What do I enter when a time has no seconds?

Enter zero. The source example notes that a time such as 2:30:00 has no seconds value, and that a zero should be placed in the calculator field.

What does the calculator show after I enter a time?

It reports the decimal equivalents of hours, minutes and seconds for the time you entered, so you can choose the unit your calculation needs.

References

  • Omni's Time to Decimal Calculator, section "How to calculate time in decimals?".
  • Omni's Time to Decimal Calculator, section "Example of converting time to decimal calculator".
  • Standard time-unit conversion: one hour equals 60 minutes and 60 × 60 = 3600 seconds.
Calculator

Time to Decimal Calculator

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

Try the Time to Decimal Calculator