Do You Pay Taxes on a 401(k)? Yes — But How Much Depends on Decisions You Haven’t Made Yet

Most people assume the tax question on a 401(k) has a simple answer. It doesn’t. You pay taxes on a traditional 401(k) when you withdraw, and you pay taxes on a Roth 401(k) when you contribute. That part is straightforward. What almost nobody calculates correctly is how much they’ll actually owe, because the final tax bill depends on withdrawal timing, income stacking, state residency, Medicare thresholds, and whether you let Required Minimum Distributions dictate your strategy instead of the other way around. The generic advice floating around (“you’ll be in a lower bracket in retirement”) is a half-truth that costs people thousands every year. This article breaks down the actual mechanics, the traps most retirees walk into blindly, and the tax strategies that compress your lifetime 401(k) tax burden if you plan ahead.

Table of Contents

The Short Answer: When and How Your 401(k) Gets Taxed

Whether your 401(k) gets taxed now or later depends on the type of account. But “later” is not free. It just means you’re handing the IRS a blank check dated sometime in your 60s or 70s, and the amount on that check depends on decisions you’ll make between now and then.

Traditional 401(k) — You Deferred Taxes, You Didn’t Eliminate Them

Every dollar you contributed to a traditional 401(k) skipped your W-2 taxable income the year it went in. That felt like a tax break, and technically it was. But it was a loan from the IRS, not a gift. When you withdraw, every dollar comes back as ordinary income, taxed at whatever your federal and state rate happens to be that year. That includes your original contributions and all the growth. There is no capital gains rate here, no preferential treatment. A $500,000 balance built from $200,000 in contributions and $300,000 in gains gets taxed identically on every dollar pulled out. The IRS doesn’t distinguish between principal and earnings inside a traditional 401(k). The entire distribution is income.

Roth 401(k) — You Already Paid, but Conditions Apply for Tax-Free Withdrawals

A Roth 401(k) flips the sequence. You contribute after-tax dollars, meaning your paycheck shrinks more today, but qualified withdrawals come out entirely tax-free. The catch is in the word “qualified.” Two conditions must be met simultaneously: you must be 59½ or older, and five tax years must have passed since your first Roth contribution to that plan. Miss either condition and the earnings portion of your withdrawal gets taxed as ordinary income plus a potential 10% penalty. One detail that trips people up: the five-year clock is tied to the specific plan, not to your Roth history overall. Rolling a Roth 401(k) into a new employer’s Roth 401(k) can restart that clock depending on the plan’s rules.

The 20% Mandatory Federal Withholding Most People Discover Too Late

When you request a distribution from a traditional 401(k) that’s paid directly to you (not rolled over), the plan administrator is required to withhold 20% for federal taxes before the money hits your bank account. This is not optional and not negotiable. Ask for $50,000 and you’ll receive $40,000. The withholding is an estimate, not your final tax liability. If your actual effective rate is 15%, you’ll get money back at filing. If it’s 24%, you’ll owe the difference and potentially face underpayment penalties if you didn’t make quarterly estimated payments. Many retirees plan their first-year budget around gross withdrawal amounts and then scramble when the net deposit is 20% short. The workaround is a direct rollover to an IRA, which avoids the mandatory withholding entirely, then taking distributions from the IRA with voluntary withholding set at whatever percentage matches your real tax situation.

The “Lower Tax Bracket in Retirement” Promise Is More Fragile Than You Think

This is the most repeated line in retirement planning, and it quietly misleads millions of savers. The assumption that your income drops in retirement is often true in the early years, but it ignores the mechanisms that push taxable income back up whether you want it or not.

Why Your Effective Tax Rate Matters More Than Your Marginal Bracket

People compare their current marginal bracket to their expected future bracket and call it a day. That comparison is flawed. What matters is the effective rate on every dollar withdrawn versus the marginal rate on every dollar contributed. Traditional contributions save you taxes at your top marginal rate (say, 24%). But in retirement, your withdrawals fill brackets from the bottom: some dollars are taxed at 0% (standard deduction), some at 10%, some at 12%, and only the last portion at your marginal rate. For most retirees with moderate balances, the effective rate on withdrawals sits well below their working-years marginal rate. This asymmetry is exactly why traditional 401(k) contributions beat Roth for a majority of mid-career earners, even though the surface-level logic suggests otherwise.

