Do 401(k) Plans Really Pay Capital Gains? – Avoid This Mistake + FAQs

Lana Dolyna, EA, CTC
Share this post

Over 70 million Americans collectively hold about $8.9 trillion in 401(k) plans (as of 2024). With so much money invested, it’s natural to wonder how Uncle Sam taxes those earnings.

Do 401(k) plans pay capital gains tax on their investment growth? The short answer is no – 401(k) investments don’t incur capital gains taxes while they grow. Instead, 401(k)s offer tax-deferred growth, meaning you won’t pay taxes on gains each year.

This tax break can supercharge your retirement savings: for example, a $10,000 investment growing at 7% annually could end up over 20% larger in a 401(k) than in a taxable account, thanks to tax deferral πŸ“ˆ.

This comprehensive guide will explain exactly why you don’t pay capital gains tax in a 401(k) and how these accounts are taxed instead. We’ll dive into federal rules, state-by-state nuances, and real-world examples to give you Ph.D.-level insight in plain English.

By the end, you’ll understand how to maximize your 401(k)’s tax advantages and avoid any surprises when it comes time to withdraw.

What You’ll Learn in This Article:

  • How 401(k) plans let your investments grow without yearly capital gains taxes – and what tax-deferred growth means for your nest egg πŸš€.
  • Federal tax rules for 401(k) accounts, including how withdrawals are taxed (and why it’s ordinary income, not a special capital gains rate).
  • Differences between Traditional and Roth 401(k) plans in terms of tax timing, and how both types shield you from paying capital gains tax as your money grows.
  • State tax nuances for 401(k) withdrawals – which states might tax your 401(k) distributions, which don’t, and why your retirement location matters 🏠.
  • Pros and cons of 401(k)’s tax advantages, compared to investing in a regular brokerage account – with examples, comparisons, and common questions answered.

Now, let’s break down the details to answer all your burning questions about 401(k) plans and capital gains taxes.

401(k) vs Capital Gains Tax: The Surprising Truth 🧐

Let’s start with the basics: What is capital gains tax? When you sell an investment (like stocks or mutual fund shares) for a profit in a regular brokerage account, the government takes a cut of that profit as tax. This profit is called a capital gain.

If you held the investment for more than a year, it’s usually a long-term capital gain taxed at a special (often lower) rate. For example, many taxpayers pay about 15% federal tax on long-term capital gains. If you held the asset for one year or less, it’s a short-term capital gain taxed at your normal income tax rate (which could be much higher, depending on your bracket).

Now, here’s the key difference with a 401(k): you don’t pay any capital gains tax on investments inside a 401(k) as they grow.

Whether your 401(k) investments double in value or you frequently trade within the account, you won’t owe a penny in capital gains taxes at the time of those transactions.

Why is that? Because a 401(k) is a special type of tax-advantaged account. Think of it as a tax-sheltered bubble πŸ›‘οΈ around your retirement investments.

Inside this bubble, any profits – whether from stock price increases, dividends, or interest – are tax-deferred. “Tax-deferred” means you delay paying taxes on those earnings until later, when you actually withdraw the money.

This is a surprising truth for many new investors: you can buy and sell assets within your 401(k) without worrying about triggering taxes each time. In a normal taxable account, frequent trading can lead to multiple tax bills (and headaches) each year.

But in a 401(k), the IRS effectively lets your money grow untouched by taxes until you take it out. In simple terms, your 401(k) does not pay capital gains tax along the way.

Tax-Deferred Growth: How 401(k)s Turbocharge Your Returns πŸš€

One of the biggest advantages of a 401(k) is tax-deferred growth. This means your investments get to compound over time without being slowed down by annual taxes. In a normal taxable account, each time you earn interest, dividends, or sell an investment for a gain, a slice of that gain might go to taxes.

Those taxes reduce the amount you have left to reinvest, acting like friction on your investment growth. But inside a 401(k), there’s no such tax friction year-to-year – all your money stays invested and growing.

The result? Over long periods, a 401(k) can significantly outperform an identical investment in a taxable account, simply because it keeps reinvesting pre-tax dollars. To illustrate, let’s look at a simple example:

