All calculators

Time Duration Calculator

Calculate the elapsed duration between two dates and times. See days, hours, minutes, total hours, and total minutes, including multi-day spans.

Start and end

Enter both dates and times. Seconds are optional.

Start and end date and time
Start
End

Duration

--
Total hours--
Total minutes--
Total seconds--

Enter a start and end date and time to calculate the duration.

Wall-clock and timezone assumptions

This calculator compares the date and time values you enter as wall-clock values. It does not convert between time zones or adjust the result for daylight-saving changes.

How date and time duration is calculated

Enter both dates and times. Results update automatically. Seconds are optional; when omitted, they are zero. If the endpoints are reversed, use Swap start and end or correct the entries.

Duration = end date and time - start date and time

The calculator counts calendar days and the time within each day using integer seconds. Dividing by 86,400 gives whole days; the remainder gives hours, minutes, and any seconds. Month lengths and leap years are included.

Multi-day durations

The dates determine how many days pass. Three days is 72 hours; 10 days 12 hours is 252 hours. The result uses days rather than months or years, whose lengths vary.

Total hours vs days, hours, and minutes

2d 4h 45m is 52.75 total hours, or 3,165 minutes. Total hours are already decimal hours; they do not wrap at 24. If seconds are entered, total minutes may include a fraction.

Hours use two to four decimal places. Smaller fractions are rounded only for display; the duration and total seconds remain exact. For standalone conversion between hours/minutes and decimal hours, use the Decimal Hours Calculator.

Worked examples

Oct 5, 2026, 9:00 AM to 5:30 PM
0d 8h 30m, 8.50 total hours, 510 minutes.
Oct 5, 2026, 10:00 PM to Oct 6, 2026, 6:30 AM
0d 8h 30m, 8.50 total hours, 510 minutes.
Oct 5, 2026, 9:30 AM to Oct 7, 2026, 2:15 PM
2d 4h 45m, 52.75 total hours, 3,165 minutes.
Dec 31, 2026, 11:00 PM to Jan 1, 2027, 1:30 AM
0d 2h 30m, 2.50 total hours, 150 minutes.
Identical start and end date and time
0d 0h 0m, 0.00 total hours, 0 minutes.

Frequently asked questions

How do I calculate duration between two dates and times?

Enter a complete start date and time and a complete end date and time. The end must be on or after the start. Identical endpoints are valid and give zero.

Can the duration be longer than 24 hours?

Yes. The entered dates make longer intervals explicit. For example, Oct 1 at midnight to Oct 2 at midnight is exactly one day, or 24 hours. The end date is not counted as an extra full day.

What if the end date and time is before the start?

A validation message appears without a negative result. Swap start and end reverses both dates and both times exactly as entered. Nothing is swapped automatically.

Does this calculator account for daylight saving time?

No. March 7, 2026 at noon to March 8, 2026 at noon is 24 wall-clock hours, even where a clock change makes the actual elapsed interval 23 hours.

Does it convert time zones?

No. No timezone offset is applied to the values entered. This result is not an instant-to-instant comparison across different time zones.

How is this different from Hours Calculator?

This tool compares complete dates and times, including multi-day intervals. The Hours Calculator compares two clock times without dates for a same-day or overnight interval.