Skip to content

Time Duration Calculator: Hours and Minutes

A time duration calculator: hours and minutes between two times, even across midnight, plus a mode to add or subtract time from a clock time.

Calculate
Clock

Set from your language and region; change it any time.

Start time

End time

Earlier than the start? It counts as the next day.

Duration

8 hours 30 minutesfrom 9:15 AM to 5:45 PM
Decimal hours
8.5 h
Total minutes
510
Crosses midnight
No

How to use the Time Duration Calculator

  1. Choose “Time between two times” or “Add or subtract time”.
  2. The clock follows your region (12-hour or 24-hour); switch it if you prefer the other.
  3. For a duration, pick the start and end times. An end time earlier than the start counts as the next day.
  4. To shift a time, pick the start time, choose Add or Subtract and enter the hours and minutes.
  5. Read the result in hours and minutes, decimal hours and total minutes.

Formula

Duration = end − start (+ 24 h if the end is earlier than the start)

Where:

start, end
Clock times, converted to minutes after midnight: 5:45 PM = 17 × 60 + 45 = 1,065
+ 24 h
Added when the end time is earlier than the start time, because the end is on the next day
Decimal hours
Total minutes ÷ 60: 8 hours 30 minutes = 510 ÷ 60 = 8.5 hours
New time
(start ± change) on a 24-hour clock; every 24 hours moves the result one day

Clock times only: daylight saving changes are not applied, so on the night clocks change the real elapsed time is one hour more or less.

Worked example

A shift starts at 9:15 AM and ends at 5:45 PM. How long is it?

  1. On a 24-hour clock the times are 09:15 and 17:45.
  2. Minutes: 45 − 15 = 30. Hours: 17 − 9 = 8.
  3. Duration: 8 hours 30 minutes, or 510 minutes.
  4. Decimal hours for a timesheet: 510 ÷ 60 = 8.5 hours.

The shift is 8 hours 30 minutes long, which is 8.5 hours.

How to calculate the hours between two times

Turn each time into minutes after midnight: 5:45 PM is 17 × 60 + 45 = 1,065 minutes. Subtract the start from the end, then split the result back into hours and minutes. The tool shows the answer three ways: hours and minutes, decimal hours and total minutes, plus whether the period crosses midnight.

The clock follows your browser's language and region, 12-hour with AM and PM or 24-hour, and you can switch at any time; the arithmetic is the same. On a 12-hour clock, 12:00 AM is midnight and 12:00 PM is noon, so a shift from 12:00 PM to 8:00 PM is 8 hours, while from 12:00 AM it would be 20. Times are in whole minutes; seconds are not used.

Overnight shifts and times past midnight

When the end time is earlier than the start, the tool reads the end as the next day and adds 24 hours. A night shift from 10:30 PM to 6:15 AM is 1 hour 30 minutes to midnight plus 6 hours 15 minutes after it: 7 hours 45 minutes, or 7.75 hours. Treating it as 6:15 − 10:30 would give a negative number, which is the most common mistake.

Durations run from 0 to 23 hours 59 minutes; equal start and end times give 0. A period longer than a day needs the date as well, which the date difference page handles in days.

Clock times carry no date or time zone, so daylight saving changes are not applied. On the night clocks go forward, an overnight shift is one hour shorter in real time; on the night they go back, one hour longer.

Subtracting a lunch break

There is no break field, so take the break off in a second step. A day from 8:00 AM to 4:30 PM measures 8 hours 30 minutes; minus a 30-minute unpaid lunch it is 8 hours paid. If you prefer to let the tool do it, use "Add or subtract time" to move the end time back by the break (4:30 PM minus 30 minutes is 4:00 PM), then measure 8:00 AM to 4:00 PM. Over five such days that is 40 hours, and at $22.50 an hour the week pays $900.

Minutes to decimal hours for timesheets

Payroll and invoicing systems usually want decimal hours. Divide the minutes by 60 and add them to the hours. The common values, rounded to two places:

