Start Free Trial

Free Time Duration Calculator: How to Calculate Time Duration

Free time duration calculator how to calculate time duration

Whether you are tracking employee hours, billing a client, or simply figuring out how long a meeting ran, knowing how to calculate time duration is a fundamental skill for anyone managing time and work. This guide explains the math behind time duration calculations and gives you a free calculator to do it instantly.

Free Time Duration Calculator

Enter a start time and end time to calculate the duration between them.

Please enter valid times in the format H:MM or HH:MM
0h 0m
total duration
0.00 decimal hours

What Is Time Duration?

Time duration is the amount of time that passes between a start point and an end point. It is measured in hours and minutes, or converted to decimal hours for payroll and billing purposes. Calculating time duration accurately is essential for tracking employee work hours, billing clients for services rendered, scheduling shifts, and measuring how long tasks or projects take to complete.

The calculation sounds simple but becomes complicated quickly when AM and PM are involved, when shifts cross midnight, or when you need to convert the result into a decimal format that payroll software can process.

How to Calculate Time Duration

The most reliable method for calculating time duration is to convert both times to a 24-hour format, perform the subtraction, and then convert the result back to hours and minutes if needed.

Step 1: Convert to 24-hour format

Convert both your start and end times to 24-hour format to eliminate AM and PM confusion. For PM times, add 12 to the hour unless the time is already 12:00 PM. For 12:00 AM, use 0:00.

12-hour time24-hour time
12:00 AM0:00
8:00 AM8:00
12:00 PM12:00
1:30 PM13:30
5:45 PM17:45
11:00 PM23:00

Step 2: Subtract start from end

Subtract the start time from the end time. Work with the hours and minutes separately. If the minutes in the start time are larger than the minutes in the end time, borrow an hour from the end time's hours and add 60 minutes.

Example: Start 8:45 AM, End 5:15 PM. In 24-hour format that is 8:45 and 17:15. Subtracting gives 8 hours and 30 minutes.

Step 3: Account for overnight shifts

If your end time is earlier than your start time because the shift crosses midnight, add 24 hours to the end time before subtracting. A shift starting at 10:00 PM and ending at 6:00 AM spans 8 hours. In 24-hour format that is 22:00 to 6:00. Adding 24 hours to the end gives 30:00 minus 22:00 equals 8 hours.

Step 4: Convert to decimal hours

To convert hours and minutes to decimal hours, divide the minutes by 60 and add to the whole hours. This is the format most payroll systems and billing tools require.

Hours and minutesDecimal hours
1 hour 15 minutes1.25
1 hour 30 minutes1.50
1 hour 45 minutes1.75
2 hours 20 minutes2.33
7 hours 30 minutes7.50
8 hours 45 minutes8.75

Why Accurate Time Duration Calculations Matter

Errors in time duration calculations have real consequences. In payroll, a miscalculation of 15 minutes per employee per day adds up to over 60 hours of pay errors per employee per year. For a business with 20 employees earning $20 per hour, that is $24,000 in annual payroll mistakes from rounding alone.

For billing, inaccurate time tracking means either undercharging clients or overcharging them. Both outcomes damage your business. Undercharging erodes margins. Overcharging damages client relationships and can result in disputes that take far longer to resolve than the original billing error.

The most common time duration mistakes are forgetting to account for AM and PM when the start and end times cross noon, errors when a shift crosses midnight, and forgetting to subtract unpaid break time from the total duration.

Time Duration for Payroll

Payroll processing requires time duration in decimal hours rather than hours and minutes. Most payroll providers including Gusto, ADP, and Paychex process hours in decimal format. A shift of 8 hours and 30 minutes must be entered as 8.50 hours, not 8:30.

When calculating time duration for payroll, always subtract any unpaid break time from the total duration before converting to decimal. An employee who worked from 9:00 AM to 5:30 PM with a 30-minute unpaid lunch worked 8 hours, not 8.5 hours. The calculator above handles this automatically when you enter your times.

If you are calculating time duration for multiple employees regularly, time tracking software eliminates the manual calculation entirely. Updoot's employee time clock records every clock-in and clock-out automatically, calculates daily and weekly durations, accounts for breaks, and exports payroll-ready decimal hours with one click.

Time Duration for Billing and Client Work

Service businesses, freelancers, and contractors need accurate time duration calculations to bill clients fairly and maintain clear records. The standard approach is to track start and end times for each work session, calculate the duration, convert to decimal hours, and multiply by your hourly rate.

For example, a consultant who worked from 10:30 AM to 2:15 PM on a client project worked 3 hours and 45 minutes, which equals 3.75 decimal hours. At a rate of $150 per hour, the billable amount for that session is $562.50.

Accurate billing records also protect you in disputes. If a client questions an invoice, having precise time duration records with start and end times is far more defensible than estimates or approximate hours.

Frequently Asked Questions About Time Duration

How do you calculate time duration between two times?
Convert both times to 24-hour format, subtract the start time from the end time, then convert the result back to hours and minutes. If the end time is earlier than the start time, add 24 hours to account for crossing midnight.
How do you calculate time duration in hours and minutes?
Subtract the start time from the end time to get the total minutes. Divide by 60 to get the whole hours, and the remainder is the leftover minutes. For example, 150 minutes equals 2 hours and 30 minutes.
How do you calculate time duration for payroll?
Calculate the total minutes worked, subtract any unpaid breaks, then convert to decimal hours by dividing by 60. Multiply the decimal hours by the hourly pay rate to calculate gross pay.
How do you convert time duration to decimal hours?
Divide the total minutes by 60 to get decimal hours. For example, 1 hour and 45 minutes equals 1.75 decimal hours because 45 divided by 60 equals 0.75.
What is the easiest way to calculate time duration?
The easiest way is to use a free online time duration calculator. Enter your start time and end time, select AM or PM, and the calculator instantly shows the total hours and minutes between the two times.
How do you calculate time duration that crosses midnight?
Add 24 hours to the end time before subtracting. For example, a shift from 10:00 PM to 6:00 AM spans 8 hours, calculated as 30:00 minus 22:00 equals 8 hours.

Track Time Duration Automatically

Stop calculating manually. Updoot tracks employee clock-in and clock-out times automatically, calculates duration, subtracts breaks, and generates payroll-ready reports in one click.

Start Free Today