Time Duration Calculator

This calculator answers the question of how long it is from one clock time to another. Enter a start and an end time, take off a break if there was one, and see the duration in hours and minutes, in decimal hours and in total minutes. It handles shifts that run past midnight, and if you add dates it also handles spans that last several days.

How to use the Time Duration Calculator

  1. Enter the start time and the end time in 24-hour format, for example 09:15 and 17:40.
  2. Enter any break in minutes. It is subtracted from the total.
  3. For a span longer than a day, open the dates box and fill in both dates as YYYY-MM-DD.
  4. Read the duration in hours and minutes, the decimal hours and the total minutes.

How the span is counted

The tool converts each time to minutes after midnight and subtracts. From 09:15 to 17:40 is 8 hours 25 minutes, which is 505 minutes. Take off a 45 minute break and 460 minutes remain: 7 hours 40 minutes, or 7.67 in decimal hours.

When you leave both dates blank, an end that is earlier than the start is taken to be on the next day. From 22:30 to 06:15 the span is 1 hour 30 minutes to midnight plus 6 hours 15 minutes, which is 7 hours 45 minutes. Equal times count as zero here, not as a full day.

Spans over several days

With dates, the calculator counts whole days between the two dates and then adds the difference between the times. From 2027-03-01 at 12:00 to 2027-03-03 at 18:30 is 2 days 6 hours 30 minutes, which is 54.5 hours. Leap days are counted from the calendar.

The result is clock time. If a daylight saving change falls inside your span, the real elapsed time can be an hour longer or shorter than shown, so use a time zone aware tool for those cases.

Frequently asked questions

How do I calculate hours between 9:15 and 17:40?

Subtract the start from the end: 17:40 minus 09:15 is 8 hours 25 minutes. Subtract any unpaid break from that.

What if the shift goes past midnight?

Leave the dates blank and enter the later time as the end. An end earlier than the start is counted as the next day.

Why does it say the break is longer than the span?

The break you entered is more than the time between start and end, which would give a negative duration. Check the break or the times.

Does it adjust for daylight saving?

No. It uses clock time only. Across a clock change the elapsed time can differ by an hour.

Can I get the answer as decimal hours?

Yes. The decimal hours row is the duration divided by 60, for example 7 hours 40 minutes is 7.67.