The very purpose of a qualified retirement plan is to provide a tax-advantaged savings vehicle for employees. The government forgoes tax revenue on contributions and growth to encourage employers to set up these plans. In return, the Internal Revenue Code (IRC) imposes a fundamental requirement: these plans must not disproportionately benefit the business owners and highest-paid employees at the expense of the rank-and-file. This leads to a complex and often misunderstood question: Can a qualified retirement plan discriminate in favor of Highly Compensated Employees (HCEs)? The answer is a nuanced one. While the plan’s design cannot explicitly favor HCEs, the practical effect of certain rules and tested provisions can—and often does—allow them to receive larger benefits. The system is not designed for equality, but for a measured and tested equity that permits disparity within strictly defined limits.
This article will dissect the intricate nondiscrimination rules that govern qualified plans. We will explore the definition of an HCE, the specific tests plans must pass, the strategies employers use to maximize contributions for key employees while remaining compliant, and the critical distinction between what a plan can do and what it cannot do.
The Core Principle: Nondiscrimination as a Requirement for Qualification
The tax-qualified status of a plan under IRC Section 401(a) is contingent upon its compliance with nondiscrimination rules. These rules, primarily outlined in Sections 401(a)(4), 401(k), 401(m), and 410(b), ensure that the plan does not operate as a tax-sheltered piggy bank for owners and executives. A plan that fails these tests risks losing its qualified status—a catastrophic outcome that would make all contributions immediately taxable to participants and disqualify the employer’s deductions.
Defining the Players: Who is a Highly Compensated Employee (HCE)?
The entire framework hinges on the definition of an HCE. For the 2024 tax year, an HCE is any employee who meets either of the following criteria during the look-back year (typically the prior calendar year):
- Ownership: Owned more than 5% of the business at any time during the current or prior year.
- Compensation: Received compensation from the business in the prior year in excess of $155,000 (this amount is indexed for inflation annually).
This definition creates two distinct classes of participants: HCEs and Non-Highly Compensated Employees (NHCEs). All testing is a comparison between these two groups.
The Mechanisms of Permissible Disparity
A plan cannot have a rule that states “only HCEs may participate.” However, it can include features that, while available to all, are more likely to be utilized by or beneficial to HCEs. The law allows for this disparity as long as the plan passes one of the following quantitative tests.
1. The ADP/ACP Tests for 401(k) Plans
This is the most common regulatory hurdle. For plans with elective deferrals (like a traditional 401(k)), the IRS mandates two annual tests:
- Actual Deferral Percentage (ADP) Test: This compares the average salary deferral rates of HCEs to those of NHCEs.
- Actual Contribution Percentage (ACP) Test: This compares the average rates of employer matching contributions and after-tax employee contributions for HCEs and NHCEs.
The rules do not require the averages to be equal. They allow the HCE average to exceed the NHCE average by a limited amount. The specific limits are as follows:
| If the NHCE Average ADP/ACP is: | Then the HCE Average ADP/ACP Can Be No More Than: |
|---|---|
| 0% to 2% | NHCE Average x 2 |
| 2% to 8% | NHCE Average + 2% |
| More than 8% | NHCE Average x 1.25 |
Example of a Failed ADP Test:
- NHCE Average Deferral Rate: 3%
- HCE Average Deferral Rate: 6%
- Limit for HCEs: 3\% + 2\% = 5\%
- Result: The HCE average of 6% exceeds the 5% limit. The plan fails the test and must be corrected.
Correcting a Failed Test: The most common correction method is for the plan to refund excess contributions to the HCEs until the test passes. These refunds are taxable income to the employees in the year they are received.
2. The Safe Harbor 401(k): Avoiding Tests Entirely
A plan can completely bypass the ADP and ACP tests by becoming a Safe Harbor 401(k). To do this, the employer must make mandatory contributions that are fully vested immediately. They have two options:
- Safe Harbor Match: 100% match on the first 3% of pay deferred, plus a 50% match on the next 2% (effectively a 4% match for an employee deferring 5% or more).
- Safe Harbor Non-Elective: A contribution equal to 3% of compensation to all eligible employees, whether they defer or not.
The Trade-Off: This is the clearest example of permitted discrimination. The employer must make contributions for NHCEs, but in return, HCEs are allowed to defer up to the IRS maximum ($23,000 in 2024) without any testing limits. The plan can legally “discriminate” in favor of HCEs because the employer has provided a guaranteed benefit to the NHCEs.
3. Cross-Testing (Age-Weighted Profit-Sharing Plans)
This is a more advanced technique that uses age to justify disparity. A standard profit-sharing plan must allocate contributions as a uniform percentage of pay for all participants. A cross-tested plan allocates contributions based on an equivalent projected retirement benefit.
Because older employees (often the owners and HCEs) have fewer years to retirement, they need a larger contribution today to produce the same retirement income as a younger NHCE. The IRS permits this disparity if the plan can demonstrate that the benefit at retirement (the projection) is nondiscriminatory.
Simplified Example:
- Employee A (HCE, age 60): Gets a $20,000 profit-sharing contribution.
- Employee B (NHCE, age 30): Gets a $5,000 profit-sharing contribution.
This appears discriminatory in terms of contribution amount. However, when projected to retirement age at a given interest rate, both contributions could be shown to provide an equivalent annuity benefit. If the math holds, the plan passes nondiscrimination testing.
What is Strictly Prohibited?
While the above methods allow for legal disparity, certain forms of discrimination are unequivocally forbidden:
- Excluding NHCEs based on job classification if the effect is to primarily benefit HCEs.
- Having longer vesting schedules for NHCEs than for HCEs.
- Providing different investment options or loan features to different classes of employees.
The Strategic Employer’s Perspective
Employers who wish to maximize benefits for HCEs have a clear playbook:
- Implement a Safe Harbor 401(k) Design: This is the most straightforward way to ensure HCEs can max out their deferrals.
- Utilize Profit-Sharing Contributions: After satisfying Safe Harbor requirements, employers can make additional discretionary profit-sharing contributions. These can often be structured using cross-testing to skew larger amounts toward HCEs.
- Add a Cash Balance Plan: For businesses with stable cash flow and older HCEs, adding a defined benefit plan (like a Cash Balance plan) alongside a 401(k) allows for enormous tax-deductible contributions—often $100,000 to $200,000+ per year for the HCEs.
Conclusion: A System of Controlled, Tested Equity
Can a qualified retirement plan discriminate in favor of HCEs? It can, but only through a carefully constructed framework of rules designed to balance that favoritism with tangible benefits for NHCEs.
The system does not mandate equal outcomes; it mandates a process that prevents egregious imbalance. It allows HCEs to receive larger absolute benefits through mechanisms like the Safe Harbor design and cross-testing, but only after the plan has first provided a meaningful and secure benefit to the broader workforce. The “discrimination” is not a hidden loophole but a calculated feature of the tax code, intended to incentivize employers to establish plans that benefit everyone, even if they benefit some more than others. The result is a complex but effective equilibrium that expands retirement coverage while acknowledging the realities of business ownership and compensation.




