Time Duration Calculator: Hours and Minutes Between Two Times
By TheToolsBank Editorial TeamLast updated:
How to use the calculator
Duration between two times (the default mode):
1. Select Start time and pick the hour, minute, second and AM or PM. Now fills in the current time.
2. Select End time the same way.
3. Select Calculate. You get the duration in hours and minutes, the total minutes and the total seconds. Copy copies the result.
Add or subtract a duration: switch the Mode, pick a starting time, choose Add or Subtract, and enter hours, minutes and seconds. The result shows the new time, and a note if it lands on the next or the previous day.
Hours between common times
These are the results the calculator gives for everyday start and end times. Decimal hours are rounded to two places.
| Start | End | Duration | Total minutes | Decimal hours |
| 9:00 AM | 5:00 PM | 8 h 0 min | 480 | 8.00 |
| 9:00 AM | 5:30 PM | 8 h 30 min | 510 | 8.50 |
| 8:30 AM | 5:15 PM | 8 h 45 min | 525 | 8.75 |
| 7:00 AM | 3:30 PM | 8 h 30 min | 510 | 8.50 |
| 7:00 AM | 7:00 PM | 12 h 0 min | 720 | 12.00 |
| 11:45 AM | 2:10 PM | 2 h 25 min | 145 | 2.42 |
| 10:00 PM | 6:00 AM (next day) | 8 h 0 min | 480 | 8.00 |
| 11:00 PM | 7:30 AM (next day) | 8 h 30 min | 510 | 8.50 |
These are total times. If a break is unpaid, subtract it from the result: 9:00 AM to 5:30 PM with a 30-minute lunch is 8 hours worked. For a full chart of 9-to-5, 12-hour and overnight shifts, see our shift hours chart.
How to calculate the time between two times by hand
1. Write both times in 24-hour format: 8:45 AM is 08:45 and 3:20 PM is 15:20.
2. Subtract the minutes. If the end minutes are smaller, borrow 1 hour as 60 minutes: 15:20 becomes 14:80.
3. Subtract the hours: 14:80 − 08:45 = 6 hours 35 minutes.
4. If the result is negative, the time crossed midnight, so add 24 hours (see the next section).
A quicker way to check: turn each time into minutes after midnight (hours × 60 + minutes) and subtract. 15:20 is 920 minutes and 08:45 is 525, so the gap is 395 minutes = 6 h 35 min. Need to convert a 12-hour time first? Use the Military Time Converter.
Times that cross midnight
When the end time is earlier on the clock than the start time, the period runs past midnight. Subtract as usual, then add 24 hours. Example: 22:00 to 06:00 gives 6 − 22 = −16, and −16 + 24 = 8 hours. With minutes: 9:30 PM to 5:15 AM is 21:30 to 05:15, which is 7 hours 45 minutes.
The calculator does this for you and shows a note that the end time is on the next day. It measures clock time within one day, so it can't show more than 23 hours 59 minutes 59 seconds. For a gap that spans several days, use the Date Difference Calculator. Not sure whether 12 AM is midnight or noon? 12 AM is midnight and 12 PM is noon; here's why.
Add or subtract time from a time
Use this mode to find what time it will be after a set number of hours, or what time it was before. Examples:
| Starting time | Change | Result |
| 10:20 AM | + 45 min | 11:05 AM |
| 2:15 PM | − 3 h 45 min | 10:30 AM |
| 11:00 PM | + 2 h | 1:00 AM (next day) |
| 9:00 AM | + 15 h 30 min | 12:30 AM (next day) |
| 1:00 AM | − 3 h | 10:00 PM (previous day) |
Hours and minutes to decimal hours
Timesheets and pay calculations usually need decimal hours. Divide the minutes by 60 and add them to the hours: 8 h 30 min = 8 + 30 ÷ 60 = 8.5 hours.
| Minutes | 15 | 20 | 30 | 40 | 45 |
| Decimal | 0.25 | 0.33 | 0.50 | 0.67 | 0.75 |
A common error is writing 8 h 30 min as 8.30 hours; it's 8.5. For a full week worked through with breaks and Excel formulas, read how to calculate hours worked for payroll. To turn hours into pay, use the Hourly to Salary Calculator.
Time difference formula in Excel and Google Sheets
With the start time in A2 and the end time in B2:
· Hours and minutes: =MOD(B2-A2,1), formatted as [h]:mm
· Decimal hours: =MOD(B2-A2,1)*24
· Total minutes: =MOD(B2-A2,1)*1440
MOD(…,1) handles shifts that cross midnight. A plain =B2-A2 returns a negative value in that case, which Excel shows as ####.
Common Mistakes to Avoid
Subtracting clock times like ordinary numbers
Solution:
5:15 − 8:30 isn't a decimal sum, because an hour has 60 minutes, not 100. Borrow 60 minutes when the end minutes are smaller, or let the calculator do it.
Writing 8 h 30 min as 8.30 hours
Solution:
30 minutes is half an hour, so 8 h 30 min is 8.5 hours. Divide the minutes by 60 to get decimal hours.
Getting a negative number for a night shift
Solution:
If the end time is earlier than the start time, the period crosses midnight: add 24 hours. 10:00 PM to 6:00 AM is 8 hours, not −16.
Mixing up 12 AM and 12 PM
Solution:
12 AM is midnight and 12 PM is noon. 12:00 AM to 12:00 PM is 12 hours; choosing the wrong one changes the result by 12 hours.
Forgetting to take off unpaid breaks
Solution:
The result is the total time from start to end. Subtract any unpaid lunch or break: 8:00 AM to 4:30 PM minus 30 minutes is 8 hours worked.
Using clock times for a gap of more than a day
Solution:
A time-of-day calculator works within 24 hours. For spans of days or weeks, use the Date Difference Calculator.
Frequently Asked Questions
Subtract the start time from the end time in 24-hour format, borrowing 60 minutes if needed. 8:45 AM to 3:20 PM is 6 hours 35 minutes. If the result is negative, the period crossed midnight, so add 24 hours.
8 hours. With a 30-minute unpaid lunch it is 7.5 hours worked, and with a 1-hour lunch it is 7 hours.
Multiply the hours by 60 and add the remaining minutes. 9:15 AM to 11:40 AM is 2 h 25 min, which is 145 minutes. The calculator shows the total minutes for you.
Subtract as usual, then add 24 hours to the negative result. 11:00 PM to 7:30 AM is 8 hours 30 minutes. The calculator does this automatically when the end time is earlier than the start time.
8.5 hours. Divide the minutes by 60: 30 ÷ 60 = 0.5. Likewise, 15 minutes is 0.25, 45 minutes is 0.75 and 20 minutes is about 0.33.
Switch the Mode to Add or subtract a duration, pick the starting time, choose Add and enter the hours and minutes. For example, 11:00 PM plus 2 hours is 1:00 AM the next day.
Add 8 hours to the current time: in add mode, select Now in the time picker, enter 8 hours and select Calculate. From 3:00 PM, 8 hours later is 11:00 PM.
Use =MOD(B2-A2,1) with the start time in A2 and the end time in B2, formatted as [h]:mm. Multiply by 24 for decimal hours or by 1440 for minutes. MOD also handles times that cross midnight.
Not with this tool: it works with times of day, up to 23 hours 59 minutes 59 seconds. For days, weeks or months between two dates, use the Date Difference Calculator.
No. The calculation runs in your browser, and the times you enter are not sent to our servers.

