Skip to content

Hours Calculator

Enter a start and end time (overnight shifts work too) and an optional break to get hours worked in hours and minutes and in decimal form.

Date & TimeUpdated Free · No sign-up

How to use the Hours Calculator

  1. Pick what you want to work out using the tabs: Start and end time or Dates and times.
  2. Set Start time.
  3. Set End time (An end time earlier than the start is treated as the next day (overnight shift)).
  4. Enter Unpaid break.
  5. Read your answer in the results panel. It updates as you type, and the breakdown, step-by-step working and any charts or tables appear below it.
  6. Use Share link to save or send the exact calculation, or Copy to paste the results elsewhere.

How the hours are counted

The calculator takes the end time minus the start time, then subtracts the unpaid break. If the end time is earlier than the start time, it assumes the shift ran past midnight and adds 24 hours. That is how a 10:00 PM to 6:15 AM night shift becomes 8 hours 15 minutes.

hours worked = (end − start, + 24 h if the shift crosses midnight) − break

Hours and minutes or decimal hours?

Clocks show hours and minutes, but payroll systems, timesheets and invoices usually want decimal hours. To convert, divide the minutes by 60.

Minutes Decimal
15 0.25
20 0.33
30 0.50
40 0.67
45 0.75

A common mistake is to write 7 hours 30 minutes as 7.30. It is actually 7.50, and the 0.2-hour difference adds up over a month of timesheets.

Worked example

You start at 9:00 AM, finish at 5:30 PM and take a 30-minute unpaid lunch. The span is 8 hours 30 minutes, or 510 minutes. Take away 30 minutes and you worked 480 minutes, which is 8 hours or 8.00 decimal hours. At $22 an hour that is $176.

Shifts across several days

The Dates and times tab handles longer periods, such as a 52-hour stretch from 8:00 AM Monday to 12:00 PM Wednesday, or on-call work spanning a weekend. Enter the total break time to deduct, and the result is shown in hours, as days and hours, and in decimal form.

Things to watch

  • Paid breaks should not be deducted. Only enter breaks you are not paid for.
  • For a full week, with overtime, use the time card calculator instead.
  • Shifts that span a daylight saving change will be off by an hour. Adjust the result by hand on those two nights a year.
  • If you bill clients, round consistently, for example to the nearest quarter hour, and say so on the invoice.

Frequently asked questions

How do I calculate hours worked between two times?

Subtract the start time from the end time and take away any unpaid break. If the shift ends after midnight, add 24 hours to the end time first.

How do I calculate an overnight shift?

Enter the start and end times as normal. When the end time is earlier than the start time, the calculator treats it as the next day, so 11:00 PM to 7:00 AM is 8 hours.

What is 8 hours 45 minutes in decimal?

45 ÷ 60 = 0.75, so 8 hours 45 minutes is 8.75 hours.

Should lunch breaks be subtracted from hours worked?

Only unpaid breaks. Under US federal rules, short rest breaks of 5 to 20 minutes are usually paid, while meal breaks of 30 minutes or more can be unpaid if you are fully relieved of duty.