How Is a 401(k) Taxed, and Why Most People Underestimate the Bill

Most people assume their 401(k) will be taxed at a simple, predictable rate when they retire. The reality is messier. A traditional 401(k) withdrawal doesn’t just add to your income. It interacts with Social Security taxation thresholds, Medicare premium calculations, and state-level rules that vary wildly. The effective tax rate on your distributions can end up significantly higher than the bracket you expected.

The standard advice says you’ll be in a lower bracket in retirement. That holds true for some, but not for those with pensions, rental income, or substantial RMDs stacking on top of each other. Whether you hold a traditional 401(k), a Roth 401(k), or both, the tax treatment depends on timing, sequencing, and a handful of rules that most generic guides gloss over.

This article breaks down how each type of 401(k) is actually taxed, where the hidden costs sit, and which strategies give you real control over the outcome.

Table of Contents

Traditional 401(k) Withdrawals Are Taxed as Ordinary Income, Not Capital Gains

Every dollar you pull from a traditional 401(k) is taxed as ordinary income. Not at a flat rate, not as capital gains, and not based on how long the money sat in the account. This single fact reshapes everything about how you should plan 401(k) withdrawals.

Why confusing capital gains and ordinary income is the most expensive 401(k) mistake

A common misconception among 401(k) holders is that investment growth inside the account will be taxed at capital gains rates when withdrawn. It won’t. Whether your 401(k) held stocks for twenty years or bonds for two months, the IRS treats every distribution the same way: as ordinary income, taxed at your marginal rate for that year.

This matters because the gap between capital gains rates and ordinary income rates is substantial. Long-term capital gains top out at 20% for the highest earners, while ordinary income rates can reach 37%. For someone withdrawing $150,000 in a single year from a traditional 401(k), the difference between those two tax treatments could represent tens of thousands of dollars. The growth you watched compound over decades gets no preferential treatment once it leaves the account.

The confusion often comes from brokerage account experience, where holding an asset for over a year qualifies for long-term capital gains treatment. Inside a 401(k), that logic is irrelevant. The tax-deferred wrapper changes the rules entirely: you skipped taxes going in, so the IRS collects on everything coming out.

The FICA exception nobody talks about, and why it quietly works in your favor

Here’s something that rarely shows up in 401(k) tax discussions: distributions are not subject to FICA taxes. Social Security tax (6.2%) and Medicare tax (1.45%) were already paid on the income before it entered your 401(k) during your working years. When you withdraw in retirement, those payroll taxes don’t apply again.

This creates a meaningful gap between the effective tax rate on a paycheck and the effective tax rate on a 401(k) distribution at the same income level. Someone in the 22% bracket paying FICA on earned income faces a combined marginal rate of roughly 29.65%. The same person drawing $80,000 from a 401(k) with no other earned income pays only the 22% rate on the portion in that bracket. That 7+ percentage point difference accumulates over years of retirement withdrawals.

The nuance is important: this FICA exemption applies only to distributions, not to Roth contributions made during your working years. When you contribute to a 401(k) through payroll, FICA is withheld on the full gross amount regardless of whether the contribution is traditional or Roth.

The “Lower Bracket in Retirement” Promise That Rarely Holds Up

Financial advisors have repeated this line for decades: defer taxes now because you’ll be in a lower bracket later. For some retirees, that turns out to be true. For a growing number, it doesn’t, because retirement income has more layers than most people anticipate.

Social Security, RMDs, and pensions stack, and push your real rate higher than expected

The assumption behind “lower bracket in retirement” is that your income drops when you stop working. But many retirees discover that required minimum distributions starting at age 73, combined with Social Security benefits and any pension income, produce a taxable income that rivals or exceeds what they earned in their last working years.

Consider a retired couple receiving $45,000 in combined Social Security benefits, $30,000 from a pension, and facing $40,000 in RMDs. That’s $115,000 in gross income before touching a single discretionary dollar. After the standard deduction, their taxable income lands comfortably in the 22% bracket, which is exactly where many of them were while working. The “lower bracket” never materialized.

The problem intensifies as 401(k) balances grow. Decades of compounding mean larger RMDs, which means larger forced taxable events. Retirees who saved aggressively in traditional accounts sometimes face effective rates in the 24% to 32% range once all income sources combine.

How a single 401(k) withdrawal can make your Social Security benefits taxable

