Time Duration Calculator

Find the time between two moments, down to the second. Use times alone or include dates for intervals spanning multiple days.

Start Time
End Time

If the end time is earlier than the start time, it is treated as the next day. Identical times give zero duration.

The time between 8:30:00 AM and 5:30:00 PM is:

9 hours, 0 minute, and 0 second

9 hours

540 minutes

32,400 seconds

What is a time duration calculator?

A time duration calculator measures the interval between a start and an end time. Use it to check the length of a work shift, a study session, an event or a journey. The time-only mode handles one day or an overnight interval; Time Between Two Dates also accepts calendar dates for longer periods.

How to enter AM and PM

Enter an hour from 1 to 12, then minutes and seconds from 0 to 59. Select AM for times before noon and PM for times after noon. In the 12-hour system, 12:00 AM is midnight and 12:00 PM is noon. For example, 8:30:00 AM to 5:30:00 PM is 9 hours, or 540 minutes.

How the duration is calculated

Each time is converted to seconds after midnight: hours × 3,600 + minutes × 60 + seconds. The start is then subtracted from the end. In time-only mode, an earlier end time adds one day to the interval. In date mode, the calendar-day difference is included, and an end before the start is rejected.

Equivalent totals use 60 seconds per minute, 3,600 seconds per hour and 86,400 seconds per day. For example, Nov. 3, 2026 at 8:30 AM to Nov. 4, 2026 at 5:30 PM is 1 day and 9 hours: 1.375 days, 33 hours, 1,980 minutes or 118,800 seconds.

Both entries use the same calendar clock. The calculation treats every day as 24 hours and does not adjust for time zones, daylight-saving changes or leap seconds. Fractional totals are shown to up to nine decimal places.