Imagine you have $10,000 invested and it earns a 7% return each year for the next 20 years. We’ll compare two scenarios: one where the investment is in a tax-deferred 401(k), and one in a taxable account where we assume a modest 15% tax on the gains each year (as if you realized those gains annually).

Investment ScenarioBalance After 20 YearsWhat Happened
401(k) (tax-deferred)~$38,700No taxes on yearly gains, so the full 7% growth compounds every year.
Taxable Account (15% tax yearly)~$31,700Each year’s gains get taxed, leaving ~5.95% effective growth per year after tax.

In this example, the tax-deferred 401(k) ended up with about $7,000 more than the taxable account after 20 years. That’s a roughly 22% larger balance, just from eliminating the yearly tax drag. This demonstrates the power of letting your money compound without interference.

πŸ“Š Note: In a real taxable account, you might not actually pay tax every year on unrealized gains (you’d pay when you sell, and long-term capital gains tax might apply just once at the end). However, many investments (like mutual funds) distribute taxable gains annually, and investors often rebalance or sell assets periodically, incurring taxes along the way. The key takeaway stands: tax deferral gives your investments a boost.

Importantly, with a traditional 401(k) you will eventually pay taxes when you withdraw the money in retirement (we’ll cover that soon). Even so, the ability to grow a larger pre-tax balance can leave you with more after-tax money in the end, especially if your tax rate in retirement is lower. And if you’re using a Roth 401(k), the growth is not only tax-deferred but eventually tax-free (no taxes on qualifying withdrawals at all).

Traditional vs. Roth 401(k): Tax Now or Tax Later? πŸ€”

401(k) plans come in two main varieties when it comes to taxes: Traditional 401(k) and Roth 401(k). Both types let your investments grow without paying capital gains taxes each year, but they differ in when you pay taxes.

  • Traditional 401(k): Contributions are made with pre-tax dollars (you get a tax deduction now). Your money grows tax-deferred, and you pay taxes later when you withdraw in retirement, with withdrawals taxed as ordinary income (at whatever your tax rate is at that time).
  • Roth 401(k): Contributions are made with after-tax dollars (no tax deduction now). Just like a traditional 401(k), your investments grow without any yearly taxes on gains or dividends. The big difference is at withdrawal: qualified withdrawals from a Roth 401(k) are completely tax-free because you already paid taxes upfront on your contributions (all that investment growth comes out tax-exempt in retirement).

Here’s a quick side-by-side comparison of Traditional vs Roth 401(k) tax treatment:

FeatureTraditional 401(k)Roth 401(k)
ContributionsPre-tax (deductible). Lowers your taxable income now.After-tax (not deductible). No upfront tax break.
Taxes on investment growthNone while inside the 401(k) (tax-deferred).None while inside the 401(k) (tax-free growth).
Withdrawals in retirementTaxed as ordinary income (every dollar withdrawn is subject to income tax).Tax-free (no income or capital gains tax on qualified withdrawals).
Best if… (scenario)You expect to be in a lower tax bracket in retirement, or you want the tax break today πŸ’°.You expect to be in a higher tax bracket later, or prefer tax-free income in retirement πŸ–οΈ.

Both types of 401(k) spare you from annual taxes on gains. The choice between them mainly boils down to whether you want the tax benefit now or later.

For example, younger workers who think their income (and tax rate) will rise over time often favor Roth 401(k)s. Those who want a break on their current tax bill might lean toward Traditional 401(k)s. Some employers even allow splitting contributions between both, letting you diversify your tax strategy.

Key point: Regardless of traditional or Roth, neither type requires you to pay capital gains tax as your account grows. The difference is simply when and if you pay income taxes – either on the front end (Roth) or the back end (Traditional).

IRS Rules & Tax Laws: When 401(k) Money Gets Taxed πŸ”

We’ve established that you don’t pay taxes on your 401(k) gains while they’re growing. So when do you pay? The answer: when you take the money out. Under federal law, a traditional 401(k) withdrawal is treated as part of your ordinary income in the year you receive it.

