How to tax loss harvest index funds without triggering a wash sale

Been trying to figure out how to tax loss harvest index funds without triggering a wash sale and I keep going in circles. I hold VTI in my taxable brokerage and want to sell it at a loss to book the deduction, then get back into something similar so I'm not out of the market. My broker's platform just shows the loss amount but doesn't flag anything about wash sales. I've read that buying back VTI within 30 days before or after the sale would disallow the loss, but I'm unclear on whether switching to a different total market ETF counts as "substantially identical." Also my Roth IRA automatically reinvests dividends — does that count? Already tried reading Publication 550 but couldn't work out exactly where the line is. What's the safest way to do this without accidentally killing the deduction?

45 comments

The "substantially identical" question is the whole game here. The IRS hasn't published a bright-line list for ETFs, so people go by the underlying index. VTI tracks CRSP US Total Market. SCHB also tracks CRSP US Total Market — most practitioners treat those as substantially identical. ITOT tracks S&P 1500. VOO tracks S&P 500. The overlap is huge but the index is different, so many people use VOO or ITOT as the swap. Not a guarantee, but that's the reasoning.

Dana W.

Author

So SCHB would be risky but ITOT or VOO might be okay? That's the distinction I was missing. Does anyone know if the IRS has actually ruled on a specific ETF pair or is it all just practitioner consensus?

No formal ruling I've seen. The "substantially identical" standard came out of court cases involving bonds and stock of related companies. ETF index swaps live in a gray zone. The more different the index methodology, the stronger your position.

Had this same mess last year. I uploaded my 1099-B and my trade confirmations to taxr.ai and it flagged two trades where my Roth IRA dividend reinvestments had bought VTI within 30 days of my taxable sale — losses I thought I'd harvested were actually wash sales I hadn't noticed. It listed each trade with the dates and explained why the IRS rule applies to IRA purchases too. Really helped me see which losses were clean before I filed.

Dana W.

Author

Wait the Roth IRA reinvestments triggered wash sales on the taxable account losses? I didn't realize the IRA counted. That's exactly the situation I'm worried about.

Yes — Publication 550 says acquiring substantially identical stock in your IRA or Roth IRA within the 30-day window counts as a wash sale. The tricky part: the disallowed loss doesn't get added to the IRA's basis, it's just gone. That's what made it worse than a normal wash sale.

To answer the Roth IRA question directly: Publication 550 is explicit that buying substantially identical securities in an IRA or Roth IRA triggers the wash sale rule. And unlike a normal wash sale where the disallowed loss gets added to the new shares' cost basis, when the replacement purchase is inside an IRA the loss is permanently disallowed — no basis adjustment, no carryover. So turning off dividend reinvestment in the IRA during the 30-day window on both sides of the sale is not optional if you want the loss.

I didn't know the loss was just gone when the IRA is involved. So you can't even recover it later when the IRA shares eventually get sold?

Correct. Gains and earnings inside an IRA aren't taxed until distributed (they're taxed as ordinary income on the way out for traditional, or not at all for Roth), so there's nowhere to apply the disallowed loss. It evaporates.

Does the 30-day window work both ways? Like if I bought VOO 25 days ago and now want to sell VTI at a loss, does that prior purchase matter?

Yes, the window is 30 days before or after the sale date. So a purchase 25 days before selling at a loss could make that loss a wash sale if the security purchased is substantially identical to the one sold. The rule looks backward and forward from the sale date.

Good to know. I thought it only looked forward. That changes the timing math a lot.

Practically speaking for index funds: VTI to ITOT is the most common swap people use. Some people go VTI to VOO but you're changing from total market to large-cap only, so you're accepting different market exposure for 31 days. VTI to an equal-weight total market fund is another option. The key is you want the loss AND you want to stay invested, so picking a swap that keeps you in a similar risk profile matters as much as the tax rule.

Dana W.

Author

This is helpful. So the 31-day hold on the replacement is the minimum before switching back to VTI without creating a new wash sale issue on the original position?

How do you actually report the wash sale if one slips through? Does the broker just handle it?

Brokers report wash sales in box 1g of Form 1099-B only when the same account buys substantially identical securities with the same CUSIP. Cross-account wash sales (like taxable account sale + IRA purchase) won't appear in box 1g at all — you have to track those yourself. On Form 8949 you enter code W in column (f) and the disallowed loss as a positive number in column (g), which offsets the loss in column (h).

So for the cross-account IRA situation the 1099-B won't show it at all and you're on your own to report it. That's a problem waiting to happen for a lot of people.

Is there any risk if I sell VTI in the taxable account and my 401(k) happens to be buying a total market index fund on the same dates through payroll contributions?

