What Taxes Are 401(k) Contributions Exempt From?

Traditional 401(k) contributions are exempt from federal income tax in the year you make them, and in most states they are exempt from state income tax as well. They are not exempt from Social Security tax, Medicare tax, or federal unemployment tax, all of which still come out of your paycheck on your full salary. The federal income tax break is a deferral rather than a permanent exclusion: you pay ordinary income tax on the money when you withdraw it in retirement.

Federal Income Tax

When you elect to defer part of your salary into a traditional 401(k), your employer removes that amount before calculating federal income tax withholding. Your W-2 reports the reduced figure in Box 1, so the IRS never treats those dollars as current-year income.1Internal Revenue Service. 2026 General Instructions for Forms W-2 and W-3 Earn $80,000 and contribute $24,500 in 2026, and Box 1 shows $55,500.2Internal Revenue Service. Retirement Topics – Contributions

The lower reported income can affect more than your marginal bracket. Your adjusted gross income determines eligibility for tax benefits like education credits, the child tax credit, and the student loan interest deduction. A large enough contribution can keep your AGI in a range where those benefits still apply.

State and Local Income Tax

Most states calculate income tax starting from your federal adjusted gross income or federal taxable income, so traditional 401(k) contributions drop out of the state calculation automatically. In a state with a 5% flat rate, every $1,000 you defer saves you roughly $50 in state tax on top of the federal savings. Several states have no income tax at all, so the question does not arise.

A small number of states do not follow the federal treatment. In those states your full salary, including the deferred portion, is subject to state income tax. The trade-off is that these states generally do not tax the withdrawals in retirement, since the contributions were taxed on the way in.

Local taxes are a separate matter. Cities and municipalities that levy earned income taxes often apply them to gross wages before any retirement plan deduction, meaning your 401(k) deferrals are not exempt at the local level. Your pay stub should show how each local tax is calculated.

Social Security, Medicare, and Federal Unemployment Tax

The most common misunderstanding about 401(k) contributions is thinking they escape all payroll taxes. They do not. Traditional deferrals remain subject to Social Security tax at 6.2% up to the annual wage base, Medicare tax at 1.45% on all wages plus an additional 0.9% on wages above $200,000 for single filers, and federal unemployment tax.3Internal Revenue Service. 401(k) Resource Guide Plan Participants – 401(k) Plan Overview Your employer’s payroll system uses your full salary, including what you defer, to calculate all three.

Federal law defines 401(k) deferrals as wages for FICA purposes.4Office of the Law Revision Counsel. 26 USC 3121 – Definitions On your W-2, Boxes 3 and 5 (Social Security wages and Medicare wages) show the full amount you earned even though Box 1 does not.5Internal Revenue Service. Retirement Plan FAQs Regarding Contributions One practical consequence: contributing to a 401(k) does not reduce the earnings used to calculate your future Social Security benefit.

Investment Growth Inside the Account

The upfront income tax break is one part of the exemption picture. The other is what happens to the money after it lands in the account. In a regular brokerage account, you owe tax each year on interest, dividends, and any profits from selling investments, even when you reinvest every dollar. Inside a 401(k), none of those events trigger a tax bill.3Internal Revenue Service. 401(k) Resource Guide Plan Participants – 401(k) Plan Overview A $500 dividend gets fully reinvested. A fund sale at a profit generates no capital gains tax. Interest compounds without any annual reduction.

You can also rebalance your portfolio, selling one fund and buying another, without tracking cost basis or worrying about short-term versus long-term rates. No internal transaction shows up on your annual return. The protection lasts as long as the money stays in a qualified retirement account, and rolling funds from a 401(k) into an IRA or a new employer’s plan preserves it.

How Roth 401(k) Contributions Are Different

Roth 401(k) contributions do not carry the federal income tax exemption. You pay federal income tax (and state income tax, where applicable) on the money in the year you earn it, so a Roth deferral does not lower your Box 1 wages. In exchange, qualified withdrawals in retirement come out completely tax-free, including all investment growth.6Internal Revenue Service. Roth Account in Your Retirement Plan A withdrawal qualifies once it has been at least five years since your first Roth contribution to the plan and you have reached age 59½, with exceptions for disability or death.

Roth contributions are still subject to Social Security and Medicare tax, just like traditional deferrals. The tax-free treatment of investment growth inside the account works the same way in both types of 401(k).

The Deferred Tax Comes Due Later

The federal income tax exemption on traditional 401(k) contributions is a deferral, not a permanent exclusion. Every dollar you eventually withdraw, both your original contributions and the growth on them, is taxed as ordinary income in the year you receive it.7Internal Revenue Service. 401(k) Resource Guide – Plan Participants – General Distribution Rules The math works in your favor if your tax bracket in retirement is lower than it was during your working years.

Withdrawals before age 59½ generally trigger an additional 10% tax on top of the regular income tax, though several exceptions can waive it.8Office of the Law Revision Counsel. 26 USC 72 – Annuities; Certain Proceeds of Endowment and Life Insurance Contracts You also cannot leave the money untouched forever. Required minimum distributions generally must begin by April 1 following the year you turn 73, or the year you retire if your plan allows the delay and you are still working.9Internal Revenue Service. Retirement Topics – Required Minimum Distributions (RMDs)

So the short version: traditional 401(k) contributions are exempt from federal income tax and, in most places, state and local income tax today. They grow free of tax on dividends, interest, and capital gains for as long as they stay in the account. FICA and federal unemployment taxes still apply on the way in, and ordinary income tax still applies on the way out.