Time Duration Calculator

Hours and minutes between two times.

Loading calculator…

How long is it from 9:15 am to 5:40 pm? Or from 10 pm to 6:30 am? This time duration calculator gives the time between two clock times in hours and minutes, and also in decimal hours, total minutes and seconds. It handles times that cross midnight, and you can take off a break in minutes.

Quick answer: to find the time between two times, subtract the start time from the end time. From 9:15 to 17:40 is 8 hours 25 minutes, or 8.42 decimal hours. If the end time is earlier than the start, it is on the next day, so add 24 hours.

How to Use the Time Duration Calculator

  1. Enter the start time.
  2. Enter the end time.
  3. Enter a break in minutes, if you want one taken off.
  4. Read the duration, decimal hours, minutes and seconds.

If the end time is earlier than the start time, the calculator assumes it is the next day and tells you.

Time Duration Examples

StartEndBreakDurationDecimal hours
9:1517:40None8 h 25 min8.42
9:1517:4030 min7 h 55 min7.92
22:006:30None8 h 30 min (overnight)8.50

How to Calculate Time Between Two Times by Hand

  1. Convert both times to minutes after midnight. 9:15 = 9 × 60 + 15 = 555. 17:40 = 17 × 60 + 40 = 1,060.
  2. Subtract. 1,060 − 555 = 505 minutes.
  3. If the answer is negative, the end is on the next day, so add 1,440 (the minutes in a day).
  4. Take off any break.
  5. Convert back. 505 ÷ 60 = 8 hours, remainder 25 minutes.

Converting Minutes to Decimal Hours

Payroll and timesheet systems often use decimal hours. Divide the minutes by 60:

MinutesDecimal
100.17
150.25
200.33
300.50
450.75
500.83

So 8 hours 25 minutes is 8 + 25 ÷ 60 = 8.42 hours, not 8.25. Writing 8:25 as 8.25 is one of the most common timesheet mistakes.

12-Hour and 24-Hour Times

The time boxes follow your device’s settings, so you may see AM and PM or the 24-hour clock. Both work the same way. 5:40 PM is 17:40.

Related Time Tools

Time Duration FAQs

How do I calculate hours between two times?

Subtract the start time from the end time. If you are working by hand, convert both to minutes first, then divide the difference by 60.

How does the calculator handle overnight times?

If the end time is earlier than the start time, it adds 24 hours, so 22:00 to 06:30 gives 8 hours 30 minutes.

Can it handle more than 24 hours?

No. It measures the time between two clock times, which is always under 24 hours. For longer periods, use the days between dates calculator.

Does it adjust for daylight saving time?

No. On the night the clocks change, an overnight shift is one hour longer or shorter than the result shows.

How we checked this page: every duration in the table was worked out by hand in minutes and matches the calculator.

Scroll to Top