According to §401(a)(4), a deferred compensation plan cannot discriminate in favor of highly compensated employees (HCEs), which is a person who either owned 5% of the business at any time during the year or made more than $80,000 (inflation-adjusted) during the preceding year.

The regulations provide two safe-harbor tests for defined contribution plans (which comprise the vast bulk of 401ks).  Read More