Hours Calculator

Enter a start and end time, subtract your break, and get the exact hours worked in both h:m and decimal format. Add an hourly rate to see your pay.

min
$
Hours worked
8h 0m
Decimal hours
8.00
Total minutes
480

Overnight shifts are handled automatically — if the end time is earlier than the start, it counts to the next day.

How to use this calculator

Set the start and end times, enter any unpaid break in minutes, and the calculator shows the hours worked as h:m and as decimal hours. Add an optional hourly rate to see gross pay.

How it works

The calculator converts both times to minutes, finds the difference, subtracts the break, and converts back. If the end time is before the start time it treats the shift as overnight and adds 24 hours, so a 10:00 PM–6:00 AM shift correctly reads 8 hours.

Worked example

Clock in at 9:00 AM, out at 5:30 PM, with a 30‑minute lunch: that's 8h 0m, or 8.00 decimal hours. At $20/hour that's $160 gross.

The formula

Hours = (End − Start − Break) ÷ 60  ·  Pay = Decimal hours × Rate

Frequently asked questions

How do I calculate hours worked between two times?

Subtract the start time from the end time, then subtract any unpaid break. For example, 9:00 AM to 5:30 PM is 8 hours 30 minutes; remove a 30‑minute break and you've worked 8 hours.

How do I convert hours and minutes to decimal hours?

Divide the minutes by 60 and add to the hours. 8 hours 30 minutes = 8 + 30/60 = 8.5 decimal hours. Payroll systems use decimal hours, which this calculator shows automatically.

Does this handle overnight shifts?

Yes. If the end time is earlier than the start time, the calculator assumes the shift crossed midnight and counts the hours into the next day.

How is my pay calculated?

Enter an hourly rate and the calculator multiplies it by your decimal hours. For example, 8.5 hours at $20/hour is $170 gross (before taxes and deductions).

Related calculators