RMDs Can Push You Into a Higher Bracket Even If You Don’t Need the Money

Starting at age 73, the IRS forces you to withdraw a minimum amount from your traditional 401(k) and IRA accounts each year. The percentage increases annually based on life expectancy tables. At 73, you’re pulling roughly 3.8% of your balance. By 85, it’s closer to 6.3%. On a $1.2 million traditional balance at 73, that’s about $45,600 of mandatory taxable income, on top of Social Security, pensions, and any other earnings. You don’t get to skip it because you don’t need cash. You don’t get to defer it because markets are down. The distribution is taxable income regardless. If you’ve accumulated a large traditional balance without planning for this, RMDs alone can push you from the 12% bracket into the 22% or even 24% bracket, undoing the tax advantage you thought you locked in decades ago.

The IRMAA Trap — How 401(k) Withdrawals Silently Inflate Your Medicare Premiums

Income-Related Monthly Adjustment Amounts (IRMAA) are surcharges applied to Medicare Part B and Part D premiums when your Modified Adjusted Gross Income exceeds certain thresholds. For 2025, a single filer crossing $106,000 in MAGI triggers the first surcharge tier. A large 401(k) distribution or a Roth conversion in a single year can push you over that line without warning. The surcharge is based on your tax return from two years prior, so a big withdrawal in 2025 hits your Medicare premiums in 2027. The extra cost can reach over $4,000 per year per person at the highest tiers. This is a hidden tax that never appears on any 401(k) statement, and most withdrawal strategies ignore it completely.

Roth vs. Traditional Is Not About Which One “Wins” — It’s About Tax Bracket Arbitrage

The internet debate between Roth and traditional 401(k) treats them as rivals. They’re not. They’re complementary tools, and the optimal mix changes depending on where you are in your earning life and what you expect your income to look like in retirement.

The Math Proof: At the Same Tax Rate, Both Produce the Exact Same After-Tax Dollar

This settles the theoretical debate permanently. Assume a 25% tax rate, a $10,000 pre-tax contribution, and 7% annual growth over 30 years. Traditional: $10,000 grows to $76,123, taxed at 25% on withdrawal, leaving $57,092. Roth: $7,500 (after paying 25% tax upfront) grows to $57,092, withdrawn tax-free. Identical outcome. The math works because multiplication is commutative: taxing before or after growth produces the same result when the rate is the same. This means the entire debate boils down to one variable: will your tax rate at withdrawal be higher, lower, or equal to your rate at contribution? Everything else is noise.

The Real Edge — Filling Low Brackets With Traditional, Then Switching to Roth

The optimal play uses both accounts strategically. During your peak earning years, contribute pre-tax to a traditional 401(k). Every dollar avoids your highest marginal rate (22%, 24%, or higher). Then, during years with lower income (career gap, early retirement, sabbatical), convert portions of that traditional balance to a Roth IRA. Those conversions fill the 10% and 12% brackets that would otherwise go unused. You effectively pay 10-12% on money that would have been taxed at 22-24%+ had you left it in the traditional account until RMDs forced it out. This bracket arbitrage is the core of Roth conversion ladder planning, and it’s the single most impactful legal tax reduction strategy available to 401(k) holders. The key constraint: conversions are irreversible, so you need to model each year’s taxable income carefully before executing.

Why Early Career and Late Career Demand Opposite Strategies

At the start of your career, your income is typically low and your marginal rate sits in the 10% or 12% bracket. Roth contributions make sense here because you’re paying a low rate now and locking in tax-free growth for decades. As your salary climbs into the 22%, 24%, or 32% brackets, traditional contributions become more efficient because the tax savings per dollar contributed are much larger. Then in the final working years before retirement, the calculus shifts again: if your traditional balance is already large enough to generate significant RMDs, adding more to it only makes the future problem worse. A tax-deductible traditional contribution at 24% looks great today, but not if it creates a forced distribution taxed at 24% later anyway, plus IRMAA surcharges on top.

