Hours calculator
How many hours between two times — and a week of them
One shift or a whole timesheet. Overnight shifts, unpaid breaks and payroll rounding are all handled, and the answer names the convention it applied.
A week of shifts
The same rounding and break rules apply to every row. Leave a day blank if it was not worked.
| Day | Start | End | Break | Hours |
|---|---|---|---|---|
| Monday | — | |||
| Tuesday | — | |||
| Wednesday | — | |||
| Thursday | — | |||
| Friday | — | |||
| Saturday | — | |||
| Sunday | — | |||
| Week total | — | |||
Why a duration is not a time of day
Nine hours is written “9h 00m” on this page, never “09:00”, because those are different things and confusing them is a real source of error. A time of day is a position on the clock; a duration is a length. They are formatted differently here deliberately, and the decimal figure beside each total is the one a payroll field usually wants.
Rounding applies to the punches, not the total
This is the part that surprises people, and it changes the answer. Suppose you clock in at 09:08 and out at 17:07, and the employer rounds to the nearest quarter hour. Rounding the punches gives 09:15 and 17:00, which is seven hours forty-five. Subtracting first gives seven hours fifty-nine, which rounds to eight hours. The same two punches, a quarter of an hour apart, depending only on the order of operations — and payroll systems round the punches. So does this page, and the readout says when a rounding actually moved something.
Rounding practices are regulated, and the rules differ by jurisdiction and by what the rounding does on average over time. This page computes whichever convention you select and does not recommend one; it is a calculator, not advice about which rule applies to you.
Shifts that cross midnight
An end time earlier than the start is read as crossing midnight, so 22:00 to 06:00 is eight hours and the answer says so. A plain subtraction returns minus sixteen hours, which is the commonest way a night shift is mis-totalled — and because the sign is obviously wrong, it usually gets noticed. The dangerous version is a spreadsheet that silently clamps it to zero.
What this page does not do
It has no opinion about pay rates, and it does not multiply anything by an hourly figure. It also does not know about daylight saving: a shift is a span of clock time with no date attached, so a night in March when the clocks move is one hour shorter or longer than the arithmetic here suggests. That is a genuine limitation rather than an oversight — handling it needs a date as well as a time, and mixing those two is exactly how the date calculators on this site avoid the same class of bug.