Decimal Time Conversion Calculator — Hours to HH:MM:SS
Switch between decimal hours (e.g. 1.5 h) and clock time (HH:MM:SS) instantly — essential for payroll, timesheets and any app that records time as a decimal fraction.
Conversion direction
h
Clock time: 01:30:00
- 1
Total seconds
1.5 × 3,600 = 5,400 - 2
Hours component
floor(5,400 ÷ 3,600) = 1 - 3
Remaining seconds
5,400 − 1 × 3,600 = 1,800 - 4
Minutes component
floor(1,800 ÷ 60) = 30 - 5
Decimal hours
5,400 ÷ 3,600 = 1.5000
How does this calculator work?
To convert decimal hours to HH:MM:SS: whole part = hours, fraction × 60 = minutes, remaining fraction × 60 = seconds. Reverse: dec = H + M/60 + S/3600. Example: 1.5 h = 01:30:00; 2 h 45 min 18 s = 2.755 h. Used in payroll, billing and timesheets where decimal hours multiply cleanly by an hourly rate.
Formula
How this is calculated
Payroll and billing software store time as a decimal fraction of an hour (e.g. 1.75 h) because it multiplies directly by an hourly rate. To convert a decimal to HH:MM:SS, take the whole-number part as hours, multiply the fractional part by 60 to get minutes, then multiply any remaining fraction by 60 again for seconds. For 1.5 h: 0 whole-fraction minutes = 30 min, 0 remaining = 0 s → 01:30:00.
The reverse direction is equally direct: decimal hours = H + M ÷ 60 + S ÷ 3600. For 2 hours, 45 minutes and 18 seconds: 2 + 45/60 + 18/3600 = 2.755 hours exactly. Multiplied by an hourly wage, this gives the correct pay without any rounding ambiguity.
This calculator rounds the total to whole seconds before splitting back into parts, preventing floating-point drift that would show 02:59:60 instead of 03:00:00. Minutes and seconds must each be 0–59; hours can be any non-negative value, so durations over 24 hours (e.g. 36:00:00 = 36 decimal hours) work correctly.
Frequently asked questions
0.75 × 60 = 45 minutes. In HH:MM:SS it is 00:45:00. This is the most common question in payroll: quarter-hours (0.25, 0.5, 0.75) equal 15, 30 and 45 minutes respectively.
2 + 20/60 = 2.3333… hours, commonly rounded to 2.33 h. If seconds matter, add S/3600 as well.
Yes. The hours field is uncapped, so a project logged as 36 hours 15 minutes converts to 36.25 decimal hours and back to 36:15:00 correctly.
Also known as
TG we-Calculate Editorial Team. (2026). Decimal Time Conversion Calculator — Hours to HH:MM:SS [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/decimal-time-conversion-calculator
TG we-Calculate Editorial Team. "Decimal Time Conversion Calculator — Hours to HH:MM:SS." TG we-Calculate. 2026. https://we-calculate.com/calculator/decimal-time-conversion-calculator.
TG we-Calculate Editorial Team, "Decimal Time Conversion Calculator — Hours to HH:MM:SS," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/decimal-time-conversion-calculator
@misc{wecalculate_decimal_time_conversion_calculator, title = {Decimal Time Conversion Calculator — Hours to HH:MM:SS}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/decimal-time-conversion-calculator}}, year = {2026}, note = {TG we-Calculate} }
Did this calculator help you?