Taxes You Didn’t Expect: The Hidden Costs of 401(k) Distributions

The federal income tax on 401(k) withdrawals is the obvious cost. The less obvious costs are the ones that compound around it: Social Security taxation, early withdrawal stacking, and state-level treatment that varies wildly by jurisdiction.

How 401(k) Income Makes Up to 85% of Your Social Security Taxable

Social Security benefits are not automatically tax-free. The taxable percentage depends on your “combined income” (AGI + nontaxable interest + half of Social Security). For single filers, once combined income exceeds $34,000, up to 85% of your Social Security benefit becomes taxable. Traditional 401(k) withdrawals count fully toward AGI, which means every dollar you pull from your 401(k) can simultaneously increase the taxable portion of your Social Security. A retiree withdrawing $40,000 from a traditional 401(k) with $24,000 in Social Security benefits may find $20,400 of those benefits added to their taxable income. That’s a tax-on-tax effect: the 401(k) withdrawal is taxed, and it triggers taxation on income (Social Security) that might otherwise have been partially or fully exempt.

Early Withdrawal Penalty + Marginal Rate = an Effective 30%+ Hit

Taking money from a 401(k) before age 59½ triggers a 10% additional tax on top of your ordinary income tax rate. If you’re in the 22% bracket, that’s a 32% combined hit. At 24%, it’s 34%. Add state taxes and the effective rate can cross 37-40% in high-tax states. There are exceptions to the penalty (separation from service at age 55+, certain hardship provisions, and the SECURE 2.0 emergency withdrawal of up to $1,000), but the income tax still applies regardless. The penalty is per distribution, not per year, and there is no cap. Withdrawing $100,000 early in California could cost you over $40,000 between federal tax, state tax, and the penalty. This is why early 401(k) access should be treated as a last resort, not a planning option.

State Taxes — Some States Exempt Retirement Income, Most Don’t

Your federal tax bill on 401(k) distributions is only part of the picture. State income tax treatment varies dramatically. States like Florida, Texas, Nevada, and Wyoming have no state income tax at all, meaning your 401(k) withdrawals are taxed only at the federal level. Illinois and Mississippi exempt all retirement income from state tax regardless of amount. On the other end, California taxes 401(k) distributions as ordinary income at rates up to 13.3%, and New York taxes them fully above a modest exclusion for public pensions. Relocating to a tax-friendly state before beginning large distributions or Roth conversions is a legitimate and widely used strategy. The savings on a $60,000 annual withdrawal can exceed $5,000 per year in a high-tax state, which compounds significantly over a 25-year retirement.

Strategies That Reduce the Lifetime Tax Bill on Your 401(k)

Tax-efficient distribution planning is not about avoiding taxes. It’s about controlling the rate at which you pay them by spreading income across years and accounts in a way that keeps you in the lowest possible brackets for the longest possible time.

Roth Conversion Ladder During Low-Income Gap Years

If you retire early, get laid off, or take a sabbatical, your taxable income may drop sharply for one or several years. These gap years are conversion windows. You can move money from a traditional 401(k) (rolled into a traditional IRA first) to a Roth IRA and pay taxes at your temporarily low rate. With no other income, a single filer in 2025 can convert roughly $48,000 and stay within the 12% bracket after the standard deduction. That’s $48,000 permanently removed from future RMD calculations, permanently shielded from future tax rate increases, and permanently invisible to IRMAA calculations once it’s in the Roth. Running this conversion annually for five to seven gap years can shift $250,000+ into a Roth at an average effective rate under 12%, compared to the 22-24% rate those same dollars would face as RMDs.

Withdrawing Strategically Before RMDs Start to Flatten the Tax Curve

