Time Difference Calculator

🕰️

Time Difference Calculator

Calculate the exact difference between two times, including overnight periods.

How this time difference calculator works

Enter a start time and an end time. If the end time is earlier than the start time, the calculator assumes the end time occurs on the following day.

Note: This calculator measures one continuous period of up to 24 hours.
Time Difference Calculator

Time Difference Calculator – Calculate Hours and Minutes Easily

Our free Time Difference Calculator helps you find the amount of time between two clock times. Whether you want to calculate working hours, determine how long an activity lasts, or measure the time between appointments, this tool makes everyday time calculations easier.

Simply enter a starting time and an ending time to calculate the elapsed duration. The calculator also supports overnight periods when the ending time is earlier than the starting time.

For example, the difference between 9:00 AM and 5:30 PM is 8 hours and 30 minutes.

Understanding elapsed time is useful for work schedules, travel planning, study sessions, and daily activities.

What Is a Time Difference Calculator?

A Time Difference Calculator is an online tool that determines the elapsed time between a starting clock time and an ending clock time.

Instead of manually counting hours and minutes, you can enter the two times and review the calculated duration.

Time differences are commonly expressed in hours and minutes. They can also be converted into total minutes or decimal hours when needed.

For example, a duration of 2 hours and 30 minutes is equivalent to 150 minutes or 2.5 decimal hours.

How to Calculate the Difference Between Two Times

The basic formula is:

Elapsed Time = End Time − Start Time

When both times occur on the same day, subtract the starting time from the ending time.

If the ending time is earlier than the starting time and represents the following day, add 24 hours before calculating the difference.

Example 1: Calculate Hours Between Two Times

Suppose an activity begins at 8:00 AM and ends at 2:30 PM.

Start time = 8:00 AM

End time = 2:30 PM

Convert to 24-hour time:

8:00 AM = 08:00

2:30 PM = 14:30

Subtract:

14:30 − 08:00 = 6 hours 30 minutes

The total duration is 6 hours and 30 minutes.

Example 2: Calculate a Short Time Difference

Suppose a meeting starts at 10:15 AM and finishes at 11:45 AM.

Start time = 10:15 AM

End time = 11:45 AM

Subtract:

11:45 − 10:15 = 1 hour 30 minutes

The meeting lasts 90 minutes.

Example 3: Calculate an Overnight Duration

Suppose a shift begins at 10:00 PM and ends at 6:00 AM the next day.

Convert both times into 24-hour notation:

10:00 PM = 22:00

6:00 AM = 06:00

Because the end time occurs the next day, calculate:

(24:00 − 22:00) + 06:00 = 8 hours

The overnight shift lasts eight hours.

This approach is useful for night shifts, overnight travel, and activities that cross midnight.

Understanding elapsed time makes it easier to calculate work shifts, appointments, and daily schedules. For additional lessons and examples, visit Khan Academy to learn how to solve time-related math problems.

How to Use the Time Difference Calculator

Follow these three simple steps:

Step 1: Enter the starting time.

Step 2: Enter the ending time.

Step 3: Click Calculate Difference to view the elapsed duration.

If the ending time is earlier than the starting time, the calculator assumes that the ending time occurs on the following day.

For example:

Start = 11:30 PM

End = 2:00 AM

Result = 2 hours 30 minutes

Use the Reset button when you want to begin another calculation.

Time Difference Examples

The following table shows common time calculations.

Start TimeEnd TimeDuration
8:00 AM12:00 PM4 hours
9:00 AM5:00 PM8 hours
10:15 AM12:45 PM2 hours 30 minutes
1:30 PM4:00 PM2 hours 30 minutes
7:45 AM9:15 AM1 hour 30 minutes
8:00 PM11:30 PM3 hours 30 minutes
10:00 PM6:00 AM8 hours
11:30 PM2:00 AM2 hours 30 minutes

The final two examples cross midnight into the following day.

How to Convert a Time Difference into Minutes

