Is Your 401(k) Taxed as Income or Capital Gains?

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 marginal rate, which for 2026 runs from 10% to 37% depending on your total income. It doesn’t matter whether the money inside the account grew from stock appreciation, dividends, or interest. There is one narrow exception involving employer stock, and Roth 401(k) money follows different rules entirely, but for most participants asking whether their 401(k) is taxed as income or capital gains, the answer is income.

Why Ordinary Income Rates Apply

Traditional 401(k) contributions go in pre-tax. You get a deduction the year you contribute, the money compounds without annual tax on dividends or gains, and the IRS collects when you pull it out. Under Internal Revenue Code Section 402(a), the full distribution is treated as ordinary income.1Office of the Law Revision Counsel. 26 USC 402 – Taxability of Beneficiary of Employees Trust Your plan administrator reports the amount on Form 1099-R, and it lands on lines 5a and 5b of your Form 1040.2Internal Revenue Service. Line Instructions for Forms 1040 and 1040-SR

The confusion is understandable. Your 401(k) holds stocks and bonds that would generate capital gains in a taxable brokerage account. A stock held more than a year in a taxable account is taxed at long-term capital gains rates, which top out at 20%. Ordinary income rates go up to 37%.

The difference is what the account is. A 401(k) is a tax wrapper. Inside it, buying and selling investments generates no taxable event, and none of the money has ever been taxed on the way in. When it comes out, the IRS treats the entire withdrawal as deferred compensation, not investment gain. In a taxable brokerage account, only the gain is taxed, because you already paid tax on the original investment. In a traditional 401(k), neither the principal nor the growth has been taxed, so both come out at ordinary rates.1Office of the Law Revision Counsel. 26 USC 402 – Taxability of Beneficiary of Employees Trust

What the Rate Gap Actually Costs

For 2026, a married couple filing jointly with $211,400 in taxable income pays 24% on their next dollar of ordinary income but only 15% on long-term capital gains.3Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026 At the top brackets, the spread widens: 37% ordinary versus 20% long-term capital gains.

On a $100,000 traditional 401(k) withdrawal, the difference between a 24% ordinary rate and a 15% capital gains rate is $9,000. Over a retirement with regular withdrawals, that gap compounds into real money. It’s also why the question comes up so often. Unfortunately, the ordinary income treatment is built into the plan structure. You don’t get to elect capital gains rates on a traditional 401(k) distribution.

The One Exception: Employer Stock and Net Unrealized Appreciation

There is a single scenario where part of a 401(k) distribution can receive long-term capital gains treatment. If your 401(k) holds shares of your employer’s stock, you can use the Net Unrealized Appreciation (NUA) strategy under Section 402(e)(4).1Office of the Law Revision Counsel. 26 USC 402 – Taxability of Beneficiary of Employees Trust

Here’s how it works. Instead of selling the employer shares inside the plan, you take a lump-sum distribution of the actual shares. The cost basis (what the plan originally paid for them) is taxed as ordinary income in the year of distribution. The gain between that basis and the stock’s value at the time of distribution, called the net unrealized appreciation, is not taxed as ordinary income. Instead, it’s taxed at long-term capital gains rates when you eventually sell the shares, no matter how long you personally hold them afterward.

To qualify, the distribution has to be a lump sum, meaning your entire balance from all of that employer’s qualified plans of the same type is distributed within a single tax year. It also 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 a normal capital gain based on your holding period from that point forward.

This is worth looking at if you hold a large employer stock position with significant unrealized gains. It applies only to those employer shares. The rest of your 401(k) balance is still ordinary income on withdrawal.

Roth 401(k) Withdrawals Are Different

Roth 401(k) contributions go in with after-tax dollars, so you get no deduction going in. In exchange, qualified distributions come out entirely tax-free. Not ordinary income, not capital gains, not anything.

Two conditions have to be met for a distribution to qualify: you must be at least 59½ (or disabled, or the distribution is made after death), and you must have satisfied a five-tax-year holding period that begins January 1 of the year you first made a Roth contribution to the plan.5Internal Revenue Service. Retirement Topics – Designated Roth Account Meet both, and every dollar of contributions and every dollar of accumulated earnings comes out untaxed.

If you take money out before meeting those conditions, the Roth 401(k) uses a pro-rata rule that surprises a lot of people. Unlike a Roth IRA, you can’t pull just your contributions out cleanly. Each non-qualified withdrawal is split proportionally between contributions and earnings based on their share of the account.6Internal Revenue Service. Retirement Plans FAQs on Designated Roth Accounts The contribution portion is tax-free, but the earnings portion is taxed as ordinary income, plus the 10% penalty if you’re under 59½. So even Roth 401(k) earnings withdrawn early are taxed as income, never as capital gains.

Early Withdrawals Add a Penalty on Top

Take money from a traditional 401(k) before age 59½ and two things happen. The full amount is taxed as ordinary income, and a 10% additional tax is added on top.7Internal Revenue Service. Retirement Topics – Exceptions to Tax on Early Distributions For someone in the 24% federal bracket, that combination takes roughly 34% off the top before state tax. You report the additional 10% on Schedule 2 of Form 1040, or on Form 5329 if you’re claiming an exception.8Internal Revenue Service. Instructions for Form 5329 (2025)

Several exceptions waive the 10% penalty: leaving your job during or after the year you turn 55 (for that employer’s plan only), a series of substantially equal periodic payments, unreimbursed medical expenses above 7.5% of AGI, total and permanent disability, and a terminal illness certified by a physician.7Internal Revenue Service. Retirement Topics – Exceptions to Tax on Early Distributions SECURE 2.0 added others, including up to $1,000 per year for personal emergencies, up to the lesser of $10,000 or 50% of the vested balance for domestic abuse survivors, and up to $22,000 for federally declared disasters.9Internal Revenue Service. Disaster Relief Frequently Asked Questions – Retirement Plans and IRAs Under the SECURE 2.0 Act of 2022

Every one of these exceptions removes only the 10% penalty. The withdrawal itself is still ordinary income from a traditional 401(k).

State Taxes Sit on Top of Federal

Federal tax is only part of the answer. Most states also tax 401(k) distributions as ordinary income. Nine states levy no state income tax at all, so 401(k) withdrawals face zero state-level tax there. Other states impose rates that range from low single digits to over 13% at the top. Some offer partial exemptions for retirement income or for residents above a certain age. Where you live when you take the money out changes what you keep.