Tabellab

Gross Pay: Salary, Hourly, Overtime & Commission

Lesson 1 of 20Lab

All lessons
  1. Gross Pay: Salary, Hourly, Overtime & CommissionLabFree
  2. Deductions & Net Pay: Pension, Withholding & Social ContributionsLab Locked
  3. Employer On-Costs & the Total Cost of an EmployeeLab Locked
  4. The Payroll Register: Totals, Cross-Foot Checks & Error FlagsLab Locked
  5. Payroll Journal Entries: Expense, Liabilities & CashLab Locked
  6. Paying the Payroll Liabilities: Tax Office, Social Fund & Pension FundLab Locked
  7. Month-End Accruals: Unpaid Wages & Holiday PayLab Locked
  8. Mid-course Project: Payroll Reconciliation – Register vs Ledger vs BankLab Locked
  9. Progressive Withholding: Tax Bands, Average & Marginal RatesLab Locked
  10. Annual Contribution Ceilings: Year-to-Date Pay & the Cut-Off MonthLab Locked
  11. Bonuses & 13th Salary: Monthly Accruals and the December True-UpLab Locked
  12. Starters & Leavers: Pro-Rata Pay and the Final Pay RunLab Locked
  13. Sick Pay & Unpaid Leave: Daily Rates and Salary AdjustmentsLab Locked
  14. Benefits in Kind & Expense Refunds: Taxed but Not Paid, Paid but Not TaxedLab Locked
  15. Salary Advances & Payroll Deductions: Instalments, Limits and BookingsLab Locked
  16. Payroll Variance Analysis: May vs June Before ApprovalLab Locked
  17. Year-End Payroll Review: Quarterly Totals vs Tax FilingsLab Locked
  18. Allocating Payroll Cost to Departments and Client ProjectsLab Locked
  19. Payroll Budget 2027: Pay Rises, New Hires and On-Costs by MonthLab Locked
  20. Final Project: June Payroll from Gross to Ledger with a Cost DashboardLab Locked

You are not signed in — the lab works, but your progress is not saved. Sign up

Lesson 1 of 20 is free. Unlock all 20 hands-on labs, the final exam and your certificate.

Buy course — $9.90
Loading the spreadsheet…

Why payroll is the one process that cannot be wrong

Most accounting errors are found at month-end and quietly corrected. Payroll errors are found by the people who were paid. An employee who receives $40 too little will notice within hours, and one who receives $400 too much may not say anything at all. Behind every payslip sit legal obligations too: tax and social contributions withheld from employees are not the company's money, they are held in trust and have to be paid over on time. That is why payroll is usually one of the most tightly controlled processes in any finance team, and why people who can run it accurately are always in demand.

This free first lesson of Payroll Accounting & Bookkeeping is written for bookkeepers, small-business owners who run their own payroll, accounting students and anyone moving into a payroll or HR administration role. It starts at the very beginning: gross pay, the amount an employee earns before any deduction. Every later number in payroll, from income tax withholding to the employer's social contributions and the journal entry in the ledger, is calculated from gross pay. If gross pay is wrong, everything downstream is wrong.

In the lab above you run May 2026 for Harbor Lane Studio Ltd., a fictional design studio with eight employees. Five are salaried, two of them earn sales commission on top, and three are paid by the hour, with overtime at a premium. One copied-down formula per column turns the raw data into a complete gross-pay calculation, and the total at the bottom is the figure that the rest of the course carries forward.

The core idea: four building blocks of gross pay

Gross pay is simply the sum of everything an employee has earned in the pay period. In most small businesses it is built from four blocks, and a clean spreadsheet gives each one its own column so that nothing is hidden inside a long formula.

  • Salary. A fixed annual amount, paid in equal parts. For a monthly payroll, monthly pay = annual salary / 12. For a weekly payroll it would be / 52, for a biweekly payroll / 26 and for a semi-monthly payroll / 24.
  • Hourly wages. Rate per hour × regular hours worked in the period. The hours usually come from a timesheet or time-tracking system, and they are the most common source of payroll disputes.
  • Overtime. Hours above the normal working time, paid at a premium. A multiplier of 1.5, "time and a half", is common. In the United States, for example, the Fair Labor Standards Act requires at least 1.5 times the regular rate for hours over 40 in a workweek for non-exempt employees. Other countries, contracts and collective agreements set different thresholds and premiums, so always check the rules that apply to you.
  • Commission and other variable pay. A share of sales or a bonus. It is part of gross pay and is normally taxed like salary, even though it is calculated differently.

