A 401(k) plan must generally treat employees fairly, not merely offer the same benefits on paper. Federal nondiscrimination rules test whether contributions disproportionately favor highly compensated employees, making 401k discrimination testing a key compliance responsibility for plan sponsors.
These tests can affect plan costs, contribution limits, and correction obligations. Understanding which employees and contributions count—and how plan design and payroll practices influence results—can help employers identify risks and address problems before they recur.
Why 401(k) Plans Must Pass Discrimination Testing
Federal law generally requires 401(k) plans to satisfy nondiscrimination rules so that plan benefits do not disproportionately favor highly compensated employees. These requirements help ensure that rank-and-file employees have a meaningful opportunity to participate and benefit.
401k discrimination testing evaluates whether contributions and benefits for highly compensated employees are appropriately balanced against those for non-highly compensated employees. The rules apply to many employer-sponsored 401(k) plans, though certain plan designs, such as qualifying safe harbor plans, may satisfy specific requirements without annual ADP or ACP testing.
Passing the required tests helps preserve a plan’s tax-qualified status and the favorable tax treatment of contributions. A failed test can require corrective action, such as refunds to highly compensated employees or additional employer contributions, and may create administrative costs.
Employers therefore need to monitor participation and contribution data throughout the year, not just at testing time. Accurate records and timely compliance help reduce the risk of failed tests and related corrections.
The Main Tests Used for 401(k) Plans
Several nondiscrimination tests may apply to a 401(k) plan, depending on its design. The ADP test compares salary deferrals by highly compensated employees (HCEs) with those by non-highly compensated employees (NHCEs), while the ACP test examines matching and certain after-tax contributions.
The general nondiscrimination test under Internal Revenue Code Section 401(a)(4) evaluates whether contributions or benefits favor HCEs. A plan may also need to satisfy the top-heavy rules, which assess whether key employees hold a disproportionate share of plan assets and can trigger minimum contribution requirements for other participants.
Other requirements address specific plan features. For example, the coverage test under Section 410(b) generally checks whether a plan benefits an adequate share of non-highly compensated employees. Which tests apply, and how they are performed, depends on the plan’s terms and circumstances; passing one test does not automatically satisfy the others.
How the ADP and ACP Tests Work
The ADP test compares the average percentage of compensation that highly compensated employees (HCEs) defer to the average for non-highly compensated employees (NHCEs). For each group, the calculation generally includes eligible employees who could make salary deferrals, even if they chose not to contribute.
The ACP test applies a similar comparison to matching and certain after-tax employee contributions. The plan calculates each group’s average contribution percentage using compensation and contributions counted under the plan’s terms and applicable rules.
The permitted difference between the HCE and NHCE averages depends on the NHCE result. If either test exceeds its limit, the plan may need corrective action. These calculations are performed separately, so passing the ADP test does not necessarily mean the plan passes the ACP test.
For 401k discrimination testing, the plan document, testing method, compensation definition, and applicable IRS rules affect the calculation. Plan administrators should verify the data and method used for each annual test.
Which Employees and Contributions Count
For 401(k) discrimination testing, highly compensated employee status generally depends on compensation in the prior year and, if the plan elects, whether the employee belonged to the top-paid group. The applicable compensation threshold is adjusted periodically. An employee may also qualify as an HCE by owning more than 5% of the business during the current or preceding year, regardless of compensation.
The testing group generally includes eligible employees, not only those who chose to contribute. Plan terms and applicable rules determine who is eligible and whether certain employees, such as those who have not met age or service requirements, may be excluded. Employees who leave during the year or become eligible partway through it may also require special treatment.
ADP testing generally counts employees’ pre-tax and Roth elective deferrals, along with qualifying salary-reduction contributions. ACP testing generally covers employer matching contributions and employee after-tax contributions. Correct classification and consistent payroll records help ensure the plan includes the right participants and contribution amounts.
Identifying highly compensated employees
For 401(k) discrimination testing, a highly compensated employee (HCE) is generally an employee who either owned more than 5% of the employer during the current or preceding year, or whose compensation in the preceding year exceeded the IRS threshold.
The compensation threshold is adjusted periodically for inflation. For 2026 testing, the relevant threshold is generally $160,000 in 2025 compensation. A plan may allow the top-paid group election, which limits the compensation-based category to employees in the top 20% by compensation, subject to applicable rules.
The ownership test applies regardless of compensation, and certain family attribution rules may treat an employee as owning shares held by specified relatives. Employers must also apply the plan’s definition of compensation and identify the correct testing year when determining HCE status.
Accurate payroll, ownership, and prior-year compensation records help ensure employees are classified consistently. An error in HCE identification can affect ADP or ACP test results and may lead to corrective action.
Determining eligible employees and testing groups
For 401(k) discrimination testing, the plan’s eligibility rules determine which employees must be included in the relevant testing group. Employees who meet the plan’s age and service requirements and are eligible to defer must generally be considered, even if they choose not to contribute.
Testing classifications also matter. Employees are generally divided into highly compensated employees (HCEs) and non-highly compensated employees (NHCEs) under IRS rules. The plan document and applicable testing method determine which participants are included in each calculation.
When reviewing the population, administrators should check for employees who may be overlooked, including those who declined enrollment or left employment during the year. Depending on the test and plan terms, former employees who made eligible contributions during the testing period may still be included.
- Confirm each employee’s eligibility date and participation status.
- Apply the plan’s HCE and NHCE classifications consistently.
- Review payroll and census records for missing or misclassified employees.
Including elective deferrals and employer matching contributions
Employee elective deferrals are the salary-reduction contributions participants choose to make to a 401(k) plan, including traditional pre-tax and designated Roth deferrals. For the ADP test, these deferrals are generally counted in the applicable testing group’s average deferral percentage, subject to plan terms and tax rules.
Employer matching contributions are considered in the ACP test, which compares average contribution percentages for highly compensated and non-highly compensated employees. The calculation generally includes matching contributions allocated to participants’ accounts during the plan year, though specific rules determine which amounts qualify.
A plan’s terms, contribution timing, and applicable testing rules affect how amounts are counted. For example, certain matching contributions may be excluded from ACP testing if they satisfy regulatory requirements and are tested under an alternative method. Accurate payroll and recordkeeping help ensure the 401k discrimination testing figures reflect eligible contributions correctly.
Common Causes of Failed Nondiscrimination Tests
A 401(k) plan may fail nondiscrimination testing when highly compensated employees defer or receive matching contributions at substantially higher rates than non-highly compensated employees. Low participation among eligible employees can create this imbalance, particularly when workers do not understand the plan or face barriers to enrollment.
Common contributing factors include:
- Uneven participation: Non-highly compensated employees may contribute little or nothing, lowering their group’s average deferral rate.
- Concentrated compensation: A small number of highly compensated employees with high contribution rates can increase the group average.
- Eligibility or classification errors: Incorrectly identifying eligible employees or assigning them to the wrong testing group can distort results.
- Payroll and plan administration mistakes: Missed deferrals, incorrect compensation data, or improperly calculated matching contributions may affect testing.
Plan design can also contribute. For example, matching formulas that encourage higher contributions from highly compensated employees may lead to ACP testing problems. These issues can cause 401(k) discrimination testing failures even when the plan’s written terms appear compliant.
Correcting a Failed 401(k) Discrimination Test
When a 401(k) discrimination test fails, the plan administrator must determine which correction method applies under the plan document and IRS rules. The appropriate response depends on the test, the plan’s terms, and the timing of the correction.
For a failed ADP test, employers commonly distribute corrective refunds to affected highly compensated employees or make qualified nonelective contributions for eligible non-highly compensated employees. A failed ACP test may require refunds of matching contributions, employer contributions, or both, depending on the test results and plan provisions. Refunds generally include allocable earnings or losses.
Deadlines matter: corrective distributions for ADP or ACP failures are generally due within 12 months after the plan year ends. A 10% excise tax may apply to certain corrective distributions made after the first 2½ months. Other failures may require different remedies, so administrators should verify the applicable rules.
Employers should document the calculations, notices, and corrective payments, and review payroll and eligibility data for errors. If a failure is not corrected on time, the plan may face additional tax consequences or need correction through an IRS compliance program.
Safe Harbor Plans and Other Ways to Reduce Testing Risk
A safe harbor 401(k) plan can avoid the annual ADP test, and, if it meets the applicable requirements, the ACP test as well. The plan must provide qualifying employer contributions and satisfy notice and eligibility rules. Safe harbor status does not exempt a plan from every compliance test.
Traditional safe harbor designs generally use either a matching contribution or a nonelective contribution for eligible employees. A qualified automatic contribution arrangement is another option, with its own automatic-enrollment and contribution requirements. Employers should confirm the applicable rules and deadlines before adopting or changing a design.
Other practices can reduce 401k discrimination testing risks. Keep payroll data accurate, apply eligibility and compensation terms consistently, and coordinate payroll records with the plan document. Review workforce changes and contribution patterns during the year so potential issues can be addressed before year-end testing.
How safe harbor contributions affect ADP and ACP testing
A qualifying safe harbor 401(k) plan generally satisfies the ADP test without testing elective deferrals, provided it meets applicable contribution, notice, and other requirements. This can reduce the risk that highly compensated employees’ deferrals will need to be limited or refunded.
The effect on the ACP test depends on the plan’s design. A plan using a basic or enhanced matching contribution safe harbor may also avoid ACP testing if it meets the requirements for that exemption. A nonelective safe harbor contribution, by itself, does not automatically exempt matching contributions from the ACP test.
Even when an exemption applies, other plan features—such as matching contributions beyond the safe harbor formula—may require separate testing. Employers should confirm that contributions are timely and calculated correctly; a plan that fails to meet safe harbor conditions may lose the testing relief.
Plan design and payroll practices that support compliance
Plan design can reduce the likelihood of failed 401(k) discrimination testing. Employers may consider automatic enrollment, contribution escalation, or matching formulas that encourage participation across employee groups. These features must be reflected accurately in plan documents and administered according to their terms.
Payroll procedures should support consistent eligibility tracking and contribution processing. Useful controls include:
- Reconcile payroll deferrals and employer matching contributions with plan records.
- Apply eligibility rules and entry dates consistently.
- Review compensation and contribution data before testing.
- Correct payroll errors promptly and document adjustments.
Clear processes also help ensure that eligible employees are offered the opportunity to participate and that contributions reach the plan on time. Because plan terms and testing requirements vary, employers should coordinate with their plan administrator and benefits counsel when changing plan design or payroll practices.
Preventing Repeat Testing Problems Through Ongoing Plan Review
Employers can reduce recurring 401(k) discrimination testing problems by reviewing plan results each year and tracking patterns across testing periods. Repeated failures may point to plan-design or operational issues, such as contribution formulas that do not work as intended or employee data that is incomplete.
A regular review should compare payroll records with plan records, including compensation, eligibility dates, deferrals, matching contributions, and employee classifications. Confirm that changes in ownership, workforce composition, or compensation do not affect who is treated as a highly compensated employee or alter the applicable testing groups.
Employers should also coordinate their plan administrator, payroll provider, and benefits team. Clear procedures for timely enrollment, contribution processing, and reporting can help prevent errors that distort test results. Documenting corrections and the reasons for prior failures makes recurring issues easier to identify.
When testing results reveal a pattern, employers can assess whether plan terms or administrative practices need adjustment before the next testing cycle. Any proposed change should be reviewed for consistency with the plan document and applicable requirements, since a design change may affect participant rights and testing outcomes.