Convert Time to Decimal

How to Convert Time to Decimal in Excel

Use dependable Excel formulas for decimal hours, minutes, elapsed shifts, breaks, and totals that exceed 24 hours.

7 min read

Try the calculator while you read

Enter hours, minutes, and seconds to check any example instantly.

Open the time to decimal calculator →

Excel stores a clock time as a fraction of one day. Noon is 0.5 because half of the day has passed. To turn an Excel time value into decimal hours, multiply it by 24.

If cell A2 contains 1:30, the formula =A2*24 returns 1.5. Format the result cell as Number or General; if it remains formatted as Time, Excel may display another clock value instead of decimal hours.

Formulas for hours, minutes, and seconds

Use =A2*24 for decimal hours, =A2*1440 for total minutes, or =A2*86400 for total seconds. Those multipliers come from 24 hours per day, 1,440 minutes per day, and 86,400 seconds per day.

When hours and minutes are stored in separate cells, use =A2+B2/60. This avoids converting a real Excel time serial and is useful for imported timesheets with numeric columns.

Calculate elapsed work time

If the start time is in A2 and the end time is in B2, =(B2-A2)*24 returns decimal elapsed hours for a same-day shift. For a shift that crosses midnight, =MOD(B2-A2,1)*24 keeps the result positive.

To subtract an unpaid break stored as a time in C2, use =MOD(B2-A2-C2,1)*24. If the break is stored as a number of minutes, use =MOD(B2-A2,1)*24-C2/60.

Totals above 24 hours

A sum of Excel time values can wrap after 24 hours when displayed with a normal time format. Use the custom format [h]:mm to show accumulated clock hours, or multiply the sum by 24 and format it as a number for decimal hours.

Keep the original time cells separate from the decimal output. That makes the workbook easier to audit and prevents formulas from accidentally treating a decimal hour value as an Excel time serial.

Worked conversion pages

Open a detailed calculation, payroll example, and Excel formula for each duration.

Related tools

Frequently asked questions

Why does =A2*24 still look like a time?

The result cell is probably formatted as Time. Change its number format to General or Number.

How do I handle a shift across midnight?

Use =MOD(end-start,1)*24 so the day boundary produces a positive elapsed duration.

How do I display 40:00 without converting it?

Apply the custom number format [h]:mm to the summed duration.