The lab keeps the two policy values, the overtime multiplier (1.5 in C13) and the commission rate (4% in C14, as an example), in their own labelled cells. That one design decision is worth more than any clever formula. When the company changes its commission plan, you change one cell, and every employee's pay updates. When an auditor or a new colleague opens the file, they see the policy immediately instead of finding a hard-coded 0.04 buried in eight formulas.

Because salaried and hourly employees sit in the same table, one formula has to handle both. The IF function does that: =IF(B2="Salary",C2/12,C2*D2). If the type in column B is "Salary", it divides the annual salary by 12. Otherwise it multiplies the hourly rate by the regular hours. Column C therefore means two different things depending on the type, which is why the lab adds a note in A15 to say so. In a larger payroll you would usually keep separate columns for annual salary and hourly rate, but the principle is the same.

Gross pay is about what was earned, not what is paid out. The amount that reaches the employee's bank account is net pay, which is gross pay minus deductions. You will make that step in lesson 2.

Worked example: Harbor Lane Studio, May 2026

Here is the complete calculation for all eight employees. Regular pay comes from the IF formula, overtime pay is =E2*C2*$C$13, commission is =F2*$C$14 and gross pay is =G2+H2+I2, each copied down from row 2 to row 9.

EmployeeTypeSalary / rateReg. hoursOT hoursSalesRegular payOvertime payCommissionGross pay
Amara LewisSalary74,400.00000.006,200.000.000.006,200.00
Ben FischerSalary64,800.00000.005,400.000.000.005,400.00
Carla MendesSalary51,600.00000.004,300.000.000.004,300.00
Dev PatelSalary38,400.000086,500.003,200.000.003,460.006,660.00
Elif KayaSalary36,000.000071,250.003,000.000.002,850.005,850.00
Finn O'BrienHourly24.50168120.004,116.00441.000.004,557.00
Grace OwusuHourly22.001606.50.003,520.00214.500.003,734.50
Hugo LaurentHourly19.759600.001,896.000.000.001,896.00
Total May 202631,632.00655.506,310.0038,597.50

Walk through three rows to see the logic. Amara earns an annual salary of $74,400, so her May pay is 74,400 / 12 = $6,200, the same as every other month. Dev has a lower base salary of $38,400, or $3,200 a month, but he sold $86,500 in May, which at the example rate of 4% adds $3,460 in commission, giving gross pay of $6,660. Finn is paid $24.50 per hour. His 168 regular hours give $4,116, and his 12 overtime hours are paid at 24.50 × 1.5 = $36.75 per hour, which adds $441, for a total of $4,557.

May 2026 gross pay per employee (USD)$0$1,000$2,000$3,000$4,000$5,000$6,000$7,000$6,200Amara$5,400Ben$4,300Carla$6,660Dev$5,850Elif$4,557Finn$3,734.50Grace$1,896HugoRegular payOvertime payCommission
Each column is one employee's May gross pay. Commission (butter) lifts Dev and Elif above two colleagues with higher base salaries. Overtime (peach) is a small slice for Finn and Grace.

The total row is the control figure for the month: $38,597.50. In the lab you calculate it in J10 with =SUM(J2:J9). A good habit is to prove it a second way, by adding the column totals: regular pay $31,632.00 + overtime $655.50 + commission $6,310.00 = $38,597.50. When the sum of the rows equals the sum of the columns, the table "cross-foots", and you can be confident that no row was left out of the total. Lesson 4 turns that habit into a full set of register checks.

What the $38,597.50 May payroll is made of (USD)$0$10k$20k$30k$40kRegular pay$31,632Commission$6,310Overtime pay$655.50Total gross pay$38,597.50
Regular pay makes up about 82% of the May payroll, commission about 16% and overtime under 2%. Watching this mix month by month shows quickly when overtime or commission starts to drift.

