Find your calculator

Use arrow keys, Enter to open, Escape to close.

Browse the full directory
Date & Time / Free online tool

Time Duration Calculator

Calculate elapsed hours and minutes, including overnight periods.

Your inputs

Use d, h, m and s; only + and − operators.
One interval per line, up to 100. Use 24-hour times or AM/PM. Earlier end times count overnight.
More options & settings
Try a worked example

22:00 to 06:00 the next day is 8 hours.

Calculated in your browser. Your inputs stay on this device.

Starting values are examples. First click or keyboard focus clears an example so you can enter yours. Reset restores the examples.

Your result

Enter your values to calculate.

Compare scenarios

Keep up to three results and their inputs during this visit. Reset clears the comparison.

Behind the answer

Duration = end minutes − start minutes + overnight adjustment

How to use this calculator

Compare clock times, compare UTC timestamps, add or subtract duration expressions, or shift a UTC timestamp. Clock inputs accept AM/PM and optional seconds. Duration expressions are parsed as units, never evaluated as code. Multiple intervals are added as entered, including overlaps. Each row can deduct its own break. The separate break setting is deducted once from the combined total.

  1. Enter time task, start time, end time and review the remaining options.
  2. Select Calculate or change a value to update the result. Read the result label and units before copying.
  3. Use Reset to restore the worked starting values.

Formula and method

Duration = end minutes − start minutes + overnight adjustment

Clock mode uses wall-clock time. UTC date/time modes are elapsed UTC arithmetic; no local timezone or daylight-saving ambiguity is inferred.

Worked example

09:00 to 17:30 is 8 hours 30 minutes.

Questions about time duration calculator

How do I calculate a duration across midnight?

Enter the later evening start and earlier morning end. The automatic option treats the end as next day: 22:00 to 06:00 is 8 hours. Select Always next day when that is the intended interval. Daylight saving shifts are not included.

What assumptions should I check?

Clock mode uses wall-clock time. UTC date/time modes are elapsed UTC arithmetic; no local timezone or daylight-saving ambiguity is inferred.

Are my inputs saved?

Calculations run in your browser. We store only tool IDs for favorites and recent tools. A calculation link contains your inputs only when you explicitly choose to copy one.