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
- Convert to 24-hour time: 8:15 AM = 08:15, 5:40 PM = 17:40.
- Subtract: 17:40 − 08:15 = 9 hours 25 minutes.
- Deduct the unpaid lunch: 9:25 − 0:45 = 8 hours 40 minutes.
- 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
- 24-hour time: 06:50 to 15:20.
- Subtract hours and minutes separately: 15 − 6 = 9 hours, 20 − 50 = −30 minutes. Borrow one hour: 8 hours 30 minutes.
- 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.
| Jurisdiction | Rule | Paid? | Source |
|---|---|---|---|
| US federal (FLSA) | No requirement to provide breaks. Short rest breaks of about 5 to 20 minutes, if given, count as hours worked. | Yes | 29 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. | No | 29 CFR 785.19 |
| California | Meal 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). | No | Labor Code 512 |
| California | Rest period of 10 minutes for every 4 hours worked or major fraction thereof (from 3.5 hours). | Yes | DLSE rest period FAQ |
| California | A missed meal or rest period owes one extra hour of pay per workday for each category. | Premium | Labor Code 226.7 |
| United Kingdom | Uninterrupted 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 decides | Working 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
| Week | Mon | Tue | Wed | Thu | Fri | Total | FLSA overtime | California overtime |
|---|---|---|---|---|---|---|---|---|
| A | 9 | 8 | 10 | 8 | 9 | 44 | 4 h (over 40) | 4 h (1 + 2 + 1 daily) |
| B | 10 | 10 | 10 | 6 | 0 | 36 | 0 h | 6 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 | Decimal | Minutes | Decimal |
|---|---|---|---|
| 5 | 0.08 | 35 | 0.58 |
| 10 | 0.17 | 40 | 0.67 |
| 15 | 0.25 | 45 | 0.75 |
| 20 | 0.33 | 50 | 0.83 |
| 25 | 0.42 | 55 | 0.92 |
| 30 | 0.50 | 60 | 1.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.
| Period | Hours | How it is derived |
|---|---|---|
| Day | 8 | 40 ÷ 5 |
| Week | 40 | Standard full-time week |
| Biweekly | 80 | 40 × 2 |
| Semi-monthly | 86.67 | 2,080 ÷ 24 |
| Month | 173.33 | 2,080 ÷ 12 |
| Year | 2,080 | 40 × 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
- Time Card Calculator with Lunch and OvertimeFill in clock-in, clock-out and lunch for each day of a weekly or biweekly pay period. The time card totals hours in hh:mm and decimal, splits regular and overtime hours, and can be printed or exported.
- Hours Calculator: Add and Subtract Hours and MinutesAdd a list of hours and minutes, subtract one duration from another, and see the result in hh:mm, total minutes and decimal hours.
- Time Duration Calculator: Hours Between Two TimesEnter a start time and an end time, with dates if the span is longer than a day, to get the elapsed time in hours and minutes, total minutes and decimal hours.
- Overtime Calculator: Time and a Half and Double TimeEnter your regular rate and the hours worked each day to see regular pay, overtime hours at 1.5 times and 2 times, and total gross pay under the federal rule or California daily overtime.
- Hours to Decimal Calculator and Minutes to Decimal ChartEnter a time in hours and minutes to get decimal hours, or enter decimal hours to get hours and minutes. The chart below lists every minute from 1 to 60.
- Hourly to Salary CalculatorEnter an hourly rate and your weekly hours to see the equivalent annual, monthly, biweekly and weekly pay, or enter a salary to find the hourly rate it represents.
Sources
- 29 U.S.C. 207 – Maximum hours (FLSA overtime)
- 29 CFR 785.18 – Rest periods
- 29 CFR 785.19 – Meal periods
- 29 CFR 785.48 – Use of time clocks (rounding)
- DOL Fact Sheet #22 – Hours worked under the FLSA
- California Labor Code 510 – Overtime
- California DLSE – Overtime FAQ
- California DLSE – Meal periods FAQ
- California DLSE – Rest periods FAQ
- Working Time Regulations 1998 (UK)
- GOV.UK – Overtime: your rights