Time calculator
Hours calculator: time between two times
Answer
8 hours 0 minutes
Example: 9:00 AM to 5:30 PM with a 30-minute break.
From 9:00 AM to 5:30 PM is 8 hours 30 minutes; minus a 30-minute break it is 8 hours (8.00 decimal hours). If the end time is earlier than the start time, the shift is treated as crossing midnight.
- Decimal hours
- 8.00
- Minutes
- 480
How it’s calculated
- Convert both times to minutes after midnight: 9:00 = 540, 17:30 = 1,050.
- Subtract: 1,050 − 540 = 510 minutes. If negative, add 1,440 (overnight shift).
- Subtract the break: 510 − 30 = 480 minutes = 8 hours = 8.00 decimal hours.
Minutes to decimal hours
| Minutes | Decimal hours |
|---|---|
| 6 | 0.10 |
| 15 | 0.25 |
| 20 | 0.33 |
| 30 | 0.50 |
| 40 | 0.67 |
| 45 | 0.75 |
| 50 | 0.83 |
Timesheets and payroll
Payroll systems usually need decimal hours: divide the minutes by 60. 7 hours 45 minutes is 7.75 hours, so at $20 an hour that is $155. Rounding rules (for example, to the nearest 15 minutes) depend on your employer and local labor law.
Frequently asked questions
How do I calculate hours worked?
Subtract the start time from the end time, then subtract unpaid breaks. Convert minutes to decimal hours by dividing by 60.
How do I handle a shift past midnight?
Add 24 hours to the end time before subtracting. 10 PM to 6 AM is 8 hours.
More: calculators and tools
- Percentage increase and decrease calculator
- Days between dates calculator
- Business days calculator
- What is today’s date
- Military time converter
- Percentage calculator
- Age calculator
- Time zone converter
- Running pace calculator
- Body fat percentage calculator (U.S. Navy method)
- Day of the week calculator
- Percent error calculator