freecalctools

Time Duration Calculator

Calculate exact time differences between dates and times, subtract breaks, and view detailed breakdowns in hours, minutes, and seconds.

Calculation History

Label / Note Start & End Time Break Net Duration
No time calculations made yet.

Time Duration Calculator Online

Quickly calculate duration in hours, minutes, seconds and days between a starting and ending date. This free online time duration calculator can be used to calculate duration of work shifts, driving times overnight, studying times and task durations. It can calculate 12 hour time format (AM/PM) as well as 24 hour time format.

What Is a Time Duration Calculator?

Calculating time differences can be done using a time difference calculator. As time is measured in units of 60 (60 seconds in a minute, 60 minutes in one hour) and there are 24 hours in a day, it is common to make a mistake when calculating the difference between two times manually. This often happens with times that cross over into different AM/PM periods or overnight.

People regularly use an online time duration calculator for:

Work Shifts & Timesheets: Calculating exact employee hours worked, including overnight night shifts that cross midnight.

Travel, Flights & Road Trips: Determining total trip duration between departure and arrival times across the day.

Study & Productivity Tracking: Measuring focused study blocks, exam durations, or freelance billable hours.

Event & Media Production: Computing total runtime for video edits, podcasts, webinars, or sports events.

How to Use the Time Duration Calculator

Follow these simple steps to find the exact elapsed time in seconds:

Enter the Start Time: Input your starting hour, minute, and second (and select AM or PM if using 12-hour clock format).

Enter the End Time: Input your ending hour, minute, and second (along with AM or PM).

Click Calculate: Press the calculate button to immediately view the total duration in Hours, Minutes, and Seconds, plus decimal hours and total minutes.

Reset Anytime: Clear the fields to calculate multiple intervals—all processed locally in your browser with zero data saved.

Time Duration Calculation Formulas

To avoid base-60 borrowing confusion, our calculator converts timestamps into total minutes (or seconds) from midnight before subtracting:

1. Same-Day Time Duration Formula:Total Duration = End Time − Start Time

2. Overnight / Past-Midnight Time Duration Formula (When End Time < Start Time):Total Duration = ( 24:00 − Start Time ) + End Time

3. Decimal Hours Conversion Formula (For Payroll & Billing):Decimal Hours = Hours + ( Minutes ÷ 60 ) + ( Seconds ÷ 3,600 )

Practical Solved Examples of Time Duration

Example 1: Standard Same-Day Shift (AM to PM)

Suppose a workday starts at 8:45 AM and ends at 5:15 PM.

Step 1 (Convert to 24-hour format): 8:45 AM = 08:45, and 5:15 PM = 17:15.

Step 2 (Borrow 1 hour = 60 minutes because 15 < 45): 17:15 becomes 16 hours and 75 minutes.

Step 3 (Subtract hours and minutes): (16 − 8) hours = 8 hours; (75 − 45) minutes = 30 minutes.

Result: Total elapsed time is 8 hours and 30 minutes (or 8.50 decimal hours).

Example 2: Overnight Shift Crossing Midnight (PM to AM)

Suppose a night shift begins at 10:30 PM (22:30) and finishes the next morning at 6:15 AM (06:15).

Step 1 (Time remaining until midnight): 24:00 − 22:30 = 1 hour and 30 minutes.

Step 2 (Add time after midnight): 1 hour 30 minutes + 6 hours 15 minutes = 7 hours and 45 minutes.

Result: Total overnight duration is 7 hours and 45 minutes (or 7.75 decimal hours).

Example 3: Multi-Day Event Duration

If an online hackathon starts on Monday at 9:00 AM and ends on Wednesday at 3:00 PM:

Step 1 (Full 24-hour days): Monday 9:00 AM to Wednesday 9:00 AM = 48 hours (2 days).

Step 2 (Remaining hours): Wednesday 9:00 AM to 3:00 PM = 6 hours.

Result: Total duration is 2 days and 6 hours (or 54 total hours).

Common Mistakes to Avoid When Calculating Time Duration

A common error is to subtract times as though they are decimal numbers with base 100, e.g. 17.15 – 8.45 = 8.70. However there are only 60 minutes in one hour. You should always borrow 60 minutes.

Don’t get confused by 12 o’clock times. 12:00 PM = noon (12:00 in 24 hour clock) 12:00 AM = midnight (00:00 in 24 hour clock)

Do not multiply hours and minutes in this way. If working 8h 45m do not do 8.45 x Hourly Rate. Instead convert the 45 minutes to decimal. 45/60 = 0.75. Multiply 8.75 x Hourly Rate.

Time duration calculator to calculate the total time between start and end times

Frequently Asked Questions (FAQs)

How do I calculate time duration across midnight?

If the end time is earlier in the day than the start time, subtract the start time from 24:00 (midnight). Add the end time to this result. So (24:00 – 21:00) + 05:00 = 3 + 5 = 8 hours.

How do I convert hours and minutes into decimal hours?

Divide the number of minutes by 60 and add the result to the whole hours. For example, 4 hours and 15 minutes becomes 4 + (15 ÷ 60) = 4.25 hours.

What is the difference between 12:00 AM and 12:00 PM?

12:00 AM marks midnight (the start of a new calendar day, 00:00), whereas 12:00 PM marks midday/noon (12:00 in 24-hour military time).

Is my time tracking data stored on FreeCalcTools servers?

No. All calculations run 100% locally in your browser. FreeCalcTools never saves, logs, or shares your timestamps or schedules.


Related Date, Time & Work Calculators

Work Hours Calculator – Calculate weekly employee shift hours, lunch break deductions, and overtime totals.

Date Difference Calculator – Measure the exact span in years, months, weeks, and days between two calendar dates.

Days Between Dates Calculator – Count total days or working business days between a start date and an end date.

Seconds to Minutes Converter – Convert raw seconds into exact minutes and decimal time formats instantly.

Age Calculator – Find your exact age in years, months, weeks, and days from your date of birth.

For official 24-hour timekeeping and Coordinated Universal Time (UTC) standards, refer to the National Institute of Standards and Technology (NIST) – Official U.S. Time.

Scroll to Top