Hours Calculator

How many hours between two times? Enter a start and end time — the duration appears instantly in hours:minutes and decimal, with breaks deducted and overnight shifts handled.

Hours between two times

Type times any way you like: 9, 845a, 5:30pm, 1730. Overnight shifts are handled automatically.

Total time: 8:00  =  8.00 hours (480 minutes)

How it's calculated

The calculator converts both times to the 24-hour clock, subtracts the start from the end, and deducts the unpaid break. If the end time is earlier than the start, it assumes the shift crossed midnight — so 10:00 PM to 6:00 AM correctly returns 8 hours.

Example: 8:45 AM to 5:15 PM is 8 hours 30 minutes. Minus a 30-minute lunch = 8:00, or 8.00 decimal hours.

Common shift lengths

ShiftWith 30-min breakDecimal
9:00 AM – 5:00 PM7:307.50
8:00 AM – 4:30 PM8:008.00
8:30 AM – 5:00 PM8:008.00
7:00 AM – 3:30 PM8:008.00
10:00 PM – 6:00 AM7:307.50
11:00 PM – 7:00 AM7:307.50

Totaling a whole week of shifts? The weekly time card calculator does all seven days with overtime and pay, the decimal hours converter flips any single value between h:mm and decimal, and for spans longer than a day the time duration calculator counts days, hours and minutes between two moments.

Frequently asked questions

How many hours is 9 to 5?

8 hours exactly, or 7.5 hours with a 30-minute unpaid lunch. Enter your own break above to see your exact total.

How does it handle overnight shifts?

If the end time is earlier than the start time, the calculator assumes the shift crossed midnight — 10:00 PM to 6:00 AM returns 8 hours.

Can I add up several days at once?

Yes — use the weekly time card calculator, which totals up to seven shifts with breaks, overtime and pay.