Skip to content
Everyday Life

Time to Decimal Calculator

Enter any time in hours, minutes, and seconds to get the equivalent decimal hours, decimal minutes, and total seconds all at once. Switch to reverse mode to convert a decimal back to clock format. Results update as you type, with a step-by-step breakdown of every formula.

Your details

Switch between converting clock time to decimal and decimal hours back to clock time.
Whole hours of your time duration.
hr
Minutes component (0-59).
min
Seconds component (0-59). Leave at 0 for payroll and most timesheet work.
sec
Enter your hourly rate to calculate gross pay for the entered time duration. Leave at 0 to skip.
USD
Decimal hours
2.5hr

Total time expressed as a decimal fraction of one hour

Decimal minutes150min
Total seconds9,000sec
Gross pay-
Hours-
Minutes-
Seconds-
Decimal hours2.5
Decimal minutes150

2 hr 30 min = 2.5000 decimal hours.

  • This duration is 31.3% of a standard 8-hour workday.
  • Add your hourly rate to calculate gross pay automatically - handy for freelance invoices and payroll.

Next stepUse decimal hours on timesheets, invoices, and payroll where software expects a single number rather than hh:mm:ss.

Formula

Decimalhours=hh+(mm/60)+(ss/3600)Decimalminutes=(hh×60)+mm+(ss/60)Totalseconds=(hh×3600)+(mm×60)+ssReverse:totSec=decimalhours×3600;hh=floor(totSec/3600);mm=floor((totSecmod3600)/60);ss=totSecmod60Decimal hours = hh + (mm / 60) + (ss / 3600) Decimal minutes = (hh × 60) + mm + (ss / 60) Total seconds = (hh × 3600) + (mm × 60) + ss Reverse: totSec = decimal hours × 3600; hh = floor(totSec / 3600); mm = floor((totSec mod 3600) / 60); ss = totSec mod 60

Worked example

2 hr 45 min 30 sec: decimal hours = 2 + (45/60) + (30/3600) = 2 + 0.75 + 0.00833 = 2.75833 hr. Decimal minutes = 120 + 45 + 0.5 = 165.5 min. Total seconds = 7200 + 2700 + 30 = 9930 sec.

Why convert time to decimal?

Most payroll systems, billing software, and spreadsheets store duration as a plain number rather than as hours and minutes. When you enter 2:30 into a cell, most programs treat it as a date-time value rather than 2.5 hours, leading to calculation errors. Converting to 2.5 (decimal hours) lets you multiply by an hourly rate directly, sum multiple durations, and export clean data to any accounting or invoicing tool. Decimal time is the standard in industries such as legal billing, construction, freight, and freelance consulting.

How to convert hours, minutes, and seconds to decimal

The conversion uses three simple formulas. To get decimal hours: add the whole hours to the minutes divided by 60, then add the seconds divided by 3600. For example, 1 hour 45 minutes 30 seconds = 1 + (45/60) + (30/3600) = 1.7583 hours. To get decimal minutes: multiply the hours by 60, add the minutes, and add the seconds divided by 60. To get total seconds: multiply the hours by 3600, multiply the minutes by 60, and add the seconds. All three outputs are shown for every entry so you can paste whichever unit your target system needs.

Reverse conversion: decimal hours back to clock time

Switch to "Decimal hours to clock time" mode and enter any decimal value. The calculator multiplies by 3600 to get total seconds, then uses integer division to peel off the whole hours, then the remaining whole minutes, leaving the leftover seconds. For example, 2.75 hours becomes 2 hours 45 minutes 0 seconds. This reverse path is especially useful when time-tracking apps export decimal totals and you need to read them as a familiar clock time.

Payroll and freelance billing

To calculate gross pay, multiply decimal hours by your hourly rate. Enter your rate in the optional field and the calculator does this automatically. For example, 7 hours 30 minutes at $45/hr = 7.5 hr x $45 = $337.50. The US Fair Labor Standards Act (FLSA) permits rounding time to the nearest 5, 6, or 15 minutes as long as rounding does not systematically favor the employer, so the insight panel flags the nearest quarter-hour value when your entered time falls between quarter-hour marks.

Common time-to-decimal conversions

Clock timeDecimal hoursDecimal minutesTotal seconds
5 min0.0833 hr5 min300 sec
10 min0.1667 hr10 min600 sec
15 min0.2500 hr15 min900 sec
20 min0.3333 hr20 min1,200 sec
30 min0.5000 hr30 min1,800 sec
45 min0.7500 hr45 min2,700 sec
1 hr 0 min1.0000 hr60 min3,600 sec
1 hr 15 min1.2500 hr75 min4,500 sec
1 hr 30 min1.5000 hr90 min5,400 sec
2 hr 0 min2.0000 hr120 min7,200 sec
2 hr 30 min2.5000 hr150 min9,000 sec
4 hr 0 min4.0000 hr240 min14,400 sec
8 hr 0 min8.0000 hr480 min28,800 sec

Quick reference for the most frequently converted clock times. All values are rounded to 4 decimal places.

Frequently asked questions

What is the formula to convert minutes to decimal hours?

Divide the minutes by 60 and add the result to the whole hours. For seconds, also divide by 3600 and add that too. The full formula is: decimal hours = hours + (minutes / 60) + (seconds / 3600). For example, 2 hours 45 minutes = 2 + (45/60) = 2.75 hours.

How do I convert 30 minutes to a decimal?

30 minutes divided by 60 equals 0.5. So 30 minutes alone is 0.5 decimal hours, and 1 hour 30 minutes is 1.5 decimal hours. This is the most common conversion used in payroll: a half-hour break or half-hour overtime appears as 0.5 on a timesheet.

What does 2.5 hours mean in hours and minutes?

2.5 hours equals 2 hours and 30 minutes. Multiply the decimal portion (0.5) by 60 to get the minutes: 0.5 x 60 = 30. More generally, take the decimal part of any decimal-hours value and multiply by 60 to find the remaining minutes, then multiply any leftover decimal by 60 again to find the seconds.

How is time used in payroll calculations?

Payroll software records worked time as decimal hours (e.g. 7.25) rather than clock time (7:15), because you cannot multiply hours:minutes by a dollar rate directly. Gross pay is simply decimal hours multiplied by the hourly rate. To convert punch-in and punch-out times manually: subtract to get elapsed clock time, then convert that to decimal hours using hours + (minutes/60), and multiply by the rate.

What is the difference between decimal time and clock time?

Clock time uses base-60 for minutes and seconds (60 minutes per hour, 60 seconds per minute), inherited from ancient Babylonian astronomy. Decimal time expresses duration as a plain base-10 number of hours. There is also a historical "decimal time" system from the French Revolution (10 hours per day, 100 minutes per hour) but that is rarely used today. When people say "decimal time" now, they almost always mean expressing hours as a decimal fraction, such as 2.5 instead of 2:30.

How do I convert seconds to decimal hours?

Divide the total seconds by 3600 (the number of seconds in one hour). For example, 9000 seconds divided by 3600 equals 2.5 hours. If you have hours, minutes, and seconds together, use: decimal hours = hours + (minutes / 60) + (seconds / 3600).

Sources

Written by Grace Mbeki, MSc Data Scientist & Educator · Nairobi, Kenya

Turning everyday numbers into clear, actionable answers for the decisions that matter most.

Search 3,500+ calculators

Loading search…