Home › Date & Time › Time Duration Calculator

Time Duration Calculator

Find the time between two times, or two dates and times, in hours, minutes and seconds.

If the end time is earlier than the start time, it is counted as the next day, such as a night shift.

minutes

Time duration

-

As hh:mm:ss-
Total hours-
Total minutes-
Total seconds-
Total days-

Dates and times are read as clock times, so daylight saving changes are not counted. If you need that, check the real elapsed time with your local rules.

What is a time duration calculator?

A time duration calculator tells you how much time passes between a start and an end. Use it to work out hours worked on a shift, the length of a meeting, a journey time, a study session, or the gap between two moments on different days. It shows the answer in days, hours, minutes and seconds, and also as totals such as decimal hours that are handy for timesheets and pay.

Two ways to use it

  • Between two times: enter only a start time and an end time. If the end is earlier than the start, the calculator treats it as the next day, so 10:00 pm to 6:00 am gives 8 hours.
  • Between two dates and times: enter the full date and time for both. Use this for gaps longer than a day, such as a flight, a project or a rental period.

The formula

Duration = end time − start time
Convert: 1 day = 24 hours = 1,440 minutes = 86,400 seconds

Example

A shift runs from 9:00 am to 5:30 pm with a 30-minute break. The time between is 8 hours 30 minutes. After the break, the working time is 8 hours, which is 8.0 decimal hours. A night shift from 10:00 pm to 6:30 am is 8 hours 30 minutes.

Minutes to decimal hours

Many payroll systems use decimal hours. Divide the minutes by 60. So 15 minutes is 0.25 hours, 30 minutes is 0.5 hours, and 45 minutes is 0.75 hours. The "Total hours" line gives this for you, so 8 hours 20 minutes shows as 8.3333 hours.

Good to know

  • The breaks box lets you take away lunch or rest time from the total.
  • Times use the 24-hour clock in the box, but your browser may show am and pm. 5:30 pm is 17:30.
  • The calculator reads dates and times as clock times, so it does not adjust for daylight saving changes.
  • For gaps counted in whole days, months and years, try the Date Difference Calculator. To count only working days, use the Working Days Calculator.

Related tools: Days Until Calculator, Age Calculator and Add or Subtract Days Calculator.

Need another calculator?

Browse all calculators
Scroll to Top