Hours Calculator

How many hours between two times? Enter a start and end time — get hours:minutes and decimal hours instantly.

🔒 Runs 100% in your browser — nothing is uploaded
Hours : minutes
8:00
 
Decimal hours
8.00
for payroll
Total minutes
480
 
Pay
enter rate
Ad

How to calculate hours between two times

The method is simple: convert each time to minutes since midnight, subtract, and convert back. For 8:15 AM to 4:45 PM: 8:15 AM is 495 minutes, 4:45 PM is 1,005 minutes, so the difference is 510 minutes = 8 hours 30 minutes = 8.5 decimal hours. If the end time is "earlier" than the start (a night shift like 11:00 PM to 7:00 AM), add 24 hours to the end time first — this calculator does that automatically.

Common shift lengths at a glance

ShiftRaw hoursWith 30-min breakWith 60-min break
9:00 AM – 5:00 PM8:007.57.0
8:00 AM – 4:30 PM8:308.07.5
7:00 AM – 7:00 PM12:0011.511.0
11:00 PM – 7:00 AM (overnight)8:007.57.0

Minutes to decimal hours

Payroll runs on decimal hours. The conversion is minutes ÷ 60:

Minutes510152030404550
Decimal0.080.170.250.330.500.670.750.83

Adding up a whole week of shifts? Use the time card calculator — it totals seven days with breaks and overtime.

Frequently asked questions

How many hours is 9 to 5?
8 hours raw. With a 30-minute unpaid lunch, 7.5 paid hours; with an hour lunch, 7 paid hours.
Does this handle overnight shifts?
Yes. If the end time is before the start time, the calculator assumes the shift crossed midnight — 10:00 PM to 6:00 AM = 8 hours.
Why do I need decimal hours?
Multiplying pay is easier with decimals: 7.75 hours × $18 is one multiplication. Timesheets and payroll software almost always use decimal format.
Can I calculate multiple days at once?
This page is built for a single time span. For a full week or two-week period with overtime, use the time card or biweekly calculator.