The IRS doesn’t distinguish how much of that withdrawal came from contributions vs. investment gains – it all gets lumped together and taxed at your income tax rate.

Withdrawals Taxed as Ordinary Income

Suppose you retire and withdraw $40,000 from your traditional 401(k) in a year. If you’re in the 22% federal tax bracket, that $40,000 will add to your taxable income and be taxed at around 22% (federally). There’s no special “capital gains” rate applied to it, even if most of that money came from growth over the years.

It’s taxed just like wages or any other income. Most 401(k) providers will even withhold taxes from your distributions (often by default ~20%) to pre-pay some of that tax bill to the IRS.

Early Withdrawals and the 59Β½ Rule

The government really wants 401(k) money used for retirement, so there are rules about when you can take it out without extra penalties. Generally, age 59Β½ is the magic number. Withdraw before 59Β½, and not only will the withdrawal be subject to regular income tax, but you’ll likely face a 10% early withdrawal penalty on the taxable amount.

For example, cashing out $10,000 at age 50 would incur the income tax plus an additional $1,000 penalty. (There are some exceptions – e.g. if you left your job at age 55 or older, certain hardship cases, or a series of “substantially equal” payments – but the 59Β½ rule is the baseline.)

The key point: to enjoy the tax-deferred benefit fully, keep the money in the plan until you’re eligible to withdraw penalty-free.

Required Minimum Distributions (RMDs)

You can’t keep money in a traditional 401(k) forever without touching it. Federal law imposes Required Minimum Distributions (RMDs) – a minimum amount you must withdraw each year – once you reach a certain age. As of now, if you turned 73 (starting in 2023 or later) you must start taking annual RMDs from your 401(k). (The age was 72 for those who turned 72 before 2023, and recent legislation is gradually moving it to 75 in the coming years.)

RMDs ensure that eventually the government gets to tax that money. Each RMD is taxable as income in the year you take it. If you fail to take the RMD, there’s a hefty penalty (currently 25% of the amount you should have withdrawn, though if you correct it promptly, it can reduce to 10%).

The lesson: once you’re of RMD age, make sure to withdraw at least the required amount annually – you’ll owe income tax on those withdrawals, but that’s an expected part of the tax-deferred deal.

Roth 401(k) and RMD Rules

Roth 401(k) withdrawals (if qualified) are tax-free, but until recently Roth 401(k)s were still subject to RMD rules during the owner’s lifetime. Starting in 2024, RMDs are no longer required from Roth 401(k) accounts, aligning them with Roth IRAs.

Even before this change, many retirees would roll over their Roth 401(k) into a Roth IRA to avoid RMDs. Now, Roth 401(k) owners can let their money grow untouched by any distribution requirements – and still pay no tax on the qualified withdrawals.

Rolling Over Your 401(k) (Moving Money Without Tax)

Federal rules allow you to move your retirement money around without triggering taxes, as long as you follow the rollover rules. If you leave your job, you can roll your 401(k) balance into an IRA or into a new employer’s 401(k). A direct rollover (trustee-to-trustee transfer) is not a taxable event – your money stays tax-deferred.

This is important: cashing out a 401(k) upon leaving a job would be a taxable withdrawal (with potential penalties), but a rollover avoids that. The tax advantages continue in the new account.

Contribution Limits and Plan Qualification Rules

The IRS sets annual limits on how much you and your employer can contribute to your 401(k) because these tax benefits are so valuable. For instance, in 2025 the employee contribution limit is $23,500 (or $30,000 if you’re over 50 and eligible for catch-up contributions). These limits are adjusted over time by Congress to encourage saving while balancing tax revenue.

Additionally, to maintain its tax-advantaged status, a 401(k) plan must follow certain IRS and Department of Labor regulations (under ERISA, the Employee Retirement Income Security Act).

Plans have to offer broad access (not just favor executives), follow contribution testing, provide information to participants, and ensure the plan’s funds are held in trust for the participants’ benefit. In return for obeying these rules, the plan is considered “qualified” – meaning all those tax deferrals we’ve discussed are allowed.