Social Security benefits have their own tax logic, and 401(k) distributions directly interfere with it. The IRS uses a metric called “provisional income” to determine how much of your Social Security is taxable. Provisional income includes your adjusted gross income plus nontaxable interest plus half of your Social Security benefits.

For a single filer, if provisional income stays below $25,000, Social Security is tax-free. Between $25,000 and $34,000, up to 50% of benefits become taxable. Above $34,000, up to 85% of benefits are subject to tax. A traditional 401(k) withdrawal adds dollar-for-dollar to that provisional income calculation.

This means a $20,000 401(k) distribution doesn’t just cost you tax on $20,000. It can also push thousands of dollars of previously untaxed Social Security into the taxable column. The effective marginal rate on that withdrawal, once the Social Security impact is accounted for, can exceed 40% in certain income ranges. It’s a tax cascade that rarely appears in simple bracket calculations, and it catches retirees off guard every year. Understanding how withdrawals affect your tax return at this level of detail is what separates a functional plan from an expensive oversight.

Roth 401(k) Isn’t Tax-Free, It’s Conditionally Tax-Free

Roth 401(k) contributions are funded with after-tax dollars, and qualified distributions come out free of federal income tax. That much is accurate. But the word “qualified” carries conditions that, if unmet, turn your expected tax-free income into a taxable event.

The five-year rule that voids your tax-free assumption

For a Roth 401(k) distribution to be completely tax-free, two conditions must both be satisfied: you must be at least 59½ years old, and the Roth account must have been open for at least five tax years since your first contribution.

The trap hits people who open a Roth 401(k) later in their career. If you start contributing at age 57 and retire at 60, your account has only been open for three years. Even though you’re past 59½, your earnings are not qualified and will be taxed as ordinary income upon withdrawal. Only the contribution portion comes out tax-free in that scenario.

This also affects job changers. If you roll a Roth 401(k) into a Roth IRA, the five-year clock for the Roth IRA may differ from the one that applied to your 401(k). The IRS counts the Roth IRA clock from the first contribution to any Roth IRA you’ve ever owned, which can work in your favor if you already had one. But if you’ve never held a Roth IRA and you roll over at age 61, a new five-year clock starts. Planning rollovers without understanding this interaction can create a surprise tax bill.

Employer matches inside a Roth 401(k) are still taxed as ordinary income

Since the SECURE 2.0 Act, employers can direct matching contributions into a Roth 401(k). But there’s a catch that undermines the “all Roth, all tax-free” assumption: employer Roth matching contributions are taxable to you in the year they are made. You owe ordinary income tax on the match amount as if it were additional compensation.

When you eventually withdraw those employer Roth contributions in retirement, the principal comes out tax-free because you already paid tax on it. The earnings on that match also come out tax-free, provided the distribution is qualified under the same five-year and age rules.

The operational issue is that many employees don’t realize their W-2 will reflect higher taxable income in the year the Roth match is made. For someone in the 24% bracket receiving a $10,000 annual employer match directed to Roth, that’s an extra $2,400 in federal taxes owed that year. If you weren’t expecting it, the cash flow impact is real. This is a fundamentally different experience from a traditional match, where the tax liability is deferred until withdrawal.

The Hidden Tax Triggers Beyond Your Federal Bracket

Your federal marginal rate is only one piece of the cost. Several secondary tax mechanisms activate based on your adjusted gross income, and 401(k) distributions feed directly into all of them. Ignoring these layers leads to underestimating your true withdrawal cost by a wide margin.

IRMAA surcharges: how one large distribution inflates your Medicare premiums for two years

Medicare Part B and Part D premiums are income-adjusted through a system called IRMAA (Income-Related Monthly Adjustment Amount). The calculation uses your modified adjusted gross income from two years prior. A large 401(k) distribution in 2026 affects your Medicare premiums in 2028.

The surcharges are structured in tiers. For 2025, a single filer with MAGI above $106,000 starts paying higher Part B premiums. At the top tier, above $500,000, the surcharge adds over $400 per month to the base premium. These amounts apply per person, so a married couple both on Medicare can face double the impact.

What makes this particularly punishing is that IRMAA operates on cliff thresholds, not gradual scales. Exceeding a threshold by even $1 pushes you into the next surcharge tier for the entire year. A one-time large 401(k) distribution, perhaps to fund a home purchase or cover a major expense, can trigger two full years of elevated premiums. Retirees who understand this plan their distributions to stay just below the relevant IRMAA threshold, sometimes spreading a large withdrawal across two calendar years to avoid crossing the line.

State taxes on 401(k) withdrawals: nine states exempt, the rest don’t

Federal taxes get the most attention, but state income taxes on 401(k) distributions vary dramatically and can add anywhere from 0% to over 13% to your effective rate depending on where you live.

Nine states levy no income tax at all: Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas, Washington, and Wyoming. For retirees in those states, the state-level cost of 401(k) withdrawals is zero.

The remaining states tax retirement income to varying degrees. Some, like Illinois and Mississippi, exempt retirement plan distributions entirely even though they have a state income tax. Others, like California and New York, tax 401(k) withdrawals at the same progressive rates as earned income, with top marginal rates exceeding 10%. A retiree withdrawing $100,000 from a traditional 401(k) in California could owe roughly $7,000 to $9,000 in state tax alone, on top of federal liability. This is a factor that directly affects whether a 401(k) withdrawal counts as income in the eyes of your state, and the answer varies more than most people expect.

Relocating to a tax-friendly state before beginning large distributions is a legitimate strategy, but it requires establishing genuine residency. States like New York and California have aggressive audit programs targeting residents who claim to have moved but maintain ties.

RMDs Are a Forced Taxable Event, Not a Suggestion

Required minimum distributions aren’t optional once you reach age 73 (or 75 for those born after 1960 under current law). Skipping an RMD triggers an excise tax of 25% of the amount you should have withdrawn, reduced to 10% if corrected promptly. The IRS forces the distribution whether you need the money or not, and every dollar counts as taxable income.

The double-RMD trap in your first year and how to avoid it

The IRS allows you to delay your first RMD until April 1 of the year after you turn 73. This sounds generous, but it creates a dangerous overlap: your second RMD is still due by December 31 of that same year. Taking both RMDs in a single calendar year doubles your taxable distribution for that year and can push you into a significantly higher bracket.

For example, if your RMD amount is $35,000, delaying your first distribution means taking $70,000 in one tax year instead of $35,000 in each of two years. That additional $35,000 could move you from the 22% to the 24% bracket, trigger IRMAA surcharges, and increase the taxable portion of your Social Security benefits.

The fix is straightforward: take your first RMD during the year you turn 73, not the following April. You sacrifice nothing by doing this, and you keep each RMD in its own tax year. It’s one of the simplest strategies to avoid unnecessary taxes on withdrawals that too few retirees actually implement.

Why Roth conversions before 73 are a tax arbitrage most retirees miss

The years between retirement and the start of RMDs represent a unique tax window. If you retire at 62 and RMDs begin at 73, you have roughly a decade where your taxable income may be at its lowest point in your adult life. Converting traditional 401(k) funds to a Roth IRA during this window means paying tax at those lower rates and permanently removing the converted amount from future RMD calculations.

The math works like this: if your taxable income in early retirement is $40,000 after the standard deduction, you could convert an additional $50,000 to $60,000 and stay within the 22% bracket. Each dollar converted at 22% is a dollar that won’t be taxed at 24% or higher when RMDs force it out later. Over a ten-year window, systematic conversions can dramatically reduce the size of your traditional balance and the RMDs it generates.

The converted funds also start their own five-year clock in the Roth IRA. Converting early gives those clocks time to mature before you need the money. This strategy requires annual recalculation because tax brackets, income sources, and conversion economics shift each year. But for retirees with large traditional balances and a multi-year gap before RMDs, it remains one of the highest-value tax planning moves available.

Early Withdrawals Cost You Twice, But Not Always

Taking money from a traditional 401(k) before age 59½ typically means paying ordinary income tax plus a 10% early withdrawal penalty. That combination makes early access expensive. But the penalty has more exceptions than most people realize, and two specific provisions offer structurally different exit paths worth understanding.

The penalty-free exceptions the IRS actually allows before 59½

The 10% penalty is not universal. The IRS provides several exceptions under which early distributions avoid the additional tax, though ordinary income tax still applies. Hardship withdrawals cover medical expenses exceeding 7.5% of AGI, costs to prevent eviction or foreclosure, funeral expenses, and certain educational costs. Since SECURE 2.0, each parent can withdraw up to $5,000 per child for birth or adoption without penalty. Terminal illness and permanent disability also qualify.

A lesser-known exception allows penalty-free withdrawals of up to $10,000 for a first-time home purchase from an IRA (not directly from a 401(k), but a rollover to an IRA first can enable this). Domestic relations orders tied to divorce can also split 401(k) assets without triggering the penalty, provided the distribution follows a qualified domestic relations order (QDRO).

