Hours Calculator

Work out the hours between a start and end time, subtract your break, and optionally see the pay — with decimal hours for payroll.

$

Please enter valid start and end times.

Hours worked
Decimal hours
Total minutes
Break deducted

How hours are calculated

Hours = (End − Start) − Break
Decimal hours = hours + minutes ÷ 60
Worked example

9:00 AM to 5:30 PM is 8.5 hours; minus a 30-minute lunch = 8.0 hours (8:00 in h:mm, 8.00 decimal). At $20/hr that's $160.

Timesheets, overnight shifts, and decimal hours

Payroll systems use decimal hours (8.25, not 8:15), which is why this tool shows both. If the end time is before the start time, the calculator assumes an overnight shift and adds 24 hours, so a 10 PM–6 AM shift correctly reads 8 hours. Add your rate to see gross pay for the shift; for overtime beyond 40 hours a week, use the overtime calculator, and to convert an hourly wage to an annual salary, the salary calculator.

Frequently asked questions

How do I calculate hours worked?

End − start − unpaid break. 9:00–5:30 with a 30-min lunch = 8.0 hours.

How do I convert to decimal hours?

Minutes ÷ 60 added to hours. 8h 15m = 8.25.

How does an overnight shift work?

If end is before start, 24 hours is added. 10 PM–6 AM = 8 hours.

Related calculators

Last reviewed: July 2026.