Time Duration Calculator

Calculate the exact duration between two times or dates in hours, minutes, and seconds.

Enter Your Times

Quick Examples
Quick Examples

Your Duration

Total Duration
Days
Hours
Minutes
Seconds
Detailed Duration
Total Hours
Total Minutes
Total Seconds

Enter your start and end times to calculate the duration.

How to Use the Time Duration Calculator

  1. Select whether you want to calculate a time-only duration or a date-and-time duration.
  2. Enter the starting time or date and time.
  3. Enter the ending time or date and time.
  4. Click Calculate Duration or let the calculator update automatically.
  5. Review the duration in days, hours, minutes, and seconds.
  6. Use Copy Results if you want to save or share the result.

What Is a Time Duration Calculator?

A time duration calculator determines the amount of time between two specified times or dates. It can quickly show the result in days, hours, minutes, and seconds.

It can be useful for:

  • Work hours and shifts
  • Study sessions
  • Travel planning
  • Project tracking
  • Event planning
  • Time tracking and scheduling

Time Duration Formula

Duration = End Time − Start Time

For date/time calculations: Duration = End Date/Time − Start Date/Time

Duration can be expressed as days, hours, minutes, seconds, total hours, total minutes, or total seconds.

Time Duration Examples

Example 1 9:00 AM → 5:00 PM
Duration: 8 hours
Example 2 8:30 AM → 12:45 PM
Duration: 4 hours 15 minutes
Example 3 11:00 PM → 2:00 AM
Duration: 3 hours
Example 4 Jan 1, 2026 10:00 AM → Jan 3, 2026 2:30 PM
Duration: 2 days 4 hours 30 minutes

When Can You Use a Time Duration Calculator?

Work Hours

Calculate how long a work shift lasted or determine the time between clock-in and clock-out.

Study Time

Measure the length of a study or learning session.

Travel

Calculate the duration between departure and arrival times.

Events

Determine how long an event lasted from its starting time to its ending time.

Projects

Measure the time between project milestones or other important activities.

Your calculations are performed in your browser. No time or date information is sent to our servers.

Frequently Asked Questions

A time duration calculator finds the amount of time between two entered times or date-and-time values and presents the result in useful units such as days, hours, minutes, and seconds.
Enter the start and end times in Time Duration mode. The calculator subtracts the starting time from the ending time and displays the duration in several useful formats.
Yes. In Time Duration mode, if the ending time is earlier than the starting time, it is treated as occurring on the following day. For example, 10:00 PM to 2:00 AM is calculated as 4 hours.
Yes. Select Date & Time mode and enter both dates and times. The calculator can handle durations spanning days, months, and years.
Yes. Date calculations use JavaScript date handling rather than hard-coded month lengths, so leap years and different month lengths are handled automatically.
Yes. Every valid calculation provides total hours, total minutes, and total seconds in addition to the human-readable duration.
Yes. Enter the beginning and ending times of a work shift to calculate the total duration. Overnight shifts are supported in Time Duration mode.
No. The calculations are performed locally in your browser. The tool does not send your entered time or date information to a server.