How to calculate hours between two times
The time calculator above finds the hours between two times by subtracting the start from the end, with minutes carried: 9:00 AM to 5:30 PM is 8 hours 30 minutes. Take off any unpaid break and the paid time is 8:00, or 8.00 in decimal hours. To turn those hours into pay, use our salary to hourly calculator.
- Write both times on the 24-hour clock: 9:00 AM is 09:00 and 5:30 PM is 17:30.
- Subtract the hours and the minutes separately: 17:30 − 09:00 = 8 hours 30 minutes.
- If the minutes come out negative, borrow an hour: 10:15 − 7:40 is 2 hours 35 minutes, since 75 − 40 = 35.
- Subtract the break in minutes: 8:30 − 0:30 = 8:00.
Overnight shifts and crossing midnight
When the end time is earlier on the clock than the start time, the shift ends the next day. Add 24 hours to the end time before you subtract. A night shift from 10:00 PM to 6:30 AM runs 8:30 on the clock, and 8:00 after a 30-minute break.
The filled dot is the start, the hollow dot the end. The arc passes the top of the dial, which is midnight.
| Start | End | Break | Paid | Note |
|---|---|---|---|---|
| 9:00 AM | 5:30 PM | 30 min | 8:00 | A day shift |
| 10:00 PM | 6:30 AM | 30 min | 8:00 | Overnight, crosses midnight |
| 11:45 PM | 12:15 AM | none | 0:30 | Half an hour across midnight |
| 12:00 AM | 8:00 AM | none | 8:00 | 12 AM is midnight |
| 12:00 PM | 8:00 PM | none | 8:00 | 12 PM is noon |
| 8:00 PM | 5:00 PM | none | 21:00 | AM typed as PM: 21 hours |
Source: calculated with this page’s functions. Paid time is hours:minutes.
The last row shows how costly an AM/PM mix-up is: 8:00 PM where you meant 8:00 AM turns a 9-hour day into 21 hours. (12:00 AM is midnight; 12:00 PM is noon.)
On the night the clocks change for daylight saving time, a shift from 10:00 PM to 6:00 AM really lasts 7 or 9 hours, not 8; this calculator reads clock times only.
Adding and subtracting hours, minutes and seconds
Time is counted in sixties, so add each column and carry. Add durations, not clock times: 2:30 PM plus 3:00 PM is meaningless.
- Seconds: 30 + 45 = 75, which is 1 min 15 s. Write 15, carry 1 minute.
- Minutes: 45 + 20 + 1 = 66, which is 1 h 6 min. Write 6, carry 1 hour.
- Hours: 2 + 1 + 1 = 4.
- Total: 4:06:15, which is 4 h 6 min 15 s.
Subtracting works the same way in reverse; a negative total on a clock start time moves the result back past midnight into the previous day.
Converting minutes to decimal hours
Payroll systems usually want decimal hours: 7 hours 45 minutes is 7.75, not 7.45. Divide the minutes by 60 and add them to the hours. Every 6 minutes is one-tenth of an hour, which is why some timekeeping rounds to the nearest 6 minutes.
| Minutes | Decimal hours | Minutes | Decimal hours |
|---|---|---|---|
| 0 | 0.00 | 30 | 0.50 |
| 5 | 0.08 | 35 | 0.58 |
| 10 | 0.17 | 40 | 0.67 |
| 15 | 0.25 | 45 | 0.75 |
| 20 | 0.33 | 50 | 0.83 |
| 25 | 0.42 | 55 | 0.92 |
Source: minutes ÷ 60, rounded to two decimal places.
Rounded values such as 0.33 for 20 minutes add small errors over a week, so convert only the weekly total.
Totalling a weekly timesheet
Overnight shifts are counted on the day they start. If your out time already excludes the lunch break, enter 0 as the break.
| Day | In | Out | Break | H:MM | Decimal |
|---|---|---|---|---|---|
| Monday | 8:30 AM | 5:00 PM | 30 min | 8:00 | 8.00 |
| Tuesday | 9:00 AM | 5:45 PM | 45 min | 8:00 | 8.00 |
| Wednesday | 9:00 AM | 5:30 PM | 30 min | 8:00 | 8.00 |
| Thursday | 7:00 AM | 3:15 PM | 20 min | 7:55 | 7.92 |
| Friday | 10:00 AM | 4:00 PM | none | 6:00 | 6.00 |
| Week | 37:55 | 37.92 |
Source: calculated with this page’s timesheet function.
Two rules affect what goes in the break column in the United States. Under the federal Fair Labor Standards Act regulations, short rest breaks of about 5 to 20 minutes count as hours worked and are paid, while a bona fide meal period, usually 30 minutes or more with the worker fully relieved of duty, does not. The rounding option follows another rule: recording times to the nearest 5 minutes, tenth or quarter of an hour is acceptable only if it does not, over time, shortchange the employee. Many states and other countries have their own rules. This page is for information only and is not legal advice.
Common questions
What happens when start and end are the same time?
The result is 0 hours. To count a full 24 hours, use 12:00 AM as the start and 24:00 as the end.
Can it add more than 24 hours?
Yes. In the Durations tab the total can be any size, shown as hours, minutes and seconds with the days written out in words. For gaps measured in calendar days instead of clock time, our date calculator adds and subtracts days, and the time zone converter handles times in two cities.
Sources
- 29 CFR 785.18: Rest (US Fair Labor Standards Act, via Cornell Law School)
- 29 CFR 785.19: Meal (via Cornell Law School)
- 29 CFR 785.48: Use of time clocks and rounding (via Cornell Law School)
- IANA: Time Zone Database (for clock changes)
Last reviewed November 9, 2026. Results are for information only and are not legal or payroll advice.
Related tools