How do I calculate hours worked between two times?
Subtract the start from the end to get the elapsed time, then subtract any unpaid break. 09:00 to 17:30 is 8 hours 30 minutes; removing a 30 minute lunch leaves 8.00 hours.
Time and timesheets
Three time calculations in one place: hours worked between two times with a break deduction, adding or subtracting time, and converting hours and minutes to decimal hours for payroll.
Quick reference
Payroll systems bill in decimal hours, so a timesheet reading 7:45 becomes 7.75. These are the conversions you will use most often.
| Minutes | Decimal hours | Clock time example |
|---|---|---|
| 5 | 0.08 | 9:00 – 9:05 |
| 10 | 0.17 | 9:00 – 9:10 |
| 15 | 0.25 | 9:00 – 9:15 |
| 20 | 0.33 | 9:00 – 9:20 |
| 30 | 0.50 | 9:00 – 9:30 |
| 40 | 0.67 | 9:00 – 9:40 |
| 45 | 0.75 | 9:00 – 9:45 |
| 50 | 0.83 | 9:00 – 9:50 |
How the arithmetic works
Almost every timesheet error comes from one of four places: a break that was not deducted, an overnight shift that silently went negative, a decimal that was read as minutes, or rounding applied twice. Working through the logic once removes all four.
Start with the raw elapsed time: end time minus start time. A shift from 09:00 to 17:30 is 8 hours 30 minutes. Then remove unpaid breaks. A 30 minute lunch leaves 8 hours 0 minutes. Doing these as two separate steps matters, because the break is a duration rather than a clock time — subtracting "30 minutes" from "17:30" produces 17:00, which is a different (and wrong) operation.
In decimal terms the same calculation is 8.50 − 0.50 = 8.00. Keeping both representations in view is the simplest way to catch a slip: if the hours-and-minutes result and the decimal result disagree, one of them is wrong.
When the finishing time is earlier than the starting time, the shift has crossed midnight. A straightforward subtraction gives a negative number, which is the classic sign of this case. Adding 24 hours corrects it: a 22:00 to 06:00 shift computes as 6 − 22 = −16, then −16 + 24 = 8 hours. This calculator applies that correction automatically, so night shifts and split shifts do not need special handling from you.
Decimal hours express the same duration as a single number: 7 hours 45 minutes is 7.75 hours, obtained by dividing 45 by 60. Payroll prefers this form because the gross pay is then one multiplication — hours × rate. The trap is reading "7.45" as 7 hours 45 minutes when it actually means 7 hours 27 minutes. If a figure came from a payroll system, it is decimal; if it came from a wall clock, it is minutes. Converting between the two is exactly what the third mode above does.
Many employers round punch times to the nearest quarter hour. US federal guidance treats small, hard-to-record increments as not compensable, and the practice that grew out of it rounds in seven minute blocks: 1 to 7 minutes past the quarter rounds back, 8 to 14 minutes rounds forward. The important constraint is direction — rounding must not systematically shave time off the employee's side over a pay period. If you are checking a payslip and the totals drift in one direction week after week, compare the unrounded hours from this calculator with the rounded figures on the slip.
For a weekly total, add the decimal hours rather than the clock times: day totals of 8.25, 7.75, 8.00, 8.50 and 6.00 come to 38.50 hours. Adding the same days as clock times (8:15, 7:45, 8:00, 8:30, 6:00) means carrying 60s rather than 100s between columns, which is where most manual arithmetic errors appear. Convert first, add second.
Practical use
Enter each day's start and end times with the break you actually took, write down the decimal hours, and add them up. Multiply the total by your hourly rate and compare it with gross pay before tax. Because everything here runs locally in your browser, you can check a full week of shifts without sending your working hours anywhere.
The same arithmetic serves the other direction: a supplier says the work will take 14 hours 20 minutes and you want to know whether that fits between 08:00 and 22:00. The add-and-subtract mode answers it directly, and the time-between mode confirms the resulting window, including any breaks you need to schedule.
This page works in local wall-clock arithmetic: it deliberately does not shift for time zones. If you are combining a shift in one city with a call in another, convert both to the same zone first — our currency pages are built on the same principle of showing the raw reference values and letting you compare them yourself.
FAQ
Subtract the start from the end to get the elapsed time, then subtract any unpaid break. 09:00 to 17:30 is 8 hours 30 minutes; removing a 30 minute lunch leaves 8.00 hours.
Divide the minutes by 60. Fifteen minutes is 0.25, thirty is 0.50, and forty-five is 0.75. Never read 7.45 as 7 hours 45 minutes — 7.45 decimal is 7 hours 27 minutes.
If the end time is earlier than the start time the shift crossed midnight; the calculator adds 24 hours automatically. 22:00 to 06:00 is an 8 hour shift.
Only if you were working or required to stay on site and available. Genuine meal breaks where you are relieved of duty are usually unpaid, which is why the calculator asks for the break separately.
A US payroll convention for rounding punch times into quarter-hour blocks: 1–7 minutes past the quarter rounds back, 8–14 minutes rounds forward. Rounding must not consistently reduce pay over time.
Yes, but convert each day to decimal hours first and then add. Adding clock times requires carrying 60s instead of 100s, which is where mistakes creep in.
No. It does plain wall-clock arithmetic, which is what timesheets need. Convert both times to the same time zone before entering them if your team is spread out.
No. Every calculation runs in your browser and nothing is transmitted or saved on a server.
Disclaimer
This calculator performs arithmetic on the times you enter. It is not a payroll, timekeeping, or legal compliance system, and it does not apply the pay rules, overtime thresholds, or rounding policies of any jurisdiction or employer. Verify hours and pay against your own contract and local regulations.