Hours Calculator

Hours between two times, timesheet totals and pay

Work out the hours and minutes between two times - including overnight shifts and unpaid breaks - in hours and minutes and decimal hours. Add up a whole week's timesheet and calculate pay at an hourly rate.
Share
Try an example:
min
$
Your result will appear here as you type.

About Hours Calculator

Formula

Hours worked = End − Start − Break

An end time earlier than the start is treated as the next day (night shifts).

Worked examples

Day shift

09:00 to 17:30 with a 30-minute break is 8 hours (8.00 decimal hours).

How it works

  1. The start time is subtracted from the end time. If the end is earlier than the start, the shift is taken to run past midnight (22:00 to 06:00 is 8 hours).
  2. The unpaid break is subtracted, and the result is shown both as hours and minutes (7h 45m) and as decimal hours (7.75) - the format payroll systems use.
  3. In timesheet mode, each line is one shift. A label like "Mon" before the times is kept, and a number after a comma is the break in minutes.
  4. With an hourly rate, pay = decimal hours × rate.

What you need

  • Start and end times, in 24-hour (17:30) or 12-hour (5:30 pm) format.

Tips

  • To convert minutes to decimal hours, divide by 60: 45 minutes = 0.75 hours, 20 minutes ≈ 0.33.
  • Paste a column of shifts from a spreadsheet into timesheet mode to total a week or a month.
  • Overtime rules differ by country and contract - multiply overtime hours by the higher rate separately.

Limitations

  • A single shift can be at most 24 hours.
  • Daylight-saving clock changes during a shift are not adjusted for.

Runs in your browser. Calculations run in your browser - nothing you enter is sent anywhere.

Definitions

Decimal hours
Hours as a decimal number for payroll: 7 h 45 min = 7.75 hours.

Frequently asked questions

How do I calculate hours worked?+

Subtract the start time from the end time, then subtract any unpaid break. 08:30 to 17:00 with a 30-minute break is 8 hours.

How do I convert hours and minutes to decimal?+

Divide the minutes by 60 and add them to the hours. 7 hours 45 minutes = 7 + 45 ÷ 60 = 7.75 hours.

How are overnight shifts calculated?+

When the end time is earlier than the start, the shift crosses midnight, so 24 hours is added: 22:00 to 06:00 is 8 hours.

Was this calculator helpful?