Time Duration Calculator

Calculate the exact time between two times with our free Time Duration Calculator. Find elapsed hours, minutes, and seconds using a 12-hour AM/PM or 24-hour clock, including overnight intervals.

NUMGRAM TIME DURATION CALCULATORYour data stays in this browser

Calculate time duration

Find the time between two clock readings.

Time format
Start time
End time

Saved calculations

Stored only in this browser on this device. Up to 20 calculations.

Bookmark this calculator

Drag the link below to your bookmarks bar, or use your browser's bookmark shortcut.

↗ Numgram – Time Duration Calculator
✓ 12-hour and 24-hour formats◷ Overnight time calculations▤ Clear duration results↗ Copy and share resultsCalculator updates ↗

Calculate Hours, Minutes and Seconds Between Times

Time Duration Calculator

Need to find out how much time has passed between two times? The free Time Duration Calculator helps you find the difference between a start time and an end time in hours, minutes, and seconds. Enter your times, select a 12-hour or 24-hour clock, and get your result.

Use the calculator to measure the length of a meeting, work shift, study session, journey, or any other activity. You can also add or subtract time, combine several time intervals, and calculate weekly working hours.

If your calculation crosses midnight or spans multiple dates, you can enter the relevant dates to get the correct duration.

Table of Contents

What Can You Calculate?

The Time Duration Calculator has four modes for different types of time calculations:

  • Time Duration: Find the time between a start time and an end time, including overnight intervals.
  • Add or Subtract Time: Add a duration to a starting time or subtract it to find an earlier time.
  • Total Time: Combine multiple durations to calculate the total time.
  • Working Hours: Calculate scheduled hours across seven days and deduct breaks.

Select the mode you need and enter the relevant values. The calculator handles the time conversion and displays the result.

How to Use the Time Duration Calculator

Follow these steps to calculate the time between two times:

  1. Select Time Duration.
  2. Enter the starting time.
  3. Enter the ending time.
  4. Choose the 12-hour or 24-hour clock format.
  5. Enable seconds if you need to calculate an interval that includes seconds.
  6. Add dates if the calculation spans specific calendar days.
  7. View the result.

The calculator displays the elapsed time in hours, minutes, and seconds.

For example, if you enter 9:00 AM as the starting time and 5:30 PM as the ending time, the result is 8 hours and 30 minutes.

1. Calculate the Time Between Two Times

Use Time Duration when you know when an activity started and ended and want to find out how long it lasted.

Enter the start and end times, and the calculator finds the difference. You can use it to calculate work shifts, meeting lengths, travel times, study sessions, appointments, and exercise durations.

Example: How many hours are between 6:00 AM and 4:00 PM?

  • Start time: 6:00 AM
  • End time: 4:00 PM
  • Duration: 10 hours

Example: How long is it from 11:40 AM to 1:20 PM?

  • Start time: 11:40 AM
  • End time: 1:20 PM
  • Duration: 1 hour and 40 minutes

What happens when the time interval crosses midnight?

The calculator can handle overnight intervals. For example, a shift that starts at 10:00 PM and ends at 6:00 AM the following day lasts 8 hours.

If you don’t enter dates, the calculator treats an end time earlier than the start time as occurring on the following day. If you enter dates, it uses those dates to calculate the actual interval.

2. Add or Subtract Time

Use Add or Subtract Time when you know the starting time and a duration but need to find the resulting clock time.

This mode can help you work out when a meeting will finish, when a task will be completed, or what time it was before a particular event.

Example: What time is 2 hours and 30 minutes after 9:15 AM?

  • Starting time: 9:15 AM
  • Duration: 2 hours and 30 minutes
  • Result: 11:45 AM

Example: What time was it 45 minutes before 3:00 PM?

  • Starting time: 3:00 PM
  • Operation: Subtract
  • Duration: 45 minutes
  • Result: 2:15 PM

The calculator supports durations longer than 24 hours, so you can also calculate times across multiple days.

