A traditional 401(k) is taxed as ordinary income, not as capital gains. Every dollar you withdraw is added to your taxable income for the year and taxed at your regular federal rate, which for 2026 ranges from 10% to 37% depending on your total income. It doesn’t matter whether the money grew from stock appreciation, dividends, or interest inside the account. One narrow exception exists for employer stock held in the plan, but for almost everyone else, the answer is ordinary income on the full amount.
Why Ordinary Income Rates Apply
Traditional 401(k) contributions go in pre-tax. You get a deduction in the year you contribute, and the money compounds without being taxed along the way. That deferral is the whole point of the account, and it’s also the reason capital gains rules don’t apply on the way out.
Internal Revenue Code Section 402(a) treats the entire distribution as ordinary income, covering both your original contributions and every dollar of accumulated earnings.1Office of the Law Revision Counsel. 26 USC 402 – Taxability of Beneficiary of Employees Trust Your plan administrator reports the payment on Form 1099-R, and you enter the taxable amount on lines 5a and 5b of Form 1040.2Internal Revenue Service. Line Instructions for Forms 1040 and 1040-SR
Compare that to a regular brokerage account. In a taxable account, you already paid tax on the money you invested, so only the gain gets taxed when you sell. Hold a stock more than a year and you pay long-term capital gains rates, which top out at 20%. Inside a 401(k), nothing was ever taxed. The contribution was deductible, the growth was sheltered, and the IRS collects on the back end at ordinary rates. The 401(k) works as a tax wrapper: buys and sells inside it don’t trigger any taxable event, and the character of the underlying gain disappears the moment the money comes out.
What the Rate Difference Costs You
The reason this question comes up is money. For 2026, a married couple filing jointly with $211,400 in taxable income pays 24% on the next dollar of ordinary income but only 15% on a long-term capital gain.3Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026 At the top of the schedule, ordinary income is taxed at 37% while long-term capital gains max out at 20%.
On a $100,000 withdrawal, the gap between 24% and 15% is $9,000. Repeat that across a retirement full of distributions and the arithmetic gets serious. But wanting capital gains treatment doesn’t produce it. The ordinary-income rule is built into the plan structure itself.
The One Exception: Net Unrealized Appreciation on Employer Stock
If your 401(k) holds shares of your employer’s stock, a strategy called Net Unrealized Appreciation (NUA) can move part of the distribution out of ordinary income and into long-term capital gains. NUA is authorized under Section 402(e)(4) of the Internal Revenue Code and is the only route to capital gains rates on 401(k) money.1Office of the Law Revision Counsel. 26 USC 402 – Taxability of Beneficiary of Employees Trust
Here’s the mechanic. You take a lump-sum distribution of the actual employer shares rather than selling them inside the plan. The plan’s cost basis in those shares is taxed as ordinary income in the year of distribution. The net unrealized appreciation, meaning the gain between the plan’s cost basis and the shares’ value at distribution, is excluded from ordinary income. That NUA piece is taxed at long-term capital gains rates whenever you later sell, no matter how long you personally held the shares after they came out.
To qualify, the distribution has to be a lump sum: your entire balance from all of the employer’s qualified plans of the same type must come out within a single tax year. And the distribution has to be triggered by one of four events: reaching age 59½, separating from service, becoming totally and permanently disabled, or death.4Internal Revenue Service. Topic No. 412, Lump-Sum Distributions Any appreciation after the distribution date is treated as long-term or short-term based on your holding period from that point forward.
NUA only touches the employer securities. The rest of the account is still ordinary income when withdrawn. Most participants don’t hold significant amounts of employer stock, so for most people this exception is theoretical.
Roth 401(k) Distributions Are Different
A Roth 401(k) flips the tax treatment. Contributions go in after tax, so you get no deduction now. Growth is sheltered, and qualified distributions come out entirely tax-free. Neither ordinary income tax nor capital gains tax applies to a qualified Roth 401(k) distribution.
Two conditions have to be met for the distribution to qualify: you’re at least 59½ (or the distribution is due to disability or death), and you’ve satisfied a five-tax-year holding period that starts January 1 of the year of your first Roth contribution to the plan.5Internal Revenue Service. Retirement Topics – Designated Roth Account Hit both marks and the whole distribution comes out tax-free, earnings included.
SECURE 2.0 also removed the pre-death required minimum distribution rule for Roth accounts inside employer plans, effective for tax years beginning after December 31, 2023.6Internal Revenue Service. Retirement Plan and IRA Required Minimum Distributions FAQs That aligns Roth 401(k)s with Roth IRAs and lets the balance keep growing tax-free for longer.
If you pull money from a Roth 401(k) before it qualifies, the tax treatment is less friendly than a Roth IRA. A pro-rata rule splits each non-qualified distribution between basis and earnings according to their share of the account.7Internal Revenue Service. Retirement Plans FAQs on Designated Roth Accounts The earnings piece is ordinary income, and the 10% early withdrawal penalty applies to it if you’re under 59½.
Early Withdrawals: Ordinary Income Plus a Penalty
Pulling from a traditional 401(k) before age 59½ stacks two costs. The full withdrawal is taxed as ordinary income, and a 10% additional tax is imposed on top.8Internal Revenue Service. Retirement Topics – Exceptions to Tax on Early Distributions For a taxpayer in the 24% federal bracket, that’s roughly 34% gone before state tax. The additional tax is reported on Schedule 2 of Form 1040, or on Form 5329 if you’re claiming an exception.9Internal Revenue Service. Instructions for Form 5329 (2025)
Several situations waive the 10% penalty, though ordinary income tax on the withdrawal is unaffected:
- Separating from service in or after the year you turn 55, for distributions from that employer’s plan (this doesn’t extend to IRAs).
- Substantially equal periodic payments based on life expectancy, taken at least annually and continued for five years or until age 59½, whichever is later.
- Unreimbursed medical expenses above 7.5% of your adjusted gross income.
- Total and permanent disability.
- Terminal illness, added by SECURE 2.0, when a physician certifies a condition expected to result in death within 84 months. No dollar cap.
- Emergency personal expenses up to $1,000 per year, subject to plan adoption.
- Domestic abuse distributions up to the lesser of $10,000 or 50% of the vested balance, within 12 months of the incident.
- Federally declared disaster distributions up to $22,000, spread over three years and repayable.10Internal Revenue Service. Disaster Relief Frequently Asked Questions – Retirement Plans and IRAs Under the SECURE 2.0 Act of 2022
None of these exceptions convert ordinary income into capital gains. They only remove the extra 10%.
Withholding and State Tax
When you take a 401(k) payment that qualifies as an eligible rollover distribution and don’t move it directly to another retirement account, the plan must withhold 20% for federal income tax. You can’t waive that withholding.11eCFR. 26 CFR 31.3405(c)-1 – Withholding on Eligible Rollover Distributions A $50,000 payment lands in your account as $40,000, and the other $10,000 goes to the IRS. A direct rollover to another plan or IRA avoids the withholding entirely.12Internal Revenue Service. Rollovers of Retirement Plan and IRA Distributions For periodic retirement payments, withholding is set by the W-4P you file with the plan, and you can adjust it or opt out.13Internal Revenue Service. Pensions and Annuity Withholding
State tax is a separate layer. Most states treat 401(k) withdrawals as ordinary income, and rates run from low single digits to over 13% at the top. Nine states levy no state income tax, and several others exempt retirement income partially or offer breaks based on age. Where you live when the money comes out affects the final number.