Free online formula calculators

Time Duration Calculator

Enter a start time and an end time to find the elapsed hours and minutes, subtracting any break and handling shifts that run past midnight.

Time Duration Calculator
h (0–23)
min
h (0–23)
min
min
Result
Duration8 h 00 min
Decimal hours8.00
Total minutes480
Crosses midnightNo

Link to this calculation

Formula

Duration = end time − start time − break
If the end is earlier than the start, 24 hours are added (overnight)
SymbolMeaning
start, endClock times in 24-hour format
breakUnpaid break in minutes

How to Use This Calculator

  1. Enter the Start hour (h (0–23)).
  2. Enter the Start minute (min).
  3. Enter the End hour (h (0–23)).
  4. Enter the End minute (min).
  5. Enter the Break (min). Unpaid break to subtract; leave 0 for none.
  6. Press Calculate. Results also update automatically as you type.

Worked Example

Using the values pre-filled in the calculator above:

Inputs
Start hour8 h (0–23)
Start minute45 min
End hour17 h (0–23)
End minute15 min
Break30 min
Results
Duration8 h 00 min
Decimal hours8.00
Total minutes480
Crosses midnightNo

About This Calculation

This calculator finds the elapsed time between two clock times, which is the everyday task behind timesheets, shift planning, parking charges and billing for services by the hour. Times are entered in 24-hour format, so 2:30 pm is hour 14, minute 30. If the end time is earlier than the start time, the calculator assumes the period runs past midnight into the next day, as with a night shift from 22:00 to 06:00.

The result is given both in hours and minutes and in decimal hours. Payroll systems usually need decimal hours, and converting incorrectly is a frequent source of pay errors: 7 hours 45 minutes is 7.75 hours, not 7.45. To work out pay, multiply the decimal hours by the hourly rate.

Subtract unpaid breaks in the break field. Whether breaks are paid, and the minimum breaks required, depend on local employment law and your contract. The calculator handles periods of up to 24 hours; for spans across several days, count the days with the days between dates calculator and add the clock-time difference. Daylight-saving changes during an overnight shift can make the real elapsed time an hour more or less than the clock suggests.

Frequently Asked Questions

How do I convert minutes to decimal hours?
Divide the minutes by 60. For example, 45 minutes is 0.75 hours and 20 minutes is about 0.33 hours.
How do I enter a shift that ends after midnight?
Just enter the real end time, such as 6:00. Because it is earlier than the start time, the calculator adds 24 hours automatically.

Category: Everyday Life & Time. Found a problem with this calculator? Let us know.