Part months: prorating a salary for a new joiner

Real payrolls are rarely as tidy as twelve equal months. Suppose, for example, that Harbor Lane hires a second designer on the same $51,600 salary as Carla, starting on Monday 18 May 2026. Paying the full $4,300 would overpay the new hire, so the monthly salary has to be prorated. There are two common methods, and the employment contract or company policy decides which one applies.

  • Calendar days. The employee is employed for 14 of the 31 days in May: 4,300 × 14 / 31 = $1,941.94. In Excel: =ROUND(C4/12*(EOMONTH(G1,0)-G1+1)/DAY(EOMONTH(G1,0)),2), with the start date in G1. EOMONTH(G1,0) returns the last day of the start month and DAY of that date is the number of days in the month.
  • Working days. May 2026 has 21 weekdays and the new hire works 10 of them: 4,300 × 10 / 21 = $2,047.62. In Excel: =ROUND(C4/12*NETWORKDAYS(G1,EOMONTH(G1,0))/NETWORKDAYS(EOMONTH(G1,-1)+1,EOMONTH(G1,0)),2). NETWORKDAYS counts Monday to Friday, and an optional third argument takes a list of public holidays.

The two answers differ by more than $100 for the same two weeks, which is exactly why the method must be written down and applied consistently. The same logic works in reverse for a leaver, and for unpaid leave in the middle of a month. Whatever the method, keep the dates and the day counts visible in their own cells rather than typing 14/31 into a formula, so that the calculation can be checked later.

All names, salaries, rates and the 4% commission rate are fictional examples. Real overtime premiums, thresholds and the treatment of commission depend on the law, the employment contract and any collective agreement that applies.

How to do it in Excel, step by step

  1. Set up one row per employee and one column per input: name, pay type, salary or rate, regular hours, overtime hours and sales. Keep calculated columns to the right of the inputs.
  2. Turn the header row bold and freeze it with View › Freeze Panes › Freeze Top Row, so the column names stay visible in a long payroll.
  3. Put the policy values in a separate, labelled block: overtime multiplier and commission rate. Format the rate as a percentage with Ctrl+Shift+%.
  4. In G2 enter =IF(B2="Salary",C2/12,C2*D2). Check that "Salary" is spelled exactly as in column B. A trailing space in the data is enough to make the test fail.
  5. In H2 enter =E2*C2*$C$13. Press F4 while the cursor is on C13 to add the dollar signs, which lock the reference when you copy the formula down.
  6. In I2 enter =F2*$C$14, again locking the rate cell with F4.
  7. In J2 enter =G2+H2+I2, or =SUM(G2:I2).
  8. Select G2:J9 and press Ctrl+D to fill all four formulas down at once.
  9. In J10 enter =SUM(J2:J9), or select J10 and press Alt+= for AutoSum. Format money columns with Home › Number › Accounting or Ctrl+Shift+$ for currency.
  10. Prove the total: in a spare cell enter =SUM(G2:G9)+SUM(H2:H9)+SUM(I2:I9)-J10. It must return 0.

Once the structure works, you can make it sturdier. Format the range as an Excel table with Ctrl+T so that formulas extend automatically when you add a new hire. Add data validation on the pay-type column (Data › Data Validation › List with "Salary,Hourly") so nobody can type "salaried" or "Salary " by accident. And consider rounding each employee's pay to cents with ROUND(…,2), because the bank pays cents, not fractions of them.

A reasonableness check before anyone gets paid

Formulas that calculate correctly can still produce a wrong payroll if the inputs are wrong: a timesheet with 618 hours instead of 168, a sales figure entered twice, a salary that was raised in the HR system but not in the sheet. Experienced payroll accountants therefore compare every month with the previous one before approving. Put last month's gross pay in a column beside this month's, calculate the difference with =J2-K2 and the change in percent with =IFERROR(J2/K2-1,"new"), and look at every employee whose pay moved by more than, for example, 10%. For salaried staff without commission the difference should normally be zero, so any movement needs an explanation such as a pay rise, a joiner or unpaid leave. A few minutes of this review catches most of the errors that would otherwise reach a payslip.

