Time Duration Calculator

This calculator measures the difference between two clock times in hours, minutes and seconds. Check whether the selected end time falls on the same day or a later day.

Time Between Two Times

If the end is earlier than the start, the start is assumed to be on the previous day.

The three boxes are hour, minute and second.

Time Between Two Dates

Find the days, hours, minutes and seconds between a time on one date and a time on a later date.

Quick answer. Enter a start and an end time. 8:30 AM to 5:30 PM is 9 hours, 540 minutes or 32,400 seconds. 5:30 PM to 8:30 AM is 15 hours, because the end is taken to be on the next day.

What the calculator does

It finds the exact length of time between two clock times, down to the second. The result is given in hours, minutes and seconds, and as a decimal number of hours, a total number of minutes and a total number of seconds, so you can use whichever fits your task, from payroll to timing a process. The page has two tools: one for times on the same day, and one that adds a date to each time.

Worked example with the default numbers

The first tool opens on a start of 8:30:00 AM and an end of 5:30:00 PM. The difference is 9 hours. It is also 9 hours as a decimal, 540 minutes and 32,400 seconds. A longer example with seconds: from 8:30:15 AM to 5:45:50 PM is 9 hours, 15 minutes and 35 seconds, which is 9.2597 hours, 555.58 minutes or 33,335 seconds.

Across midnight

In the first tool, an end time earlier than the start is taken to be on the next day. So 5:30 PM to 8:30 AM is 15 hours, and the result says the start is assumed on the previous day. A night shift from 10 PM to 6 AM is 8 hours. If the two times are the same, the tool shows 0 minutes. For spans of more than a day, use the second tool.

StartEndTime between
8:30 AM5:30 PM9 hours
8:30:15 AM5:45:50 PM9 hours, 15 minutes and 35 seconds
5:30 PM8:30 AM (next day)15 hours
10:00 PM6:00 AM (next day)8 hours
10:20:1511:45:45 (24-hour)1 hour, 25 minutes and 30 seconds
9:00 AM1:07:42 PM4 hours, 7 minutes and 42 seconds
Length of four example spans (hours)The overnight span is 15 hours because the end time is earlier than the start, so the end is taken to be on the next day.Length of four example spans (hours)Office day, 8:30 AM to 5:30 PM9 hNight shift, 10 PM to 6 AM8 hOvernight, 5:30 PM to 8:30 AM15 hMarathon, 9:00 AM to 1:07:42 PM4.1283 h
Same-day and overnight spans.

Entering times

Type the hour, minute and second in the three boxes and choose AM or PM. An hour above 12 is read as 24-hour time, so 17 means 5 PM whatever AM or PM says. Blank minutes and seconds count as zero. The Now button fills in the current time from your device.

Two dates

The second tool adds a date to each time, so you can measure spans of many days. It reports the whole days first, then the remaining hours, minutes and seconds, and also the total as days, hours, minutes and seconds. Because the page opens on today’s date, here is a fixed example. From January 1, 2026 at 8:30 AM to January 3, 2026 at 5:30 PM is 2 days and 9 hours, which is 2.375 days, 57 hours or 3,420 minutes. The start must be earlier than the end.

Another: from January 1 at 11:45:30 PM to January 7 at 6:15:00 AM is 5 days, 6 hours, 29 minutes and 30 seconds.

Decimal hours

Payroll and billing often need hours as a decimal. Divide the minutes by 60:

MinutesDecimal of an hour
100.1667
150.25
200.3333
300.5
450.75
500.8333
Minutes as a decimal of an hourDivide the minutes by 60: 15 minutes is 0.25 hours, 30 is 0.5 and 45 is 0.75, but 10 minutes is 0.1667, not 0.1.Minutes as a decimal of an hour10 min0.166715 min0.2520 min0.333330 min0.545 min0.7550 min0.8333
Minutes are not hundredths of an hour.

What it does not know about

The calculation uses clock times and dates only. It does not know about time zones or daylight saving changes. When the clocks change, the real time between two clock readings can differ by an hour from what the tool shows. For example, in the US on the night the clocks go forward, 1:00 AM to 4:00 AM on the clock is 3 hours, but only 2 hours really pass. Use the Time Zone Calculator when zones matter.

Subtracting by hand

To subtract by hand, take away the seconds first, then the minutes, then the hours, borrowing from the next unit when needed. From 10:20:15 to 11:45:45: 45 − 15 = 30 seconds, 45 − 20 = 25 minutes, 11 − 10 = 1 hour, so the answer is 1 hour, 25 minutes and 30 seconds. The calculator does the same sum exactly.

Common mistakes

  • Choosing AM when you meant PM, which changes the answer by 12 hours.
  • Reading 8 hours 30 minutes as 8.30 hours. It is 8.5 hours.
  • Expecting a span across daylight saving changes to match real elapsed time.
  • Using the first tool for spans over 24 hours. Use the dates tool.
  • Entering minutes above 59. The boxes need whole minutes and seconds from 0 to 59.

How to read your result

The large line is the time between in words, with the start and end under it. Below are the decimal hours, the total minutes and the total seconds. In the dates tool the days appear as well. If you see an error, check that the hour is from 0 to 23 and the minutes and seconds from 0 to 59.

This calculator works from clock times and dates only. It does not know about time zones or daylight saving time changes.

What to do next

Common questions

How do I find the time between two times?

Subtract the earlier time from the later one. The calculator does this to the second. 8:30:15 AM to 5:45:50 PM is 9 hours, 15 minutes and 35 seconds.

What if the end time is earlier than the start time?

In the first tool the end time is taken to be on the next day. So 5:30 PM to 8:30 AM is 15 hours. Use the second tool if more than one day passes.

How do I get decimal hours?

The result also shows the time as decimal hours. Divide minutes by 60 by hand: 15 minutes is 0.25 hours and 45 minutes is 0.75 hours.

Does it handle daylight saving time?

No. It uses clock times and dates only, so it does not allow for the clocks changing between the two times.

Can I enter 24-hour time?

Yes. An hour above 12 is read as 24-hour time, so 17 is 5 PM.

How do I measure a span of several days?

Use the second tool, which adds a date to each time and reports days, hours, minutes and seconds.

Sources: NIST: Time and frequency, units; Wikipedia: 12-hour clock; Wikipedia: Daylight saving time

More Everyday Calculators

Pick another tool to jump straight to it.