Time Duration Calculator

Calculate the total duration between two times. Get the result in hours, minutes, and seconds. Works for same-day and overnight durations.

Part of our Date & Time Calculators collection.

Time Duration Calculator

Free online calculator

Results update automatically as you type

How to Use This Calculator

  1. 1

    Enter the start time.

  2. 2

    Enter the end time.

  3. 3

    See the total duration in hours and minutes.

How Duration is Calculated

Duration = End Time − Start Time

Converted to hours and minutes. Overnight durations (end time before start time) automatically add 24 hours.

Example Calculation

Example: 9:00 AM to 5:30 PM

Inputs

startTime: 9:00 AMendTime: 5:30 PM

Result

8 hours 30 minutes

From 9:00 AM to 5:30 PM = 8.5 hours = 8 hours 30 minutes.

Frequently Asked Questions

Does this work for overnight durations?
Yes — if the end time is before the start time, the calculator assumes the end time is the following day.

Last updated: