Working out hours sounds trivial until you add up a week of shifts with different start times, a night shift that crosses midnight and a payroll form that wants decimal hours. The most common error is treating 1:45 as 1.45 hours, which underpays by 18 minutes every time. This guide shows how to calculate a shift, how to convert between hours and minutes and decimal hours, and how to turn an hourly rate into weekly and annual pay.
Step by step
- Open the hours calculator.
- For a single shift, enter the start time, the end time and any unpaid break in minutes. The result is shown as h:mm, decimal hours and total minutes.
- For a week, fill in the timesheet with each day's start, end and break. It totals the week in h:mm and decimal hours.
- To add or subtract durations directly, type them into the top box separated by + or −, for example
7:45 + 8:15 − 0:30, or put one per line. - Copy the decimal total into your payroll form or invoice.
Everything is calculated in your browser, so your hours and pay are not sent anywhere.
Hours and minutes versus decimal hours
Clocks count in base 60; payroll usually counts in base 10. The two look similar but are not the same.
- h:mm (hours and minutes): 1:45 means one hour and 45 minutes.
- Decimal hours: 1.75 means one and three-quarter hours, which is the same length of time.
To convert minutes to a decimal fraction of an hour, divide by 60:
Decimal hours = hours + minutes ÷ 60
| h:mm | Calculation | Decimal hours |
|---|---|---|
| 0:15 | 15 ÷ 60 | 0.25 |
| 0:30 | 30 ÷ 60 | 0.50 |
| 0:45 | 45 ÷ 60 | 0.75 |
| 1:45 | 1 + 45 ÷ 60 | 1.75 |
| 7:20 | 7 + 20 ÷ 60 | 7.33 |
| 8:10 | 8 + 10 ÷ 60 | 8.17 |
To go the other way, multiply the decimal part by 60: 6.4 hours is 6 hours and 0.4 × 60 = 24 minutes, so 6:24.
Warning Typing 1:45 into a spreadsheet as 1.45 treats it as 1 hour and 27 minutes (0.45 × 60). At 20 an hour, that is 6 short on a single entry. Always convert before multiplying by a rate.
The calculator rejects entries such as 1:75, because minutes after a colon must be 0 to 59. Write 2:15 or 2.25 instead.
Calculating a shift
The basic formula is:
Hours worked = end time − start time − unpaid break
A day shift from 08:45 to 17:15 with a 30-minute unpaid lunch:
- 08:45 to 17:15 is 8 hours 30 minutes.
- Subtract 30 minutes of break: 8:00, or 8.00 decimal hours.
Only subtract breaks that are unpaid. If your break is paid, leave the break at 0. Rules on breaks vary by country, sector and employment contract, so check what applies to you.
Overnight shifts
When a shift crosses midnight, the end time is smaller than the start time, and simple subtraction gives a negative number. The calculator treats an end time earlier than the start time as the next day.
A night shift from 22:00 to 06:30 with a 30-minute break:
- 22:00 to midnight is 2 hours; midnight to 06:30 is 6 hours 30 minutes.
- Total 8:30, minus 30 minutes of break: 8:00.
Shifts longer than 24 hours are not supported in the clock-time and timesheet sections, and a daylight saving change during a night shift is not taken into account. On the night the clocks change, a shift can be an hour longer or shorter than the clock times suggest, so adjust that one manually.
Totalling a week
Add the days in h:mm, then convert the total once, rather than rounding each day:
| Day | Start | End | Break | Worked |
|---|---|---|---|---|
| Monday | 09:00 | 17:15 | 0:30 | 7:45 |
| Tuesday | 08:30 | 17:15 | 0:30 | 8:15 |
| Wednesday | 08:00 | 17:00 | 0:30 | 8:30 |
| Thursday | 09:00 | 17:00 | 0:30 | 7:30 |
| Friday | 09:00 | 16:15 | 0:30 | 6:45 |
| Total | 38:45 |
38:45 is 38 + 45 ÷ 60 = 38.75 decimal hours. At 22 an hour, that is 38.75 × 22 = 852.50 gross for the week.
If you round each day to two decimal places before adding, small differences can creep in, especially with minutes like 20 or 40 that do not convert to tidy decimals. Converting the weekly total keeps the error to a minimum. If your employer rounds clock-in times to the nearest 5 or 15 minutes, apply their rule before entering the times.
From hourly rate to weekly and annual pay
Once you know your usual hours, you can convert an hourly rate into other pay periods:
Annual pay = hourly rate × hours per week × paid weeks per year
At 25 an hour, 40 hours a week and 52 paid weeks:
- 25 × 40 × 52 = 52,000 a year
- 52,000 ÷ 12 = about 4,333 a month
With two unpaid weeks off, paid weeks drop to 50 and the annual figure to 25 × 40 × 50 = 50,000.
The salary calculator does this for hourly, daily, weekly, bi-weekly, semi-monthly, monthly and annual pay. You can set hours and days per week, weeks per year, unpaid weeks and unpaid holidays, and pay hours above a weekly threshold at an overtime rate such as 1.5×. It shows gross pay only: no income tax, social security, pension or other deductions are taken off, because those depend on your country and situation. Treat the figures as estimates, not tax or financial advice.
If you are comparing a pay rise or two job offers, the percentage calculator shows the change between two rates, and the guide on how to calculate percentage change explains the formula.