Key Takeaway: Federal Tax Treatment of 401(k)s

Inside a 401(k), your investments are sheltered from taxes (no capital gains or dividend taxes year-to-year). Eventually, with a traditional 401(k), Uncle Sam takes his share when you withdraw funds as income.

With a Roth 401(k), you’ve paid your dues upfront, and Uncle Sam generally doesn’t get a cut of your withdrawals. All these IRS rules – from age limits to RMDs and rollover provisions – are designed to ensure 401(k)s serve their purpose as retirement savings vehicles, while still allowing the government to collect taxes at one point or another.

State Tax Nuances: Will Your State Tax Your 401(k) Withdrawals? 🏘️

Federal tax rules apply uniformly across the U.S., but state taxes on 401(k) withdrawals vary widely depending on where you live in retirement. Some states will tax your 401(k) distributions just like the IRS (treating it as income), while others offer breaks – or have no income tax at all. Here’s a breakdown:

  • No state income tax: Eight states (Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, and Wyoming) have no personal income tax. If you retire in one of these states, your 401(k) withdrawals won’t be subject to any state income tax. (New Hampshire also has no tax on wage income, only taxing interest/dividends above certain amounts, and is phasing that out too.)
  • States that don’t tax retirement distributions: A few states that do have an income tax nevertheless exempt most or all retirement income. For example, Illinois, Mississippi, and Pennsylvania do not tax distributions from 401(k)s, IRAs, or pensions for residents (generally for those of retirement age). Iowa recently joined this group as well, exempting retirement account income for those above a certain age (55+).
  • States with partial exemptions/credits: Many states offer partial tax breaks on retirement income. They might exempt a certain dollar amount or percentage of 401(k)/IRA withdrawals. For instance, Alabama excludes the first $6,000 of 401(k) or IRA distributions for people 65 and older. Georgia allows retirees age 65+ to exclude up to around $65,000 of retirement income per person each year. New York exempts up to $20,000 of qualified retirement distributions (including 401(k) withdrawals) for those over 59Β½. Each state has its own formula – some provide credits or reduced rates for retirement income.
  • Fully taxable states: In many states, 401(k) withdrawals are treated as ordinary income with no special breaks. For example, if you live in California, Virginia, Nebraska, or even New York City (note: NYC has a city income tax as well), your 401(k) distributions will simply be added to your state (and local) taxable income and taxed at the normal rates. California, for instance, can tax high incomes at over 13%, so a large 401(k) withdrawal there could face a hefty state tax bill.

To visualize the state differences, here’s a quick comparison:

State Tax ScenarioExample States401(k) Withdrawals Taxed?
No Income TaxFlorida, Texas, Nevada, etc.No state tax at all (0% on 401(k) income).
No Tax on Retirement IncomeIllinois, Mississippi, Pennsylvania, IowaNot taxed by state (100% exempt for retirees).
Partial ExemptionAlabama (first $6k exempt at 65+), Georgia (~$65k exempt at 65+), New York ($20k exempt 59Β½+)Partially taxed (some portion exempt, rest taxed at normal rate).
Fully TaxableCalifornia, Oregon, New Jersey, etc.Taxed at regular state income tax rates (no special exemption).

Choosing Your Retirement Location: Because of these differences, some retirees strategically relocate to tax-friendly states. If you move from a high-tax state to, say, Florida (no income tax) before tapping your 401(k), you can avoid state taxes on those withdrawals entirely.

Importantly, only your state of residence when you take a distribution can tax that income. Your former state (where you earned the money) cannot pursue taxes on your 401(k) payments once you’ve moved away – federal law protects retirees from being double-taxed by a prior state.

That said, state tax is just one factor (you might also consider climate, cost of living, healthcare, etc.). But it’s good to know how your state will treat your 401(k) income so you can plan ahead.

The key takeaway: federal taxes are unavoidable on a traditional 401(k), but state taxes might be reduced or eliminated, depending on where you live.

Pros & Cons of 401(k) Tax Benefits βš–οΈ

While 401(k) plans offer significant tax advantages, it’s important to weigh the benefits against the potential drawbacks. Here’s a summary of key pros and cons of the 401(k)’s tax-deferred system:

