Clockhund

Work hours calculator

Enter when the shift started and ended and how long the break was. Need a whole week? Switch to Week above.

Time cardWEEK
In
Out
Break
 
 
0:00
 
Saved in this browser only.

Sources: 29 U.S.C. § 207(a)(1), 29 CFR 778.104, 29 CFR 785.18 and 785.19, 29 CFR 785.48(b) · rules checked against the sources on Oct 7, 2026

Presets for California, Alaska, Nevada and Colorado; other states can have their own rules.

This is a calculation, not legal advice.

For teams

Hours for your whole team

The same calculator, with each person's weeks saved in one place. You enter the hours; your employees don't need to install or learn anything.

  • One sheet per person, any week or month
  • A monthly timesheet per person as a PDF, ready to sign
  • A CSV for payroll: hours, overtime and gross pay per person
  • Each person's overtime balance
  • Templates for your usual shifts

Start free with one person. The team plan adds more people.

The team app: one time card per person, totals, pay and the payroll export

Want employees to log their own hours? We are thinking about a version where each employee enters their own hours on their phone and you only check and export. Tell us about your team and we'll let you know if we build it.

Employees log their own hours

We are thinking about a version where each employee enters their own hours on their phone and you only check and export. Tell us about your team and we'll let you know if we build it.

How do you collect hours today?

To calculate hours worked, subtract the start time from the end time and take off any unpaid break: 9:00 AM to 5:30 PM with a 30 minute lunch is 8 hours, or 8.00 in decimal. This work hours calculator does it for one shift as you type, including night shifts that run past midnight.

How to use the calculator

  1. Type the In time, for example 7:45 or 745. On the 12 hour clock, pick AM or PM next to the field, or type it (7:45a, 4:15p).
  2. Type the Out time. If you leave out AM or PM on the end time, the calculator picks the one that makes the shorter shift: 9 AM to "5" means 5 PM, and 10 PM to "6" means 6 AM the next day.
  3. Enter the unpaid Break in minutes (30) or hours and minutes (1:00). Leave it empty if you had none.
  4. Read the result: hours and minutes (8:30) and decimal hours (8.50).

Need the whole week, or two? Switch from Day to Week or 2 weeks at the top, or use the time card calculator for a week of payroll hours.

Worked example: four kinds of shifts

ShiftInOutBreakHours workedDecimal
Office day9:00 AM5:30 PM30 min8:008.00
Odd minutes7:45 AM4:15 PMnone8:308.50
Long shift7:00 AM7:00 PM30 min11:3011.50
Night shift10:00 PM6:30 AM30 min8:008.00

The night shift ends the next morning. The calculator marks the Out time with +1 ("Ends the next day") and counts all 8 hours on the day the shift started, so a shift that begins on Friday night stays on Friday.

How to calculate hours between two times by hand

  1. Write both times on the 24 hour clock. 4:15 PM is 16:15, 10:00 PM is 22:00. AM times stay the same, except 12 AM, which is 0:00.
  2. Subtract the start from the end. If the minutes of the end time are smaller, borrow an hour: 16:15 minus 7:45 becomes 15:75 minus 7:45, which is 8:30.
  3. If the end is earlier than the start, the shift crossed midnight. Add 24 hours to the end time first: 6:30 becomes 30:30, and 30:30 minus 22:00 is 8:30.
  4. Take off the unpaid break: 8:30 minus 30 minutes is 8:00.
  5. Convert to decimal if you need it: divide the minutes by 60. 30 minutes is 0.5, so 8:30 is 8.5 hours. The hours to decimal converter has a chart for every minute.

Common shift lengths

ShiftBreakHours workedDecimal
9 AM to 5 PMnone8:008.00
9 AM to 5 PM30 min7:307.50
8 AM to 5 PM1 hour8:008.00
7 AM to 3:30 PM30 min8:008.00
6 AM to 2:30 PM30 min8:008.00
3 PM to 11:30 PM30 min8:008.00
11 PM to 7 AMnone8:008.00

Which breaks to subtract

In the U.S., coffee and snack breaks are rest periods of about 5 to 20 minutes and are paid work time under federal rules (29 CFR 785.18), so a 10 minute coffee break stays in your hours. A bona fide meal period, ordinarily 30 minutes or more, is not work time, but only if you are completely relieved from duty. Eating at your desk while you keep working counts as work time (29 CFR 785.19(a)). Enter in the Break field only a meal break during which you were fully off duty.

In the UK, the calculator uses the 24 hour clock and the UK preset, which flags a day of more than 6 hours with a break under 20 minutes (Working Time Regulations 1998, reg. 12). In the week view it also flags less than 11 hours of rest between two shifts (reg. 10).

This is a calculation, not legal advice.

Shifts past midnight and other edge cases

  • Start equals end. 9:00 AM to 9:00 AM counts as 0 hours with a warning, never as 24 hours.
  • A real 24 hour shift. Split it at midnight over two days in the Week view: 7:00 AM to 12:00 AM (midnight, with the end set to AM) is 17:00 on the first day, 12:00 AM to 7:00 AM is 7:00 on the second, 24:00 in total.
  • A break longer than the shift shows an error instead of negative hours.
  • Overtime on a night shift follows the start day too, which matters for daily overtime rules. The overtime calculator has the details per state.

FAQ

How many hours is 9 to 5?

8 hours. With a 30 minute unpaid lunch it is 7.5 hours (7:30), and with a one hour lunch it is 7 hours.

How do I calculate the hours worked between two times?

Subtract the start time from the end time on the 24 hour clock, then subtract the unpaid break. 7:45 AM to 4:15 PM is 16:15 minus 7:45, which is 8 hours 30 minutes.

How do I count a night shift that goes past midnight?

Add 24 hours to the end time before you subtract. 10:00 PM to 6:30 AM is 30:30 minus 22:00, which is 8:30. The calculator does this on its own when the end time is earlier than the start time.

Is a 30 minute lunch counted as hours worked?

Not if you were completely relieved from duty: under federal rules a bona fide meal period is not work time, so subtract it. If you ate at your desk while working, it counts as work time. Short rest breaks of 5 to 20 minutes are paid and stay in your hours.

How many hours is 7 AM to 7 PM?

12 hours. With a 30 minute unpaid break it is 11 hours 30 minutes, or 11.5 in decimal.

What does 8.5 hours mean in hours and minutes?

8 hours 30 minutes. The decimal part is a share of an hour: 0.5 times 60 is 30 minutes, and 0.25 would be 15 minutes.

What if I type the end time without AM or PM?

The calculator picks the AM or PM that gives the shorter shift, which is right for almost every shift. If it guessed wrong, switch AM or PM next to the field.

How do I count a split shift?

Enter the first start and the last end, and type the unpaid gap between the two parts as the break. 10:00 AM to 2:00 PM plus 5:00 PM to 9:00 PM is 10:00 AM to 9:00 PM with a 3:00 break, so 8 hours worked.