Convert Time to Decimal

Excel Time to Decimal Formula

Generate Excel formulas to convert time to decimal hours. Copy ready-to-use formulas like =A1*24 for your spreadsheets.

Excel Formula Generator

General Formula

For cells formatted as time (HH:MM:SS)

=A1*24

Where A1 contains your time value

Specific Value Formula

Based on your input above

=TIME(1, 30, 0)*24

Result: 1.5000 decimal hours

💡 How to use in Excel:

  1. Copy the formula above
  2. Click on the cell where you want the result
  3. Paste (Ctrl+V / Cmd+V) and press Enter

How this conversion works

Excel and Google Sheets store time as a fraction of a 24-hour day. Noon is 0.5 because half the day has passed, and one hour is 1/24. To convert a genuine spreadsheet time into decimal hours, multiply it by 24 and format the result as a number. The generator above provides a formula for the layout you select.

The correct formula depends on what the source cell contains. A displayed value of 1:30 may be a real numeric time, text that merely looks like time, or a duration that exceeds 24 hours. Checking the cell's underlying type and choosing a suitable number format are as important as writing the formula.

Keep source times unchanged and calculate decimal hours in a new column. This creates an auditable worksheet, makes formulas easier to copy down, and prevents the original clock values from being overwritten. The examples below cover same-day time, overnight shifts, minute counts, breaks, and totals longer than one day.

Conversion formula

Decimal hours from a spreadsheet time = Time value × 24

If A2 contains 1:45 as a real time value, =A2*24 returns 1.75. Format the result cell as General or Number; if it remains formatted as Time, the displayed result may look confusing even when the stored number is correct. Use ROUND only if the destination system requires a fixed number of decimals.

For the difference between start and end times, subtract first and then multiply by 24. Use =(B2-A2)*24 for a same-day shift. When a shift can pass midnight, =MOD(B2-A2,1)*24 converts a negative clock difference into the intended duration within one day.

Example: convert a start and end time to decimal hours

  1. Enter 8:20 AM in A2 and 5:05 PM in B2 as spreadsheet times.
  2. In C2 enter =(B2-A2)*24. The elapsed result is 8.75 decimal hours.
  3. For a 30-minute unpaid break stored in D2, use =(B2-A2-D2)*24 to get 8.25.
  4. Format C2 as Number with the desired display precision, then copy the formula down.

Building dependable time formulas

Use bracketed formats for durations over 24 hours. The format h:mm wraps after each day, while [h]:mm displays accumulated hours. This affects presentation rather than the underlying value, but a wrapped weekly total can look like missing hours. Decimal-hour results should be formatted as Number and do not need brackets.

Handle text explicitly. If imported text follows HH:MM, TIMEVALUE may convert clock times, but it is not suitable for every duration and can be affected by locale. For controlled text, split the hour and minute components or clean the import before calculation. Test with a value containing more than 24 hours and another containing a leading zero.

Avoid rounding individual rows unless a business rule demands it. Sum exact duration values and round the final decimal-hour total. Protect formula columns, document break assumptions, and use absolute references for fixed rates or policies. These small design choices make a payroll or project workbook easier to review and less likely to drift when copied.

Three real-world uses

Timesheet workbook

Columns A and B hold start and end times, C holds an unpaid break, and D calculates decimal hours. Use =MOD(B2-A2,1)*24-C2*24 in D2. Store the break as a time such as 0:30, format D as Number, and sum D for the pay-period total.

=MOD(B2-A2,1)*24-C2*24

Payroll calculation

If decimal hours are in D2 and the hourly rate is in a fixed cell H1, use =D2*$H$1. Keep D2 unrounded, format the pay result as currency, and apply ROUND to two decimals only to the final amount if required. Overtime should use separate regular and overtime columns.

=ROUND(D2*$H$1,2)

Plain minute imports

Some systems export a numeric minute count rather than a time value. If A2 is 95, =A2/60 returns 1.583333... decimal hours. Do not multiply that input by 24; the correct operation is determined by the unit stored in the source cell.

Minutes to decimal hours: =A2/60

Minutes to decimal chart: 1 to 60 minutes

Use two decimals for quick reference and four decimals when a calculation needs more precision. Repeating values are rounded for display.

MinutesDecimal hours4-decimal value
10.020.0167
20.030.0333
30.050.0500
40.070.0667
50.080.0833
60.100.1000
70.120.1167
80.130.1333
90.150.1500
100.170.1667
110.180.1833
120.200.2000
130.220.2167
140.230.2333
150.250.2500
160.270.2667
170.280.2833
180.300.3000
190.320.3167
200.330.3333
210.350.3500
220.370.3667
230.380.3833
240.400.4000
250.420.4167
260.430.4333
270.450.4500
280.470.4667
290.480.4833
300.500.5000
310.520.5167
320.530.5333
330.550.5500
340.570.5667
350.580.5833
360.600.6000
370.620.6167
380.630.6333
390.650.6500
400.670.6667
410.680.6833
420.700.7000
430.720.7167
440.730.7333
450.750.7500
460.770.7667
470.780.7833
480.800.8000
490.820.8167
500.830.8333
510.850.8500
520.870.8667
530.880.8833
540.900.9000
550.920.9167
560.930.9333
570.950.9500
580.970.9667
590.980.9833
601.001.0000

Open the full time to decimal chart and download the printable PDF →

Frequently asked questions

Why do I multiply Excel time by 24?

Excel stores one full day as 1. Since a day has 24 hours, multiplying the stored day fraction by 24 changes it to decimal hours.

What formula converts minutes to decimal hours in Excel?

If the cell contains a plain minute count, use =A2/60. If it contains a real time value such as 0:45, use =A2*24 instead.

How do I calculate hours across midnight?

Use =MOD(B2-A2,1)*24, where A2 is the start and B2 is the end. MOD treats the end as the following day when the end clock time is earlier.

Why does my decimal result display as a time?

The result cell probably inherited a time format. Change its number format to General or Number. Formatting changes the display and does not require changing a correct *24 formula.

How do I display more than 24 accumulated hours?

For a time or duration total, use the custom format [h]:mm. For decimal hours, multiply the duration by 24 and format the result as a regular number.

Should I use ROUND in the formula?

Use ROUND only when the receiving system or policy requires a fixed precision. For totals and pay, retaining the exact value until the final step usually prevents cumulative rounding differences.

Do the same formulas work in Google Sheets?

Yes, the core formulas such as =A2*24, =A2/60, and =MOD(B2-A2,1)*24 work in Google Sheets. Menu names and locale separators may differ.

How can I tell whether a cell is text or time?

Change the cell format temporarily to Number. A real time becomes a fraction such as 0.0625 for 1:30, while text remains text. You can also use =ISNUMBER(A2) to test the underlying value.