Pros (Advantages)Cons (Trade-Offs)
Tax-deferred growth: No annual taxes on investment gains or dividends, so your money compounds faster.Taxes on withdrawals: You will pay taxes when you take money out (at ordinary income rates, which could be higher than capital gains rates would have been).
Upfront tax break: Traditional 401(k) contributions reduce your taxable income today (more take-home pay or ability to save).Taxable retirement income: Withdrawals in retirement add to your income and could push you into higher tax brackets or increase taxation of Social Security benefits.
Tax-free withdrawals (Roth option): Roth 401(k) offers tax-free income later – no taxes on withdrawals if rules met (you pay taxes now instead).Early withdrawal penalties: Taking money out before age 59Β½ usually triggers a 10% penalty (on top of taxes), limiting flexibility if you need funds early.
High contribution limits: You can shelter more money each year than in an IRA, and many employers provide matching contributions (boosting your savings).Contribution caps: Even with higher limits, there’s a maximum you can contribute annually. Very high savers might still need taxable accounts once they hit the ceiling.
No yearly tax paperwork: You don’t have to report dividends or capital gains from 401(k) investments each year on your tax return. Simpler bookkeeping βœ….Required distributions: Traditional 401(k)s force RMDs starting in your early 70s, meaning you must withdraw (and get taxed on) money even if you don’t need it yet.
Free rein to rebalance: You can buy/sell inside the 401(k) without tax consequences, allowing easy portfolio rebalancing or changes.No capital loss benefit: Losses inside a 401(k) aren’t tax-deductible. In a taxable account, capital losses can offset gains or up to $3k of ordinary income each year.

In most cases, the pros of tax-deferred saving (especially any employer match πŸ’ΌπŸ’°) far outweigh the cons. However, it’s wise to be aware of the trade-offs. For example, someone expecting very low tax rates later might favor traditional 401(k) heavily, while someone worried about high future taxes might diversify with Roth contributions. Understanding these pros and cons helps you make informed decisions and avoid surprises down the road.

Frequently Asked Questions πŸ€”

Q: Do I pay capital gains taxes on 401(k) earnings each year?
A: No. Earnings inside a 401(k) (including capital gains, dividends, interest) aren’t taxed yearly. You pay taxes only when you withdraw money, and then it’s taxed as regular income.

Q: Are 401(k) withdrawals taxed as capital gains or ordinary income?
A: Traditional 401(k) withdrawals are taxed as ordinary income (your normal tax bracket). They do not get the lower capital gains tax rate. (Roth 401(k) withdrawals, if qualified, are tax-free.)

Q: Do Roth 401(k) accounts pay capital gains taxes?
A: No. Roth 401(k) investments also grow without yearly taxes on gains or dividends. And qualified Roth 401(k) withdrawals are completely tax-free (no income tax and no capital gains tax at withdrawal).

Q: What if I trade stocks inside my 401(k)?
A: Trading inside your 401(k) does not create any taxable events. You can buy and sell investments within the account as much as you want without paying taxes until you withdraw money later.

Q: Can I avoid taxes on my 401(k) withdrawals entirely?
A: With a traditional 401(k), no β€” you’ll pay taxes on withdrawals eventually. However, using a Roth 401(k) (if available) can make your qualified retirement withdrawals tax-free (since you pay the tax upfront instead).

Q: Do I have to pay state taxes on 401(k) withdrawals?
A: It depends on where you live. Some states tax retirement distributions as income, but others have no income tax or exempt 401(k)/IRA withdrawals. Your state of residence at withdrawal determines the tax.

Q: What happens if I cash out my 401(k) early?
A: If you withdraw your 401(k) money before age 59Β½, it will be taxed as income and you’ll likely incur a 10% early withdrawal penalty. (Some exceptions exist, but generally it’s costly.)

Q: Is a 401(k) more tax-efficient than a regular brokerage account?
A: Usually, yes. A 401(k) lets your investments grow tax-deferred, which often results in a larger balance over time (due to no yearly tax drag) compared to a taxable account.