easyonlinecalculator

Time Duration Calculator

Enter a start date and time and an end date and time, with seconds if you need them, to get the exact time that passed between them. It is the precise-elapsed-time tool: the answer is shown as days, hours, minutes and seconds, and as total seconds, minutes, hours and days. For work shifts with an unpaid break, use the hours calculator.

Last updated November 4, 2026

Hours, minutes and optional seconds

Result

1 day, 8 hours, 30 minutes, 30 seconds

Time duration calculator results
MeasureValue
Total seconds117,030
Total minutes (decimal)1,950.5
Total hours (decimal)32.508
Total days (decimal)1.355

Wall-clock arithmetic: every day counts as 24 hours, with no time zones or daylight saving changes.

Show the work

Formula: elapsed seconds = (end date + end time) - (start date + start time)

  1. Start: Jan 1, 2026 09:00:00. End: Jan 2, 2026 17:30:30.
  2. Express both as seconds on one timeline and subtract: 117,030 seconds.
  3. Divide by 86,400: 1 whole day, leaving 30,630 seconds.
  4. Divide the rest by 3,600 and then 60: 8 hours, 30 minutes, 30 seconds.
  5. Decimals: 117,030 ÷ 60 = 1,950.5 minutes; ÷ 3,600 = 32.508 hours; ÷ 86,400 = 1.355 days.

Result: 1 day, 8 hours, 30 minutes, 30 seconds

How elapsed time is calculated

Formula

elapsed seconds = (end date + end time) - (start date + start time)

Each date and time is placed on one continuous timeline, counted in seconds. Subtracting the start from the end gives the elapsed seconds, which works across midnight, month ends and leap days without any special cases.

The total is then split by dividing by 86,400 for whole days, by 3,600 for hours and by 60 for minutes, keeping each remainder. Decimal hours are the total seconds divided by 3,600, and decimal days are the total divided by 86,400, rounded to four places.

See how we calculate for the formulas, sources and review schedule behind every calculator.

Wall-clock time, no time zones

This tool treats both times as plain clock readings on a calendar where every day has exactly 24 hours. It does not apply time zones or daylight saving changes, so a clock change inside your range is not added or removed. If your two times are in different places, convert them to one zone first with the time zone converter.

Choose the hours calculator when you are timing a shift: it subtracts an unpaid break and reports hours and minutes. Choose this page for exact elapsed time to the second, or for totals in seconds and minutes. To count only calendar days, use the date difference calculator.

How to use the Time Duration Calculator

  1. Enter the start date and start time, with seconds if needed.
  2. Enter the end date and end time. The end must be after the start.
  3. Read the days, hours and minutes, then the total hours, minutes, seconds and decimal days.
  4. Use Show the work to see each step, then Copy, Print or Share.

Worked example

Worked example

From 1 January 2026 at 09:00:00 to 2 January 2026 at 17:30:30 is 24 hours plus 8 hours 30 minutes 30 seconds. In seconds that is 117,030, which is 1 day, 8 hours, 30 minutes and 30 seconds, or about 32.5083 hours.

Sample start and end times and the elapsed time
StartEndElapsedTotal hours
2026-01-01 09:00:002026-01-02 17:30:301 d 8 h 30 m 30 s32.5083
2028-02-28 23:002028-03-01 01:001 d 2 h 0 m26
2027-02-28 23:002027-03-01 01:000 d 2 h 0 m2
2026-03-10 08:152026-03-10 09:450 d 1 h 30 m1.5

Frequently asked questions

What happens if the end is before the start?

The calculator shows the message "End must be after start." instead of a result. Swap the two entries to measure the gap the other way round.

Does it account for daylight saving time?

No. Every day is counted as exactly 24 hours, so a clock change between your dates is ignored. Use the time zone converter when zones or clock changes matter.

How is this different from the hours calculator?

The hours calculator is built for shifts: it takes an unpaid break off and works in whole minutes. This page accepts seconds, ignores breaks, and adds total seconds and decimal minutes.

Does the calculator handle leap days?

Yes. From 28 February 2028 at 23:00 to 1 March 2028 at 01:00 is 26 hours, because 29 February 2028 exists. In 2027 the same span is 2 hours.