Can I switch ETFs in Roth IRA and taxable account without capital gains?

Trying to rebalance my portfolio and want to swap out a couple of ETFs. I have the same funds split between a Roth IRA and a regular taxable brokerage account. Inside the Roth I just sell one ETF and buy another and I figured that's fine since money in a Roth grows tax-free. But in the taxable account I'm not sure. I've held one of the positions for about 14 months and it's up maybe 20%. The other position I've held for 8 months and it's roughly flat. Can I switch ETFs in Roth IRA and taxable account without capital gains, or am I going to owe something on the taxable side when I sell?

31 comments

Roth IRA side is straightforward: transactions inside the account aren't taxable events. You can sell and rebuy as many times as you want and nothing gets reported on your return from those trades. The taxable account is a completely different story and the answer there depends on your basis and holding period for each position.

Greg K.

Author

Yeah that's what I thought on the Roth. It's the taxable side where I keep second-guessing myself.

Form 1099-B is what your broker will send you for the taxable account sales. Each sale gets reported to the IRS with proceeds and cost basis. If you have a gain, it's taxable that year. If you're flat or at a loss on a position, that changes the picture entirely.

Greg K.

Author

So the 14-month position that's up will definitely generate a gain I owe tax on?

Yes, selling a position with a gain in a taxable account is a taxable event regardless of what you buy next. The only question is whether it's short-term or long-term based on your holding period.

Holding period matters a lot here. Per Schedule D rules, if you held more than 1 year the gain is long-term. The IRS counts from the day after you bought through the trade date you sell. Your 14-month position clears that threshold so you'd be looking at long-term capital gains rates, which are generally lower than ordinary income rates. See Topic 409 at irs.gov for how that breaks down.

I uploaded my brokerage year-end statement to taxr.ai last spring when I did something similar — sold a few positions to rotate into different sector ETFs. Taxr read through the 1099-B, flagged which lots were short-term vs. long-term, and built out a Form 8949 draft showing the gains and losses by lot so I could see exactly what I'd owe before I filed. Saved me from a surprise. The 8-month flat position you mentioned — if it's truly flat or slightly down it could offset some of the gain from the other sale.

Greg K.

Author

That's actually a really useful way to preview it before selling. I didn't know you could get that kind of breakdown ahead of time.

On the flat position: if it's actually at a loss when you sell, you can use that loss to offset the gain from the 14-month position on Schedule D. Net them together — if the net is a gain you owe tax on that net amount; if the net is a loss you can deduct up to the annual limit against other income with any remainder carrying forward.

Correct, and the carryforward is calculated on the Capital Loss Carryover Worksheet in the Schedule D instructions or Publication 550 — worth keeping that worksheet around year to year.

Watch out for wash sales if you're selling at a loss in the taxable account and then buying back a substantially identical ETF within 30 days before or after. The IRS wash sale rule disallows the loss and adds it to your basis in the new shares instead. Switching to a genuinely different ETF avoids the problem.

Greg K.

Author

I wasn't planning to rebuy the same one but good to know. What counts as "substantially identical"?

Two ETFs tracking the exact same index from different providers can be treated as substantially identical even though the tickers differ. Two ETFs tracking different indexes usually aren't. It's a facts-and-circumstances call and the IRS hasn't issued a bright-line rule for ETFs specifically, so if it's close, leave more than 30 days or choose a fund tracking a meaningfully different benchmark.

Form 8949 is where each individual sale in the taxable account gets listed — proceeds in column (d), basis in column (e), gain or loss in column (h). Part I for short-term positions (held 1 year or less), Part II for long-term. It then flows to Schedule D. The Roth sales never appear anywhere on your return.

One thing people get tripped up on: switching ETFs inside a Roth IRA does NOT reset any kind of holding period for the account itself. The Roth's tax-free treatment on qualified distributions depends on when you opened the account and your age, not on which ETFs you hold inside it. Trade freely in there.

Greg K.

Author

Yes, I've had my Roth open for several years so I'm not worried about the qualified distribution rules. Mainly just wanted to confirm the trades themselves don't create a tax event.

Exactly right. No tax event on the trades inside. You're good on that side.

I went through a similar rotation across a taxable account last year and was unsure how to handle the lot-by-lot reporting. Gave Taxr my brokerage's year-end summary and it matched each sale to the right 8949 box, flagged a wash sale I'd missed, and drafted the column (g) adjustment for me to review. Helped me catch it before the return went out. The wash sale note above is real — it's easy to miss when you're buying a replacement ETF quickly.

Greg K.

Author

A wash sale I hadn't even noticed would be a stressful thing to find out about later. Good to know there are ways to check.

To confirm: Box A on Form 8949 Part I is for short-term sales where your broker reported basis to the IRS. Box D on Part II is for long-term with basis reported. Most ETF sales through a standard brokerage will land in A or D since brokers have been required to report basis on covered securities for years.

If your broker gives you a 1099-B that shows the wrong basis — say you transferred shares in and the original cost didn't transfer correctly — you use code B in column (f) of Form 8949. With box A or D checked (basis reported to IRS) you enter the basis shown on the 1099-B in column (e) even though it's wrong, and fix it with an adjustment in column (g), negative (in parentheses) if the correct basis is higher. With box B or E checked (basis not reported to IRS) you just put the correct number in column (e) directly and -0- in column (g).

Greg K.

Author

My basis looks right in the brokerage portal so I think I'm fine, but I'll double-check the 1099-B when it arrives.

Publication 550 on the IRS site covers holding period rules and wash sales in detail if you want to read the source. Topic 409 covers the capital gains and loss basics including the deduction limit on net losses.

Something to think about timing-wise: if you're close to the 1-year mark on any position in your taxable account, waiting a few more weeks to sell could move the gain from short-term to long-term. Worth checking the trade date on each lot before you pull the trigger.

Yes, the IRS counts from the day after your purchase trade date through the trade date you sell, not settlement dates. Worth checking that precisely if you're right on the edge of 12 months.

For the flat position specifically — "roughly flat" could mean a small gain or a small loss depending on the actual lot. Check your cost basis lot by lot in your brokerage account before selling. If you have multiple purchases of the same ETF you can often specify which lot you're selling to control whether you realize a gain or loss.

Greg K.

Author

I didn't think about specifying lots. I'll see if my broker lets me do that at the time of the trade.

Most major brokers do allow lot selection either at trade time or within a short window after. Usually in account settings or during the order process. If you don't specify, brokers typically default to FIFO which may not be optimal for you.

To pull it together: Roth IRA swaps — no tax, no reporting, no issue. Taxable account swaps — each sale is a taxable event, gains and losses go on Form 8949 and Schedule D, long-term rates apply if held more than a year, watch the wash sale rule if you sell at a loss and buy anything substantially identical within 30 days before or after.

If the gains in your taxable account are significant enough that you're unsure about the tax impact, it might be worth a quick session with a CPA before you execute the trades. They can run the numbers on your specific situation and marginal rate. The IRS instructions for Form 8949 and Publication 550 are both publicly available if you want to work through it yourself first.

Greg K.

Author

Thanks — I think for my amounts I can work through it myself with the 1099-B when it arrives, but I'll keep that in mind if things get complicated.