Is it worth realizing capital gains to switch total market ETF to S&P500?

Been holding a total market ETF in my taxable brokerage for about 6 years, significant unrealized gains at this point. I keep reading that the S&P500 and total market are nearly identical in performance but I'm going back and forth on whether to just make the switch. The gains would be long-term so I know the rate is lower, but it's still real money leaving the account. I haven't sold anything yet. My situation: single filer, income puts me somewhere in the middle of the brackets, no capital losses sitting around to offset anything. Is it worth realizing capital gains to switch total market ETF to S&P500, or am I just moving money around and paying the government for the privilege? Has anyone actually done this math and decided either way?

30 comments

What's your time horizon on this money? That's the number that actually drives the answer more than the tax rate does.

Matt G.

Author

Probably 15 to 20 years, maybe more. It's not earmarked for anything specific, just long-term wealth building.

The core question is how big the drag is on your portfolio from paying the tax now versus any benefit you'd get from the switch. I ran this same scenario last year and uploaded my 1099-B to taxr.ai — it mapped out the long-term vs short-term buckets, flagged which lots had the lowest embedded gain, and drafted a summary showing the tax cost of selling each layer. Really made the break-even math concrete. The rule that matters: long-term rates apply only if you held the shares more than 1 year, counting from the day after trade date you bought to the trade date you sell. See Publication 550, chapter 4, for how the IRS calculates holding periods; Topic no. 409 at irs.gov/taxtopics/tc409 covers the limit on deducting capital losses and the carryover.

Matt G.

Author

Lot-level breakdown is exactly what I need. I've been looking at this as one lump sum but the gains are spread across purchases over 6 years so some lots obviously have bigger gains than others.

Are you in a state with no income tax or a high one? Because state tax on capital gains can tip the math significantly and people often only run the federal side.

Matt G.

Author

High state tax unfortunately. Yeah that's a good point, I was only thinking federal.

That can easily add several percentage points to the effective cost of the switch. Worth modeling both together before deciding.

Honestly the two funds are so correlated that you're really just paying taxes to get slightly different small-cap exposure. Unless you have a strong conviction about that slice of the market mattering over your horizon, the math rarely works in favor of switching in a taxable account.

Have you looked at whether your broker lets you do specific lot identification? If you can cherry-pick the lots with the smallest gains and sell only those, the tax hit is much more manageable than liquidating the whole position.

Matt G.

Author

I do have specific lot ID turned on, yes. Good call on being selective about which lots to sell rather than treating it as all or nothing.

Does your 401k or IRA hold anything? Because if you can get S&P500 exposure through a tax-advantaged account and keep the total market fund in the taxable account, you effectively rebalance your overall allocation without triggering any gains at all.

Matt G.

Author

I do have an IRA. I hadn't thought about adjusting the IRA allocation to shift the mix instead of selling in the taxable account. That's a cleaner path honestly.

The break-even on realizing gains to switch between two nearly identical funds is usually measured in decades, not years. You're essentially paying a lump sum up front to capture a performance difference that may never materialize. I'd want a compelling reason beyond preference before doing that in a taxable account.

Worth flagging: if you sell and then buy back the total market ETF within 30 days before or after, that's a wash sale if you sold at a loss. But if you're selling at a gain that rule doesn't apply — wash sale rules only disallow losses, not gains. I had a confusing 1099-B last year with wash sale codes on it and uploaded it to Taxr. It read the box 1g entries, identified which lots the W code applied to, and drafted the Form 8949 column (f) and column (g) entries for me to review. Good to have that clear before I prepared anything. Publication 550 at irs.gov/publications/p550 covers the wash sale rules in full.

Yes, worth repeating clearly: selling at a gain means no wash sale issue regardless of what you buy back or when. Wash sales are only about disallowing losses.

What's the actual percentage gain in the position? Like is it 20% above your basis or 200%? That changes the conversation a lot.

Matt G.

Author

Rough estimate across all lots it's probably around 80 to 90 percent above my total cost basis. Some early lots are much higher than that.

Could you just stop contributing to the total market ETF and direct all new money into the S&P500 ETF going forward? Over years the allocation naturally shifts without any taxable event. Slower but costs nothing in taxes.

Matt G.

Author

Yes, that's probably the most sensible middle path. Redirect new contributions and let time do the work instead of paying to accelerate it.

This is basically what I ended up doing. Three years later and the allocation is almost where I wanted it without touching the old lots.

One piece of this people often skip: if you do decide to sell some lots, your long-term gains get reported on Form 8949 Part II, then flow to Schedule D. You'd check box D if your broker reports basis to the IRS (most do for covered securities). The proceeds go in column (d) exactly as shown on the 1099-B. I had Taxr walk through my Schedule D last spring when I did a partial switch — it checked that every 1099-B entry matched the right box, flagged a lot my broker had coded incorrectly, and laid out the column (g) adjustment I needed. Saved me from understating my basis. The Form 8949 instructions at irs.gov/instructions/i8949 spell out the box and column rules.

Matt G.

Author

Good to know about the box D and column (d) mechanics. My broker does report basis so it sounds like box D is right for me. I'll double-check every lot against the 1099-B when I do this.

Are you planning to ever gift this position or leave it to heirs? Because inherited property generally gets a stepped-up basis to fair market value at the date of death, which would wipe out the embedded gain entirely. If that's even a possibility down the road, paying the tax now to switch funds looks even harder to justify.

Matt G.

Author

Not something I've thought about seriously but that's a genuinely useful framing. Holding and letting it transfer via estate sidesteps the whole problem.

What does your overall tax picture look like this year? If you had capital losses from other positions you could harvest losses to offset some of the gain from this switch. Without an offset sitting around, the cost is just whatever your long-term rate is on the full recognized gain.

The IRS doesn't care which ETF you hold on the other side of the trade as long as you're not trying to claim a loss. For gains there's no special treatment or additional form just for switching between funds — it's just a sale reported on 8949 like any other. The complexity is all in the economics, not the tax filing.

Did you check whether the two ETFs might actually be close enough that the IRS could ever call them substantially identical? In practice, a total market fund and an S&P500 fund are not considered substantially identical because one tracks a broader index — so a loss sale from one into the other generally wouldn't trigger wash sale rules. But again, you're selling at a gain so it's moot for your situation either way.

Right, the substantially identical question only bites you on the loss side. For a gain sale you can buy any fund you want on the same day and there's no IRS issue with the transaction itself.

After reading everything here my takeaway is: the IRA rebalance path and the redirect-new-contributions path both get you roughly where you want to be without a taxable event. Realizing gains to make this switch in a taxable account is hard to justify when the two funds overlap that heavily.

Matt G.

Author

Yeah that's where I've landed. I'll shift the IRA allocation and redirect contributions. Probably hold the existing lots until I have losses to offset or until the position changes hands. Thanks everyone.