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.
If the end is earlier than the start, the start is assumed to be on the previous day.
Find the days, hours, minutes and seconds between a time on one date and a time on a later date.
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.
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.
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.
| Start | End | Time between |
|---|---|---|
| 8:30 AM | 5:30 PM | 9 hours |
| 8:30:15 AM | 5:45:50 PM | 9 hours, 15 minutes and 35 seconds |
| 5:30 PM | 8:30 AM (next day) | 15 hours |
| 10:00 PM | 6:00 AM (next day) | 8 hours |
| 10:20:15 | 11:45:45 (24-hour) | 1 hour, 25 minutes and 30 seconds |
| 9:00 AM | 1:07:42 PM | 4 hours, 7 minutes and 42 seconds |
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.
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.
Payroll and billing often need hours as a decimal. Divide the minutes by 60:
| Minutes | Decimal of an hour |
|---|---|
| 10 | 0.1667 |
| 15 | 0.25 |
| 20 | 0.3333 |
| 30 | 0.5 |
| 45 | 0.75 |
| 50 | 0.8333 |
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.
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.
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.
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.
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.
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.
No. It uses clock times and dates only, so it does not allow for the clocks changing between the two times.
Yes. An hour above 12 is read as 24-hour time, so 17 is 5 PM.
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
Pick another tool to jump straight to it.