Hours calculator

How many hours between two times, and a week of them

—

How this was counted
Hours worked— Decimal— Gross span— Break— Rounding—

A week of shifts

The same rounding and break rules apply to every row. Leave a day blank if it was not worked.

DayStartEndBreakHours
Monday —
Tuesday —
Wednesday —
Thursday —
Friday —
Saturday —
Sunday —
Week total—
Week total— Decimal— Regular— Overtime— Days worked—

Clock arithmetic is tested on every build against hand-computed cases. How it is checked

Enter a start time, an end time and any unpaid break to get the hours worked. The table below adds up a week of shifts and splits out overtime. Overnight shifts and payroll rounding are handled, and the answer states which rounding it used.

Why a duration is not a time of day

This page writes nine hours as “9h 00m”. Written as “09:00”, it would read as nine in the morning. A time of day is a position on the clock and a duration is a length, and mixing up the two is a real source of error. The decimal figure beside each total is the one a payroll field usually wants.

Rounding is applied to each punch

Whether you round before or after subtracting changes the answer. Clock in at 09:08 and out at 17:07 with the employer rounding to the nearest quarter hour, and the punches become 09:15 and 17:00: seven hours forty-five. Subtract first and you get seven hours fifty-nine, which rounds to eight hours. Payroll systems round the punches, and so does this page. When rounding moves a punch, the line under the answer shows the rounded times.

Rounding practices are regulated, and the rules differ by jurisdiction and by what the rounding does on average over time. Choose the increment your employer uses from the list; the page does not recommend one.

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 line under the answer says the shift was read that way. A plain subtraction gives minus sixteen hours. That wrong sign is easy to spot; a spreadsheet that turns it into zero without comment is harder to catch.

What this page does not do

It does not work out pay, so there is no hourly rate to enter. It also ignores daylight saving, because a shift here is clock time with no date attached: a shift worked across a clock change is one hour shorter or longer than the total shown. Handling that needs a date as well as a time, and the date calculators on this site avoid the same class of bug by keeping dates and clock times apart. The page applies the settings you choose and gives no advice about which rule applies to you.

Questions

How many hours is 9 to 5:30 with a 30 minute lunch?
Eight hours. The span from 09:00 to 17:30 is eight and a half hours, and the half-hour break comes off it. Enter the two times and the break above, and the answer appears in the two forms you are likely to need: eight hours and no minutes to read, and 8.00 to type into a payroll field. They are the same number written two ways, so check one against the other.
How do I work out a shift that goes past midnight?
Enter it as it is. When the finish time is earlier than the start time, the page treats the shift as overnight: 22:00 to 06:00 comes out as eight hours, and the answer notes that it crossed midnight. A plain subtraction would give minus sixteen hours, a common way for an overnight shift to be mis-totalled.
Why does rounding change my total by more than I expect?
Because payroll systems round each clock time before subtracting, and this page does the same. With quarter-hour rounding, a 09:08 start counts as 09:15 and a 17:07 finish as 17:00, so the shift is seven hours forty-five; rounding the unrounded total of seven hours fifty-nine would give eight hours. The two methods differ by a full quarter of an hour on the same pair of punches, so it matters which one your employer uses.
What counts as overtime here?
Anything above the weekly threshold in the overtime box, which starts at forty hours because that is the federal standard for most covered employees. Exactly forty hours is not overtime; forty hours and one minute is one minute of overtime. Some states use a daily threshold, alone or together with a weekly one, so each day's hours are shown in the table next to the weekly total.
Does anything I type here get uploaded?
No, and not as a matter of policy. This page is a static file and a script your browser downloads once; there is no server behind it to receive anything. The times you enter are read by the script in your own browser and the totals are written back into the same page. Nothing is sent, nothing is stored, and no analytics or third-party script runs here.