Work Hours Calculator

Enter your start time, end time and unpaid breaks to get hours worked for a day, a week or a pay period in hh:mm and decimal hours. Overnight shifts, overtime and pay are handled automatically.

–

e.g. 8:00 – 17:00, 30 min

How hours worked are calculated

Hours worked for one shift are the time between clock-in and clock-out minus any unpaid breaks:

Hours worked = end time − start time − unpaid breaks

The subtraction is easiest in 24-hour time, because AM and PM drop out. Both examples end with the decimal figure that payroll multiplies by the hourly rate.

Example 1: 8:15 AM to 5:40 PM with a 45-minute lunch

  1. Convert to 24-hour time: 8:15 AM = 08:15, 5:40 PM = 17:40.
  2. Subtract: 17:40 − 08:15 = 9 hours 25 minutes.
  3. Deduct the unpaid lunch: 9:25 − 0:45 = 8 hours 40 minutes.
  4. Convert to decimal: 40 ÷ 60 = 0.67, so 8:40 = 8.67 hours.

Example 2: 6:50 AM to 3:20 PM with a 30-minute lunch

  1. 24-hour time: 06:50 to 15:20.
  2. Subtract hours and minutes separately: 15 − 6 = 9 hours, 20 − 50 = −30 minutes. Borrow one hour: 8 hours 30 minutes.
  3. Deduct the break: 8:30 − 0:30 = 8 hours 0 minutes = 8.00 hours.

8 hours 40 minutes is 8.67 hours, not 8.40; writing 8.40 shorts the employee by 16 minutes a day. The minutes to decimal chart lists every minute from 1 to 60.

Breaks and the law

Whether a break counts as hours worked depends on where you work and how long the break is. Every break you enter is treated as unpaid; do not enter breaks your employer pays.

Break rules that affect hours worked
JurisdictionRulePaid?Source
US federal (FLSA)No requirement to provide breaks. Short rest breaks of about 5 to 20 minutes, if given, count as hours worked.Yes29 CFR 785.18
US federal (FLSA)Bona fide meal periods, ordinarily 30 minutes or more, are not hours worked if the employee is completely relieved from duty.No29 CFR 785.19
CaliforniaMeal period of 30 minutes when the workday exceeds 5 hours (waivable if the day is 6 hours or less); second 30-minute meal period when the day exceeds 10 hours (waivable if 12 hours or less).NoLabor Code 512
CaliforniaRest period of 10 minutes for every 4 hours worked or major fraction thereof (from 3.5 hours).YesDLSE rest period FAQ
CaliforniaA missed meal or rest period owes one extra hour of pay per workday for each category.PremiumLabor Code 226.7
United KingdomUninterrupted 20-minute rest break when the working day is longer than 6 hours, taken away from the workstation. Payment is not required by the regulations.Contract decidesWorking Time Regulations 1998, reg. 12

A lunch spent at the desk answering calls is not a bona fide meal period under the FLSA and counts as work time. If that describes your lunch, enter zero break minutes.

Overtime basics

Under the Fair Labor Standards Act, non-exempt employees receive 1.5 times their regular rate for hours over 40 in a workweek (29 U.S.C. 207(a)(1)). The workweek is a fixed, recurring period of 168 hours and need not match the calendar week. Federal law has no daily overtime, so a 12-hour day in a 36-hour week earns no premium.

California adds daily overtime under Labor Code 510: 1.5 times for hours over 8 in a workday, 2 times for hours over 12, and on the seventh consecutive day of a workweek 1.5 times for the first 8 hours and 2 times beyond that. Hours already paid as daily overtime are not counted again toward the 40-hour weekly threshold (no pyramiding).

Worked week at $20 per hour

Same employee, two weeks, federal rule versus California rule
WeekMonTueWedThuFriTotalFLSA overtimeCalifornia overtime
A981089444 h (over 40)4 h (1 + 2 + 1 daily)
B10101060360 h6 h (2 + 2 + 2 daily)

