Converting time to decimal means expressing a duration like 1 hour 30 minutes as a single decimal number — in this case 1.5 hours, 90 minutes, or 5,400 seconds — rather than as separate hour, minute, and second units. The standard formula is total seconds = (hours × 3,600) + (minutes × 60) + seconds; any decimal time value can then be derived by dividing that total by the seconds-per-unit constant for the target unit (3,600 for hours, 60 for minutes, 1 for seconds). Decimal time is the format most payroll systems, billing platforms, scientific logs, and spreadsheet formulas use because it can be multiplied, summed, and compared with ordinary arithmetic instead of being carried through sexagesimal math. The Time Converter does this for every common time unit at once, so once you enter a value you see it expressed in nanoseconds, microseconds, milliseconds, seconds, minutes, hours, days, weeks, months, and years simultaneously, with the calculations updating live as you type. For practical purposes the conversion is exact for the eight fixed units (nanoseconds through weeks) and uses widely accepted averages for months and years, since calendar months run 28 to 31 days and a single leap-day correction every four years cannot be captured by one fixed constant.

how to convert time to decimal
how to convert time to decimal

What "Converting Time to Decimal" Actually Means

A time value appears in two broad forms. The first is sexagesimal, where a duration is broken into hours, minutes, and seconds — "02:45:30" reads as 2 hours, 45 minutes, and 30 seconds. The second is decimal, where the same duration is written as a single real number in one chosen unit — 2.7583 hours, 165.5 minutes, or 9,930 seconds. Both describe the same span of time; only the notation changes.

The conversion between the two is straightforward arithmetic. Take any hh:mm:ss value and compute total seconds = (hh × 3,600) + (mm × 60) + ss. From that single seconds value you can divide by 3,600 to get decimal hours, by 60 to get decimal minutes, or leave it as 1 to get plain seconds. So 02:45:30 becomes 9,930 seconds, which equals 165.5 minutes and 2.7583 hours. That last figure — 2.7583 — is the decimal-time form most commonly requested by people who search for this topic.

Decimal time is preferred whenever a duration needs to be added, multiplied, averaged, or compared, because ordinary arithmetic on a single number is faster and less error-prone than carrying remainders across three columns. Payroll systems multiply decimal hours by an hourly rate to produce gross pay; spreadsheets SUM decimal hours to produce totals; pace calculators divide distance by decimal hours to produce speed; lab software averages decimal seconds across many trials.

Where You'll Need Decimal Time in Real Life

Five practical situations come up again and again.

  • Timesheets and payroll. Most clock-in/clock-out systems store worked time in decimal hours so a single multiplication gives total pay. A shift from 9:15 to 17:40 is 8 hours 25 minutes, which is 8.4167 decimal hours.
  • Project billing. Consultancies, lawyers, and freelancers bill by the tenth or hundredth of an hour. Converting 1 hour 36 minutes to 1.6 decimal hours is the everyday case.
  • Workout pace and splits. Runners and cyclists convert a 22:30 5K into 4.5 min/km pace, or a 1:45:00 half-marathon into 5.0 min/km, by switching from sexagesimal to decimal minutes.
  • Developer logs and telemetry. Performance traces report request durations in milliseconds or microseconds; converting 250,000 microseconds to 0.25 seconds or to roughly 6.94 × 10⁻⁵ hours is what makes the number human-readable.
  • Spreadsheet formulas. Excel and Google Sheets store times as fractions of a day, so converting a 7:30 shift into 0.3125 days or 7.5 hours is the first step before any arithmetic.

In every case the underlying operation is the same: take one duration, express it as a single decimal number in the unit that fits the next calculation, and move on.

How to Convert Time to Decimal with the Time Converter

The Time Converter handles every case above in a single screen. There is no formula to memorize and no button to press; the results refresh as you type.

  1. Type the number you want to convert into the Value field.
  2. Choose the unit that number is measured in from the From unit dropdown.
  3. Read the equivalent amount in every other unit from the results grid — it recalculates live as you type.
  4. Check the note below the grid: seconds through weeks are exact, while months and years use average lengths (365.25 days per year, 30.4375 days per month).

Worked example. Type 90 and pick minutes from the dropdown. The grid immediately shows 5,400 seconds, 1.5 hours, 0.0625 days, and the equivalent in every other unit. The arithmetic behind that single row is:

90 minutes × 60 seconds/minute = 5,400 seconds 5,400 seconds ÷ 3,600 seconds/hour = 1.5 hours

That is the entire conversion — one multiplication into a base unit, one division into the target unit. The tool runs that two-step calculation against all nine other units in parallel, so the value you see in the seconds row is the canonical total and the value in the years row is that total divided by 31,557,600.

The Exact Unit Constants Behind Each Conversion

Every conversion in the tool rests on one of the constants below. These are the values the interface uses internally, expressed as their exact size in moments.

UnitSeconds (exact)Notes
Nanosecond0.0000000011 / 1,000,000,000 of a second
Microsecond0.0000011 / 1,000,000 of a second
Millisecond0.0011 / 1,000 of a second
Second1SI base unit
Minute60Exact by definition
Hour3,60060 × 60 seconds
Day86,40024 × 3,600 seconds
Week604,8007 × 86,400 seconds
Month (average)2,629,800Year ÷ 12 = 30.4375 days
Year (average)31,557,600365.25 × 86,400 seconds

The general formula the converter applies is value × seconds[from] ÷ seconds[to]. Seconds, minutes, hours, days, weeks, and the three sub-second units are all fixed constants, so those conversions are exact to arbitrary precision. Only months and years use averages, which the next section explains.

Why Months and Years Use Averages, Not Fixed Values

A second, a minute, an hour, a day, and a week all have a single legal or scientific definition, so their conversion constants are unambiguous. A month does not. Calendar months are 28, 29, 30, or 31 days long depending on which month and which year you pick, and a year is 365 days in three out of every four years and 366 in the leap year.

Because no single number is calendar-exact for months or years, the converter uses the widely adopted Julian-year convention: one year = 365.25 days, which averages in one leap day every four years (365 + ¼ = 365.25). almost instantly that is 365.25 × 86,400 = 31,557,600. One month is then that year divided by twelve, giving 30.4375 days or 2,629,800 seconds. The grid marks months and years as averages so you always know a converted month or year is a mean value rather than a specific date range on the calendar.

This convention is the same one used in nearly every scientific and engineering conversion table, so a 5-year project duration reported in the tool will line up with what a calculator spreadsheet, a financial model, or a physics formula gives for the same span.

Time Converter vs Duration Calculator vs Time Zone Converter

Three time-related tools solve three different questions, and it is worth knowing which is which before you click.

QuestionRight toolWhat it does
How many hours is 90 minutes?Time ConverterRescales one quantity from one unit to another
How long is it from 9:15 to 17:40?Duration CalculatorMeasures elapsed time between two specific clock times or dates
What time is 3 PM in New York in Tokyo?Time Zone ConverterShifts one moment between regions, DST-aware

The Time Converter only rescales a single quantity — it never reads a clock or looks at a calendar, so it cannot tell you what time it will be in three hours or how many hours remain until Friday. For those questions, the duration calculator or the time zone converter is the right pick. For pure unit-to-unit conversion across the ten units listed above, the Time Converter is the fastest answer.

Everything in the tool is computed locally in your browser with plain arithmetic. No data is uploaded, no account is required, and there is no server round trip involved, so the page also works offline once it has loaded.

If you're weighing options, How to Change Time Zone for Any City covers this in detail.

If you're weighing options, Calculate Timesheet Hours in Excel: Formulas and a Shortcut covers this in detail.