Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Convert Time to Decimal Hours in Excel

· 4 min read · Home Tech

In this article
  1. Why Excel Stores Time as a Fraction
  2. The Basic Formula: Multiply by 24
  3. Converting Hours and Minutes Separately
  4. Using the HOUR, MINUTE, and SECOND Functions
  5. Formatting the Result Correctly
  6. Common Pitfalls and How to Avoid Them
  7. Using Decimal Hours in Calculations
  8. Frequently Asked Questions

To convert time to decimal hours in Excel, multiply the time value by 24. For example, if cell A1 contains 2:30 (2 hours, 30 minutes), the formula =A1*24 returns 2.5, because Excel stores times as fractions of a 24-hour day.

Why Excel Stores Time as a Fraction

Excel treats time as a decimal portion of a 24-hour day. 12:00 PM is stored as 0.5, and 6:00 AM is 0.25. This design lets you perform arithmetic on times, but it also confuses users who expect to see hours and minutes as separate numbers. When you multiply a time by 24, you convert that fraction into the actual number of hours. For instance, 0.25 × 24 = 6, which is the hour value of 6:00 AM.

This conversion is essential for payroll, billing, and project tracking, where you need total hours in decimal form (e.g., 7.75 hours) rather than in hours and minutes (7:45).

The Basic Formula: Multiply by 24

The core formula is straightforward:

  • If your time is in cell A1, use =A1*24.
  • Format the result as a number with decimals (Home > Number Format > General or Number).
  • Result is in hours, where 1 hour = 1.0, 30 minutes = 0.5, etc.

Example: A1 = 8:15 AM. =A1*24 returns 8.25, meaning 8 hours and 15 minutes (since 15/60 = 0.25).

Converting Hours and Minutes Separately

If you have hours and minutes in separate columns, you can combine them manually:

  • Formula: =hours + minutes/60
  • Example: hours in A1 = 5, minutes in B1 = 45 → =A1 + B1/60 → 5.75.

This works because 45 minutes is 0.75 of an hour. This method is useful when your data is already split, and you don't need to rely on Excel's time format.

Using the HOUR, MINUTE, and SECOND Functions

If your time is stored as text or you want to extract components, use these functions:

  • =HOUR(A1) + MINUTE(A1)/60 + SECOND(A1)/3600
  • HOUR returns the hour (0–23), MINUTE returns minutes (0–59), SECOND returns seconds (0–59).
  • Divide minutes by 60 and seconds by 3600 to get fractional hours.

Example: A1 = 3:30:15 PM. HOUR = 15, MINUTE = 30, SECOND = 15. Formula gives 15 + 0.5 + 0.00417 = 15.50417 hours.

Formatting the Result Correctly

After multiplying by 24, the result cell may still show a time format (like 6:00). To fix:

  1. Select the cell with the formula.
  2. Press Ctrl+1 (or Cmd+1 on Mac) to open Format Cells.
  3. Choose “Number” and set decimal places (e.g., 2).
  4. Click OK. Now you see 6.00 instead of 6:00.

If you forget this, Excel may display the decimal as a time, which is a common source of confusion.

Common Pitfalls and How to Avoid Them

  • Forgetting to multiply by 24: Without it, you get a fraction (e.g., 0.25 for 6:00), not hours.
  • Negative times: If you have times that span midnight (e.g., start 11 PM, end 1 AM), a simple subtraction gives a negative value. Use the MOD function: =MOD(end-start,1)*24 to get positive hours.
  • Text-formatted times: If your “time” is text, multiplication won't work. Use =TIMEVALUE(A1)*24 to convert it first.
  • Rounding errors: Excel's floating-point math can cause tiny errors (e.g., 8.999999). Use ROUND: =ROUND(A1*24,2) for clean results.

Using Decimal Hours in Calculations

Once converted, decimal hours are easy to sum and multiply. For payroll, you can multiply by hourly rate: =A1*24*rate. For project tracking, sum a column of decimal hours with =SUM(B2:B10) to get total hours. You can also convert back to time format with =decimal/24 and format as time.

Example: If you worked 8:30, 7:45, and 8:15 over three days, convert each to 8.5, 7.75, 8.25, then sum to 24.5 hours. That's easier than adding times manually.

Frequently Asked Questions

Why does my result show 6:00 instead of 6.0?

Because the cell is still formatted as time. Select the cell, go to Format Cells (Ctrl+1), and choose “Number” with the desired decimal places.

How do I convert time to decimal minutes or seconds?

Multiply by 1440 (24×60) for minutes, or by 86400 (24×3600) for seconds. For example, 1:30 → 90 minutes, 5400 seconds.

Can I convert a time that includes seconds?

Yes, the same formula works. 1:30:45 multiplied by 24 gives 1.5125 hours (since 45 seconds is 0.0125 hours).

What if my time is in the format “1h 30m”?

That's text, not a time. Use a formula to parse it, or replace “h” with “:” and “m” with “” to make it a time string, then use TIMEVALUE. Example: =TIMEVALUE(SUBSTITUTE(SUBSTITUTE(A1,"h",":"),"m",""))*24.

How do I convert a decimal back to hours and minutes?

Divide the decimal by 24 and format the cell as time. For example, 7.75/24 = 0.3229, which displays as 7:45 when formatted as h:mm.

Does this work in Google Sheets too?

Yes, the same logic applies. Google Sheets also stores times as fractions of a day, so multiplying by 24 works identically.