Time Duration Calculator

Calculate the time between a start time and an end time in hours, minutes, and seconds. Use it for work hours, study sessions, events, breaks, and overnight time intervals.

Calculate Time Duration

Enter the starting and ending times. For an interval that crosses midnight, select the overnight option.

When the interval begins.

When the interval finishes.

What Is a Time Duration Calculator?

A time duration calculator finds the elapsed time between two clock times. It converts the interval into hours, minutes, and seconds, helping you understand how long an activity lasted without manually subtracting the times.

This calculator is useful for tracking work shifts, measuring study time, calculating event lengths, planning activities, and checking time intervals that cross midnight.

How to Calculate Time Duration

  1. Enter the time when the activity starts.
  2. Enter the time when the activity ends.
  3. If the end time is on the following day, enable the overnight option.
  4. Select whether seconds should appear in the breakdown.
  5. Click Calculate Duration to view the result.

Time Duration Formula

The calculator converts each time into seconds after midnight and subtracts the starting value from the ending value. For an overnight interval, one full day is added to the ending time.

Duration = End time − Start time
Overnight duration = End time + 24 hours − Start time

The total number of seconds is then converted into hours, minutes, and remaining seconds. Decimal hours are calculated by dividing the total seconds by 3,600.

Example Calculation

Suppose a work session starts at 9:00 AM and ends at 5:30 PM on the same day.

Start time: 09:00
End time: 17:30
Duration: 8 hours 30 minutes
Total minutes: 510
Decimal hours: 8.5

For an overnight example, a period from 10:00 PM to 6:00 AM the next day lasts 8 hours when the overnight option is enabled.

Common questions about Time Duration Calculator

How do I calculate hours and minutes between two times?

Enter the start and end times, then select Calculate Duration. The result shows the elapsed time in hours, minutes, seconds, total minutes, total seconds, and decimal hours.

Can I calculate time that crosses midnight?

Yes. Enable the overnight calculation option when the end time falls on the next day. For example, 10:00 PM to 6:00 AM is 8 hours.

How do I convert a duration into decimal hours?

Divide the total number of minutes by 60, or divide the total number of seconds by 3,600. For example, 2 hours 30 minutes equals 2.5 hours.

Does the calculator include break time?

No. The result is the elapsed time between the entered times. To find net working time, subtract unpaid breaks from the calculated duration separately.

Can I calculate a duration of zero?

Yes. If the start and end times are identical and overnight mode is disabled, the elapsed duration is zero.

Is this time duration calculator free?

Yes. The calculator runs in your browser and does not require an account or payment.

Explore other free calculators on MohakTools.

About the Time Duration Calculator

The Time Duration Calculator measures the interval between two clock times and returns it in hours and minutes, with a decimal form for timesheets and billing.

It handles the awkward case of a period that crosses midnight: a shift from 22:00 to 06:00 is eight hours, not minus sixteen. The calculation rolls the end time into the next day when it is earlier than the start.

For billing, the decimal form is the useful one. Eight hours and thirty minutes is 8.5 hours, and multiplying that by an hourly rate is what an invoice needs.