Hours between times: how many hours and minutes have passed?
Enter a start and an end time to see how many hours and minutes are between them, also across midnight. Take off a break and get the answer in decimal hours for a timesheet.
Hours between two times calculator
I want to know how many hours there are from 9:00 AM to 5:30 PM.
Answer
8 hours 30 minutes
From 9:00 AM to 5:30 PM is 8 hours 30 minutes (8.5 hours).
- 8.5 hoursIn decimal hours, for pay and timesheets
- 8:30Hours:minutes, as a time card shows it
- 510 minutesIn total
- Same day35.4% of a day
How the hours between two times are counted
- Write both times as minutes after midnight: 9:00 AM is 540 and 5:30 PM is 1,050.
- Subtract: 1,050 − 540 = 510 minutes.
- Split into hours: 510 ÷ 60 = 8 hours with 30 minutes left, so 8 hours 30 minutes.
- In decimal hours: 510 ÷ 60 = 8.5 hours.
Hour by hour on the clock: each row is the part of one clock hour between your times, with its minutes and the running total in hours:minutes (before any break).
| From | To | Minutes | Total |
|---|---|---|---|
| 9:00 AM | 10:00 AM | 60 | 1:00 |
| 10:00 AM | 11:00 AM | 60 | 2:00 |
| 11:00 AM | 12:00 PM | 60 | 3:00 |
| 12:00 PM | 1:00 PM | 60 | 4:00 |
| 1:00 PM | 2:00 PM | 60 | 5:00 |
| 2:00 PM | 3:00 PM | 60 | 6:00 |
| 3:00 PM | 4:00 PM | 60 | 7:00 |
| 4:00 PM | 5:00 PM | 60 | 8:00 |
| 5:00 PM | 5:30 PM | 30 | 8:30 |
Need help with the hours between times calculation?
Video coming soon. Until then, the steps above show the count with your own numbers, and the worked examples below cover the cases where people most often go wrong.
How to find the hours between times with this calculator
- Clock: choose a 12-hour clock (9:30 PM) or a 24-hour clock (21:30) at the top. The answer uses it, and the choice is remembered. You can type times either way.
- Start time: type the time you start, such as 8:15 am, 8.15 or 0815, or pick it with the clock button.
- End time: type the time you finish. An end time earlier than the start time is read as the next day, so 10 PM to 6 AM gives 8 hours.
- Break: enter any unpaid break in minutes, such as 30 for a lunch break. It is taken off the answer.
- Quick picks: try a common shift with one tap, then change the times to your own.
When you need the hours between times
Count the hours between times for a work shift, a babysitting job, a flight or a drive, a study session, or how long you slept. The decimal answer is what most payroll and timesheet systems want: 7 hours 45 minutes is 7.75 hours.
For a whole week of shifts, use the time card calculator. To add or subtract hours and minutes instead, use the time calculator. For the days between two dates, use the days between dates calculator.
Hours between times: at a glance
What it does
Works out the hours and minutes from a start time to an end time, across midnight when needed, minus a break, in hours:minutes and in decimal hours.
Who it's for
Workers filling in timesheets, managers checking shifts, freelancers billing by the hour, and anyone timing a trip or a night’s sleep.
Watch out for
Decimal hours are not minutes: 8.30 hours is 8 hours 18 minutes, while 8 hours 30 minutes is 8.5 hours.
How the hours between times are worked out
Turn both times into minutes after midnight (hours × 60 + minutes; on a 12-hour clock, add 12 hours for PM, and 12 AM is 0). Then subtract the start from the end. If the end is smaller, the end time is on the next day, so add a full day of 1,440 minutes first. Take off any break, and divide by 60 for hours.
With your times: 1,050 − 540 = 510 minutes, which is 8 hours 30 minutes or 8.5 hours.
Decimal hours are what payroll uses: 30 minutes is 0.5 hours and 15 minutes is 0.25, so 7 hours 45 minutes is 7.75 hours, not 7.45. The calculator rounds decimal hours to two places. It counts clock time only and does not know about dates, so a change to or from daylight saving time during a night shift is not included; that night really has one hour more or less.
Hours between times: worked examples
How many hours are there from 9:00 AM to 5:30 PM?
9:00 AM is 540 minutes after midnight and 5:30 PM is 1,050. 1,050 − 540 = 510 minutes = 8 hours 30 minutes, or 8.5 hours.
Common mistake: subtracting the clock numbers, 5:30 − 9:00. On a 12-hour clock PM times need 12 hours added first, so 5:30 PM is 17:30.
How long is a night shift from 10:00 PM to 6:00 AM?
From 10 PM to midnight is 2 hours, and from midnight to 6 AM is 6 hours: 8 hours.
Common mistake: getting −16 hours by subtracting 22 from 6. When the end time is earlier, add 24 hours to it first: 6 + 24 − 22 = 8.
How many hours did I work from 8:20 AM to 4:05 PM with a 30-minute lunch?
8:20 to 4:05 PM is 7 hours 45 minutes (465 minutes). Minus 30 minutes: 7 hours 15 minutes, or 7.25 hours.
Common mistake: writing 7 hours 15 minutes as 7.15 hours on a timesheet. In decimal hours 15 minutes is 0.25, so 7.15 would underpay you by 6 minutes.
How many minutes are there between 11:45 PM and 12:15 AM?
The end is just after midnight, so it is the next day: 15 minutes to midnight and 15 after it make 30 minutes.
Common mistake: reading 12:15 AM as a quarter past noon. 12 AM is midnight and 12 PM is noon.
Video: counting the hours between times
Hours between times in Excel and Google Sheets
Type the start time in A2 and the end time in B2 (as times, for example 9:00 AM), and the break in minutes in C2. MOD(B2-A2,1) gives the time between them and handles shifts past midnight.
Read the table row by row: each row is one cell of your sheet, what to put in it and an example.
| Cell | What goes in it | Example |
|---|---|---|
| A2 | Start time | 9:00 AM |
| B2 | End time | 5:30 PM |
| C2 | Break in minutes | 0 |
| D2 | Decimal hours | =(MOD(B2-A2,1)-C2/1440)*24 |
Decimal hours, minus the break
=(MOD(B2-A2,1)-C2/1440)*24 Hours:minutes, minus the break
=TEXT(MOD(B2-A2,1)-C2/1440,"h:mm") Total minutes
=ROUND((MOD(B2-A2,1)-C2/1440)*1440,0) Same day only (no midnight)
=(B2-A2)*24 Times in a spreadsheet are fractions of a day, so multiply by 24 for hours or 1,440 for minutes. Format the decimal-hours cell as a number, not as a time. Without MOD a shift past midnight gives a negative number.
Hours between times: frequently asked questions
How do I calculate hours between two times?
Change both times to minutes after midnight, subtract the start from the end and divide by 60. If the end time is earlier than the start, add 24 hours (1,440 minutes) to the end first, because it is on the next day.
How do I convert minutes to decimal hours?
Divide the minutes by 60: 15 minutes is 0.25 hours, 20 minutes 0.33, 30 minutes 0.5 and 45 minutes 0.75. So 7 hours 20 minutes is 7.33 hours.
What if the shift goes past midnight?
Enter the times as they are. When the end time is earlier than the start time, the calculator counts it as the next day, so 10 PM to 6 AM is 8 hours.
What happens when both times are the same?
The answer is 0 minutes, because the calculator reads the times as the same moment. For a full 24 hours, use the time calculator to add 24 hours to a time.
Does daylight saving time change the answer?
The calculator counts clock time and does not know the date. On the night the clocks change, a shift really lasts one hour more (in the fall) or one hour less (in the spring) than the clock difference shows.
Is 12 AM midnight or noon?
12 AM is midnight, the start of the day, and 12 PM is noon. To avoid mistakes you can type noon or midnight, or use a 24-hour time such as 00:00 or 12:00.
Other date and time calculators
- Age calculator
- Business days calculator
- Date calculator
- Day of the week calculator
- Days between dates
- Days from today
- Days until a date
- Time calculator
- Time card calculator
- Weeks from today
Report a problem with this calculator · Sponsor this calculator