Free online time duration and hours worked calculator: enter start time, end time, and optional unpaid break minutes to calculate net working hours, decimal hours, and overnight shifts.
About This Time Duration and Hours Worked Calculator
This free online time duration and hours worked calculator tells you exactly how long a shift or task lasted. Enter a start time and an end time, add any unpaid break in minutes, and press Calculate hours worked. You get the net worked time in hours and minutes, the same time as decimal hours for payroll and invoices, the total time span, and whether the shift crossed midnight.
It is handy for employees checking a timesheet, freelancers billing clients, managers adding up shifts and anyone who needs the time between two clock times. The calculator runs in your browser, works on phones, tablets and computers, and needs no sign-up.
How to Use the Hours Worked Calculator
- Set the start time. Use the time picker to choose when the shift began. It starts at 9:00.
- Set the end time. Choose when it finished. It starts at 17:30.
- Enter the unpaid break in minutes. This is optional, and it starts at 30. Leave it at 0 if there was no unpaid break.
- Press Calculate hours worked. Your results appear right below the button.
- Share or restyle. The round icons send the page by WhatsApp, Facebook, X, LinkedIn, Telegram or email, or copy its link. The coloured squares change the background, and the arrows icon opens full screen.
Depending on your phone or computer, the time picker may show a 12-hour clock with AM and PM or a 24-hour clock. The calculation is the same either way. If a time is missing, or the break is not between 0 and 1,439 minutes, the calculator tells you what to fix.
How Hours Worked Are Calculated
The calculator works in minutes, in three steps:
- Total time span: the minutes between the start and the end time.
- Break: the unpaid break minutes are subtracted from the span.
- Net worked time: what is left, shown as hours and minutes and as decimal hours.
Example with the starting values: a shift from 9:00 to 17:30 has a span of 8 hours 30 minutes (510 minutes). Taking off a 30-minute unpaid break leaves 8 hours 0 minutes, or 8.00 decimal hours.
Another example: a shift from 8:45 to 17:10 with a 45-minute break has a span of 8 hours 25 minutes (505 minutes). The net time is 460 minutes, which is 7 hours 40 minutes or 7.67 decimal hours.
The calculator also checks that the break is not longer than the shift. If it is, it shows a message that the break cannot exceed the total shift span.
Overnight Shifts
If the end time is earlier than the start time, the calculator assumes the shift ran past midnight and ends the next day. For example:
| Start | End | Break | Net time | Shift type |
|---|---|---|---|---|
| 22:00 | 06:00 | 30 min | 7h 30m (7.50 hrs) | Overnight |
| 18:00 | 03:00 | 60 min | 8h 0m (8.00 hrs) | Overnight |
| 09:00 | 17:30 | 30 min | 8h 0m (8.00 hrs) | Same-day |
The result list tells you whether the shift was “Overnight (crosses midnight)” or “Same-day”. If the start and end times are exactly the same, the calculator treats the span as zero, not as 24 hours, so shifts of 24 hours or longer are not covered. For those, split the time into two entries and add the results.
Decimal Hours Explained
Payroll and invoicing systems usually work in decimal hours, because multiplying 7.75 hours by an hourly rate is much easier than multiplying 7 hours 45 minutes. To convert, divide the minutes by 60.
| 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 |
| 55 | 0.92 |
To go the other way, multiply the decimal part by 60. For example, 7.75 hours is 7 hours and 0.75 × 60 = 45 minutes. Remember that 7.30 hours is not 7 hours 30 minutes: it is 7 hours and 18 minutes.
From Hours to Pay
Once you know the decimal hours, pay is simple: hours × hourly rate. With a rate of 18.50, a shift of 460 minutes is 460 ÷ 60 = 7.6667 hours, and the pay is about 141.83.
Be careful with rounding. If you round the hours to 7.67 first, the result becomes 141.90, which is a few cents different. For exact figures, work from the minutes, or use as many decimal places as your payroll system allows.
To find weekly totals, add the net minutes of each shift. Five shifts of 7 hours 40 minutes add up to 2,300 minutes, which is 38 hours 20 minutes or 38.33 decimal hours.
Breaks and Rounding
- Unpaid and paid breaks: only deduct breaks that are unpaid. Rules differ between countries and employers. In many places, short rest breaks are paid, while longer meal breaks may be unpaid.
- Rounding rules: some employers round clock times to the nearest 5, 6 or 15 minutes. Check your workplace policy, because the rules on rounding can be strict.
- Overtime: the calculator shows total net time and does not split regular and overtime hours. Overtime thresholds and rates depend on your country and contract.
- Minimum breaks and maximum hours: labour laws often set limits. Check with your employer or your local labour authority for the rules that apply to you.
What the Calculator Does Not Cover
- Daylight saving changes: the calculator uses simple clock arithmetic. On the night clocks go forward or back, a real overnight shift is an hour shorter or longer than the times suggest.
- Time zones: both times are treated as being in the same time zone.
- Shifts of 24 hours or more: see the overnight section above.
- Multiple breaks or split shifts: add the break minutes together, or calculate each part separately and add them.
- Pay and overtime: the tool gives time only, not wages.
Common Mistakes to Avoid
- Reading decimal hours as hours and minutes, such as thinking 7.5 means 7 hours 5 minutes (it is 7 hours 30 minutes).
- Entering the break in hours instead of minutes. The break field is in minutes, so one hour is 60.
- Mixing up AM and PM on a 12-hour clock. Check whether 8:00 means morning or evening.
- Forgetting the break, which can overstate hours worked.
- Rounding too early when calculating pay.
Frequently Asked Questions
How do I calculate hours worked between two times?
Subtract the start time from the end time, then subtract any unpaid break. The calculator does this for you and shows the result in hours and minutes and in decimal hours.
What happens if my shift goes past midnight?
If the end time is earlier than the start time, the calculator treats it as an overnight shift ending the next day and counts the hours across midnight.
Can I include a lunch break?
Yes. Enter the unpaid break in minutes. It is subtracted from the total time.
How do I convert minutes to decimal hours?
Divide the minutes by 60. For example, 45 minutes is 0.75 hours and 20 minutes is 0.33 hours.
What if the start and end time are the same?
The calculator treats that as zero time. It does not assume a full 24 hours.
Can I calculate a whole week at once?
The calculator handles one shift at a time. Calculate each day and add the net minutes or decimal hours.
Does the calculator save my times?
The calculator does not send your times anywhere; everything is worked out in your own browser. The only thing it may remember on your device is the background colour you pick.
Please note: this tool is provided for general information and is not payroll, legal or tax advice. Working-time, break and overtime rules vary between countries and employers, so check your contract and local regulations.
