Time Duration Calculator
Calculate the exact duration between two times in hours, minutes and seconds with this free online Time Duration Calculator.
Time Duration Calculator
Enter a start time and an end time, then select Calculate to find the elapsed duration between them.
Enter the time when the period begins.
Enter the time when the period ends.
If the end time is earlier than the start time, the calculator treats the end time as occurring on the following day and calculates the duration across midnight.
What Is a Time Duration Calculator?
A Time Duration Calculator determines the amount of elapsed time between a starting time and an ending time. Instead of manually subtracting hours, minutes and seconds, the calculator performs the calculation automatically and presents the result in an easy-to-read format.
A time duration calculator can be useful for measuring work shifts, meetings, appointments, travel periods, activities, tasks, events and other situations where you need to know exactly how much time has passed between two points.
Why Use Time Duration Calculator?
This calculator makes it quick to determine the elapsed time between two times while also providing the equivalent total number of minutes and seconds.
Instant Calculation
Calculate the duration between two times immediately without manually working through time arithmetic.
Precise Time Input
Enter start and end times using the browser's native time controls, including hours, minutes and seconds.
Hours, Minutes and Seconds
See the calculated duration in a clear hours, minutes and seconds format.
Overnight Durations
Calculate durations that cross midnight when the ending time occurs on the following day.
Total Minutes and Seconds
Review the same duration as a total number of minutes and a total number of seconds.
Private Browser Calculation
The calculation is performed directly in your browser, so your entered times do not need to be uploaded to a server.
How to Use Time Duration Calculator
Use the calculator to find the elapsed time between any two times in a 24-hour period.
- Enter the start time — Select or enter the time when the duration begins.
- Enter the end time — Select or enter the time when the duration ends.
- Click Calculate — The calculator compares the two times and determines the elapsed duration.
- Review the result — See the duration in hours, minutes and seconds, together with the total number of minutes and seconds.
How to Calculate Time Duration Between Two Times
To calculate a time duration, subtract the starting time from the ending time. For example, a period beginning at 09:00 and ending at 17:00 has a duration of 8 hours. The calculator performs this subtraction automatically and converts the result into hours, minutes and seconds.
For durations that cross midnight, the following day is used for the ending time. For example, a period beginning at 22:00 and ending at 02:00 represents 4 hours rather than a negative duration. This makes the calculator useful for overnight shifts, travel and other activities that continue past midnight.
Time Duration in Hours, Minutes and Seconds
Time durations are commonly expressed as hours, minutes and seconds. Sixty seconds make one minute and 60 minutes make one hour. The calculator displays the duration using these conventional units while also providing total minutes and total seconds for situations where a single unit is more useful.
Calculating Work and Activity Durations
A time duration calculator can help measure how long a meeting lasted, how many hours were spent on a task, the length of an appointment, the duration of a journey or the elapsed time between other daily activities. It can also be useful when checking schedules and comparing planned and actual durations.
Understanding Time Duration Calculations
This calculator works with time-of-day values and calculates the elapsed duration between the selected start and end times. If both times are identical, the duration is zero. If the end time occurs later on the same day, the difference is calculated normally.
When the end time is earlier than the start time, the calculator assumes that the end time occurs after midnight on the following day. For example, 23:30 to 01:30 is treated as a two-hour duration.
The calculator performs its calculations entirely in your browser and does not require external libraries. It does not depend on your current date or time, and the selected times are not transmitted to a server by the calculator itself.
James William Steven Parker
Creator & Developer of YesTools
James William Steven Parker is a web developer and technology professional with extensive experience in web development, web design, SEO, web hosting, systems analysis and cybersecurity. He created YesTools to provide fast, practical and free online tools for everyday tasks and technical work.
Learn more about James and YesToolsFrequently Asked Questions
Explore More Free Tools
Explore the YesTools collection of free online tools, calculators, converters, generators and utilities.
Browse All Categories