Week A pays 40 × $20 + 4 × $30 = $920 under either rule. Week B pays $720 under the FLSA but $600 + 6 × $30 = $780 in California. The overtime calculator applies both rule sets. The United Kingdom has no statutory overtime premium; only the contract decides.

Minutes to decimal hours

Decimal hours = minutes ÷ 60. Payroll normally keeps two decimals. This table covers 5-minute steps; the full chart covers every minute.

Minutes to decimal hours in 5-minute steps
MinutesDecimalMinutesDecimal
50.08350.58
100.17400.67
150.25450.75
200.33500.83
250.42550.92
300.50601.00

Only 15, 30 and 45 minutes convert exactly. Every other value is rounded, so add hours and minutes first and convert the total once.

Rounding and the 7-minute rule

Federal regulation 29 CFR 785.48(b) accepts time clock rounding to the nearest 5 minutes, one-tenth of an hour (6 minutes) or one-quarter of an hour (15 minutes), provided the practice does not, over a period of time, fail to compensate employees for all the time they actually worked. Rounding must be neutral: it has to go both ways.

With quarter-hour rounding this becomes the 7-minute rule: a punch 1 to 7 minutes past the quarter hour rounds down, 8 to 14 minutes past rounds up. 8:07 AM becomes 8:00, 8:08 AM becomes 8:15. Paragraph (a) of the same regulation adds that an employee who voluntarily clocks in early but does not start working need not be paid for the idle time.

The calculator does not round by default; it shows exact minutes so that rounding, if your employer uses it, is a visible separate step. In California, rounding is risky: Donohue v. AMN Services (2021) barred rounding of meal period punches, and the broader question in Camp v. Home Depot is before the state Supreme Court. Paying to the minute is the safe practice there. Rounding tables are in the 7-minute rule guide.

Overnight shifts and multiple shifts per day

When the end time is earlier than the start time, the shift crossed midnight. Add 24 hours to the end time before subtracting. A shift from 10:00 PM to 6:30 AM (22:00 to 06:30) is 30:30 − 22:00 = 8 hours 30 minutes; with a 30-minute unpaid meal that is 8.00 hours. The calculator detects this automatically.

Most employers assign an overnight shift to the day it started. Apply one rule consistently, because a shift straddling the end of the workweek can move hours into the next week and change the overtime result.

Split shifts, such as 7:00 AM to 11:00 AM and again 4:00 PM to 8:00 PM, are two separate blocks. Enter each as its own row. The gap between them is off-duty time, not a break, and the day total is the sum of the blocks: 8 hours here.

Times typed without AM or PM, such as 8 to 5, are read with a PM end when both values are 12 or less and the end would otherwise fall before the start. Check the 24-hour display when a result looks off.

Weekly, biweekly and monthly totals

Add daily hours in hh:mm, then convert the total once. A week of 8:40, 8:00, 8:15, 8:40 and 7:50 is 41 hours 25 minutes = 41.42 hours. In a biweekly pay period, keep the two workweeks separate: 44 hours in week one and 36 in week two is 4 overtime hours, not zero, because the FLSA threshold applies to each workweek on its own.

Standard full-time figures used in US payroll (40-hour week)
PeriodHoursHow it is derived
Day840 ÷ 5
Week40Standard full-time week
Biweekly8040 × 2
Semi-monthly86.672,080 ÷ 24
Month173.332,080 ÷ 12
Year2,08040 × 52

173.33 hours a month is an average: 52 weeks ÷ 12 = 4.33 weeks per month, times 40 hours. Real months have 20 to 23 workdays, so actual monthly hours differ. Use the average for salary conversions and the actual count for hourly pay. More on the work hours in a year page.

Common mistakes

  • Treating 8.40 as 8 hours 40 minutes. 8:40 is 8.67 hours.
  • Mixing up AM and PM. 12:00 AM is midnight and 12:00 PM is noon. A shift entered as 9:00 AM to 5:00 AM returns 20 hours, not 8.
  • Forgetting to add 24 hours on night shifts. 23:00 to 07:00 is 8 hours, not −16.
  • Deducting paid breaks. Short rest breaks are hours worked under 29 CFR 785.18. Deduct only meal periods during which you were completely relieved of duty.
  • Rounding each day and then adding. Five days of 7:50 add to 39:10 = 39.17 hours; five rounded 7.83 values add to 39.15.
  • Averaging two workweeks in a biweekly period. Federal overtime is evaluated per workweek, never per pay period.
  • Counting California daily overtime twice. Hours paid at daily overtime are excluded from the weekly 40.

