How to calculate hours between two times
The reliable way is to turn both times into minutes after midnight, subtract, take off any unpaid break, and turn the answer back into hours and minutes. Working in minutes avoids the most common slip, which is subtracting hours and minutes as if they were ordinary decimal numbers.
Example: 8:45 AM to 5:15 PM with a 30-minute lunch
- Start: 8 × 60 + 45 = 525 minutes
- End: 5:15 PM is 17:15, so 17 × 60 + 15 = 1,035 minutes
- 1,035 − 525 = 510 minutes on site
- 510 − 30 = 480 minutes worked
- 480 ÷ 60 = 8
8 hours exactly, written as 8:00 or 8.00 hours.
For a check in your head, count whole hours first and then the leftover minutes. From 8:45 to 4:45 is 8 hours, and 4:45 to 5:15 adds another 30 minutes, so 8 hours 30 minutes before the lunch break comes off.
Shifts that cross midnight
On a night shift the end time is a smaller number than the start time, so a plain subtraction gives a negative answer. Adding 24 hours to the end time fixes it, and that's what the calculator does whenever the end comes before the start.
Example: 10:00 PM to 6:30 AM
- Start: 22 × 60 = 1,320 minutes
- End: 6 × 60 + 30 = 390 minutes
- 390 is smaller than 1,320, so add 1,440: 390 + 1,440 = 1,830
- 1,830 − 1,320 = 510 minutes
8 hours 30 minutes, or 8.50 hours, before any break.
The 24-hour clock makes overnight sums easier to read, because 22:00 and 06:30 can't be mixed up with morning and evening. A shift longer than a full day can't be described by two clock times alone, so split it into parts and add them with the time calculator.
Converting minutes to decimal hours
Payroll systems and many timesheets want decimal hours rather than hours and minutes. Divide the minutes by 60: 45 minutes is 0.75 hours, so 7 hours 45 minutes is 7.75 hours. The classic mistake is writing 7:45 as 7.45, which loses 18 minutes of pay, because 0.45 hours is only 27 minutes.
| Minutes | Fraction of an hour | Decimal hours |
|---|---|---|
| 5 | 1/12 | 0.08 |
| 6 | 1/10 | 0.10 |
| 10 | 1/6 | 0.17 |
| 12 | 1/5 | 0.20 |
| 15 | 1/4 | 0.25 |
| 20 | 1/3 | 0.33 |
| 30 | 1/2 | 0.50 |
| 40 | 2/3 | 0.67 |
| 45 | 3/4 | 0.75 |
| 50 | 5/6 | 0.83 |
To go back the other way, multiply the decimal part by 60. So 6.4 hours is 6 hours and 0.4 × 60 = 24 minutes.
Which breaks to subtract from your hours
Only take off breaks you aren't paid for. Under the US Fair Labor Standards Act, short rest periods of about 20 minutes or less count as hours worked, so a 15-minute coffee break stays in. A bona fide meal period, typically 30 minutes or more with you fully relieved of duty, generally doesn't need to be paid and comes off the total.
Ontario's rules work differently. Employees can't work more than five hours in a row without a 30-minute eating period, meal breaks are unpaid unless the employment contract says otherwise, and meal breaks, paid or not, don't count as hours of work. Other provinces, states and employers have their own rules, so your contract or pay stub is the final word on what's paid.
12 AM, 12 PM and other times that trip people up
NIST, the US national measurement lab, calls 12 a.m. and 12 p.m. ambiguous and suggests avoiding them, since noon is neither before nor after noon. This calculator follows the everyday convention: 12 AM is midnight and 12 PM is noon. To remove any doubt, type noon or midnight, or use the 24-hour clock, where 00:00 starts the day and 24:00 ends it.
- 9 or 9am is read as 9:00 AM, and 5:30p or 5:30 pm as 5:30 PM.
- 1730 or 17:30 is 5:30 PM. A leading zero, as in 07:00, means a 24-hour time.
- A bare end time takes the reading that gives the shorter shift, so 9 to 5 means 9 AM to 5 PM, and 10pm to 6 means 10 PM to 6 AM.
- After you leave a box, the time is rewritten the way it was read, so you can spot a wrong guess straight away.
For a whole week of shifts with overtime and pay, use the time card calculator. To see what an hourly wage adds up to over a year, try the salary to hourly calculator.