Time Duration Calculator
How much time passes between a start time and an end time, in hours, minutes and seconds.
Start and End
How Long Is It Between Two Times?
From 8:45 AM to 5:20 PM is 8 hours 35 minutes, which is 8.58 hours or 515 minutes. Change the start and end times above for your own span, add seconds if you need them, and switch on dates for spans longer than a day.
Hours Between Common Times
| From | To | Duration | Decimal hours | Minutes |
|---|---|---|---|---|
| 9:00 AM | 5:00 PM | 8 hours | 8.00 | 480 |
| 8:00 AM | 5:00 PM | 9 hours | 9.00 | 540 |
| 8:30 AM | 5:00 PM | 8 hours 30 minutes | 8.50 | 510 |
| 7:30 AM | 4:00 PM | 8 hours 30 minutes | 8.50 | 510 |
| 9:00 AM | 6:00 PM | 9 hours | 9.00 | 540 |
| 10:00 AM | 7:00 PM | 9 hours | 9.00 | 540 |
| 7:00 AM | 7:00 PM | 12 hours | 12.00 | 720 |
| 12:00 PM | 8:00 PM | 8 hours | 8.00 | 480 |
| 3:00 PM | 11:00 PM | 8 hours | 8.00 | 480 |
| 9:00 PM | 7:00 AM (next day) | 10 hours | 10.00 | 600 |
| 11:00 PM | 7:00 AM (next day) | 8 hours | 8.00 | 480 |
| 12:00 AM | 12:00 PM | 12 hours | 12.00 | 720 |
How to Find Elapsed Time
There are two reliable ways to work out the time between two clock times by hand.
Method 1: Count up
Jump from the start time to the next full hour, then by whole hours, then to the end time, and add the jumps. For 8:45 AM to 5:20 PM:
Method 2: Subtract with borrowing
Write both times on the 24-hour clock and subtract minutes first, then hours. 17:20 β 8:45: the minutes 20 β 45 are negative, so borrow one hour (60 minutes): 80 β 45 = 35 minutes, and 16 β 8 = 8 hours. The answer is 8:35. Seconds work the same way, borrowing 60 seconds from the minutes.
AM, PM, Noon and Midnight
Most mistakes come from the 12 o'clock hour. 12:00 PM is noon and 12:00 AM is midnight at the start of the day, so 11:00 AM to 1:00 PM is 2 hours, not 12. On the 24-hour clock there's no ambiguity: 1:00 PM is 13:00 and 12:30 AM is 00:30. The time fields in the calculator follow your device's clock format; the results are the same either way.
Spans That Cross Midnight or Several Days
When the end time is earlier than the start time, the period ends the next day: 10:30 PM to 6:15 AM is 7 hours 45 minutes. For anything longer than 24 hours, switch on Spans more than one day and pick the dates, and the result is shown in days and hours as well. For spans counted only in days, the date difference calculator is simpler.
One caveat for overnight spans: on the night clocks change for daylight saving time, the real elapsed time is an hour shorter (in spring) or longer (in fall) than the clock times suggest. The calculator counts clock time.
Time Difference in Excel or Google Sheets
With the start time in A1 and the end time in B1, =B1-A1 formatted as [h]:mm gives the duration.
For overnight spans use =MOD(B1-A1,1), and multiply by 24 to get decimal hours: =MOD(B1-A1,1)*24.
Frequently Asked Questions
How many hours are between 7 AM and 7 PM?
12 hours. Between 7 PM and 7 AM the next morning is also 12 hours.
How do I convert a duration to decimal hours?
Divide the minutes by 60 and add them to the hours: 8 hours 35 minutes = 8 + 35/60 β 8.58 hours. The Decimal hours tile does this to four places.
Can I subtract a lunch break?
Yes, enter the break in minutes. To add up several shifts in a week with breaks and pay, use the Hours Calculator.
Does this calculate time zone differences?
No. It measures time on one clock. If the start and end are in different time zones, convert both to the same zone first.