How to Calculate Gross Pay for Hourly Employees
Gross pay is the total amount an employee earns before any deductions — taxes, benefits, garnishments. For hourly employees, calculating it correctly requires more than multiplying hours by rate. You need to account for overtime, the correct pay period structure, and — depending on the state — daily overtime rules that federal law does not require. Getting this wrong costs employers money in back wages and exposes them to wage-and-hour liability. This guide covers the complete calculation from first principles.
Skip the math — enter your clock-in/clock-out times and get gross pay calculated automatically, with overtime broken out by federal or California rules.
Calculate gross pay free →The base gross pay formula for hourly employees
The foundation is straightforward. For any hours worked at the regular rate:
Regular gross pay = Regular hours worked × Hourly rate
If an employee earns $18/hour and works 35 regular hours in a week, their regular gross pay is $630. No overtime applies because they did not exceed 40 hours under federal law.
The calculation becomes more complex when overtime enters the picture. Overtime pay is calculated as a separate component and then added to regular pay to arrive at total gross pay for the period:
Total gross pay = (Regular hours × Regular rate) + (Overtime hours × Overtime rate)
The overtime rate under federal law (the Fair Labor Standards Act, or FLSA) is 1.5 times the regular rate for all hours over 40 in a workweek. If the same employee works 46 hours in a week at $18/hour, gross pay is: (40 × $18) + (6 × $27) = $720 + $162 = $882.
This seems simple. In practice, several things complicate it: the definition of the workweek, state-level daily overtime rules, how to handle split shifts and shift differentials, and the correct way to calculate overtime in a biweekly pay period. Each of these is addressed below.
Federal vs California overtime: two different sets of rules
Federal law sets a floor, not a ceiling. States can — and several do — impose stricter overtime requirements. California has the most significant differences from federal law, and they apply to a large share of the hourly workforce.
Federal overtime (FLSA): Overtime is owed for all hours worked beyond 40 in a single workweek, at 1.5x the regular rate. The workweek is any fixed recurring period of 168 consecutive hours (7 days). Employers set the workweek; it does not need to align with the calendar week.
California daily overtime rules: California requires overtime based on hours worked in a single day, in addition to the federal weekly threshold. The California rules are:
- 1.5x regular rate for hours 8 through 12 worked in a single workday
- 2x regular rate for all hours beyond 12 in a single workday
- 1.5x regular rate for the first 8 hours worked on the seventh consecutive day in a workweek
- 2x regular rate for all hours beyond 8 on the seventh consecutive day
- The standard federal 1.5x for weekly hours beyond 40 also applies, but California employers must pay whichever calculation yields the higher total — daily or weekly — not both
A practical example: an employee in California works 10 hours on Monday at $20/hour. Under federal law, no overtime applies — they have not yet hit 40 weekly hours. Under California law, they are owed overtime for 2 hours: (8 × $20) + (2 × $30) = $160 + $60 = $220 for that day. Miss the daily overtime rule and you have underpaid the employee and created a wage-and-hour claim.
PayrollTimeCalc supports both US Federal OT rules and California daily rules. When you enter clock-in and clock-out times, you select which ruleset applies and the calculator handles the per-day and per-week breakdowns correctly, including the 2x double-time threshold for California shifts over 12 hours.
Common mistakes in biweekly gross pay calculation
Biweekly payroll — paying employees every two weeks — is the most common pay period in the United States. It creates a specific, very common calculation error that leads to underpayment of overtime.
The averaging error. Some employers calculate overtime by averaging hours across both weeks in a biweekly pay period. This is wrong and illegal under FLSA. If an employee works 50 hours in week one and 30 hours in week two, averaging gives 40 hours — and no overtime appears. But the employee is legally owed overtime for the 10 hours in week one. Overtime is calculated workweek by workweek, never pooled across pay periods.
Misdefining the workweek. The FLSA workweek is a fixed, recurring 7-day period. Employers choose when it starts (Sunday midnight is common, but any day and time is valid). Once established, the workweek cannot be changed on an ad hoc basis to avoid overtime liability. If your payroll system uses a biweekly period that spans two workweeks, those two workweeks must be evaluated separately for overtime.
Forgetting to include all compensable time. Gross pay must be calculated on all compensable hours, not just the hours shown on a punch card. Pre-shift prep time, mandatory training, and time spent resolving work issues before clocking in can all be compensable under FLSA. Under-counting hours results in understated gross pay and potentially missed overtime thresholds.
Using the wrong base rate for overtime. If an employee receives shift differentials, bonuses, or other forms of additional pay, those amounts may need to be included in the regular rate before calculating overtime. The overtime multiplier applies to the regular rate as defined by FLSA, which includes most forms of compensation except specific exclusions. A $14/hour base rate plus a $2/hour shift differential gives a regular rate of $16/hour for overtime purposes — not $14/hour.
Enter your employees' clock-in and clock-out times and PayrollTimeCalc handles the overtime math — weekly, biweekly, federal rules, or California daily rules.
Try the free gross pay calculator →How PayrollTimeCalc automates the calculation
PayrollTimeCalc is designed specifically for employers and managers who need to calculate gross pay from raw time records. You enter clock-in and clock-out times — the same times recorded on your time sheets or time clock system — and the calculator computes regular hours, overtime hours, and gross pay per day and per period.
The output includes a print-ready pay stub and a per-day gross pay breakdown, so you can see exactly how each day contributed to total earnings and verify that the overtime thresholds triggered correctly. This per-day view is particularly useful when California rules apply, since daily overtime must be tracked at the day level, not just aggregated weekly.
The free tier supports one employee profile, handles up to 5 calculations per day, and works for both weekly and biweekly pay periods. This is sufficient for a sole proprietor with a single hourly employee or for spot-checking a handful of time sheets each week.
The paid plan ($9/month) expands this to 10 employee profiles, stores up to 12 weeks of calculation history, and enables CSV export. The history and CSV export features are particularly useful for small businesses preparing for audits or needing to reconcile payroll records — having a complete, exportable log of each pay period's calculation eliminates the manual work of reconstructing records.
The key design principle is simplicity at the input stage: you do not need to pre-calculate hours, classify regular versus overtime, or know which thresholds apply. You enter the actual times your employees clocked in and out, select the applicable ruleset (federal or California), and the tool handles the classification and multiplication. The output is auditable and print-ready.
Understanding the gross pay formula is essential for any employer paying hourly workers — both to ensure compliance and to give employees confidence that their pay is accurate. Whether you are running calculations manually or using a tool to automate them, the underlying rules are the same: workweek-by-workweek overtime evaluation, the correct multiplier for each tier, and a complete accounting of all compensable hours.