Between retirement and age 73, you have a window where no one forces you to take distributions. Most people let their traditional balance sit and grow during this period. That’s a mistake if the balance is large enough to generate painful RMDs later. Instead, voluntarily withdrawing from your 401(k) to fill the lower brackets each year can dramatically flatten your lifetime tax curve. A retiree with $1 million at age 63 who takes $50,000 per year for ten years before RMDs begin will face much smaller mandatory distributions at 73 than someone who let that balance compound untouched to $1.5 million or more. The goal is income smoothing: roughly the same taxable income every year, avoiding the spikes that push you into higher brackets and trigger IRMAA surcharges.

Pairing Passive Real Estate Losses With 401(k) Distributions

This is a niche strategy but highly effective for qualifying taxpayers. Rental real estate generates paper losses through depreciation, even when the property cash-flows positively. If you qualify as a Real Estate Professional under IRS rules (750+ hours per year in real estate activities), those passive losses become deductible against ordinary income, including 401(k) distributions. Even without QREP status, taxpayers with AGI under $100,000 can deduct up to $25,000 in passive rental losses against active income. A retiree pulling $60,000 from a traditional 401(k) while showing $20,000 in depreciation-driven rental losses effectively reduces taxable income to $40,000. The property itself may be appreciating, but the IRS lets you claim the paper loss anyway. This combination of real income from 401(k) withdrawals offset by phantom losses from real estate is one of the most tax-efficient distribution setups available, though it requires careful compliance with passive activity rules.

FAQ

Do you pay taxes on a 401(k) rollover to an IRA?

Not if it’s a direct rollover to the same account type. Moving a traditional 401(k) to a traditional IRA, or a Roth 401(k) to a Roth IRA, triggers no tax. The money transfers between custodians without touching your hands. If you do an indirect rollover (the check goes to you first), you have 60 days to deposit the full amount into the new account. The plan will still withhold 20% for taxes, and you’ll need to make up that 20% out of pocket to avoid having it treated as a taxable distribution. If you convert a traditional 401(k) to a Roth IRA, the entire converted amount becomes taxable income for that year.

Are 401(k) withdrawals taxed as capital gains or ordinary income?

All traditional 401(k) withdrawals are taxed as ordinary income, regardless of whether the underlying investments generated capital gains, dividends, or interest. There is no long-term capital gains treatment inside a 401(k). This is a common misconception: even if your 401(k) held stocks for 20 years, the gains are not taxed at the preferential 15% or 20% capital gains rate. They’re taxed at your full marginal income tax rate, which can be significantly higher.

Does a 401(k) withdrawal count as income for Social Security eligibility?

No. Social Security benefits are calculated based on your 35 highest-earning years of FICA-taxed wages. 401(k) withdrawals are not FICA wages and do not factor into your benefit calculation. However, they do count toward your Adjusted Gross Income, which determines how much of your Social Security benefit is subject to federal income tax. These are two separate mechanisms that people frequently confuse.

Can you avoid taxes entirely on a 401(k) by withdrawing small amounts each year?

In theory, yes, if your total income stays below the standard deduction. For 2025, a single filer aged 65+ has a standard deduction of roughly $16,550. If your only income is a traditional 401(k) withdrawal of $16,000, your federal tax liability would be zero. But in practice, most retirees have other income sources (Social Security, pensions, investment income) that stack on top of the withdrawal, making it nearly impossible to stay under that threshold. The strategy works best in the narrow window between early retirement and age 62 when Social Security hasn’t started yet and no other income sources exist.

What happens to the taxes on a 401(k) if you inherit one?

Inherited 401(k) rules changed significantly with the SECURE Act. Most non-spouse beneficiaries must now empty the account within 10 years of the original owner’s death. Each distribution during those 10 years is taxed as ordinary income to the beneficiary, at the beneficiary’s own marginal rate. If the beneficiary is in their peak earning years, that inherited balance gets taxed at a much higher rate than the original owner would have paid. Spouse beneficiaries have more flexibility: they can roll the inherited 401(k) into their own IRA and delay distributions until their own RMD age, effectively continuing the tax deferral.