The wash sale rule as written in Publication 550 covers purchases in an IRA or Roth IRA and purchases by your spouse or a corporation you control. A 401(k) is not specifically listed the same way. That said, this is an area where the statutory language is not fully settled and practitioners differ. If you have a large loss at stake, an enrolled agent or CPA familiar with this area is worth the conversation.

Appreciated. I'll ask my CPA about the 401k piece before I do anything.

I had Taxr go through my Schedule D and 8949 from last year after I did a harvest that I thought was clean. It cross-referenced the trade dates against my IRA transaction history I pasted in and found a dividend reinvestment that landed inside the 30-day window. Then it laid out what adjusting column (g) on Form 8949 would have looked like. Ended up amending. Painful but better than leaving it wrong.

Dana W.

Author

Did amending cause any issues or did it go through without pushback? I'm worried about drawing attention.

Filed a 1040-X, it processed without any notice. The 8949 adjustment was small enough that it didn't change much. I think the bigger risk would have been leaving it and having the IRS match the 1099 figures against what you reported.

What actually happens to the holding period on the replacement shares after a wash sale? Does the clock reset?

No reset — the holding period of the original (sold) shares carries over and tacks onto the replacement shares. So if you held VTI for 11 months, sold at a loss, bought back within 30 days, the replacement shares' holding period includes those 11 months. You could be over the 1-year long-term threshold faster than you'd expect.

That's actually a benefit then in some cases. Good to know it's not purely punitive on the holding period side.

Are mutual fund versions of the same index — like VTSAX vs VTI — substantially identical to each other?

They track the same CRSP US Total Market Index and are issued by the same fund family. Most practitioners would treat them as substantially identical. Selling VTSAX at a loss and buying VTI the same day, or vice versa, is not a safe swap.

That rules out a swap I was considering. Good catch.

Before my last harvest I had Taxr read through my brokerage statements and IRA transaction summaries together. It mapped out which sale dates had clean 30-day windows and which ones were at risk because of reinvestments, then drafted a simple tracking worksheet I could use going forward so I'd know the earliest safe repurchase date for each lot. Made the whole process less guesswork.

Dana W.

Author

A worksheet tracking safe repurchase dates per lot is exactly what I need. I'm going to try that approach before I sell anything.

Can you harvest a loss and immediately move into a 2x leveraged version of the same index to stay fully exposed while you wait out the 31 days?

Leveraged ETFs are generally not considered substantially identical to the underlying index ETF because they have fundamentally different risk profiles, different expense structures and different return paths. Most practitioners would say a 2x S&P 500 ETF is not substantially identical to VOO. But you're accepting very different risk during those 31 days, which is a real tradeoff.

Makes sense. The tax benefit could easily get wiped out by the leverage if the market moves against you during the wait.

What line does the harvested loss actually show up on when everything works correctly and there's no wash sale issue?

If it's a short-term loss (held 1 year or less), it goes in Part I of Form 8949, then flows to Schedule D line 1a or 1b depending on whether Exception 1 applies. Long-term (held more than 1 year) goes in Part II, flows to Schedule D line 8a or 8b. Net capital losses offset capital gains first; if losses still exceed gains, you can claim up to the annual limit against other income on Form 1040, and anything beyond that carries forward.

Does it matter which tax lots you designate for the sale? Like highest cost vs. FIFO?

Lot selection matters a lot. Selling your highest-cost lots maximizes the loss. Most brokers let you specify lot ID (specific identification) at the time of sale. If you don't specify, many default to FIFO. You should confirm your broker's default method and change it at the time of the trade if needed — once the trade settles it may be too late to change the lot designation.

I had no idea my broker defaulted to FIFO. I'll check that before my next harvest.

Dana W.

Author

This is something I completely overlooked. I assumed the broker was picking the right lots automatically.

If the loss is disallowed as a wash sale, does the disallowed amount just disappear or does it get added somewhere?

For a normal wash sale where the replacement shares are in a taxable account, the disallowed loss is added to the cost basis of the replacement shares. So you don't lose it permanently — it lowers your gain (or increases your loss) when you eventually sell those replacement shares. The holding period also carries over. The exception, as mentioned earlier, is when the replacement purchase is in an IRA or Roth IRA: in that case the disallowed loss is permanently gone with no basis adjustment anywhere.

So the IRA situation is uniquely bad. Everything else you can at least recover through the basis adjustment.

How do you actually confirm the loss was accepted — is there anything on the transcript or is it just reflected on Schedule D when you file?

You report it on Form 8949 and it flows to Schedule D. There's no separate confirmation step — the IRS matches the proceeds and cost basis figures from your 1099-B against what you report. If your 8949 is consistent with the 1099-B (or you've properly explained any adjustments in column (g) with the right codes), that's the record. Keep your trade confirmations and IRA statements for the 30-day window in case of questions later.