3. Calculate the Total of Multiple Time Intervals

Select Total Time when you need to add several separate durations. This is useful for combining work sessions, tracking project time, or calculating how long you spent on different activities.

Enter each duration, and the calculator adds them together.

Example: Calculate the total time spent on three tasks.

ActivityDuration
Task 11 hour 30 minutes
Task 22 hours 15 minutes
Task 345 minutes
Total4 hours 30 minutes

In this example, the three tasks take a combined 4 hours and 30 minutes.

4. Calculate Weekly Working Hours

Select Working Hours to calculate scheduled hours across a Monday-to-Sunday workweek.

Enter the start time, end time, and break duration for each working day. Leave the days you don’t work blank. The calculator deducts the breaks you enter and displays your net weekly hours.

You can use this mode to check a weekly schedule, estimate working hours before submitting a timesheet, or calculate the average hours worked per scheduled day.

Example: Calculate weekly hours for a Monday-to-Friday schedule.

DayStartEndBreakNet hours
Monday9:00 AM5:30 PM30 min8
Tuesday9:00 AM5:30 PM30 min8
Wednesday9:00 AM5:30 PM30 min8
Thursday9:00 AM5:30 PM30 min8
Friday9:00 AM5:30 PM30 min8
Weekly total40 hours

Each day has 8 scheduled hours after the 30-minute break is deducted, giving a total of 40 hours for the week.

The result displays the weekly total in decimal hours and in hours-and-minutes format, along with a daily breakdown.

How to Calculate Time Duration

You can calculate the difference between two times by converting both clock times into minutes, subtracting the starting value from the ending value, and converting the result into hours and minutes.

Step 1: Convert Both Times into Minutes

Multiply the hour value by 60 and add the minutes.

For example, calculate the time between 9:15 AM and 11:45 AM.

Start time:

9 × 60 + 15 = 555 minutes

End time:

11 × 60 + 45 = 705 minutes

Step 2: Subtract the Starting Time

Subtract 555 from 705:

705 − 555 = 150 minutes

Step 3: Convert the Result into Hours and Minutes

Divide 150 by 60.

150 minutes = 2 hours and 30 minutes.

The elapsed time between 9:15 AM and 11:45 AM is therefore 2 hours and 30 minutes.

You can use the Time Duration Calculator to perform these steps automatically.

How to Calculate Time Across Midnight

When a time interval crosses midnight, the ending time falls on the following calendar day.

For example, consider a shift that starts at 10:30 PM and ends at 6:15 AM the next day.

  • From 10:30 PM to midnight: 1 hour and 30 minutes.
  • From midnight to 6:15 AM: 6 hours and 15 minutes.
  • Total duration: 7 hours and 45 minutes.

If you don’t enter dates, the calculator assumes that an end time earlier than the start time belongs to the following day. If you enter the start and end dates, it uses those dates to calculate the interval.

How to Convert Time into Minutes

To convert hours and minutes into total minutes, multiply the number of hours by 60 and add the remaining minutes.

Formula:

Total minutes = (Hours × 60) + Minutes

For example, 3 hours and 25 minutes equals:

(3 × 60) + 25 = 205 minutes.

Use this table for common time conversions:

TimeTotal minutes
15 minutes15
30 minutes30
45 minutes45
1 hour60
1 hour 30 minutes90
2 hours120
2 hours 30 minutes150
8 hours480
24 hours1,440

How to Convert Hours and Minutes into Decimal Hours

Decimal hours express a time duration as a number with a decimal point. This format is often used in timesheets, payroll calculations, billing, and project tracking.

To convert a duration into decimal hours, divide the minutes by 60 and add the result to the whole hours.

Formula:

Decimal hours = Hours + (Minutes ÷ 60)

For example:

  • 1 hour and 30 minutes = 1.50 hours.
  • 2 hours and 15 minutes = 2.25 hours.
  • 3 hours and 45 minutes = 3.75 hours.
  • 8 hours and 30 minutes = 8.50 hours.

