How to Convert Times to Decimal in Excel

Excel already knows your times as decimals - just not the decimals you want. This guide explains how Excel stores time, the one formula that converts it, and the format traps that make correct formulas look wrong.

By Johnson Ramzan · Updated November 9, 2026

Open the Decimal Hours Converter

Home / Guides / Decimal in Excel

Every timesheet spreadsheet eventually hits the same wall: the hours are sitting right there in the cells, looking like 7:45, and the pay calculation refuses to treat them as 7.75. The fix is one multiplication - but understanding why it works will save you from the four or five ways this conversion usually goes wrong, including the one where the formula is correct and the answer still displays as a time of day.

How Excel stores time: fractions of a day

Excel does not store a time as hours and minutes. It stores one number: the fraction of a 24-hour day that has passed. Midnight is 0. Noon is 0.5. A time of 7:45 is stored as 0.3229, because 7 hours 45 minutes is 0.3229 of a full day. The cell displays "7:45" only because its number format translates the fraction for your eyes. This is why the conversion formula is what it is: to turn a fraction of a day into hours, you multiply by the 24 hours in the day. 0.3229 times 24 is 7.75 - decimal hours, ready for a pay rate. Once you see that Excel times are day-fractions, every formula in this guide becomes obvious, and so does every error.

The formula, and the format that must go with it

If cell A1 holds 7:45, the conversion is:

=A1*24

Then format the result cell as a Number with two decimal places. The formatting step is not decoration - skip it and the result cell tends to inherit a time format, which displays the value's fractional part, 0.75 of a day, as a time of day: your correct 7.75 shows up on screen as 18:00. This single trap accounts for most "the formula does not work" complaints. The formula worked; the costume is wrong.

The alternative formula shows its working and some people find it easier to trust: =HOUR(A1)+MINUTE(A1)/60. HOUR pulls out the 7, MINUTE pulls out the 45, and 45 divided by 60 is the familiar 0.75, giving 7.75. If your times include seconds, add +SECOND(A1)/3600. And if you want payroll-style rounding built in, wrap the short version: =ROUND(A1*24,2).

Cell valueStored fraction=A1*24Decimal hours
6:300.27086.506.50
7:450.32297.757.75
8:370.35908.628.62
9:120.38339.209.20

Check the third row against the manual method: 37 minutes divided by 60 is 0.6167, so 8:37 is 8.62 decimal hours. Excel's route and the hand route agree, as they must - they are the same conversion wearing different clothes. For a single time with no spreadsheet open, the decimal hours converter does the same job in one step.

A laptop screen showing analytics charts and graphs - How to Convert Times to Decimal in Excel
Excel stores 7:45 as 0.3229 of a day - multiply by 24 and it becomes the 7.75 payroll needs.

Converting shifts, not just times

Real timesheets hold pairs: a clock-in and a clock-out. The duration between them is a subtraction, and the result is still a day-fraction, so the same multiplication finishes it: =(B2-A2)*24 gives the day's decimal hours directly. With an unpaid break of 30 minutes, subtract it as time: =(B2-A2-TIME(0,30,0))*24. Build one row per day, convert each day on its own row, and sum the decimal column for the week - that mirrors payroll's day-by-day method and keeps the overtime split easy: regular hours are the first 40 of the weekly sum, the rest is overtime. If a shift crosses midnight, add 1 to the subtraction when the out time is earlier than the in time: =(B2-A2+(B2<A2))*24. And if you are building the whole sheet from scratch, the time calculator on our home page is a handy way to spot-check any row's total before you trust the formulas.

The errors that show up most

Four classics. First, the missing multiplication: a cell showing 0.32 for a 7:45 shift means someone displayed the raw stored fraction - multiply by 24. Second, the wrapped total: a week total that reads 6:00 when you worked 30 hours is a time-of-day format wrapping past 24; change the format to [h]:mm to display 30:00, or multiply by 24 to get 30.00 decimal. Third, the TEXT trap: formulas like =TEXT(A1,"h.00") produce text that looks like a decimal but cannot be summed or multiplied - if your totals are zero or erroring, check for TEXT in the chain. Fourth, negative durations showing as #####: a break longer than the span, or an out time before the in time without the midnight fix, produces a negative value Excel cannot display as a time. Each of these looks like broken math, and each is actually a format or structure issue - the underlying conversion, minutes divided by 60 scaled through the day-fraction, never changes.

What about Google Sheets?

Almost everything in this guide transfers directly. Google Sheets stores times as fractions of a day in exactly the same way, so =A1*24 converts, =(B2-A2)*24 durations work, and dividing by 24 converts back. The two practical differences are formatting and habit: Sheets is quicker to leave a result in a time format, so the check-the-format advice matters even more, and its duration format counts past 24 hours without needing the bracket syntax Excel uses. If a shared sheet will be opened in both programs, prefer the explicit formulas - =HOUR(A1)+MINUTE(A1)/60 reads clearly to anyone auditing it later, in either application. And for a one-off conversion with no sheet open at all, the decimal hours converter remains the fastest route.

Frequently asked questions

Why does my Excel conversion show 0.32 instead of 7.75?

Because Excel stores 7:45 as a fraction of a day - 0.3229 - and you are looking at the stored value, not the converted one. Multiply the cell by 24 and format the result as a number, and 0.3229 becomes 7.75. The multiply-by-24 step is the conversion; without it there is no conversion.

What is the exact formula to convert time to decimal hours in Excel?

=A1*24, with the result formatted as a number with two decimal places. An alternative that shows its working is =HOUR(A1)+MINUTE(A1)/60, which rebuilds the decimal from the parts. Both give 7.75 for a cell containing 7:45; the first is shorter, the second is easier to audit.

How do I convert a whole week of shifts in Excel?

Put clock-in in one column and clock-out in the next, then use =(B2-A2)*24 on each row to get that day's decimal hours directly, subtracting any unpaid break in hours first. Sum the decimal column for the week. Converting each day separately matches how payroll does it and keeps overtime splits visible.

Why does my weekly total show 6:00 when I worked 30 hours?

The total cell is formatted as a time of day, and time-of-day formats wrap at 24 hours, so 30 hours displays as 6:00. Either change the format to [h]:mm, which counts past 24, or convert the total to decimal hours by multiplying by 24. The underlying value was right all along - only the display wrapped.

How do I convert decimal hours back to a time in Excel?

Divide by 24 and format the cell as time. =A1/24 turns 7.75 into a value that displays as 7:45. This is the exact reverse of the multiply-by-24 conversion, because Excel times are fractions of a day in both directions.

About the author
Johnson Ramzan builds and maintains every calculator on Time Calculator Tools himself, and he tests each one against worked examples he has done by hand before it is allowed near a reader. His guides follow US Department of Labor guidance on hours worked, overtime and rounding, and he writes them the way he would want a payslip explained to him: plain English, real numbers, and no step skipped. When a reader writes in with a shift pattern the tools handle badly, fixing it goes to the top of his list.
Last updated: November 9, 2026

Related guides

How to Convert Minutes to Decimal Hours - The Full Guide

The same conversion by hand: minutes divided by 60, the anchors worth memorizing, and fair rounding.

Read the guide

How to Convert Hours and Minutes to Decimal for Payroll

How payroll applies the conversion across a full week - breaks first, per-day rounding, and the split at 40 hours.

Read the guide

How to Convert a Full Timesheet to Decimal Hours

A complete timesheet taken from clock times to decimal totals, with every row checked two ways.

Read the guide

Decimal Conversion Mistakes That Shrink Your Pay

The spreadsheet and typing errors that quietly remove minutes from a paycheck, and how to catch each one.

Read the guide