Hours Calculator
Find the hours and minutes between any two times. Add a break if you need to, and get the result in both hours-and-minutes and decimal hours for payroll.
Enter times as 12-hour (9:00 AM) or 24-hour (17:30). Overnight shifts are handled automatically.
How to calculate hours between two times
Subtract the start time from the end time, then subtract any unpaid break. For example, 9:00 AM to 5:00 PM is 8 hours; minus a 30-minute lunch leaves 7 hours 30 minutes, or 7.50 decimal hours. To get pay, multiply decimal hours by your hourly rate.
Frequently asked questions
How do I calculate hours between two times?
Enter the start time and end time. The calculator subtracts the start from the end, deducts any break minutes, and shows the result in hours and minutes and in decimal hours. If the end time is earlier than the start, it assumes an overnight shift and adds 24 hours.
What are decimal hours?
Decimal hours express minutes as a fraction of an hour for payroll — for example 8 hours 30 minutes = 8.50 decimal hours (30 ÷ 60 = 0.5). Multiply decimal hours by your hourly rate to get pay.
Does it handle overnight shifts?
Yes. If you clock in at 10:00 PM and out at 6:00 AM, the calculator recognizes the shift crossed midnight and returns 8 hours.
Related tools
Time Card Calculator · Overtime Calculator · 12-Hour Shift Calculator
Embed this calculator on your site (free)
Add the Hours Calculator to your own website — just copy and paste this code. It stays up to date automatically.