Skip to content

Hours Calculator

Work out hours between a start and end time, minus breaks.

Calculated locally in your browser.

24-hour HH:MM.
24-hour HH:MM. Crosses midnight if earlier than the start.
min
Optional — to estimate gross pay.

How do you calculate hours worked between two times?

Worked minutes = (end − start) − break; if end is earlier than start, 24 hours are added for an overnight shift, and decimal hours = worked minutes ÷ 60. Decimal hours (e.g. 8.5) are what payroll systems use, while hours-and-minutes (8h 30m) reads easily on a time card. A 09:00–17:30 shift with a 30-minute break is 8 hours (8.0 decimal hours).

Understanding your result

Decimal hours (e.g. 8.5) are what most payroll systems use, while hours-and-minutes (8h 30m) is easier to read on a time card.

Formula and method

Worked minutes = (end − start) − break. If the end time is earlier than the start, 24 hours are added for an overnight shift. Decimal hours = worked minutes ÷ 60.

Worked example

A 09:00–17:30 shift with a 30-minute break is 8 hours (8.0 decimal hours).

How to use this tool

  1. Enter the start and end time in 24-hour HH:MM.
  2. Add any unpaid break in minutes.
  3. Optionally add an hourly rate to estimate pay.

Common mistakes to avoid

  • Entering times in 12-hour format — use 24-hour HH:MM, e.g. 17:30 for 5:30 PM.
  • Forgetting to subtract an unpaid break.

About the Hours Calculator

Add up the hours between any start and end time, subtract breaks, and get the result in hours-and-minutes and decimal hours. Overnight shifts are handled automatically.

Who should use this tool

Hourly workers, freelancers and managers filling in a time card or timesheet.

Explore all Date and Time tools

Frequently asked questions

Does it handle overnight shifts?

Yes. If the end time is earlier than the start, the calculator assumes the shift crosses midnight and adds 24 hours.

How is pay estimated?

Gross pay is decimal hours multiplied by your hourly rate. It does not account for overtime rules, taxes or deductions.

Share this tool

Free to use — copy the link, share it anywhere, or add the tool to your own website.

Embed this tool on your site (free)

Copy this code and paste it into any web page — it stays free and always up to date: