Do You Pay Capital Gains Tax on a Rollover IRA?

No. Rolling money from one IRA to another, or from a 401(k) into an IRA, does not trigger capital gains tax on a rollover IRA. Capital gains rates simply do not apply to money held inside an IRA, and a properly executed rollover keeps the funds inside that tax shelter the entire time. Even in the worst case, where a rollover fails and the money becomes taxable, the IRS treats it as ordinary income, not a capital gain.

Why Selling Inside an IRA Is Not a Taxable Event

In a regular brokerage account, selling an investment at a profit generates a capital gain. Long-term gains are taxed at 0% to 20%, and short-term gains are taxed at ordinary income rates that can reach 37%.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses

IRAs operate under a different framework. Under 26 U.S.C. § 408, an IRA is a tax-sheltered account where buying, selling, and reinvesting produce no immediate tax consequences.2Office of the Law Revision Counsel. 26 USC 408 – Individual Retirement Accounts Sell a stock for a $50,000 gain inside the account and nothing is reported to the IRS. No 1099-B, no Schedule D, no capital gains calculation.

That is why liquidating your holdings to cash before a rollover carries no tax cost. You can sell everything, move the cash to a new custodian, and buy a completely different portfolio without the IRS taking a share. Cost basis inside the IRA is irrelevant. Tax only enters the picture when money leaves the IRA as a distribution, and at that point it is taxed as ordinary income.

Keeping the Rollover Itself Tax-Free

There are two ways to move IRA money, and one is significantly safer.

A direct transfer, sometimes called a trustee-to-trustee transfer, sends the money straight from the old custodian to the new one. You never take possession. The IRS does not even count this as a rollover, so there is no limit on how many direct transfers you can do in a year.3Internal Revenue Service. Rollovers of Retirement Plan and IRA Distributions

An indirect rollover pays the money to you personally. You then have 60 days to deposit the full amount into a new retirement account. Two rules apply. You get only one indirect rollover across all your IRAs (traditional, Roth, SEP, and SIMPLE combined) in any 12-month period, and you must redeposit the entire distribution within 60 days.3Internal Revenue Service. Rollovers of Retirement Plan and IRA Distributions Break either rule and the whole amount is treated as a taxable distribution.

The Withholding Trap on 401(k) Distributions

If you take a distribution from an employer plan like a 401(k) or 403(b) and it is paid to you rather than sent directly to a new custodian, the plan must withhold 20% for federal income tax. You cannot opt out.4Internal Revenue Service. Instructions for Forms 1099-R and 5498 On a $100,000 payout, you receive $80,000. To complete a full rollover, you have to add $20,000 from your own funds within 60 days. The withheld amount comes back as a refund when you file, but any shortfall you fail to replace becomes a taxable distribution, plus a 10% penalty if you are under 59½.

IRA-to-IRA indirect rollovers use a 10% withholding rate, and you can elect out entirely.5Office of the Law Revision Counsel. 26 USC 3405 – Special Rules for Pensions, Annuities, and Certain Other Deferred Income A direct trustee-to-trustee transfer avoids the withholding question altogether because no distribution is issued to you.

What a Failed Rollover Actually Costs

This is where searchers looking for capital gains information most often get surprised. When a rollover fails, whether from a missed 60-day deadline, a violation of the one-per-year rule, or an incomplete deposit, the IRS reclassifies the whole amount as a distribution. Every pre-tax dollar gets added to your taxable income for the year and taxed at your ordinary income rate.

The difference matters. Long-term capital gains top out at 20%. Ordinary income rates reach 37% for taxable income above $640,601 for single filers.6Internal Revenue Service. Federal Income Tax Rates and Brackets A $200,000 failed rollover stacked on top of a salary can push a large portion into the higher brackets.

If you are under 59½, add a 10% early withdrawal penalty on the taxable portion.7Internal Revenue Service. Substantially Equal Periodic Payments State income taxes can pile on. And the money loses its tax-advantaged wrapper permanently, because annual IRA contribution limits ($7,000, or $8,000 at age 50 and older) cannot restore a large distribution.

If You Miss the 60-Day Deadline

A missed deadline is not always fatal. The IRS offers two recovery routes.

The first is self-certification under Revenue Procedure 2020-46. You send a letter to the receiving custodian certifying that you missed the window for one of twelve qualifying reasons, which include a financial institution’s error, a misplaced check, serious illness in your family, a death, damage to your home, postal error, or incarceration.8Internal Revenue Service. Revenue Procedure 2020-46 The deposit generally has to happen within 30 days of the reason no longer applying. There is no fee, but if the IRS later disagrees with your qualifying reason, you owe the tax, penalties, and interest.

The second route is a private letter ruling, a formal IRS extension request. It is more reliable but costs thousands in user fees, plus professional help. It usually only makes financial sense for large balances.

Roth Conversions Are Taxable, But Not as Capital Gains

One kind of rollover does trigger tax. Converting a traditional IRA to a Roth IRA adds the converted amount to your income in the year of the conversion. Because traditional IRA contributions were deductible going in, the IRS collects tax when the money moves into a Roth, where future withdrawals will be tax-free.

The tax is ordinary income tax. Not capital gains. If you convert $80,000, that $80,000 is added to your other income and taxed at your marginal rate, regardless of whether the balance represents original contributions or decades of stock market growth.3Internal Revenue Service. Rollovers of Retirement Plan and IRA Distributions Many people spread conversions across multiple years to keep each year’s added income in a lower bracket.

The One Real Capital Gains Intersection: Employer Stock

There is a single scenario where capital gains rates genuinely apply to a rollover decision. Under the net unrealized appreciation (NUA) rules in 26 U.S.C. § 402(e)(4), if your 401(k) holds employer stock, you can distribute those shares in-kind into a taxable brokerage account rather than rolling them into an IRA.9Office of the Law Revision Counsel. 26 USC 402 – Taxability of Beneficiary of Employees Trust

Do that, and you pay ordinary income tax only on the plan’s original cost basis for the shares. The appreciation, the “net unrealized appreciation,” is taxed at long-term capital gains rates when you eventually sell. If the plan paid $20,000 for shares now worth $200,000, ordinary income tax applies to the $20,000 at distribution, and capital gains tax applies to the $180,000 when you sell.

NUA is only available as part of a lump-sum distribution of the entire account balance, triggered by separation from service, reaching 59½, disability, or death.9Office of the Law Revision Counsel. 26 USC 402 – Taxability of Beneficiary of Employees Trust The stock has to move to a taxable account in-kind, not be sold first. And if you roll the employer stock into an IRA instead, the NUA benefit is gone permanently and future withdrawals are taxed entirely as ordinary income. Anyone with significant appreciated employer stock in a 401(k) should look at NUA before starting a rollover.

One Boundary: Inherited IRAs

If you inherited an IRA from someone other than a spouse, the rollover rules described above do not apply the same way. A non-spouse beneficiary cannot roll inherited IRA assets into their own IRA; the funds have to sit in a separate inherited IRA titled in the deceased owner’s name.10Internal Revenue Service. Retirement Topics – Beneficiary Moving the money into your own account is treated as a full taxable distribution. Spouses have more flexibility and can roll an inherited IRA into their own. If this is your situation, the tax question is about distribution timing rules rather than capital gains.