Time Duration Calculator

Find how long it is between two clock times—or two datetimes. Results show as hours and minutes, total minutes, and total seconds. Overnight spans are detected automatically. Separate panels add or subtract durations. No pay estimate and no weekly punch grid.

Elapsed time only | Not a timesheet | Runs in your browser

Time Duration Calculator

Leave dates blank for same-day or simple overnight clock math. Use dates when the span covers a known calendar day change.

Add durations

Sum: 6 hours 15 minutes

Subtract durations

Difference: 6 hours 45 minutes

Duration result

Elapsed time
8 hours 30 minutes
Total minutes
510
Total seconds
30600

Duration between the two times.

Building a payroll week instead? Start with the time card calculator or the timesheet calculator. Need decimal hours for a software field? Use the decimal hours calculator.

How to calculate duration between two times

Turn each clock time into minutes past midnight, subtract start from end, then split the difference back into hours and minutes. Example baked into the tool: 09:15 to 17:45 → 510 minutes → 8 hours 30 minutes (30,600 seconds).

This page answers “how long from A to B?” It does not ask for a week of labor, unpaid lunch columns, or an hourly rate. Those belong on the time card calculator, the work hours calculator, or the timesheet calculator.

Optional dates pin the span to a calendar. Without dates, the tool still handles a single overnight wrap when the end clock is earlier than the start clock.

Durations that cross midnight

Midnight algorithm: If the end clock is earlier than the start clock on the same calendar day (or when dates are blank), add 24 hours to the end before subtracting. The result stays positive, and the page shows Calculated overnight / across midnight.

Second sentence of the rule: identical start and end produce exactly 0 minutes—no error banner and no negative duration. Example overnight: 22:30 to next-morning 06:15 → 7 hours 45 minutes (465 minutes).

Three practical examples

  1. Night shift: 22:30 → 06:15 = 7 hours 45 minutes (overnight flag on).
  2. Flight length: 13:10 → 16:55 = 3 hours 45 minutes (same-day span).
  3. Meeting length: 09:00 → 09:50 = 50 minutes; a follow-up from 10:00 → 10:30 is 30 minutes—add them in the Add durations panel for 1 hour 20 minutes total agenda time.

Adding and subtracting time

Use the Add durations panel when you have two elapsed blocks and need one total. Default sample: 3 hours 50 minutes + 2 hours 25 minutes = 6 hours 15 minutes. Use Subtract when you need remaining time after taking a break out of a block (floors at zero so you never see a negative span).

Adding durations is not the same as totaling a time card week. A week of start/end rows with unpaid breaks lives on the work hours and time card pages. This panel only combines pure durations.

Common durations reference table

Quick checks for 15, 30, 45, and 90 minute blocks and a few full-shift spans.

StartEndDurationTotal minutes
09:0009:150 hours 15 minutes15
09:0009:300 hours 30 minutes30
09:0009:450 hours 45 minutes45
09:0010:301 hours 30 minutes90
09:1517:458 hours 30 minutes510
22:3006:157 hours 45 minutes465
09:1509:150 hours 0 minutes0

FAQ

How do I find the hours between two times?

Convert both times to minutes past midnight, subtract start from end, then convert the difference back to hours and minutes. If end is earlier than start, add 24 hours first so overnight spans stay positive.

What if my shift crosses midnight?

Enter the evening start and the morning end. When end is earlier on the clock than start, this calculator treats the span as overnight and shows Calculated overnight / across midnight. Example: 22:30 to 06:15 is 7 hours 45 minutes.

Can the duration be zero?

Yes. Identical start and end times produce 0 minutes. That is a valid result, not an error, and the tool does not show a negative value.

How is this different from a work hours calculator?

Duration answers how long from time A to time B. A work hours or time card tool totals a payroll week with breaks and optional pay. Use this page for elapsed time; use the work hours or time card pages when you care about a week of labor.

Can I add two durations together?

Yes. Use the Add durations panel. Example: 3 hours 50 minutes plus 2 hours 25 minutes equals 6 hours 15 minutes. The Subtract panel removes one duration from another without going below zero.

Does this convert to decimal hours?

The main result is hours and minutes plus total minutes and seconds. For a minutes-to-decimal conversion table aimed at payroll fields, open the decimal hours calculator on this site.