Time Duration Calculator
Calculate the difference between two times in hours, minutes, and seconds
💡 Calculation Steps
How to Use the Time Duration Calculator
Our free time duration calculator helps you find the exact interval between two times of day. Here is how to use it:
- Select the Start Time — Enter the time when the event or shift started.
- Select the End Time — Enter the ending time.
- Click “Calculate Duration” — The tool will calculate the difference in standard hours and minutes, decimal hours, and total minutes.
The calculator automatically handles overnight shifts (e.g., if you start at 9:00 PM and end at 5:00 AM the next day).
Converting Time to Decimal Hours
In payroll and billing software, hours and minutes must be converted to decimal hours to calculate wages accurately. The formula is:
Decimal Hours = Hours + (Minutes ÷ 60)
For example, if you worked 8 hours and 15 minutes:
Decimal Hours = 8 + (15 ÷ 60) = 8 + 0.25 = 8.25 hours
Practical Calculation Examples
Example 1: Freelancer Hourly Billing
You started working at 10:15 AM and finished at 3:45 PM. Duration: 5 hours and 30 minutes, which is 5.50 decimal hours. At a rate of $50/hr, your invoice total is 5.50 × $50 = $275.
Example 2: Night Shift Duration
A security guard starts a shift at 9:30 PM and finishes at 6:00 AM the next day. Since the end time is numerically earlier, the calculator adds 24 hours to the end time to yield a duration of 8 hours and 30 minutes (8.50 decimal hours).
Example 3: Workout Session Track
Gym session start: 5:45 PM. End: 7:10 PM. Total duration: 1 hour and 25 minutes, which is 85 minutes.
Frequently Asked Questions
Does the calculator handle 12-hour (AM/PM) and 24-hour formats?
Yes, standard HTML time inputs support your system’s locale format. You can easily select AM/PM or use 24-hour military time formats, and the browser will pass the correct time to the calculator.
How do I calculate overtime using time duration?
First, calculate the total daily duration using this calculator. Sum the durations across your work week. Any hours exceeding the standard work week threshold (typically 40 hours in the US) are classified as overtime.
What is the difference between time duration and date difference?
Time duration focuses on hours and minutes within a day (or crossing a single overnight period). Date difference calculations span days, weeks, months, or years. If your calculation covers multiple days, use our Date Difference Calculator.
