Time Duration Calculator

Find the elapsed time between a start and end time in hours, minutes and decimal hours.

Start time

End time

If the end time is earlier than the start, 24 hours are added (overnight).
Duration
8.5hours

8h 30m

Hours

8

Minutes

30

Decimal hours

8.5

Total minutes

510

Formula
duration = endTime − startTime (if negative, add 24 hours for an overnight span)
Examples
InputResult
09:00 to 17:308h 30m = 8.5 hours
22:00 to 06:00 (overnight)8h 0m = 8.0 hours

About this calculator

The time duration calculator measures how much time passes between a start time and an end time. Enter both in 24-hour HH:MM format. The result is shown in hours and minutes, as a decimal number of hours, and as a total number of minutes.

If the end time is earlier than the start time, the calculator assumes the span crosses midnight and adds 24 hours, which is convenient for overnight shifts or events that run past midnight. For pay calculations that also subtract breaks, use the Work Hours Calculator.

Frequently asked questions

If the end time is earlier than the start time, it assumes the end is on the following day and adds 24 hours, so 22:00 to 06:00 returns 8 hours.

Decimal hours expresses the duration as a single number, so 8 hours 30 minutes becomes 8.5 hours. It is useful for timesheets and billing.

Use 24-hour HH:MM, for example 13:45. The time picker on your device will format this automatically.

Did this calculator help you?