To calculate hours worked, subtract each shift's start time from its end time, take off any unpaid break, and add the shifts together for the week. For payroll, convert the leftover minutes to decimal hours by dividing them by 60: 8 hours 15 minutes is 8.25 hours, not 8.15. The Work Hours Calculator does this for a whole week, including split shifts and shifts that end the next morning, and shows every total both ways. This guide covers how to calculate hours worked by hand, which breaks count as work, a minutes-to-decimal chart, overtime basics and a worked week.
How to calculate hours worked with a time card calculator
The Work Hours Calculator works as a time card calculator for one week, with up to six shifts a day.
- Open the Work Hours Calculator and set Week starts on to Monday or Sunday. A Name or note (optional) heads the copied summary, CSV and printout.
- For each day worked, enter the Start and End times and the unpaid break in Break (min). Leave days off blank, and leave the break empty if your breaks are paid.
- For a split shift or a lunch you clock out for, select Add shift to add another row to the same day. An end time earlier than the start counts as the next day.
- For pay, enter your Hourly rate under Pay (optional). For overtime, turn on Pay overtime and check Overtime after (hours a week) and Overtime multiplier, which start at 40 and 1.5.
- Read the Week summary: Total in hours and minutes and in decimal hours, then Regular, Overtime over 40:00 and Gross pay when you use those settings.
- Select Copy summary, Download CSV to save time-card.csv, or Print for a time card without the rest of the page.
The status line under the buttons counts the shifts used, such as "6 shifts counted", and says when a row needs fixing; a flagged row adds nothing to the total.
Time stays in whole minutes, never rounded to quarter hours, and gross pay is worked out from the exact minutes and rounded to the cent once. The week is saved in this browser only, nothing is uploaded, and Clear all erases it. The CSV opens in Excel, Google Sheets or Numbers, or the CSV to Excel Converter can turn it into an .xlsx workbook.
The hours worked formula, step by step
Hours worked = end time − start time − unpaid breaks. Clock time counts in sixties, so you can't subtract it like ordinary decimals.
- Put both times on a 24-hour clock by adding 12 to PM hours from 1 PM on: 4:30 PM is 16:30. 12:30 PM stays 12:30, and 12:30 AM becomes 00:30.
- Subtract the start from the end, borrowing an hour as 60 minutes when the end has fewer minutes.
- Subtract unpaid breaks, then add the days, carrying every 60 minutes over as an hour.
- Convert the total to decimal hours if payroll or an invoice needs them.
For example, take a shift from 8:47 AM to 5:12 PM with a 30-minute unpaid lunch. 5:12 PM is 17:12, which becomes 16:72 after borrowing. 16:72 − 8:47 = 8:25, and 8:25 − 0:30 = 7:55, or 7.92 decimal hours. Counting minutes from midnight gives the same result: 1,032 (17:12) − 527 (8:47) − 30 = 475 minutes, or 7 hours 55 minutes.
In Excel, with the start in A2, the end in B2 and break minutes in C2, =(IF(B2<A2,B2+1,B2)-A2)*24-C2/60 returns decimal hours, including for shifts that end after midnight.
Hours worked with lunch: which breaks to subtract
Subtract only unpaid time. Under the US Fair Labor Standards Act (FLSA), short rest breaks count as hours worked, while a bona fide meal period, typically 30 minutes or more, doesn't have to be paid if you are completely relieved from duty. The Department of Labor's fact sheet on hours worked covers these cases:
| Time | Counts as hours worked? |
|---|---|
| Rest break of about 20 minutes or less | Yes, so don't subtract it |
| Meal break of 30 minutes or more, fully off duty | No, so subtract it |
| Lunch while you still answer calls or watch equipment | Yes |
| On call at the workplace | Yes |
| On call at home, free to use the time | Usually not |
| Travel between job sites during the day | Yes |
Federal law doesn't require lunch or coffee breaks (break time to pump breast milk is the main exception), but some states require meal periods, and employers can choose to pay for more.
A lunch you clock out for goes in either as one shift with the lunch in Break (min) or as two shifts with the gap between them: 08:00–16:30 with a 30-minute break and 08:00–12:00 plus 12:30–16:30 both come to 8:00. Doing both subtracts lunch twice. For two unpaid breaks in one shift, enter their combined minutes.
Overnight shifts and shifts that end the next day
When a shift crosses midnight, add 24 hours to the end time before subtracting: 22:00 to 06:30 becomes 30:30 − 22:00 = 8:30, or 8:00 after a 30-minute meal break. In the calculator, enter the shift on the day it started. An end time earlier than the start is read as the next morning, the row says "Ends the next day," and the whole shift counts toward the start day. One shift can last up to 23 hours 59 minutes, so enter a 24-hour shift as two rows, such as 08:00–20:00 and 20:00–08:00.
Three things still trip up night-shift math:
- Midnight and noon. 12:00 AM is midnight (00:00) and 12:00 PM is noon, so 4:00 PM to 12:00 AM is 8 hours. The time boxes may show AM and PM, depending on your browser and region, but the copied summary, CSV and printout use 24-hour times.
- Clock changes. On the night the clocks go back, a 22:00 to 06:00 shift lasts 9 hours, and on the night they go forward, 7. Working from clock times alone, as the calculator does, gives 8:00 both nights, so adjust that night by an hour.
- The end of the workweek. If a night shift runs past the start of your employer's workweek, payroll may split it there, which can move hours into or out of overtime.
How to convert minutes to decimal hours
Divide the minutes by 60 and add the result to the whole hours: 7 hours 50 minutes is 7 + 50 ÷ 60 = 7.83 hours. Payroll needs decimals because it multiplies hours by a rate, so typing 8:15 as 8.15 underpays 6 minutes, or $1.85 at $18.50 an hour.
Minutes to decimal hours, rounded to two places as the calculator shows them:
| Minutes | Decimal hours | Minutes | Decimal hours |
|---|---|---|---|
| 1 | 0.02 | 31 | 0.52 |
| 2 | 0.03 | 32 | 0.53 |
| 3 | 0.05 | 33 | 0.55 |
| 4 | 0.07 | 34 | 0.57 |
| 5 | 0.08 | 35 | 0.58 |
| 6 | 0.10 | 36 | 0.60 |
| 7 | 0.12 | 37 | 0.62 |
| 8 | 0.13 | 38 | 0.63 |
| 9 | 0.15 | 39 | 0.65 |
| 10 | 0.17 | 40 | 0.67 |
| 11 | 0.18 | 41 | 0.68 |
| 12 | 0.20 | 42 | 0.70 |
| 13 | 0.22 | 43 | 0.72 |
| 14 | 0.23 | 44 | 0.73 |
| 15 | 0.25 | 45 | 0.75 |
| 16 | 0.27 | 46 | 0.77 |
| 17 | 0.28 | 47 | 0.78 |
| 18 | 0.30 | 48 | 0.80 |
| 19 | 0.32 | 49 | 0.82 |
| 20 | 0.33 | 50 | 0.83 |
| 21 | 0.35 | 51 | 0.85 |
| 22 | 0.37 | 52 | 0.87 |
| 23 | 0.38 | 53 | 0.88 |
| 24 | 0.40 | 54 | 0.90 |
| 25 | 0.42 | 55 | 0.92 |
| 26 | 0.43 | 56 | 0.93 |
| 27 | 0.45 | 57 | 0.95 |
| 28 | 0.47 | 58 | 0.97 |
| 29 | 0.48 | 59 | 0.98 |
| 30 | 0.50 | 60 | 1.00 |
To go back, multiply the decimal part by 60: 0.75 hours is 45 minutes. Two decimals move in steps of 36 seconds, so 0.33 × 60 = 19.8, which rounds to 20 minutes, and billing in tenths of an hour uses 6-minute steps. On an invoice, the decimal total is the quantity, so 12 hours 45 minutes is 12.75; the Invoice Generator accepts up to three decimals, and the guide on how to make an invoice covers the rest.
Convert the weekly total, not each day
Rounding each day to two decimals before adding can drift. Five days of 7:20 make 36:40, or 36.67 hours, but five rounded days of 7.33 add up to 36.65. Five days of 7:40 drift the other way: 38:20 is 38.33 hours, against 38.35 from the rounded days. Keep hours and minutes until the end and convert once. The calculator's totals do; its CSV rounds each shift's Worked (hours) value separately, so that column's sum can differ slightly from the Total row.
Overtime basics
In the US, the FLSA requires covered employees who are not exempt to be paid at least one and a half times their regular rate for hours over 40 in a workweek. The Department of Labor's overtime fact sheet adds the details that trip people up:
- The workweek is fixed. It is a regularly recurring 168 hours that can start on any day and at any hour the employer sets, and hours can't be averaged across weeks, even on a two-week pay period.
- No federal daily or weekend overtime. The FLSA doesn't require extra pay for long days, weekends or holidays as such. Some states do: California pays time and a half after 8 hours in a workday and double time after 12, with extra rules for a seventh consecutive day (California Labor Commissioner).
- The regular rate can exceed your hourly rate. It includes all pay for the work except listed exclusions, such as discretionary bonuses and expense reimbursements, so a bonus you were promised can raise the overtime rate.
Elsewhere the rules differ more: in the UK, employers don't have to pay for overtime at all, as long as average pay across all the hours worked doesn't fall below the National Minimum Wage (GOV.UK).
This is general information, not legal advice: rules on breaks, rounding and overtime vary by country, state and contract, and some salaried jobs are exempt, so check your contract and your state or national labor agency.
The calculator applies one weekly threshold: set Overtime after (hours a week) anywhere from 0 to 168, such as 37.5 for a contract with overtime after 37.5 hours, and the Overtime multiplier from 1 to 10. Daily overtime, double time and seventh-day rules aren't calculated, so work those out from each Day total.
A worked example: one week from time card to gross pay
Sam earns $18.50 an hour, with overtime after 40 hours at 1.5 times. Meal breaks are unpaid, and on Wednesday Sam clocked out for an hour at lunch.
| Day | Shifts | Unpaid break | Worked | Decimal |
|---|---|---|---|---|
| Monday | 07:00–15:45 | 30 min | 8:15 | 8.25 |
| Tuesday | 07:00–16:10 | 30 min | 8:40 | 8.67 |
| Wednesday | 07:00–11:00, 12:00–16:20 | None | 8:20 | 8.33 |
| Thursday | 07:00–17:20 | 45 min | 9:35 | 9.58 |
| Friday | 22:00–06:50 (Saturday) | 30 min | 8:20 | 8.33 |
- Monday: 15:45 − 7:00 = 8:45, minus 0:30 = 8:15.
- Tuesday: 16:10 − 7:00 = 9:10, minus 0:30 = 8:40.
- Wednesday: 4:00 + 4:20 = 8:20; the unpaid hour between shifts is never counted.
- Thursday: 17:20 − 7:00 = 10:20, minus 0:45 = 9:35.
- Friday: 6:50 + 24:00 = 30:50, minus 22:00 = 8:50, minus 0:30 = 8:20.
The hours add up to 41 and the minutes to 130, which is 2 hours 10 minutes, so the week is 43:10, or 43.17 decimal hours. Regular pay is 40 × $18.50 = $740.00. Overtime is 3:10, or 3.1667 hours, at $27.75 (1.5 × $18.50), which is $87.875 and rounds to $87.88. Gross pay is $827.88, and the calculator's Week summary shows the same figures.
Two rounding effects show up in this week. The daily decimals add up to 43.16, not 43.17, because each day was rounded separately. And multiplying the rounded 3.17 overtime hours by $27.75 gives $87.97, nine cents more than the exact figure, so payroll that rounds hours first can differ from a to-the-minute calculation by a few cents.
Troubleshooting
A day shows about 20 hours
That is usually an AM/PM slip. An end time of 4:30 AM instead of 4:30 PM turns an 8:00 AM start into a 20:30 overnight shift, and the row says it ends the next day. Correct the end time.
A shift shows 0:00
Read the message on the row. A missing start or end time, identical start and end times, a break longer than the shift, or a break that isn't whole minutes from 0 to 1440 counts as 0:00 until you fix it.
Your pay stub shows different hours
Your employer may round punches to the nearest 5, 6 or 15 minutes, which federal rules allow only if it doesn't underpay employees over time (29 CFR 785.48). It may also pay a break you subtracted, start the workweek on another day or split night shifts at midnight. The calculator never rounds clock times.
Frequently asked questions
How many hours is 8am to 5pm with a 1-hour lunch?
Eight hours. 8:00 AM to 5:00 PM spans 9 hours, and an unpaid 60-minute lunch leaves 8:00, or 8.00 decimal hours. Five such days make 40 hours; with a 30-minute lunch, each day is 8.5 hours.
Is a 30-minute lunch break paid?
Under US federal rules it usually doesn't have to be, as long as you are completely relieved from duty for the whole break. If you eat at your post while answering calls, the time counts as work. State law, a union agreement or your employer's policy can be more generous.
Does overtime count per week or per pay period?
Under the FLSA it counts per workweek. Hours can't be averaged across a two-week pay period: 45 hours one week and 35 the next still includes 5 overtime hours, so enter each week in the calculator separately. Some states add daily overtime.
What is the 7-minute rule for time clocks?
It comes from rounding punches to the nearest quarter hour, which federal rules allow if it doesn't underpay employees over time. A punch 1 to 7 minutes past a quarter hour rounds down and one 8 to 14 minutes past rounds up, so 8:07 becomes 8:00 and 8:08 becomes 8:15. The regulation itself never mentions seven minutes.
How many working hours are in a year?
A 40-hour week for 52 weeks is 2,080 hours. 2026 has 261 weekdays, which is 2,088 hours at 8 hours a day, or 2,000 after the 11 US federal holidays. The Business Days Calculator counts the workdays in any month or pay period, and the guide to counting business days between two dates explains the holiday rules.