Time Duration Calculator

Calculate the time duration between two times or dates with our free online calculator. Get instant results in hours, minutes, seconds, and decimal format. Perfect for calculating work hours, tracking project time, processing payroll, billing clients, and managing employee schedules. Handles overnight shifts, cross-midnight times, and multi-day durations automatically.

Time Duration Between Two Times

Start Time:
End Time:

📊 Duration Results

Hours
0
hours
Minutes
0
minutes
Seconds
0
seconds
Decimal Hours
0.00
for payroll
Formatted Duration
--:--:--

Time Between Two Dates

Start Date & Time:
End Date & Time:

📊 Duration Between Dates

Total Days
0
days
Total Hours
0
hours
Total Minutes
0
minutes
Decimal Hours
0.00
for payroll
Formatted Duration
--

How It Works

Enter-Start-Time-Icon | Time Duration Calculator

Enter Start Time

Enter the starting time using hour, minute, and second fields. Select AM or PM. Click “Now” to use the current time.

Enter-End-Time-Icon | Time Duration Calculator

Enter End Time

Enter the ending time in the same format. The calculator automatically handles times crossing midnight.

Calculate-Icon | Time Duration Calculator

Calculate

Enter the starting time using hour, minute, and second fields. Select AM or PM. Click “Now” to use the current time.

View-Results-Icon | Time Duration Calculator

View Results

Get comprehensive results in hours, minutes, seconds, and decimal hours perfect for payroll.

Need Automated Time Tracking?

Stop calculating hours by hand. TimeRewards tracks time automatically, with approvals and DCAA-ready audit trails built in.

Calculate the Duration Between Two Times

Calculating the duration between two times can be a little tricky depending on the numbers of minutes and seconds in the two times being compared. As an example, the following are the steps to determine the number of hours and minutes between two chosen times within the same day:

Step-by-Step Process

  1. First, identify the starting and an ending time. The goal is to subtract the starting time from the ending time under the correct conditions.
  2. If the times are not already in 24-hour time, convert them to 24-hour time. AM hours are the same in both 12-hour and 24-hour time. For PM hours, add 12 to the number to convert it to 24-hour time. For example, 1:00 PM would be 13:00 in 24-hour time.
  3. Determine whether the number of minutes is larger in the starting time or the ending time.
    • If the ending time has a larger number of minutes: Subtract the starting time from the ending time as you would subtract normally, keeping the hours and minutes on the appropriate side of the “:”, where hours are on the left, and minutes are on the right. For example:

13:57 – 9:22 ——– 4:35

If the starting time has a larger number of minutes: Treat the hour and minute portion separately. Add 60 to the number of minutes in the ending time, and subtract 1 hour from the hour portion of the ending time. Then, subtract the minutes and the hours, keeping the result on the appropriate side of the “:” where hours are on the left, and minutes are on the right. For example:

13:57 12:117 – 9:58 => – 9:58 ——– ——— 3:59

Understanding the Calculation

The key to calculating time duration accurately is understanding how to handle minutes and seconds that “carry over” or “borrow” between units. When the ending time’s minutes are less than the starting time’s minutes, you need to borrow 60 minutes from the hours column.

This is similar to how you would subtract regular numbers, but instead of borrowing by 10s (as in regular base-10 math), you’re borrowing by 60s since there are 60 minutes in an hour and 60 seconds in a minute.

Converting Between Time Formats

Our calculator uses the 12-hour AM/PM format for ease of use, but internally converts to 24-hour format for accurate calculations:

  • 12:00 AM (midnight) = 00:00 in 24-hour time
  • 1:00 AM to 11:59 AM = stays the same (01:00 to 11:59)
  • 12:00 PM (noon) = 12:00 in 24-hour time
  • 1:00 PM to 11:59 PM = add 12 (13:00 to 23:59)
 

This conversion ensures accurate calculations regardless of whether times cross noon or midnight.

Practical Examples

Example 1: Standard Work Day
Start: 8:30 AM, End: 5:30 PM
Result: 9 hours exactly

Example 2: Overnight Shift
Start: 10:00 PM, End: 6:00 AM
Result: 8 hours (night shift crossing midnight)

Example 3: Meeting Duration
Start: 2:15 PM, End: 3:45 PM
Result: 1 hour 30 minutes (1.5 decimal hours)

Ready to spend less time on administration?

Manage Timesheets and Expenses, wherever you are!

Ready to spend less time on administration?