MinutesDecimal hoursMinutesDecimal hours
50.08300.50
100.17400.67
150.25450.75
200.33500.83
250.42550.92

Copying the minutes as decimals is a costly slip: 7 hours 45 minutes is 7.75 hours, not 7.45, and 8:30 is 8.5, not 8.3.

A weekly total

The tool measures one span at a time, so add the days yourself, in minutes. Say a week runs 8 h 30 min, 7 h 45 min, 9 h 10 min, 8 h 00 min and 6 h 50 min. In minutes that is 510 + 465 + 550 + 480 + 410 = 2,415, which is 40 hours 15 minutes, or 40.25 hours. At $22.50 an hour, 40.25 × 22.50 = $905.625, about $905.63 depending on your payroll's rounding rule.

Adding and subtracting times

The second mode moves a clock time forward or back by any number of hours and minutes, and every full 24 hours shifts the day:

  • 9:40 PM plus 5 hours 35 minutes is 3:15 AM the next day.
  • To arrive by 1:20 AM after a 3 hour 45 minute drive, leave by 9:35 PM the previous day.
  • A flight leaving at 2:15 PM that takes 7 hours 50 minutes lands at 10:05 PM by the departure city's clock; convert to the arrival time zone separately.
  • 10:00 AM plus 50 hours is 12:00 PM two days later.

In Excel or Google Sheets

With start and end times in A2 and B2, =(B2-A2)*24 gives decimal hours. For shifts past midnight use =MOD(B2-A2,1)*24, and to take off a break stored as a time in C2, =(MOD(B2-A2,1)-C2)*24.

Assumptions

Clock times in whole minutes, without dates or time zones. Results are hours, not pay: multiply decimal hours by your rate yourself, or see the salary page for pay conversions. The page address keeps the times and options, so a shared link shows the same result.

Frequently asked questions

How do I calculate the hours between two times?

Convert both times to a 24-hour clock, subtract the start from the end, and borrow 60 minutes from the hours if the minutes go negative. From 9:15 AM to 5:45 PM: 17:45 − 09:15 = 8 hours 30 minutes. The tool does this for you, including shifts that run past midnight, where the end time is read as the next day.

How do I convert minutes to decimal hours?

Divide the minutes by 60 and add them to the hours: 7 hours 45 minutes = 7 + 45 ÷ 60 = 7.75 hours. Useful values are 15 minutes = 0.25, 20 minutes ≈ 0.33, 30 minutes = 0.5 and 45 minutes = 0.75. Payroll and timesheet systems use decimal hours, so do not type 7 hours 45 minutes as 7.45.

How do I calculate a time duration with a break?

Measure the span from start to finish, then subtract the break. From 8:00 AM to 4:30 PM is 8 hours 30 minutes; with a 30-minute unpaid lunch, 8 hours are worked. There is no separate break field, but you can move the end time back by the break in the add or subtract mode and measure again.

How do I calculate hours worked per week?

Work out each day's hours, convert them to minutes, add them up and divide by 60. A week of 8 h 30 min, 7 h 45 min, 9 h 10 min, 8 h and 6 h 50 min is 2,415 minutes, or 40 hours 15 minutes (40.25 hours). Subtract unpaid breaks from each day before adding.

How do I calculate hours worked and pay?

Convert the hours to decimal first, then multiply by the hourly rate. 7 hours 45 minutes at $20 an hour pays 7.75 × 20 = $155, not 7.45 × 20. For a 40.25-hour week at $22.50, the pay is $905.625, which payroll rounds to about $905.63. Overtime rules and taxes are not included.

How do I calculate hours worked in Excel?

Enter start and end as times, then multiply the difference by 24: with the start in A2 and the end in B2, =(B2-A2)*24 gives decimal hours. For shifts that cross midnight, use =MOD(B2-A2,1)*24. To subtract a break stored as a time in C2, use =(MOD(B2-A2,1)-C2)*24. Google Sheets accepts the same formulas.

Last updated: