Skip to content
CalculatorFly

Time Duration Calculator

Enter a start and end time to see how long it is between them. An end time before the start wraps overnight; add dates for spans longer than a day.

Start and end

Start
End
Duration
-

-

-Hours:minutes
-Total minutes
-Decimal hours
-Total seconds

How to use the time duration calculator

Pick a start time and an end time; the duration updates as you type. If the end time is earlier than the start time, the calculator assumes the period runs overnight and crosses midnight once, so 10:00 PM to 6:00 AM is 8 hours. For spans longer than 24 hours, or to be exact about which day each time falls on, tick Include dates and enter both dates.

The formula

Duration = end time − start time. If the result is negative and no dates are given, add 24 hours. Then total minutes = hours × 60 + minutes and decimal hours = total minutes ÷ 60.

Worked example

From 9:15 AM to 5:45 PM: 17:45 − 9:15 = 8 hours 30 minutes. That is 8 × 60 + 30 = 510 minutes, and 510 ÷ 60 = 8.5 decimal hours. Overnight from 10:30 PM to 6:15 AM: 6:15 − 22:30 = −16:15, plus 24:00 = 7 hours 45 minutes, or 7.75 hours.

FAQ

How do I convert minutes to decimal hours?

Divide the minutes by 60. 15 minutes is 0.25 hours, 30 minutes is 0.5, 45 minutes is 0.75 and 20 minutes is about 0.33. Payroll and invoicing systems often want hours in this form.

What if the start and end times are the same?

Without dates the result is 0. For a full 24 hours, tick Include dates and set the end date one day after the start date.

Does it account for daylight saving time?

No. It counts clock time, so on the night the clocks change the real elapsed time is one hour more or less than shown.

Is anything I enter sent anywhere?

No. The calculation runs in your browser with WebAssembly; nothing is uploaded or stored.