Time

Time Duration Calculator

How long is it, exactly — down to the second? Enter a start and an end date and time to get the exact duration in days, hours, minutes and seconds — or add and subtract a duration from any date.

Duration between the dates

The times you enter are read as local times on your device. The calculator does not convert between timezones, and daylight-saving changes inside the range are not adjusted for.

Days

2

Hours

8

Minutes

30

Seconds

0

Total hours

56.5

Total minutes

3,390

Total seconds

203,400

Broken down

2 Days, 8 Hours, 30 Minutes, 0 Seconds — days, hours, minutes and seconds — the same duration, shown three ways.

Add or subtract a duration

Result: 2026-01-03 09:00

Duration between the dates

The breakdown (2 days, 8 hours, 30 minutes) is the easiest form to read; the totals (56.5 hours, 3,390 minutes, 203,400 seconds) are the same length expressed in a single unit, which is what you want for billing hours, countdowns or scheduling. The add/subtract result is the date and time you land on after moving forward or backward by the amount you entered.

Add or subtract a duration

The times you enter are read as local times on your device. The calculator does not convert between timezones, and daylight-saving changes inside the range are not adjusted for.

Broken down

days, hours, minutes and seconds — the same duration, shown three ways.

Formula: Duration between two date-times

Duration = End date-time − Start date-time

Both date-times are converted to timestamps (milliseconds since 1 January 1970), subtracted, and the difference is split into days (÷ 86,400,000 ms), hours (÷ 3,600,000 ms), minutes (÷ 60,000 ms) and seconds (÷ 1,000 ms).

Source: standard date-time arithmetic — the difference of two Unix timestamps — as used by every programming language’s date library.

Worked example

From 1 January 2026 at 09:00 to 3 January 2026 at 17:30. The difference is 2 days, 8 hours and 30 minutes. That is 56.5 total hours, 3,390 total minutes and 203,400 total seconds. Adding 2 days to 1 January 2026 at 09:00 gives 3 January 2026 at 09:00.

What the result means

The breakdown (2 days, 8 hours, 30 minutes) is the easiest form to read; the totals (56.5 hours, 3,390 minutes, 203,400 seconds) are the same length expressed in a single unit, which is what you want for billing hours, countdowns or scheduling. The add/subtract result is the date and time you land on after moving forward or backward by the amount you entered.

Limitations

  • Times are treated as local times on your device — no timezone conversion is done, so the same two clock times in different timezones give the same answer.
  • Daylight-saving changes inside the range are not adjusted for; a range that crosses a clock change can be off by one hour.
  • Leap seconds are ignored, as they are in almost all date libraries.
  • The result is only as accurate as the date-times you type — a wrong start time gives a wrong duration.

How to use the time duration calculator

  1. Enter the start and end

    Pick the start date and time, then the end date and time. The duration updates instantly.

  2. Read the breakdown and totals

    See the duration split into days, hours, minutes and seconds — plus the same length as total hours, minutes and seconds.

  3. Add or subtract a duration (optional)

    Pick a starting date, an amount, a unit and Add or Subtract to find the date and time you land on.

If the end is before the start, the tool says so instead of giving a confusing negative answer — swap the two dates around.

Frequently asked questions

Embed this calculator on your site

Paste this snippet into any page to embed the calculator:

Please keep the attribution link — embeds help keep this tool free.

Additional Details

Name
Time Duration Calculator
Description
Find the exact time between two dates in days, hours, minutes and seconds. 100% free online tool, no signup required.
Price
$0 (Free)

Related tools

Need a custom tool?

We build calculators and internal tools for businesses — get in touch.

Directory last updated 2 December 2026.

Honesty note: This calculator counts plain elapsed time between the local date-times you enter — it does not convert timezones and does not adjust for daylight-saving clock changes, so a range crossing a clock change can be off by one hour. Leap seconds are ignored, as in almost all date libraries.