FLXCode Time to Decimal Converter

FLXCode apps

Appearance

Time to Decimal Converter

Type a time or paste a column of times. See decimal hours, minutes and a total.

Direction

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

7.75
  • Decimal hours7.75
  • Decimal minutes465.00
  • Hours, minutes, seconds7:45:00

How it was worked out

  1. 7:45:00 is 27,900 seconds
  2. 27,900 / 3,600 = 7.75 hours (half up at 2 decimals)
  3. 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

  1. Type one time, or paste a column from your timesheet. One entry per line.
  2. Read the decimal hours at the top. For a column, the total is at the bottom of the table.
  3. 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.
  4. For the way back, switch to Decimal to time and type 7.75.

Examples

TypeDecimal hoursMinutesNote
7:457.75465.00Hours and minutes
7:207.33440.00A third of an hour, rounded
7h 50m7.83470.00Units instead of a colon
0:450.7545.00Under one hour
38:1538.252295.00More than 24 hours is a duration
3:30 PM15.50930.00Clock time, hours since midnight
15:3015.50930.00The same moment on a 24 hour clock
7:45:307.76465.50With seconds
0:00:010.0002780.016667One 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.

00.250.50.751 015304560 Minutes Hours

All 60 minutes

MinHoursMinHoursMinHours
00.0000200.3333400.6667
10.0167210.3500410.6833
20.0333220.3667420.7000
30.0500230.3833430.7167
40.0667240.4000440.7333
50.0833250.4167450.7500
60.1000260.4333460.7667
70.1167270.4500470.7833
80.1333280.4667480.8000
90.1500290.4833490.8167
100.1667300.5000500.8333
110.1833310.5167510.8500
120.2000320.5333520.8667
130.2167330.5500530.8833
140.2333340.5667540.9000
150.2500350.5833550.9167
160.2667360.6000560.9333
170.2833370.6167570.9500
180.3000380.6333580.9667
190.3167390.6500590.9833

Quarter hours and tenths of an hour

MinutesQuarter hours
:000.00
:150.25
:300.50
:450.75
MinutesTenths (6 min)
:000.0
:060.1
:120.2
:180.3
:240.4
:300.5
:360.6
:420.7
:480.8
:540.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 quarterBecomes (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 wantFormula 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

  1. Each entry becomes whole seconds: 7:45:30 is 7 x 3,600 + 45 x 60 + 30 = 27,930.
  2. If you chose rounding, the seconds are rounded to the step. Nearest is half up on the second.
  3. 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.
  4. 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.

Share Time to Decimal Converter