Free Online Calculator

Time Duration Calculator

Find the exact time between two dates and times in days, hours, minutes and seconds.

Last updated: Free, no sign-up Private — runs in your browser

Quick answer: how to find the time between two date-times

Subtract the start from the end. From 1 March 09:00 to 4 March 17:30 the duration is 3 days, 8 hours and 30 minutes — 80.5 hours in total.

Overview of the Time Duration Calculator

The Time Duration Calculator measures the elapsed time between a start date and time and an end date and time. The result is shown as days, hours, minutes and seconds, as totals in each single unit, and as an approximate calendar span.

It is useful for shift and flight lengths, project time tracking, event schedules, uptime and downtime reports, and billing by the hour. If the two times are in different cities, convert them first with the Time Zone Calculator. To add or subtract a duration from a time use the Time Calculator.

How We Calculate Duration

Each date and time is turned into a number of seconds since a common starting point, and the difference is split back into units.

  1. Convert the start date and time to seconds (date at UTC midnight + time of day), and do the same for the end.
  2. If the end is before the start the two are swapped and the result is shown as a positive duration.
  3. Subtract to get total seconds, then split: days = total ÷ 86,400; hours from the remainder ÷ 3,600; minutes ÷ 60; the rest is seconds.
  4. Totals in hours, minutes and days are the same difference expressed in one unit.
duration = end − start (in seconds)
days = ⌊total ÷ 86,400⌋   hours = ⌊(total mod 86,400) ÷ 3,600⌋
minutes = ⌊(total mod 3,600) ÷ 60⌋   seconds = total mod 60
Worked examples (calculated with this tool)
Start → EndDuration
1 Mar 09:00 → 4 Mar 17:303 days, 8 hours, 30 minutes, 0 seconds
1 Mar 22:00 → 2 Mar 06:30 (overnight)0 days, 8 hours, 30 minutes, 0 seconds
1 Jan 00:00 → 31 Dec 23:59364 days, 23 hours, 59 minutes, 0 seconds
10 May 08:15 → 16:45 (same day)0 days, 8 hours, 30 minutes, 0 seconds

Same Time Zone and Daylight Saving

Both times are treated as being in the same time zone and no daylight-saving shift is applied, so the answer is the plain clock difference. If a daylight-saving change happened between the two moments in your location, the real elapsed time can be one hour more or less — convert to UTC first if that matters.

Time Duration Calculator — Frequently Asked Questions

How do I calculate the time between two dates and times?

Subtract the start from the end. Enter both dates and times and the calculator returns days, hours, minutes and seconds.

How many hours are between two times on different days?

Check the “Total hours” row. For example, 1 March 09:00 to 4 March 17:30 is 80.5 hours.

What if the end time is earlier than the start time?

On the same date that means the end is before the start, so the two are swapped. For an overnight span, give the end the next day's date.

Can I use it for overnight shifts?

Yes — set the end date to the next day. For single shifts the Hours Calculator also handles overnight shifts automatically.

Does it account for daylight saving time?

No. Both times are treated as the same zone with no clock change. Convert to UTC first if a daylight-saving change fell between them.

How do I convert the duration to minutes or seconds?

Read the totals table: total minutes and total seconds are shown with the days-and-hours breakdown.

What is the maximum duration I can calculate?

Any span within years 1 to 9999.

How is this different from the Date Calculator?

This one includes the time of day and gives hours, minutes and seconds; the Date Calculator works with whole dates and gives years, months and days.

Is the “calendar span” exact?

It is the whole years, months and days between the two dates (ignoring the time of day), using calendar months.

Is my data sent anywhere?

No. All calculations run in your browser.

More Free Calculators You May Need

Need a custom calculator or tool on your website?

Our team designs and develops fast, SEO-ready websites and web tools. Tell us what you need.

Call Us WhatsApp

Get a Free Quote

Tell us a bit about your project — we'll get back to you shortly.

8 + 7 =
Call WhatsApp