How to count the hours between two times
Turn each time into minutes after midnight, then subtract. 9:00 AM is 540 minutes after midnight and 5:30 PM is 1,050, so the gap is 510 minutes. Dividing by 60 gives 8 with 30 minutes left over: 8 hours 30 minutes.
Minutes = (end − start) in minutes, + 1,440 for each day the end is later
Hours and minutes = minutes ÷ 60, remainder in minutes
Decimal hours = minutes ÷ 60
A time typed with AM or PM uses the 12-hour clock. Without AM or PM it is read as a 24-hour time, so 21:00 is 9:00 PM.
Worked examples: a workday, a night and two days
- 9:00 AM to 5:30 PM: 8 hours 30 minutes, which is 8.5 decimal hours or 510 minutes
- The same day with a 45-minute break taken off: 7:45, or 7.75 hours
- 10:00 PM to 6:15 AM: the end is earlier than the start, so it falls on the next day. 1,440 − 1,320 + 375 = 495 minutes, or 8 hours 15 minutes (8.25 hours)
- 8:00 AM to 2:00 PM two days later: 2 × 24 hours + 6 hours = 54 hours, or 3,240 minutes
The result card also gives the same span in seconds and, from 24 hours up, in days.
Minutes to decimal hours chart
Some forms and spreadsheets want hours as a decimal: 8.5 instead of 8:30. To convert, divide the minutes by 60. Some minute values give clean decimals (15, 30, 45), others repeat forever, such as 10 minutes, which is one sixth of an hour.
| Minutes | Decimal hours | As a fraction |
|---|---|---|
| 1 | 0.0167 | 1/60 |
| 5 | 0.0833 | 1/12 |
| 6 | 0.1 | 1/10 |
| 10 | 0.1667 | 1/6 |
| 12 | 0.2 | 1/5 |
| 15 | 0.25 | 1/4 |
| 20 | 0.3333 | 1/3 |
| 25 | 0.4167 | 5/12 |
| 30 | 0.5 | 1/2 |
| 35 | 0.5833 | 7/12 |
| 40 | 0.6667 | 2/3 |
| 45 | 0.75 | 3/4 |
| 50 | 0.8333 | 5/6 |
| 55 | 0.9167 | 11/12 |
To go the other way, multiply the decimal part by 60: 0.75 hours × 60 = 45 minutes, so 7.75 hours is 7 hours 45 minutes. The decimal hours in the result card keep up to four places so that a total built from them stays close to the true number of minutes.
Two easy mistakes with clock times
The first is to subtract clock times as if they were ordinary decimals. 5:30 PM minus 9:00 AM is not 5.30 − 9.00: a clock rolls over at 60 minutes and at 12 or 24 hours, so convert both times to minutes first, as the formula above does. The same goes for adding up a column of times: 7:45 plus 8:30 is 16 hours 15 minutes, not 15.75.
The second is to read 8:30 as 8.30 hours. Eight hours and thirty minutes is 8.5 hours, because thirty minutes is half an hour. Writing 8.30 on a form that expects decimals drops 12 minutes from the total. The result card shows both forms side by side so that you can copy the one the form asks for.
Past midnight and several days later
With the default setting, "Same day or next (auto)", the calculator assumes the shorter reading: if the end time is later in the day, both times are on the same day; if it is earlier, the end is on the next day. That covers night shifts, flights that land after midnight and late events.
For anything longer, choose how many days later the end falls, up to 7. Choosing "The same day" with an end time before the start gives an error instead of a guess. A start and end at the same clock time need "Next day" to count as 24 hours; 24:00 is also accepted as the end of a day.
One span or a whole week
This page measures one span between two times. For a full week of work with a start, an end and a break for each day, the time card calculator adds the days up and shows the weekly total. To read a schedule written in four digits, such as 0645 or 2215, the military time converter turns it into AM and PM. Runners who want a pace from a finish time can use the pace calculator.
Hours Calculator FAQ
How many hours is it from 9 AM to 5:30 PM?
8 hours 30 minutes, which is 8.5 hours in decimal form or 510 minutes.
How do I count hours that go past midnight?
Add 24 hours to the end time before you subtract. 10:00 PM to 6:15 AM is 8 hours 15 minutes. The calculator does this for you when the end time is earlier than the start.
What is 45 minutes as a decimal of an hour?
0.75 hours, because 45 ÷ 60 = 0.75. 15 minutes is 0.25 and 30 minutes is 0.5.
How many minutes are in 8.25 hours?
495 minutes: 8 × 60 = 480, plus 0.25 × 60 = 15.
Can the hours calculator count time across several days?
Yes. Pick how many days later the end time is, up to 7. 8:00 AM to 2:00 PM two days later is 54 hours.