home / Other / time duration calculator

Time Duration Calculator

The Time Duration Calculator is a free online tool that measures the exact elapsed time between two dates and times, down to the second, and expresses it in every unit from years to seconds. It handles spans crossing midnight and multiple days. No sign-up needed.

Modify the values and click the Calculate button to use.

HH:MM or 9:00 am
HH:MM or 5:30 pm

Related: Time Calculator | Day Counter Calculator | Hours Calculator

Measuring an Exact Span

A duration between two moments is a subtraction of timestamps. The difficulty is not the arithmetic but the mixed-radix units on either side: dates run in months of unequal length, and times run in base 60.

The reliable method is to convert both moments to a single count — seconds since a reference — subtract, then convert the result back into days, hours, minutes and seconds. That is what this calculator does, which is why it handles spans crossing midnight, month ends and leap days without special cases.

Duration Unit Conversions

UnitSecondsMinutesHoursDays
1 minute6010.01670.000694
1 hour3,6006010.0417
1 day86,4001,440241
1 week604,80010,0801687
1 month (avg)2,629,74643,829730.530.44
1 year (avg)31,556,952525,9498,765.8365.2425

Duration Versus Calendar Difference

These answer different questions and frequently disagree.

 DurationCalendar difference
MeasuresElapsed time, exactlyHow the date labels changed
1 Jan 23:00 to 2 Jan 01:002 hours1 day
31 Jan to 1 MarExact hours elapsed"1 month 1 day"
Affected by month lengthNoYes

Use duration for anything measured — work, travel, cooking, machine runtime. Use calendar difference for anything described — age, notice periods, anniversaries.

Time Formats

The calculator accepts both conventions:

24-hour12-hourMeaning
00:0012:00 amMidnight
09:009:00 amMorning
12:0012:00 pmNoon
17:305:30 pmLate afternoon
23:5911:59 pmOne minute to midnight

Midnight and noon are the two points people reliably get wrong. Ante meridiem means before midday, so 12:00 am is midnight and 12:00 pm is noon — which is why aviation, medicine and the military use the 24-hour clock exclusively.

Daylight Saving and Time Zones

This calculator works in plain local clock time and does not adjust for daylight saving transitions. On the day clocks move forward, the calendar day is 23 hours; when they move back, 25. A span crossing a transition therefore differs from the wall-clock arithmetic by an hour.

For durations that must be exact across a transition — flight times, shift payroll, service level agreements — work in UTC, which has no transitions, and convert only for display.

Leap Seconds

Atomic time and the Earth's rotation drift apart, and 27 leap seconds have been inserted since 1972 to keep them aligned. The practice is scheduled to be abandoned by 2035 because the irregular extra second causes more trouble for computer systems than the drift it corrects. Civil timekeeping, including this calculator, ignores them.

Frequently Asked Questions

Can the span cross midnight?

Yes. Because both a date and a time are entered for each end, spans of any length are handled directly.

What if the end is before the start?

The magnitude is reported and the reversal is noted, rather than returning a negative duration.

Why is my result an hour out?

Almost certainly a daylight saving transition inside the span. Clock arithmetic and elapsed time differ by one hour across those days.

How do I get decimal hours for billing?

The hours row gives the decimal figure directly — 2 hours 30 minutes appears as 2.5 hours, which is what payroll and invoicing systems expect.