Sample payroll data
Updated 3 November 2026. Fictional U.S. businesses and people, generated with a fixed seed.
What is in it
Each row is one paycheck for one of 200 fictional hourly employees in 2024: base rate, regular and overtime hours, gross pay, an illustrative flat federal withholding, Social Security at 6.2%, Medicare at 1.45% and net pay. Every money column can be rebuilt from the others with a formula.
More practice tables like this one: all 14 newer sample datasets.
First rows
point at a column to light it up
| payroll_idtext | employee_idtext | departmenttext | pay_datedate | hourly_ratenumber | regular_hoursnumber | overtime_hoursnumber | gross_paynumber | federal_withholdingnumber | social_securitynumber | medicarenumber | net_paynumber |
|---|---|---|---|---|---|---|---|---|---|---|---|
| PR500001 | H1001 | Warehouse | 2024-01-05 | 16.6 | 63.1 | 0 | 1047.46 | 104.75 | 64.94 | 15.19 | 862.58 |
| PR500002 | H1002 | Maintenance | 2024-01-05 | 35.09 | 64.1 | 0 | 2249.27 | 494.84 | 139.45 | 32.61 | 1582.37 |
| PR500003 | H1003 | Maintenance | 2024-01-05 | 22.4 | 80 | 2.2 | 1865.92 | 223.91 | 115.69 | 27.06 | 1499.26 |
| PR500004 | H1004 | Delivery | 2024-01-05 | 30.66 | 80 | 0 | 2452.8 | 539.62 | 152.07 | 35.57 | 1725.54 |
| PR500005 | H1005 | Retail | 2024-01-05 | 35.89 | 80 | 0 | 2871.2 | 631.66 | 178.01 | 41.63 | 2019.9 |
| PR500006 | H1006 | Maintenance | 2024-01-05 | 15.61 | 80 | 1.6 | 1286.26 | 128.63 | 79.75 | 18.65 | 1059.23 |
| PR500007 | H1007 | Maintenance | 2024-01-05 | 17.9 | 80 | 1.4 | 1469.59 | 146.96 | 91.11 | 21.31 | 1210.21 |
| PR500008 | H1008 | Kitchen | 2024-01-05 | 18.25 | 80 | 9.9 | 1731.01 | 173.1 | 107.32 | 25.1 | 1425.49 |
| PR500009 | H1009 | Warehouse | 2024-01-05 | 31.43 | 80 | 0 | 2514.4 | 553.17 | 155.89 | 36.46 | 1768.88 |
| PR500010 | H1010 | Warehouse | 2024-01-05 | 23.7 | 59.8 | 0 | 1417.26 | 170.07 | 87.87 | 20.55 | 1138.77 |
Gross pay by department
USD, 1,000-row file
Show as a table
| department | value |
|---|---|
| Delivery | $386,420 |
| Kitchen | $348,265 |
| Warehouse | $347,035 |
| Front Desk | $303,002 |
| Maintenance | $270,074 |
| Retail | $220,929 |
Data dictionary
| Column | Type | Meaning |
|---|---|---|
| payroll_id | text | Pay line number |
| employee_id | text | Employee number (200 hourly employees) |
| department | text | Department |
| pay_date | date | Biweekly pay date in 2024 (Fridays from 2024-01-05) |
| hourly_rate | decimal | Base rate (USD per hour) |
| regular_hours | decimal | Hours at the base rate, up to 80 |
| overtime_hours | decimal | Hours paid at 1.5 x the base rate |
| gross_pay | decimal | regular_hours x hourly_rate + overtime_hours x hourly_rate x 1.5 |
| federal_withholding | decimal | Illustrative flat withholding (10%, 12% or 22% of gross), not a real tax calculation |
| social_security | decimal | 6.2% of gross_pay |
| medicare | decimal | 1.45% of gross_pay |
| net_pay | decimal | gross_pay - federal_withholding - social_security - medicare |
Practice questions
answers checked in SQL and in Python
Total gross pay and net pay in the file?
Gross $1,875,724.31, net $1,465,255.87
Excel
=SUM(H2:H1001) and =SUM(L2:L1001)SQL
SELECT ROUND(SUM(gross_pay),2), ROUND(SUM(net_pay),2) FROM payrollFile: payroll-1000
How many pay lines include overtime, and what is the total overtime hours?
277 pay lines, 1,739.4 overtime hours
Excel
=COUNTIF(G:G,">0") and =SUM(G:G)SQL
SELECT COUNT(*), ROUND(SUM(overtime_hours),1) FROM payroll WHERE overtime_hours > 0File: payroll-1000
Gross pay by department?
Delivery $386,419.94; Kitchen $348,264.71; Warehouse $347,034.87; Front Desk $303,002.00; Maintenance $270,073.68; Retail $220,929.11
Excel
=SUMIFS(H:H,C:C,"Warehouse")SQL
SELECT department, ROUND(SUM(gross_pay),2) AS g FROM payroll GROUP BY department ORDER BY g DESC, departmentFile: payroll-1000