The critical detail: “penalty-free” does not mean “tax-free.” Every one of these exceptions still generates ordinary income tax on the amount withdrawn. The 10% is waived, but you still pay taxes on the 401(k) distribution itself.

Rule of 55 vs. 72(t): two exit doors with very different consequences

Two provisions allow ongoing penalty-free access before 59½, but they work in fundamentally different ways.

The Rule of 55 applies if you leave your employer during or after the calendar year you turn 55. You can take distributions from that specific employer’s 401(k) without the 10% penalty. It doesn’t apply to 401(k) accounts from previous employers, and it doesn’t apply to IRAs. The flexibility is high: you can withdraw any amount, at any time, from the qualifying plan. SECURE 2.0 extended a similar provision to age 50 for public safety workers.

Section 72(t) distributions, also called substantially equal periodic payments (SEPPs), work differently. You commit to taking a calculated annual distribution based on your life expectancy and account balance, using one of three IRS-approved methods. Once you start, you cannot modify the payments for five years or until you reach 59½, whichever comes later. Changing the amount or stopping early triggers retroactive penalties on all previous distributions.

The practical difference is flexibility versus accessibility. Rule of 55 gives you freedom but only works with your most recent employer’s plan. 72(t) works with any account but locks you into a rigid schedule. Choosing the wrong one, or entering 72(t) without fully modeling the commitment, is a mistake that compounds over years.

Net Unrealized Appreciation: The Tax Loophole Built Into Employer Stock

If your 401(k) holds company stock, a provision called net unrealized appreciation (NUA) can convert what would otherwise be ordinary income into long-term capital gains. It’s one of the few mechanisms that breaks the general rule of 401(k) taxation, and it is routinely overlooked during rollovers.

How NUA converts ordinary income into long-term capital gains

When you take a lump-sum distribution from a 401(k) that includes employer stock, you can elect NUA treatment. Under this election, you pay ordinary income tax only on the cost basis of the stock (the price at which it was originally purchased inside the plan). The appreciation above that basis, the NUA itself, is taxed at the long-term capital gains rate when you eventually sell the shares, regardless of how long you’ve held them outside the plan.

For someone with employer stock that has a cost basis of $20,000 and a current value of $200,000, the difference is stark. Without NUA, rolling the stock into an IRA and later withdrawing means paying ordinary income tax on the full $200,000. With NUA, you pay ordinary income tax on $20,000 at distribution and long-term capital gains tax on $180,000 when sold. At a 15% capital gains rate versus a 24% ordinary income rate, that’s a tax savings of roughly $16,000 on the NUA portion alone.

The election must happen as part of a qualifying lump-sum distribution, which means distributing the entire balance of the plan within a single tax year. Partial distributions don’t qualify. Timing and coordination with your plan administrator are essential.

Why rolling everything into an IRA can destroy this advantage

The default advice when leaving an employer is to roll the 401(k) into an IRA. For most assets, that’s fine. For appreciated employer stock, it can permanently eliminate the NUA option.

Once employer stock is rolled into an IRA, it loses its identity as employer stock. It becomes just another IRA asset, and all future distributions are taxed as ordinary income. The NUA election is only available at the point of distribution from the employer plan. There is no way to recover it after a rollover.

The optimal approach for someone with significant employer stock appreciation is a split distribution: roll the non-stock assets into an IRA while distributing the employer stock in-kind to a taxable brokerage account under NUA treatment. This requires that the distribution qualifies as a lump sum from the plan, so coordination with the plan administrator before initiating any rollover is critical. Financial advisors who default to rolling everything into an IRA without checking for NUA eligibility are costing their clients real money.

Controlling Your Tax Bracket in Retirement Is the Real 401(k) Strategy

The question isn’t just how 401(k) withdrawals are taxed. It’s whether you have any control over the outcome. You do, but only if you treat tax bracket management as an active, year-by-year process rather than something you figure out once and forget.

The Roth/traditional withdrawal sequencing that keeps you under the next bracket

The most effective lever retirees have is choosing which accounts to draw from each year. Traditional 401(k) and IRA withdrawals add to taxable income. Roth withdrawals do not. By pulling from traditional accounts up to the top of your current bracket and then covering any remaining spending needs from Roth accounts, you fill each bracket efficiently without spilling into the next one.

