Converting seconds to hours comes up in physics, programming, payroll and timesheets, logistics and timed sports. Switching between our decimal number system (base 10) and the way time is counted (base 60) is a constant source of confusion, especially when reading decimal hours as hours and minutes.
1. Base 60 and 3,600 seconds
Dividing hours into 60 minutes of 60 seconds goes back to Babylonian astronomy. The second (s) is the SI base unit of time; the hour (h) is not an SI unit, but it is accepted for use with the SI.
1 hour = 60 min = 3,600 s
1 day = 24 h = 86,400 s
2. The formulas
Decimal hours
Example: 5,400 ÷ 3,600 = 1.5 h.
Hours, minutes and seconds (HH:MM:SS)
- Hours: integer division by 3,600; the quotient is the number of hours.
- Minutes: take the remainder and divide it by 60; the quotient is the number of minutes.
- Seconds: the final remainder.
Example for 9,250 seconds:
9,250 ÷ 3,600 = 2, remainder9,250 − 7,200 = 2,050 s2,050 ÷ 60 = 34, remainder2,050 − 2,040 = 10 s
Result: 2 h 34 min 10 s (02:34:10).
In code, the same steps use integer division and the modulo operator, e.g. in JavaScript: Math.floor(s / 3600), Math.floor(s % 3600 / 60), s % 60.
3. Reference table
| Seconds | Minutes | Decimal hours | HH:MM:SS |
|---|---|---|---|
| 60 s | 1 min | ≈ 0.0167 h | 00:01:00 |
| 900 s | 15 min | 0.25 h | 00:15:00 |
| 1,800 s | 30 min | 0.50 h | 00:30:00 |
| 2,700 s | 45 min | 0.75 h | 00:45:00 |
| 3,600 s | 60 min | 1.00 h | 01:00:00 |
| 5,400 s | 90 min | 1.50 h | 01:30:00 |
| 7,200 s | 120 min | 2.00 h | 02:00:00 |
| 86,400 s | 1,440 min | 24.00 h (1 day) | 24:00:00 |
4. The classic trap: 1.5 hours is not 1 h 50
The decimal part of an hour is a fraction of 60 minutes, not a number of minutes:
- 1.5 h = 1 h + half an hour = 1 h 30 min.
- 2.25 h = 2 h +
0.25 × 60= 2 h 15 min. - 3.75 h = 3 h +
0.75 × 60= 3 h 45 min.
To turn a decimal part into minutes, multiply it by 60. This matters for timesheets: 7.5 hours worked is 7 h 30 min. The work hours calculator handles these conversions for a whole week.
5. Frequently asked questions
How do I convert hours to seconds?
Multiply by 3,600: a 3.5-hour flight is 3.5 × 3,600 = 12,600 s. For hours, minutes and seconds, add up each part: 2 h 15 min 20 s = 7,200 + 900 + 20 = 8,120 s.
How do I convert seconds to hours in Excel or Google Sheets?
With the number of seconds in A1: =A1/3600 gives decimal hours. To display hh:mm:ss, use =A1/86400 (spreadsheets count time as fractions of a day) and apply the custom format [hh]:mm:ss.
How many seconds are in a year?
A 365-day year has 365 × 86,400 = 31,536,000 s; a 366-day leap year has 31,622,400 s.