Course cover for Payroll Accounting and Bookkeeping
Payroll Accounting & Bookkeeping: one fictional studio, eight employees, a complete monthly payroll in 20 labs.

Common mistakes and how to spot them

  • Dividing by the wrong number of periods. =C2/52 gives a weekly amount and =C2/26 a biweekly one. On a monthly payroll, a salaried employee who suddenly earns about a quarter of the usual amount is the giveaway.
  • Paying overtime at the normal rate. =E2*C2 forgets the premium. Compare overtime pay per hour with the normal rate: it should be higher.
  • Paying only the premium. =E2*C2*($C$13-1) pays the extra half but not the hour itself. This is only correct if the overtime hours are already included in regular hours, which is not the case here.
  • Relative references to policy cells. If H2 contains =E2*C2*C13, the copy in H3 points at C14, the commission rate. Spot it with Ctrl+`: every copied formula should point at the same policy cell.
  • Commission on the wrong base. Commission is a share of sales in column F, not of the salary in column C.
  • Type mismatches. A salaried employee with hours, or an hourly employee with an annual salary in column C, produces absurd results. Sort by type and scan the rates: annual salaries are five-digit numbers, hourly rates two-digit ones.
  • Totals that silently skip a row. Inserting a row below the last employee is outside SUM(J2:J9). The cross-foot check above catches it immediately.

Quick reference: the Excel tools in this lesson

Function or shortcutWhat it doesExample from the lab
IF(test, value_if_true, value_if_false)Chooses between two calculations=IF(B2="Salary",C2/12,C2*D2)
$C$13 (absolute reference)Keeps a reference fixed when copied=E2*C2*$C$13
F4Cycles a reference through $C$13, C$13, $C13, C13Lock the policy cells
SUM(range)Adds a range=SUM(J2:J9) → 38,597.50
SUMIF(range, criteria, sum_range)Adds rows that meet a condition=SUMIF(B2:B9,"Salary",C2:C9)/12 → 22,100
SUMPRODUCT(array1, array2)Multiplies pairs and adds them=SUMPRODUCT(C7:C9,D7:D9) → 9,532
ROUND(number, 2)Rounds to cents=ROUND(G2+H2+I2,2)
Ctrl+D / Alt+=Fill down / AutoSumCopy G2:J2 down, total J10

Real-world uses

  • Small-business payroll. Many owners with a handful of staff calculate gross pay in a spreadsheet and then enter the figures into a payroll service or accounting system. A clean sheet makes that hand-over reliable.
  • Checking payroll software output. Even when software runs the payroll, finance teams rebuild the totals in Excel to check them before approving the bank transfer.
  • Budgeting headcount costs. The same columns, filled with planned hires and expected overtime, become the salary line of next year's budget.
  • Sales commission plans. Testing a new commission rate is a matter of changing C14 and watching the total. That makes it easy to show management what a plan would cost before it is rolled out.
  • Overtime monitoring. Tracking overtime pay per employee month by month reveals understaffed teams, and possible compliance issues, early.

What you will build in the rest of this course

This lesson is free. The other 19 labs are part of the full course, a one-time purchase of $9.90, and they take Harbor Lane Studio's May payroll all the way from gross pay to a reconciled ledger, using the figures you just calculated.

Deductions & Net Pay: Pension, Withholding & Social Contributions. You take gross pay to net pay: a pre-tax pension contribution, income tax withholding on taxable pay and employee social contributions, in the right order.

Employer On-Costs & the Total Cost of an Employee. You calculate what the company pays on top of gross pay, including a pension ceiling, and chart the true cost of each employee.

The Payroll Register: Totals, Cross-Foot Checks & Error Flags. You total the full register, cross-foot every row and let formulas flag the one row that does not add up.

Payroll Journal Entries: Expense, Liabilities & Cash. You post May's payroll to the ledger: gross salaries, the withheld liabilities, the employer contributions and the net pay transfer, with debits equal to credits.

Paying the Payroll Liabilities: Tax Office, Social Fund & Pension Fund. You work out the due dates, pay the three liabilities in June and prove that the cash paid equals the total employer cost.

Month-End Accruals: Unpaid Wages & Holiday Pay. You accrue wages earned after the last pay run and the holiday pay liability for all eight employees, and book the entries.

Mid-course Project: Payroll Reconciliation – Register vs Ledger vs Bank. You reconcile the register with the general ledger and the bank, flag every difference and count what needs investigating. A final exam leads to the Tabellab Certified Payroll Accountant certificate.

Summary

Gross pay is the foundation of every payroll: salary divided by the number of pay periods, hourly rate times hours, overtime at a premium and commission on sales. Put each block in its own column, keep the policy values in labelled cells locked with F4, use one IF formula for salaried and hourly staff, and prove the total by cross-footing. For Harbor Lane Studio that gives a May gross payroll of $38,597.50, the number the rest of the course builds on.

Now scroll up to the lab and build it yourself. Enter the four formulas, copy them down and watch the Coach check each employee as you go. It takes about fifteen minutes, and at the end you will have a gross-pay sheet you could use for a real small business tomorrow.

Frequently asked questions

How do you calculate gross pay?

Add up everything earned in the pay period before deductions: salary for the period, hourly wages (rate × hours), overtime pay and any commission or bonus. In Excel each part can sit in its own column, with gross pay as their sum.

How do I convert an annual salary to monthly pay in Excel?

Divide the annual salary by 12, for example =C2/12. For weekly pay divide by 52, for biweekly pay by 26 and for semi-monthly pay by 24.

How do you calculate overtime pay in Excel?

Multiply overtime hours by the hourly rate and the premium multiplier, for example =E2*C2*$C$13 with 1.5 in C13. Lock the multiplier cell with dollar signs so the formula can be copied down.

Is commission part of gross pay?

Yes. Commission is earned income and is included in gross pay, and it is normally subject to the same withholding as salary. How it is treated for overtime or other purposes depends on local rules.

What is the difference between gross pay and net pay?

Gross pay is what the employee earns before deductions. Net pay is what is actually paid out after deductions such as income tax withholding, social contributions and pension contributions.

How can one Excel formula handle salaried and hourly employees?

Use IF on the pay type, for example =IF(B2="Salary",C2/12,C2*D2). It divides the annual salary by 12 for salaried staff and multiplies rate by hours for everyone else.

Keep going: Payroll Accounting & Bookkeeping

This free lab is lesson 1 of 20. Unlock the other 19 hands-on labs, the final exam and your certificate for a one-time $9.90.

  1. Deductions & Net Pay: Pension, Withholding & Social Contributions
  2. Employer On-Costs & the Total Cost of an Employee
  3. The Payroll Register: Totals, Cross-Foot Checks & Error Flags
  4. Payroll Journal Entries: Expense, Liabilities & Cash
  5. Paying the Payroll Liabilities: Tax Office, Social Fund & Pension Fund
  6. Month-End Accruals: Unpaid Wages & Holiday Pay
  7. Mid-course Project: Payroll Reconciliation – Register vs Ledger vs Bank
  8. Progressive Withholding: Tax Bands, Average & Marginal Rates
  9. Annual Contribution Ceilings: Year-to-Date Pay & the Cut-Off Month
  10. Bonuses & 13th Salary: Monthly Accruals and the December True-Up
  11. Starters & Leavers: Pro-Rata Pay and the Final Pay Run
  12. Sick Pay & Unpaid Leave: Daily Rates and Salary Adjustments
  13. Benefits in Kind & Expense Refunds: Taxed but Not Paid, Paid but Not Taxed
  14. Salary Advances & Payroll Deductions: Instalments, Limits and Bookings
  15. Payroll Variance Analysis: May vs June Before Approval
  16. Year-End Payroll Review: Quarterly Totals vs Tax Filings
  17. Allocating Payroll Cost to Departments and Client Projects
  18. Payroll Budget 2027: Pay Rises, New Hires and On-Costs by Month
  19. Final Project: June Payroll from Gross to Ledger with a Cost Dashboard

Buy course — $9.90 See the full course