Frequently asked questions

How do I calculate hours worked?

Subtract the start time from the end time, then subtract unpaid breaks. Use 24-hour time to avoid AM/PM errors: 8:15 AM to 5:40 PM is 17:40 minus 08:15, which is 9 hours 25 minutes; minus a 45-minute lunch leaves 8 hours 40 minutes. Convert the minutes to a decimal by dividing by 60, so 8:40 becomes 8.67 hours for payroll.

Are breaks counted as hours worked?

Under the FLSA, short rest breaks of roughly 5 to 20 minutes are hours worked and must be paid (29 CFR 785.18). Bona fide meal periods of 30 minutes or more are not hours worked if you are completely relieved of duty (29 CFR 785.19). If you keep working through lunch, that time counts. State rules such as California Labor Code 512 add specific meal and rest requirements.

How do I convert minutes to decimal hours?

Divide the minutes by 60 and keep two decimal places. 15 minutes is 0.25, 20 minutes is 0.33, 40 minutes is 0.67 and 45 minutes is 0.75. Only quarter hours convert exactly. Add the hours in front: 7 hours 50 minutes is 7.83 hours. To go back, multiply the decimal part by 60: 0.83 times 60 is about 50 minutes.

Is overtime calculated daily or weekly?

Under federal law, weekly: non-exempt employees receive 1.5 times their regular rate for hours over 40 in a fixed 168-hour workweek, with no daily threshold. Some states add daily overtime. California pays 1.5 times over 8 hours in a day and 2 times over 12, plus special rates on the seventh consecutive day, and does not count daily overtime hours again toward the weekly 40.

What is the 7-minute rule?

It is the practical form of quarter-hour rounding permitted by 29 CFR 785.48(b). Punches 1 to 7 minutes past a quarter hour round down, 8 to 14 minutes past round up, so 8:07 becomes 8:00 and 8:08 becomes 8:15. Rounding must be neutral over time and may not systematically shorten paid hours. California courts have restricted rounding; paying to the minute is safer there.

How many work hours are in a year and a month?

A 40-hour week over 52 weeks gives 2,080 hours a year, the figure payroll uses for salary conversions. Divided by 12 that is 173.33 hours a month. A calendar year actually has 52.14 weeks, and paid holidays and vacation reduce the hours you really work, so 2,080 is a convention rather than a count of days.

Does the calculator handle overnight shifts?

Yes. When the end time is earlier than the start time, 24 hours are added before subtracting, so 10:00 PM to 6:30 AM gives 8 hours 30 minutes before breaks. The shift is assigned to the day it started for daily and weekly totals. Several blocks on one day can be entered as separate rows.

Is my data stored or sent anywhere?

Your entries are kept only in your own browser so that you can return to a partially filled week. Nothing is sent to a server, there is no account and no login. Clearing your browser storage removes the saved time card; exporting a copy before you do so is the only way to keep it.

Can I use this calculator for payroll?

You can use it to compute hours worked, decimal totals and overtime splits for a time card, and to check what a pay stub should show. It applies the federal FLSA rule and California daily overtime. It does not replace a payroll system or legal advice: collective agreements, other state laws and employer policies can change the result.

Does it work for the UK?

The arithmetic is identical: end time minus start time minus unpaid breaks. The legal points differ. The Working Time Regulations 1998 require a 20-minute rest break on days longer than 6 hours and do not require it to be paid, there is no statutory overtime premium, and the typical full-time week is 37.5 hours rather than 40. Set the overtime threshold to match your contract.

Related calculators

Sources

Reviewed by the CalcHours editorial team. Calculations are based on the statutes cited below; they do not replace legal or payroll advice.

Last reviewed: