What Does It Mean When a 401(k) Plan Is 'Nondiscrimination Tested'?

Updated July 9, 2026 5 min read

A letter arrives from HR mentioning that the 401(k) plan “passed its nondiscrimination testing” for the year, and most employees skim past it without a second thought. For anyone contributing near the plan’s limits, though, that annual test can quietly shape how much they’re allowed to save.

The short answer

Nondiscrimination testing is a set of annual checks, required for most employer 401(k) plans, that compare how much different groups of employees are contributing and benefiting from the plan. The goal is to confirm the plan isn’t disproportionately favoring higher-paid employees over everyone else. If a plan fails, it generally has to correct the imbalance, sometimes by refunding contributions to higher earners or increasing contributions for others.

Why the tests exist

Retirement plans get favorable tax treatment, and in exchange, the rules try to ensure that benefit doesn’t flow mainly to owners and top earners while rank-and-file employees are left out. Nondiscrimination testing is the mechanism that checks this each year, comparing participation and contribution patterns between highly compensated employees and everyone else. A plan that consistently skews toward the former risks losing some of its tax advantages if it can’t bring itself back into balance.

What actually gets compared

The most common tests look at the average deferral rate of highly compensated employees against the average deferral rate of everyone else, essentially asking whether the two groups are saving at reasonably similar rates relative to their pay. Related tests apply the same logic to employer matching contributions. A plan with strong participation across all pay levels tends to pass comfortably, while one where lower earners contribute little and higher earners max out their deferrals is more likely to run into trouble.

What happens if a plan fails

When a plan fails its testing, it typically has a limited window to correct the problem. Common fixes include refunding a portion of contributions back to higher-compensated employees, which can create an unexpected taxable distribution, or having the employer make additional contributions on behalf of lower-paid employees to close the gap. Some plans avoid this entirely by adopting a safe harbor design, which meets certain contribution or matching requirements automatically and skips several of the standard tests each year.

Why participation across the board matters

Because these tests compare group behavior rather than individual accounts, an employee’s own contribution choices affect not just their own balance but the plan’s overall test results. Encouraging broad participation — something auto-enrollment features are partly designed to support — tends to make it easier for a plan to pass its tests without needing corrective refunds. This is one reason employers sometimes change plan design after a period of low participation among lower-paid staff.

The bottom line

Nondiscrimination testing is a background safeguard most employees never think about, but it can directly affect how much a higher earner is ultimately allowed to keep in the plan for the year. Understanding that the test exists — and that a refund notice isn’t a mistake but a required correction — makes the occasional surprise letter easier to interpret.