RetirementCheck101 logo A Service of RiskCheck101.comRetirementCheck101
Educational content only — not investment, tax, or legal advice. Based on publicly available IRS rules as of 2025. Disclaimer.

How a 401(k) Actually Works

Employer PlansUpdated 2025-05-12

The 401(k) plan is the default retirement vehicle for roughly 70 million American workers, holding more than $8 trillion in assets. Despite its dominance, very few participants understand how the plan they rely on actually operates. Here is the mechanic.

The basic structure

A 401(k) is a profit-sharing plan qualified under IRC §401(a) that includes a "cash or deferred arrangement" under IRC §401(k). The CODA lets an employee choose between receiving cash wages or having that amount contributed to the plan on a pre-tax (or Roth) basis. Until the participant elects deferral, the money is part of taxable wages. Once deferred, it is excluded from current Form W-2 Box 1 income (or included for Roth) and grows tax-deferred until distribution.

The three contribution sources

The nondiscrimination tests

Without testing constraints, a 401(k) would tend to concentrate benefits in highly compensated employees, who can afford to defer more. IRC §401(k)(3) imposes the Actual Deferral Percentage (ADP) test and §401(m) imposes the parallel Actual Contribution Percentage (ACP) test on match. The HCE average deferral rate cannot exceed the NHCE average by more than (a) 1.25 times, or (b) the lesser of two percentage points or twice the NHCE rate.

If the plan fails ADP/ACP, excess HCE deferrals are returned (and taxed) by March 15 of the following year. For plans with low NHCE participation, this can mean executives get a partial refund of their deferral every year.

The safe harbor escape

IRC §401(k)(12) and §401(k)(13) provide a "safe harbor" exemption from ADP/ACP testing. The plan agrees to one of two prescribed contribution formulas — generally a 100% match on the first 3% plus 50% on the next 2% (4% total at full deferral), or a 3% non-elective contribution to all eligible employees — and the testing requirement disappears. Most well-run small and mid-size plans are safe harbor for this reason. SECURE 2.0 §103 expanded auto-enrollment safe harbor terms.

Vesting

Employee deferrals are 100% immediately vested at all times. Employer contributions vest on a schedule chosen by the plan — either 3-year cliff (0% before 3 years, 100% after) or 6-year graded (20% per year starting in year 2), as constrained by IRC §411 and ERISA §203. Safe harbor non-elective and matching contributions are immediately 100% vested by statute.

Distributions and the 10% penalty

Withdrawals before age 59½ trigger a 10% additional tax under IRC §72(t), with exceptions including separation from service in or after the year you turn 55 (the "Rule of 55"), substantially equal periodic payments, disability, and qualified domestic relations orders. Hardship withdrawals are not exempt from the 10% tax — only from the loan-or-hardship-required liquidity restriction.

Common mistakes

Sources

RetirementCheck101 sizes your full 401(k) opportunity — deferral, match, and after-tax bucket. Explore the free educational tool.