Time to Decimal Converter
Type a time or paste a column of times. See decimal hours, minutes and a total.
https://flxcode.com/time-to-decimal-converter/
Type a time or paste a column from a timesheet. Accepted: 7:45, 7:45:30, 38:15, 7h 45m 30s, 45 min, 3:30 PM, 15:30.
Example Decimal hours
- Decimal hours
- Decimal minutes
- Hours, minutes, seconds
How it was worked out
- 7:45:00 is 27,900 seconds
- 27,900 / 3,600 = 7.75 hours (half up at 2 decimals)
- 27,900 / 60 = 465.00 minutes
No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it. What this tool keeps and sends.
Problem or idea? Email us
Quick start
- Type one time, or paste a column from your timesheet. One entry per line.
- Read the decimal hours at the top. For a column, the total is at the bottom of the table.
- To round the way payroll does, pick a step under the box: 5, 6, 15 or 30 minutes, and Nearest, Round up or Round down.
- For the way back, switch to Decimal to time and type 7.75.
Examples
| Type | Decimal hours | Minutes | Note |
|---|---|---|---|
| 7:45 | 7.75 | 465.00 | Hours and minutes |
| 7:20 | 7.33 | 440.00 | A third of an hour, rounded |
| 7h 50m | 7.83 | 470.00 | Units instead of a colon |
| 0:45 | 0.75 | 45.00 | Under one hour |
| 38:15 | 38.25 | 2295.00 | More than 24 hours is a duration |
| 3:30 PM | 15.50 | 930.00 | Clock time, hours since midnight |
| 15:30 | 15.50 | 930.00 | The same moment on a 24 hour clock |
| 7:45:30 | 7.76 | 465.50 | With seconds |
| 0:00:01 | 0.000278 | 0.016667 | One second, 6 decimals |
Minutes to decimal hours
Every minute is a sixtieth of an hour, so the conversion is a straight line. The points mark the quarter hours.
All 60 minutes
| Min | Hours | Min | Hours | Min | Hours |
|---|---|---|---|---|---|
| 0 | 0.0000 | 20 | 0.3333 | 40 | 0.6667 |
| 1 | 0.0167 | 21 | 0.3500 | 41 | 0.6833 |
| 2 | 0.0333 | 22 | 0.3667 | 42 | 0.7000 |
| 3 | 0.0500 | 23 | 0.3833 | 43 | 0.7167 |
| 4 | 0.0667 | 24 | 0.4000 | 44 | 0.7333 |
| 5 | 0.0833 | 25 | 0.4167 | 45 | 0.7500 |
| 6 | 0.1000 | 26 | 0.4333 | 46 | 0.7667 |
| 7 | 0.1167 | 27 | 0.4500 | 47 | 0.7833 |
| 8 | 0.1333 | 28 | 0.4667 | 48 | 0.8000 |
| 9 | 0.1500 | 29 | 0.4833 | 49 | 0.8167 |
| 10 | 0.1667 | 30 | 0.5000 | 50 | 0.8333 |
| 11 | 0.1833 | 31 | 0.5167 | 51 | 0.8500 |
| 12 | 0.2000 | 32 | 0.5333 | 52 | 0.8667 |
| 13 | 0.2167 | 33 | 0.5500 | 53 | 0.8833 |
| 14 | 0.2333 | 34 | 0.5667 | 54 | 0.9000 |
| 15 | 0.2500 | 35 | 0.5833 | 55 | 0.9167 |
| 16 | 0.2667 | 36 | 0.6000 | 56 | 0.9333 |
| 17 | 0.2833 | 37 | 0.6167 | 57 | 0.9500 |
| 18 | 0.3000 | 38 | 0.6333 | 58 | 0.9667 |
| 19 | 0.3167 | 39 | 0.6500 | 59 | 0.9833 |
Quarter hours and tenths of an hour
| Minutes | Quarter hours |
|---|---|
| :00 | 0.00 |
| :15 | 0.25 |
| :30 | 0.50 |
| :45 | 0.75 |
| Minutes | Tenths (6 min) |
|---|---|
| :00 | 0.0 |
| :06 | 0.1 |
| :12 | 0.2 |
| :18 | 0.3 |
| :24 | 0.4 |
| :30 | 0.5 |
| :36 | 0.6 |
| :42 | 0.7 |
| :48 | 0.8 |
| :54 | 0.9 |
Payroll rounding
Many time clocks round each punch before adding. Choose the step in the tool, then Nearest, Round up or Round down. The 7 minute rule is 15 minutes with Nearest: 7 minutes past a quarter goes down, 8 goes up.
| Minutes past the quarter | Becomes (15 min, nearest) |
|---|---|
| 1 | :00 |
| 2 | :00 |
| 3 | :00 |
| 4 | :00 |
| 5 | :00 |
| 6 | :00 |
| 7 | :00 |
| 8 | :15 |
| 9 | :15 |
| 10 | :15 |
| 11 | :15 |
| 12 | :15 |
| 13 | :15 |
| 14 | :15 |
A week of punches as an example: 7:07, 7:52, 8:08, 6:59 and 7:30. Exact, that is 37.60 hours. Rounded to the nearest 15 minutes, each day first, it is 37.50. Round up gives 38.00, and tenths of an hour (6 minutes, nearest) give 37.60. The same five entries, four different totals, so say which rule your employer uses before comparing numbers.
In Excel and Google Sheets
A time in a cell is a fraction of a day: 12:00 is 0.5. That is why the formulas multiply by 24 (hours), 1440 (minutes) or 86400 (seconds).
| You want | Formula for a time in A1 |
|---|---|
| Decimal hours | =A1*24 (format the cell as Number) |
| Decimal hours, without trusting the format | =HOUR(A1)+MINUTE(A1)/60+SECOND(A1)/3600 |
| Decimal minutes | =A1*1440 |
| Hours and minutes of a long total | =TEXT(A1,"[h]:mm") |
| Decimal hours back to a time | =A1/24, formatted as [h]:mm |
| Nearest quarter hour | =MROUND(A1*24,0.25) |
| Round up or down to a quarter hour | =CEILING(A1*24,0.25) and =FLOOR(A1*24,0.25) |
| Whole seconds first, to avoid float noise | =ROUND(A1*86400,0)/3600 |
These work the same in Google Sheets. Two traps. If the result of =A1*24 shows as a time again, the cell format is Time: change it to Number. If your pasted 7:45 is left-aligned and the formula gives an error, the sheet kept it as text and it is not a real time yet. Paste the column in the box above instead and copy the decimals back.
How it is worked out
- Each entry becomes whole seconds: 7:45:30 is 7 x 3,600 + 45 x 60 + 30 = 27,930.
- If you chose rounding, the seconds are rounded to the step. Nearest is half up on the second.
- Decimal hours are seconds / 3,600 and decimal minutes are seconds / 60, both rounded half up at the places you chose, with whole-number arithmetic and no float.
- The total adds the (rounded) seconds and is converted once, so it can differ by a hundredth from adding the rounded decimals.
Numbers this uses
- 60 minutes in an hour, 3,600 seconds. 2, 3, 4 or 6 decimal places, half up. 7:20 is 7.33 at 2 places and 7.333333 at 6.
- A colon time is hours:minutes[:seconds]. 15:30 is 15.5 hours since midnight, and 38:15 is a duration of 38.25 hours.
- With AM or PM the hour is 1 to 12: 12:30 AM is 0.5 and 12:30 PM is 12.5.
- Up to 2,000 lines and 6 digits of hours at a time.
Common mistakes
- Reading 7:20 as 7.20. It is 7.33.
- Reading 7.75 as 7 hours 75 minutes. The tool names it as invalid when you type 7:75.
- Rounding the total instead of each punch, or the other way round, without checking which one payroll uses.
- Multiplying a pay rate by h:mm. Use the decimal hours.
Limits
- It converts and rounds. It does not know your pay rules, breaks or overtime. For start and end times with breaks, use the Hours Calculator; for the gap between two times, the Time Difference Calculator.
- Adding and subtracting durations is done in the Time Calculator, and 24 hour clock notation in the Military Time Converter.
- Whole seconds only. A bare 7.75 in the time direction has no unit and is refused; switch to Decimal to time.
FAQ
How do I turn a column of times into decimal hours?
Paste the column into the box, one time per line. Each line gets its own decimal hours and decimal minutes, and the total is at the bottom. A line that cannot be read is named by its line number and left out of the total. Copy column gives you the results one per line, ready to paste back.
Why is 7:20 not 7.20?
Because the part after the colon counts minutes, and an hour has 60 of them, not 100. 20 minutes is a third of an hour, 0.33, so 7:20 is 7.33. Typing 7.20 into a timesheet gives you 12 minutes of pay too little.
What is the 7 minute rule?
It is how many employers round punches to the nearest quarter of an hour: 1 to 7 minutes past the mark are rounded down and 8 to 14 minutes up. Choose 15 minutes and Nearest to get it. Exactly 7 minutes 30 seconds is on the line and goes up, because the tool rounds half up on the second.
Does it round each punch or the total?
Each entry is rounded first and the rounded values are added, which is how a time clock works. The page also shows the exact total when it differs, so you can see the effect of rounding. If your payroll rounds only the total, switch rounding off and round the total yourself.
Is rounding to a quarter hour allowed?
In the US the Department of Labor accepts rounding to the nearest 5 minutes, tenth or quarter of an hour when it averages out and does not always favour the employer (29 CFR 785.48). Other countries and contracts differ. Check your own rule; this page only does the arithmetic.
How do I go from decimal hours back to hours and minutes?
Pick Decimal to time and type 7.75. The fraction is multiplied by 60: 0.75 x 60 = 45 minutes, so 7:45:00. A comma works as the decimal mark, so 7,75 is read as 7.75. Because of that, 1,500 is 1.5 hours and not fifteen hundred.
More from FLXCode
- Hours CalculatorAdd up hours worked in a week from start and end times and breaks. Get h:mm and decimal hours for a timesheet.
- Time Difference CalculatorFind the time between two times or between two dates with times, in days, hours, minutes and seconds, and decimal hours.
- Time CalculatorAdd and subtract hours, minutes and seconds, or add a duration to a time of day to get the end time.
- Military Time ConverterConvert 12 hour time to military 24 hour time and back, with a table of all 24 hours and how each one is said.