Example 1 — Simple conversion
02:15:30 → \(H_\mathrm{dec}=2+\tfrac{15}{60}+\tfrac{30}{3600}=2.2583\ \text{hours}\) (≈ 2.2583 h).
Convert hours, minutes, and seconds into decimal values quickly for payroll, tracking, or math; transparent formulas, examples.
Decimal hours = H + M/60 + S/3600
Decimal minutes= H·60 + M + S/60
Decimal seconds= H·3600 + M·60 + S
A Time to Decimal Calculator converts formatted clock time (hours:minutes:seconds) into decimal values—most commonly decimal hours for payroll, billing, timesheets, and productivity analytics, or decimal minutes for athletic pacing, editing timelines, and call centers. While hh:mm:ss is intuitive for humans, decimals make math effortless: adding durations, applying hourly rates, averaging session lengths, and computing KPIs. This tool accepts positive or negative durations, preserves precision to the second, and shows equation previews so you can trace each step and match the rounding rules required by employers, clients, or spreadsheets.
The conversion is straightforward but easy to mishandle without a consistent method. Seconds must be divided by 3600 (for hours) or 60 (for minutes), then added to the minute and hour components. Rounding should occur at the end of the computation to avoid drift. The calculator also supports fractional days for spreadsheet interoperability, since many spreadsheets store times as a fraction of 24 hours. For aggregations, it keeps a running total in both formats so audits are painless. If your workflow requires quarter-hour rounding (0.25, 0.50, 0.75), the calculator can present post-conversion rounding hints while still showing the exact, unrounded decimal for reference.
From hh:mm:ss to decimal hours: \[ H_\mathrm{dec}=h+\frac{m}{60}+\frac{s}{3600}. \]
From hh:mm:ss to decimal minutes: \[ M_\mathrm{dec}=60h+m+\frac{s}{60}. \]
Fraction of a day (for spreadsheets): \[ D=\frac{h}{24}+\frac{m}{1440}+\frac{s}{86400}. \]
Rounding to nearest }N\text{ minutes (post-conversion):} \[ H_{\mathrm{dec,rounded}}=\frac{N}{60}\cdot\operatorname{round}\!\left(\frac{60\,H_\mathrm{dec}}{N}\right). \]
Totals (sum of entries }i=1\dots n\text{):} \[ H_{\mathrm{total}}=\sum_{i=1}^{n} H_{\mathrm{dec},i},\qquad M_{\mathrm{total}}=\sum_{i=1}^{n} M_{\mathrm{dec},i}. \]
02:15:30 → \(H_\mathrm{dec}=2+\tfrac{15}{60}+\tfrac{30}{3600}=2.2583\ \text{hours}\) (≈ 2.2583 h).
00:07:45 → \(M_\mathrm{dec}=0+7+\tfrac{45}{60}=7.75\ \text{minutes}\).
01:22:10 → exact \(H_\mathrm{dec}=1+\tfrac{22}{60}+\tfrac{10}{3600}=1.3694\ \text{h}\). Nearest 0.25 h → \(1.25\ \text{h}\) (if rounding down) or \(1.50\ \text{h}\) (if rounding to nearest).
−00:30:00 → \(H_\mathrm{dec}=-\left(0+\tfrac{30}{60}+0\right)=-0.5\ \text{hours}\).
\(7+\tfrac{30}{60}=7.5\) hours.
Treat \(h=0,\ m=0\): \(H_\mathrm{dec}=s/3600\) or \(M_\mathrm{dec}=s/60\).
Yes—hours can exceed 24; decimals simply grow accordingly.
The sign applies to the whole duration (e.g., −01:05:00 → −1.0833 h).
Convert exactly first, then apply your required rounding policy to the decimal.
Hours = ⌊\(H_\mathrm{dec}\)⌋, minutes = ⌊60·fraction⌋, seconds = 3600·fraction − 60·minutes.
0.1 h = 6 minutes, so 1.1 h = 01:06:00, not 01:10:00.
Yes—sum decimals directly; totals are also shown in hh:mm:ss for checks.