Remember that 8 hours and 30 minutes equals 8.5 decimal hours, not 8.30 hours. The digits after the decimal point represent a fraction of an hour, not additional minutes.

Common Time Calculations and Examples

These examples show how long common time intervals last.

Time calculationDuration
6:00 AM to 4:00 PM10 hours
7:30 AM to 8:30 AM1 hour
8:00 AM to 5:00 PM9 hours
9:30 AM to 10:05 AM35 minutes
11:00 AM to 3:00 PM4 hours
12:00 AM to 4:00 PM16 hours
1:30 PM to 12:00 AM10 hours 30 minutes
12:26 PM to 12:56 PM30 minutes
4:00 PM to 7:00 PM3 hours

These figures show elapsed time. When calculating working hours, subtract unpaid breaks if they apply.

12-Hour Clock and 24-Hour Clock

The calculator supports both common time formats.

12-hour clock: This format uses AM and PM to distinguish between morning and afternoon or evening. For example, 3:30 PM represents the afternoon, while 3:30 AM represents the early morning.

24-hour clock: This format represents the day from 00:00 to 23:59. For example, 3:30 PM becomes 15:30, and midnight is represented as 00:00.

The 24-hour format avoids confusion between AM and PM and is commonly used in transportation, healthcare, military settings, and international schedules.

Choose the format you prefer and make sure you enter the correct time of day.

Frequently Asked Questions

What is a time duration calculator?

A time duration calculator finds the elapsed time between two points. It displays the difference in hours, minutes, and seconds. Depending on its features, it can also add or subtract time, combine multiple intervals, and calculate scheduled working hours.

How do I calculate the time between two times?

Enter the starting time and ending time in Time Duration mode. The calculator finds the difference and displays the elapsed duration. If the interval crosses midnight, use the overnight calculation behavior or enter the correct dates.

How many hours are there between 8 AM and 5 PM?

There are 9 hours between 8:00 AM and 5:00 PM. If you have an unpaid one-hour lunch break, your net working time is 8 hours.

How many hours are there between 9 AM and 5 PM?

There are 8 hours between 9:00 AM and 5:00 PM. If you take an unpaid break, deduct its duration to calculate your net working hours.

How do I calculate time duration in minutes?

Convert both times into minutes by multiplying each hour value by 60 and adding the minutes. Subtract the starting value from the ending value to find the elapsed time in minutes. If the interval crosses midnight, account for the following day.

Can I calculate time that crosses midnight?

Yes. When you don’t enter dates, the calculator treats an end time earlier than the start time as occurring on the following day. You can also enter dates to calculate an interval across specific calendar days.

Can I calculate the duration between two dates and times?

Yes. Enable the date inputs and enter the start and end dates along with their respective times. The calculator uses both dates and times to find the duration across multiple days.

What is the difference between elapsed time and working time?

Elapsed time is the full amount of time between a start and end point. Working time is the time spent working after applicable breaks are deducted. For example, a shift from 9:00 AM to 5:00 PM lasts 8 hours. If you take an unpaid one-hour break, your net working time is 7 hours.

How do I convert 2 hours and 30 minutes into decimal hours?

Divide 30 minutes by 60 to get 0.5, then add the 2 whole hours. The result is 2.5 decimal hours.

Can I add multiple time durations together?

Yes. Select Total Time, enter each duration, and the calculator adds them together. You can use this mode to total work sessions, project hours, or time spent on separate tasks.

Is this time calculator free to use?

Yes. The Numgram Time Duration Calculator is free to use online. Enter your values to calculate time intervals without working through the conversion formulas manually.

Learn More About Time and Measurement

The following resources explain how time is measured and how time intervals are calculated:

These resources provide further information about the definition of a second, time measurement, and calculating time intervals.

Use the Numgram Time Duration Calculator to find the hours between two times, calculate an overnight shift, add or subtract a duration, combine multiple time intervals, or estimate weekly working hours.