Calculator Tool

Time Duration Calculator

Find the duration between two clock times in hours, minutes, and seconds - overnight spans included.

If the end time is earlier than the start time, the duration crosses midnight into the next day.

Duration-
Hours, minutes, seconds: -
Decimal hours: -
Total minutes: -
Total seconds: -
Enter a start and end time to measure the gap between them.

Quick Guide

  1. Step 1: Enter the first clock time, for example 09:00
  2. Step 2: Enter the second clock time, for example 17:30
  3. Step 3: Click Calculate Duration to see the result
  4. Step 4: Read the hours, minutes, seconds, and decimal hours

Example: Enter 09:00 as the start time and 17:30 as the end time - the result is 8h 30m, which is 8.5 decimal hours and 510 total minutes.

What is Time Duration Calculator?

Time Duration Calculator finds how much time passes between two times of the day. Enter a start time and an end time and it reports the span in hours, minutes, and seconds, plus decimal hours for quick arithmetic. When the end time falls before the start time, the calculator understands that the period runs past midnight and counts into the next day. See also: the date and time duration calculator for spans with full dates, or the time calculator to add or subtract a duration.

How It Works

Both times are converted to seconds from midnight, and the difference is taken. A negative difference means the end time comes earlier on the clock, so 86,400 seconds (one full day) is added to produce the overnight duration. The seconds total is then split back into hours, minutes, and seconds and divided by 3,600 for the decimal-hours figure. Everything runs locally the moment you press the button.

Use Cases

Frequently Asked Questions

What does the Time Duration Calculator measure?

It measures the span between two clock times of the day and reports the result in hours, minutes, and seconds, plus decimal hours. If the end time is earlier than the start time, the duration automatically runs past midnight into the next day.

How do I calculate a duration that crosses midnight?

Enter the times exactly as they appear on the clock, for example 22:30 as the start and 07:15 as the end. Because the end time is earlier than the start time, the calculator adds a full day and reports the overnight span, which in that example is 8 hours and 45 minutes.

Is the Time Duration Calculator free and private?

Yes - it is completely free with no account required. The calculation runs entirely in your browser, so your inputs never leave your device.

What happens if a field is empty or invalid?

A validation message appears instead of a result - for example, the calculator asks for both a start and an end time, or for clock times within hours 0-23, minutes 0-59, and seconds 0-59. Correct the field and press Calculate Duration again.

Related Tools

Date & Time Duration Calculator

Calculate exact elapsed time between a start date/time and an end date/time across days, months, and years.

Time Calculator

Add or subtract days, hours, minutes, and seconds with clear validation messages.

Date Difference Calculator

Calculate exact days, months, and years between two dates.