Sometimes it is easier to express a duration in total minutes.

The formula is:

Total Minutes = (Hours × 60) + Minutes

For example, suppose an activity lasts 3 hours and 25 minutes.

Multiply the hours by 60:

3 × 60 = 180 minutes

Add the remaining minutes:

180 + 25 = 205 minutes

Result = 205 minutes

This conversion is useful for schedules, timesheets, exercise sessions, and activity tracking.

How to Convert Time into Decimal Hours

Decimal hours are often used for payroll calculations, billing, and work records.

The formula is:

Decimal Hours = Hours + (Minutes ÷ 60)

For example, a duration of 4 hours and 30 minutes becomes:

4 + (30 ÷ 60) = 4.5 hours

Therefore:

4 hours 30 minutes = 4.5 decimal hours

Common Time Conversions

Hours and MinutesDecimal Hours
1 hour 15 minutes1.25
1 hour 30 minutes1.50
2 hours 15 minutes2.25
2 hours 45 minutes2.75
3 hours 30 minutes3.50
5 hours 45 minutes5.75

Remember that 2 hours and 45 minutes equals 2.75 decimal hours, not 2.45.

Why Is Calculating Time Differences Important?

Work Hours and Attendance

Employees and employers use time differences to review shift durations and attendance records.

If unpaid breaks apply, subtract them separately from the elapsed shift duration.

Travel Planning

Knowing how long a journey takes helps with departure planning and arrival estimates.

For travel across time zones, account for the time-zone difference before calculating elapsed time.

Study and Learning

Students can calculate the duration of lessons, revision sessions, and examinations.

Exercise and Fitness

Time calculations help measure workouts, training sessions, and recovery periods.

Meetings and Appointments

Businesses can calculate meeting durations and organize appointment schedules.

Personal Productivity

Tracking the duration of activities can help people plan their days more effectively.

If you need to add or subtract hours and minutes from a specific starting time, try our free Time Addition & Subtraction Calculator. This related tool helps you calculate new clock times for appointments, work schedules, and everyday activities.

Common Mistakes When Calculating Time

One common mistake is confusing AM and PM.

For example, 8:00 AM and 8:00 PM are twelve hours apart.

Another mistake is forgetting that some activities continue past midnight.

A shift starting at 11:00 PM and ending at 7:00 AM lasts eight hours, not a negative number of hours.

People also sometimes confuse hours and minutes with decimal hours.

For example, 1 hour and 30 minutes equals 1.5 decimal hours.

When calculating paid work hours, remember that unpaid breaks may need to be deducted from the total elapsed time.

Finally, a difference between clock times is not always the same as an actual elapsed duration across time zones or daylight-saving changes.

Frequently Asked Questions

How do I calculate the difference between two times?

Subtract the starting time from the ending time. If the ending time is on the following day, account for the change of date.

How many hours is 9:00 AM to 5:00 PM?

The elapsed duration is eight hours.

What is the difference between 10:30 AM and 1:15 PM?

The duration is two hours and forty-five minutes.

Can I calculate an overnight time difference?

Yes. Enter the starting and ending times. When the ending time is earlier, the calculator treats it as occurring on the following day.

How do I convert hours into minutes?

Multiply the number of hours by 60 and add any remaining minutes.

Is 1 hour and 30 minutes equal to 1.30 hours?

No. One hour and thirty minutes equals 1.5 decimal hours.

Does this calculator account for time zones?

The calculator uses the clock times entered. For locations in different time zones, adjust the times to a common time zone first.

Can I use time differences for payroll?

Yes, elapsed time is a useful starting point. However, paid working hours may require break deductions and other payroll adjustments.

Final Thoughts

Calculating the time between two clock times is an essential skill for managing work schedules, appointments, travel, and everyday activities.

Using the correct starting and ending times helps you avoid mistakes, especially when calculating overnight durations.

Our free Time Difference Calculator makes it easier to determine elapsed hours and minutes and organize your time effectively.