For a married couple filing jointly with $94,050 as the top of the 22% bracket (2024 figure, indexed annually), filling that bracket with traditional distributions and taking everything else from Roth accounts keeps their marginal rate at 22%. Without this sequencing, drawing an extra $20,000 from a traditional account would push that amount into the 24% bracket, and potentially trigger IRMAA surcharges and higher Social Security taxation.

This strategy requires having both traditional and Roth balances available, which is why the Roth conversion window before RMDs begin is so valuable. It builds the Roth balance you’ll need to execute bracket management in later years. It also requires recalculating every year because income sources, bracket thresholds, and the IRMAA tiers shift annually.

QCD from an IRA rollover: turning a forced distribution into a tax-free charitable gift

For retirees who are charitably inclined, qualified charitable distributions offer a way to satisfy RMD requirements without generating taxable income. A QCD allows you to transfer up to $108,000 per year (2025 figure, indexed for inflation) directly from a traditional IRA to an eligible charity. The distribution satisfies your RMD obligation but is excluded from your adjusted gross income entirely.

The catch: QCDs can only be made from IRAs, not directly from a 401(k). If your retirement assets are primarily in a 401(k), rolling the balance into a traditional IRA after retirement unlocks QCD eligibility. This is one scenario where rolling a 401(k) into an IRA creates a tax advantage that the 401(k) itself doesn’t provide.

Because the QCD bypasses AGI, it avoids all the downstream effects of a taxable distribution: no increase in provisional income for Social Security taxation, no IRMAA impact, and no state income tax in most cases. For someone already planning to donate to charity, routing that giving through a QCD instead of writing a check from a bank account is one of the most efficient tax moves in the retirement toolkit. It doesn’t reduce your wealth; it redirects money that would have gone to the IRS toward a cause you choose.

Frequently Asked Questions

Is a 401(k) distribution considered earned income for Social Security purposes?

No. 401(k) distributions are classified as unearned income by the Social Security Administration. They do not count toward the Social Security earnings test that applies to people claiming benefits before full retirement age. However, they do count toward the provisional income calculation that determines whether your Social Security benefits are taxable. These are two separate mechanisms, and confusing them leads people to either delay withdrawals unnecessarily or underestimate their total tax exposure.

Can I deduct 401(k) losses on my tax return if my investments lost value?

Not directly. Unlike a taxable brokerage account, losses inside a 401(k) have no tax-deductible event because the IRS never recognized the gains in the first place. You contributed pre-tax dollars, and you pay tax on whatever you withdraw. If your account drops from $500,000 to $300,000 and you withdraw the $300,000, you pay ordinary income tax on $300,000. The $200,000 loss has no tax consequence. There was a narrow deduction available when total distributions from all traditional IRAs were less than your total after-tax contributions (basis), but this provision was eliminated after 2017 under the TCJA.

How does a 401(k) inheritance get taxed for beneficiaries?

Inherited 401(k) accounts follow different rules depending on whether the beneficiary is a spouse or a non-spouse. A surviving spouse can roll the inherited 401(k) into their own IRA and follow standard withdrawal rules. Non-spouse beneficiaries must generally empty the account within 10 years of the original owner’s death under the SECURE Act, and those distributions are taxed as ordinary income. There is no step-up in basis for inherited 401(k) funds, unlike inherited stocks or real estate. Understanding how to plan for this is essential, and strategies exist to minimize inheritance taxes on a 401(k) through beneficiary designation and Roth conversions during the account holder’s lifetime.

Do 401(k) distributions affect eligibility for Affordable Care Act subsidies?

Yes, significantly. ACA premium subsidies are based on modified adjusted gross income, and traditional 401(k) withdrawals increase MAGI dollar for dollar. For early retirees between age 55 and 65 who rely on ACA marketplace plans before Medicare eligibility, a single large distribution can eliminate subsidy eligibility entirely, adding thousands of dollars in annual health insurance costs. Roth distributions, by contrast, do not count toward MAGI for ACA purposes, making them the preferred source of income during the pre-Medicare gap.

What happens if I overcontribute to my 401(k) in a given year?

If your combined employee contributions across all 401(k) plans exceed the annual limit ($23,500 for 2025, $24,500 for 2026), the excess amount must be corrected by April 15 of the following year. The plan administrator returns the excess contribution along with any earnings attributed to it. The earnings are taxable in the year they were earned, not the year they are returned. If you miss the April 15 deadline, the excess is taxed twice: once in the year of contribution and again when eventually distributed. This dual taxation penalty makes tracking contribution limits across multiple employers essential for anyone holding more than one job in a calendar year.