Skip to main content

Time Duration Calculator

Calculate the time between two times or dates, including overnight shifts and breaks, or add and subtract durations. Results in hours and minutes and decimal hours.

Time Duration Calculator

Find the hours between two times, or add and subtract durations.

Leave the dates blank for same-day times. If the end time is earlier than the start time, it counts as the next day (an overnight shift).

Time Between (after a 30-minute break)

8h 00m

Decimal Hours

8.00

Total Minutes

480

Entering this on a timesheet? Why 7:45 is not 7.45 hours
View all articles

How to Calculate the Time Between Two Times

To find the duration between a start time and an end time, convert both to minutes after midnight, subtract the start from the end, and convert back to hours and minutes. For example, 9:00 AM is 540 minutes and 5:30 PM is 1,050 minutes, so the time between them is 1,050 − 540 = 510 minutes, or 8 hours 30 minutes.

If the end time is earlier than the start time, the period crosses midnight: add 24 hours (1,440 minutes) before subtracting. A shift from 10:00 PM to 6:30 AM is (390 + 1,440) − 1,320 = 510 minutes, also 8 hours 30 minutes. For periods that span several days, enter a start date and an end date and the calculator counts the full days in between.

Subtracting an Unpaid Break

For timesheets, subtract any unpaid break after finding the time between clock-in and clock-out. In the example above, a 30-minute lunch leaves 8 hours of paid time, which is 8.00 decimal hours. Payroll systems usually want that decimal figure: 7 hours 45 minutes is 7.75 hours, not 7.45.

How to Add and Subtract Time Durations

Adding time isn't the same as adding regular numbers. Because there are 60 seconds in a minute and 60 minutes in an hour, you need to convert everything to a common unit first — seconds — before performing arithmetic, then convert back to the HH:MM:SS format you can read easily.

This calculator handles that conversion for you automatically. The "Add Times" mode sums any number of time values, while the "Subtract Times" mode takes a start time and subtracts a duration from it, making it straightforward to find elapsed time or back-calculate when something started.

Common Use Cases

  • Working out hours between clock-in and clock-out for a timesheet
  • Totalling up hours worked across multiple tasks or shifts
  • Adding video or audio clip lengths to find total runtime
  • Calculating how long a meeting or event ran
  • Finding a start time by subtracting a known duration from an end time
  • Summing lap times in sport or fitness tracking

Decimal Hours vs HH:MM:SS

The calculator shows results in both formats. HH:MM:SS is human-readable and easy to verify at a glance, while decimal hours (e.g. 1.5 for 1 hour 30 minutes) are needed when multiplying by an hourly rate to calculate pay, or when entering time into spreadsheets and payroll systems that expect a decimal.

  • 1:30:00 = 1.5 decimal hours
  • 0:45:00 = 0.75 decimal hours
  • 2:15:30 ≈ 2.2583 decimal hours

Frequently Asked Questions

Can I add more than two time values?

Yes. In the "Add Times" mode you can add as many rows as you need using the "Add Row" button. There is no hard limit on the number of entries.

What happens if the subtraction result is negative?

If the duration you subtract is longer than the start time, the result will be negative, shown with a minus sign. This can happen when working across midnight, for example. In that case, the negative value represents how far past midnight the result falls.

How do I convert the result to pay?

Multiply the decimal hours value by your hourly rate. For example, 7.5 decimal hours at $20/hour = $150.00. Most payroll systems also accept time in decimal format directly.

Related Calculators

Weeks Pregnant Calculator

Business Days Countdown

Age Calculator