Free Online Calculator

Hours Calculator

Work out the hours between a start and end time, deduct breaks, and total several shifts.

Last updated: Free, no sign-up Private — runs in your browser

Quick answer: how to calculate hours worked

Subtract the start time from the end time, then deduct any unpaid break. 09:00 to 17:30 with a 30-minute break is 8 hours (8.00 decimal hours).

Overview of the Hours Calculator

The Hours Calculator finds how long you worked between a start time and an end time, takes off an unpaid break, and shows the result both as hours and minutes and as decimal hours for payroll. Overnight shifts, where the end time is earlier than the start time, are handled automatically.

A second tool adds up several shifts so you can total a week or a pay period. For a full weekly timesheet with overtime and pay, use the Time Card Calculator.

How We Calculate Hours Worked

Times are converted to seconds after midnight, so the maths is simple subtraction.

  1. Convert the start and end times to seconds after midnight.
  2. Subtract: end − start. If the result is zero or negative the shift runs overnight, so 24 hours are added.
  3. Deduct the unpaid break in minutes.
  4. Convert to hours and minutes, and to decimal hours (minutes ÷ 60) for pay calculations.
  5. For several shifts, add the daily totals.
hours worked = (end − start) − break   (add 24 h if end ≤ start)
decimal hours = hours + minutes ÷ 60
Worked examples (calculated with this tool)
ShiftHours worked
09:00–17:30, 30 min break, 5 days40 h 0 min (40 h)
22:00–06:00 night shift, no break8 h 0 min
08:45–13:15, 15 min break4 h 15 min
Mon 9–5 (30 min), Tue 10–6:30 (60 min), Wed 22–0623 h 0 min

Minutes to Decimal Hours

Payroll systems usually want hours as decimals. Divide the minutes by 60 and add them to the whole hours.

Minutes to decimal hours
MinutesDecimal hours
5 minutes0.08
10 minutes0.17
15 minutes0.25
20 minutes0.33
30 minutes0.50
40 minutes0.67
45 minutes0.75
50 minutes0.83

Hours Calculator — Frequently Asked Questions

How do I calculate hours worked?

Subtract the start time from the end time and deduct any unpaid break. 09:00 to 17:30 minus 30 minutes is 8 hours.

How do I calculate hours for a night shift?

Enter the actual start and end times. If the end time is earlier than the start time, the calculator treats it as the next day, so 22:00 to 06:00 is 8 hours.

What are decimal hours?

Hours written as a decimal: 7 hours 30 minutes is 7.5 hours. They make pay easy to calculate: decimal hours × hourly rate.

How do I convert minutes to decimal hours?

Divide by 60. 15 minutes is 0.25 hours and 45 minutes is 0.75 hours.

How do I include a lunch break?

Enter the unpaid break length in minutes. It is subtracted from the time between start and end.

How many hours is 9 to 5?

9:00 to 17:00 is 8 hours, or 7.5 hours with a 30-minute unpaid lunch.

How do I total hours for a week?

Use the second calculator to list each shift, or use the Time Card Calculator for overtime and pay.

Can it handle shifts over 24 hours?

A single shift is up to 24 hours. For longer spans use the Time Duration Calculator with dates.

Does it calculate pay?

This tool gives hours. For pay with overtime, use the Time Card Calculator.

Is my data stored?

No. Everything runs in your browser.

More Free Calculators You May Need

Need a custom calculator or tool on your website?

Our team designs and develops fast, SEO-ready websites and web tools. Tell us what you need.

Call Us WhatsApp

Get a Free Quote

Tell us a bit about your project — we'll get back to you shortly.

8 + 8 =
Call WhatsApp