How to calculate hours worked (free calculator)
Hours worked in a day = end time minus start time minus unpaid breaks. 09:00 to 17:30 with a 30-minute break is 8 hours. If a shift ends after midnight, add 24 hours to the end time first: 22:00 to 06:00 is 8 hours. Add the days together for the week or the month, and multiply the total in decimal hours by your hourly rate for a rough figure of the pay. The calculator below does all of this in your browser.
Last checked: 2026-11-28
Hours calculator
Type the start, the end and the break for each day. Each row shows that day's hours, and the total adds them up. Add an hourly rate if you want a rough pay figure.
- Total
- 0:00
- in decimal hours
- 0.00
- Days
- 0
Everything is calculated on this page. Nothing you type is sent anywhere or saved, and it is gone when you close the page.
The formula, step by step
- Write the start and end in 24-hour time
5:30 pm is 17:30. It avoids mixing up morning and evening. - Subtract the start from the end
17:30 minus 09:00 is 8 hours 30 minutes. - Take off unpaid breaks
8 hours 30 minutes minus a 30-minute break is 8 hours. - Turn the minutes into decimal hours
Divide the minutes by 60: 7 hours 45 minutes is 7.75 hours. Pay and most payroll systems use decimal hours. - Add the days
The sum of the days is the total for the week or the pay period.
| Shift | Start | End | Break | Hours worked | Decimal hours |
|---|---|---|---|---|---|
| Day shift | 09:00 | 17:30 | 30 min | 8 h 00 min | 8.00 |
| Afternoon | 13:00 | 18:15 | none | 5 h 15 min | 5.25 |
| Night shift | 22:00 | 06:00 | 45 min | 7 h 15 min | 7.25 |
| Long day | 07:30 | 19:00 | 60 min | 10 h 30 min | 10.50 |
Minutes to decimal hours
The most common mistake is to treat 7 hours 45 minutes as 7.45 hours. It is 7.75, because 45 minutes is three quarters of an hour. At 20 an hour, that is 155, not 149.
| Minutes | Decimal hours |
|---|---|
| 5 | 0.08 |
| 10 | 0.17 |
| 15 | 0.25 |
| 20 | 0.33 |
| 30 | 0.50 |
| 40 | 0.67 |
| 45 | 0.75 |
| 50 | 0.83 |
Night shifts that cross midnight
When the end time is earlier than the start time, the shift ended the next day. Add 24 hours to the end before you subtract: 22:00 to 06:00 is 30:00 minus 22:00, which is 8 hours. The calculator above does this for you and says that the shift ends the next day.
Count a night shift on the day it started, as one row. Splitting it at midnight makes two short days and doubles the chance of a mistake. AutoTimecard does the same: a night shift stays one record on the day it started.
Or let your phone record the times
Calculating is the easy part. Remembering the exact start and end of every day is what goes wrong. AutoTimecard records them for you: add your workplace once, and the clock-in is saved when your phone arrives and the clock-out when it leaves.
- The hours for each day and the total for the month are calculated, with the cutoff day your employer counts by.
- Time away from the workplace in the middle of the day is shown and not counted, or you can set one fixed break to take off each day.
- Times are kept as recorded. The app does not round them.
- With an hourly rate, and night or weekend rates if you have them, the report shows an estimate of the pay. It is your estimate, not payroll.
- The month exports as PDF, Excel (XLSX), CSV or plain text.
The first five days with an automatic clock-in and clock-out are free. Viewing, correcting and exporting your records never needs a subscription.
Formulas for your own spreadsheet
Put the start in column B, the end in column C and the break in minutes in column D, with the start and end cells formatted as time. In E2, this formula gives the hours for row 2 as a decimal number, night shifts included:
| Cell | What it holds | Example or formula |
|---|---|---|
| B2 | Start (time) | 22:00 |
| C2 | End (time) | 06:00 |
| D2 | Break in minutes | 45 |
| E2 | Hours (format as a number) | =(C2-B2+(C2<B2))*24-D2/60 |
| Total | Hours for the month | Select column E and use AutoSum (Σ) |
(C2<B2) is 1 when the end is earlier than the start, which adds the day that a night shift crosses. Multiplying by 24 turns a fraction of a day into hours. The formula works in Excel and Google Sheets. Our free Excel timesheet template already has these calculations for 31 days, if you would rather not build it yourself.
Rounding to 5, 10 or 15 minutes
Some employers round clock times, for example to the nearest 15 minutes. Whether times are rounded, and how, is your employer's rule, and in some places the law limits it. This calculator does not round, and neither does AutoTimecard. If your payslip seems a few minutes off every day, rounding is a likely reason: ask how your employer rounds, and compare with your exact times.
From hours to pay: a rough figure only
Total decimal hours × hourly rate gives a rough figure of the pay before anything else is applied. 152.5 hours at 15 an hour is 2,287.50.
- Night, weekend or holiday rates are paid on top for some jobs. Work out those hours separately at their own rate.
- Overtime rules, tax, social contributions and other deductions are not included.
- Unpaid breaks come off the hours. Paid breaks do not.
- What you are paid depends on your contract and on the law where you work. This page is not legal or payroll advice.
Get AutoTimecard
Free for the first five days with an automatic clock-in and clock-out. No account needed.
Questions
How do I calculate the hours I worked in a day?
Subtract the start time from the end time, then subtract unpaid breaks. 08:30 to 17:00 with a 30-minute break is 8 hours. For pay, write the minutes as decimal hours: 30 minutes is 0.5.
How do I calculate hours for a night shift?
If the end time is earlier than the start, add 24 hours to the end time before you subtract. 22:00 to 06:00 is 30:00 minus 22:00 = 8 hours, minus any unpaid break. Count it on the day the shift started.
How many hours is 9 to 5?
8 hours. With an unpaid 30-minute break it is 7.5 hours, and with a 60-minute break it is 7 hours.
How do I convert minutes to decimal hours?
Divide the minutes by 60. 15 minutes is 0.25, 30 minutes is 0.5, 45 minutes is 0.75, and 20 minutes is about 0.33.
Does this calculator save or send what I type?
No. The calculation runs on the page in your browser. Nothing is sent to a server or stored, and closing the page clears it.
Does AutoTimecard round my times to 15 minutes?
No. It keeps the times your phone recorded and has no rounding setting. If your employer rounds, their figure can differ from yours by a few minutes.
Read next
Guides and comparisons
- How to clock in and out automatically with your phone's location
- Apps that clock you in and out automatically by location (2026)
- How accurate is clocking in by location, and does it use much battery?
- How to see who is at work in a small team, without buying a time clock
- What a location-based time clock can know, and what it cannot
- AutoTimecard vs HoursTracker
- AutoTimecard vs Jibble
- AutoTimecard vs Shiftboard (シフトボード)
- An automatic time clock you can use without a company contract: how it differs from freee, KING OF TIME and Jobcan
- How to choose a time clock app for a small team (2026)
- How to set up a team time clock on your staff's phones
- How to use location for attendance without tracking your employees
- How to track attendance across several work sites
- How to collect your staff's hours at the end of the month
- How to reduce buddy punching and forgotten clock-ins
- AutoTimecard vs Connecteam for a small team
- AutoTimecard vs Homebase for a shop or small team
- AutoTimecard vs Clockify for a small team
- Attendance in a spreadsheet or a group chat, or an automatic app?
- How to track time for field and mobile workers
- Forgot to clock in or out: what to do, and how to stop forgetting
- Automatic clock-in with iPhone Shortcuts vs a time clock app
- AutoTimecard vs Hubstaff for a small team
- AutoTimecard vs Deputy for a small team
- AutoTimecard vs When I Work for a small team