How to calculate hours between two times
- Convert both times to 24-hour format (5:30 PM = 17:30).
- Subtract the start from the end: 17:30 − 9:00 = 8:30.
- If the minutes go negative, borrow an hour: 16:10 − 8:45 = 15:70 − 8:45 = 7:25.
- If the end is earlier than the start, the span crosses midnight, so add 24 hours: 22:00 to 06:00 = 6:00 − 22:00 + 24:00 = 8:00.
Examples
| Start | End | Duration | Decimal |
|---|---|---|---|
| 9:00 AM | 5:00 PM | 8:00 | 8.00 |
| 8:45 AM | 4:10 PM | 7:25 | 7.42 |
| 7:00 AM | 3:30 PM | 8:30 | 8.50 |
| 10:00 PM | 6:00 AM | 8:00 | 8.00 |
| 11:15 AM | 2:50 PM | 3:35 | 3.58 |
Need to add up a whole week?
This page calculates one span of time. To total a full week or pay period with breaks, overtime and pay, use the time card calculator, or the bi-weekly version for two-week pay periods.
Frequently asked questions
How many hours is 9 AM to 5 PM?
9:00 AM to 5:00 PM is 8 hours. With a 30-minute unpaid lunch it's 7.5 hours.
How do I calculate hours across midnight?
If the end time is earlier than the start time, add 24 hours to the end. 10 PM to 6 AM is 8 hours. The calculator does this automatically.
How many hours is 7 AM to 7 PM?
7:00 AM to 7:00 PM is 12 hours.
Results are estimates for personal use, not legal or payroll advice. Check your employer's policy and your state's labor laws.