What counts as substantially identical for wash sales and does DRIP matter?

Trying to figure out what counts as substantially identical for wash sales and does DRIP matter when calculating the disallowed loss. Here's my situation: I sold shares of a broad market ETF at a loss in late November, then my brokerage's dividend reinvestment plan automatically bought more shares of the same ETF twelve days later. My 1099-B shows a wash sale loss disallowed in box 1g, which I wasn't expecting because I didn't manually buy anything. I already checked my brokerage's confirmation and the DRIP purchase is definitely the same fund, same ticker, same CUSIP. My question is whether DRIP purchases count as a "buy" that triggers the wash sale rule, and separately, how the IRS defines substantially identical — does it apply across different ETFs that track the same index?

39 comments

Form 8949 is where this lands, and yes, DRIP purchases absolutely count. The wash sale rule doesn't care whether the buy was automatic or intentional. A reinvestment through a DRIP is still an acquisition of substantially identical securities within the 30-day window. Your brokerage did the right thing flagging it in box 1g.

Lena F.

Author

So there's no exception for automatic reinvestment? I assumed DRIP would be treated differently since I didn't actively choose to buy.

No exception. Publication 550 covers wash sales and it doesn't carve out automatic purchases. If you want to avoid this in future years, you can suspend DRIP on that holding for the 30-day window around any planned loss sale.

The substantially identical question is the harder one and there's genuinely no bright-line test in the code. The IRS looks at the facts and circumstances. Same stock in the same company is obvious. Bonds from the same issuer with similar terms, also yes. Where it gets murky is ETFs.

Does the same ticker always mean substantially identical?

Same ticker, same CUSIP, same fund — yes, that's substantially identical. The issue people run into is thinking two ETFs tracking the S&P 500 from different fund families are safe. The IRS hasn't issued definitive guidance on that, but the conventional view is that two funds with nearly identical holdings and the same benchmark are very likely substantially identical.

Worth separating your two questions because they have different answers. For your specific situation — same ETF, same CUSIP, DRIP purchase 12 days later — that's a textbook wash sale. The 30-day window runs both before and after the sale date, so a purchase 12 days after is squarely inside it.

Lena F.

Author

Got it. So the disallowed loss gets added to the cost basis of the DRIP shares?

Exactly right. The disallowed loss is added to the basis of the new shares acquired in the wash sale. So you don't permanently lose the loss — it's deferred into the basis of those DRIP shares and you recognize it when you eventually sell them without triggering another wash sale.

Publication 550 is the main reference here and it's pretty clear that the wash sale rules apply to any acquisition of substantially identical stock within 30 days before or after the sale — including through a fully taxable trade or a contract or option to buy. DRIP falls under a standard purchase so it's in scope. I had a similar situation last year with a few loss sales and automatic reinvestments and I uploaded everything to taxr.ai — the 1099-B, the DRIP transaction log, the draft 8949. It cross-checked each sale date against the buy dates, flagged which ones were within the 30-day window, and laid out the basis adjustments line by line. Made it a lot easier to verify what my brokerage had already calculated.

Lena F.

Author

Did it catch anything your brokerage missed?

In my case the brokerage got most of it right, but there was one DRIP purchase in a taxable account that matched a loss sale in a different account at the same broker. The brokerage system only checked same-account same-CUSIP for box 1g reporting. The cross-account wash sale isn't something they're required to report, but the disallowance still applies — I had to adjust that one manually on Form 8949 with code W in column (f).

Cross-account wash sales are real and they're easy to miss. Your broker only has to report the disallowed loss in box 1g if it's the same CUSIP bought in the same account. If you sell in one account and the DRIP happens in a different account, the broker may not flag it at all, but you still can't deduct that loss.

What about IRA accounts — if the DRIP reinvests into an IRA does that trigger a wash sale?

Yes and it's worse. If the substantially identical stock is acquired in your IRA or Roth IRA within the 30-day window, the wash sale rule still applies but the disallowed loss is permanently lost — it doesn't get added to the basis of the IRA shares because IRA basis works differently. Publication 550 is explicit on that point.

For the ETF-tracking-the-same-index question: the IRS has never published a revenue ruling that says two ETFs following identical benchmarks are or aren't substantially identical. Most tax practitioners treat them as not substantially identical if they're different funds from different sponsors, but that's a risk judgment, not a guaranteed safe harbor.

Lena F.

Author

Is there any place in the code or regs that defines the test more precisely?

Not really. The case law comes from bond cases mostly — looking at interest rate, maturity, issuer. For equity ETFs the analysis is less developed. If you want certainty, switching to a fund with meaningfully different holdings or a different index is the safest path.

On the reporting side, your box 1g amount gets handled on Form 8949 and then carries to Schedule D. The wash sale loss your broker flagged in box 1g goes into column (g) of Form 8949 as a positive number, with code W in column (f). You check box A or D depending on whether it's short-term or long-term and whether basis was reported to the IRS.

Lena F.

Author

My DRIP shares were held less than a year before this happened, so short-term?

The holding period of the new shares includes the holding period of the shares you sold in the wash sale — that's the tacking rule. So depending on how long you held the original shares before the loss sale, the DRIP shares could already have a longer holding period than you think. Check the acquisition date that flows through.

Suspended DRIP is usually the cleanest solution going forward. Most brokerages let you pause reinvestment on a per-holding basis. Sell the shares at a loss, suspend DRIP for 31 days, then re-enable it. That keeps the loss deductible and you're back to reinvesting after the window closes.

Does the 30-day window start the day of the sale or the day after?

Publication 550 says the window is 30 days before or after the sale — the sale date itself is day zero. So you need to stay clear of purchases from 30 days before through 30 days after the sale date.

Form 3115 is unrelated here, just making sure nobody goes down that path — this is purely a 8949 and Schedule D question. On the substantially identical point for ETFs, I had my 1099-B and a list of the ETF pairs I was using for tax-loss harvesting uploaded to Taxr. It went through each pair, noted the benchmark, the fund sponsor, and the overlap in top holdings, and drafted a summary of which pairs looked more or less likely to draw scrutiny as substantially identical. Helped me decide which swaps were worth keeping and which I should rethink before filing.

Lena F.

Author

That's exactly what I need — I have three different ETF pairs I was planning to use for harvesting and I want to know which are actually safe.

One thing people get wrong: the wash sale rule applies to losses only. If your DRIP purchase happened within the window but the original sale was at a gain, there's no wash sale issue at all. The rule only disallows losses.

Does a gain in a later lot affect anything if an earlier lot sold at a loss?

Lots are traced individually. Each sale is evaluated on its own for gain or loss. A gain on one lot doesn't wash out or offset the wash sale treatment on a different lot sold at a loss in the same timeframe.

The holding period tacking rule the earlier comment mentioned is worth emphasizing. When a wash sale happens, the new shares don't start their holding period fresh — they inherit it from the shares that were sold. So if you held the original shares for 10 months and then sold at a loss with a wash sale, the DRIP shares start their holding period as if they've already been held 10 months. That can flip a future sale from short-term to long-term.

Schedule D line 1a and 8a can be used under Exception 1 for transactions where basis was reported to the IRS and there are no adjustments needed. But if you have a wash sale code W, that's an adjustment, so those sales have to go on Form 8949 individually — you can't use the exception line for them.

Lena F.

Author

I was planning to use line 1a for most of my transactions. Good to know the ones with wash sales have to be on 8949 itself.

An earlier comment said the 30-day window starts "30 days before or after" and that the sale date is day zero. That's correct. But I want to add that the 30-day count is calendar days, not trading days. Weekends and holidays count. So 30 calendar days after a November 20 sale is December 20 — a DRIP on December 19 is still inside the window.

For the cross-account and IRA scenarios, if the numbers are significant, it's worth having an enrolled agent or CPA review before you file. The IRS doesn't require brokers to report cross-account wash sales in box 1g, so the burden of catching those is entirely on you. Getting it wrong means an understated basis and a potential adjustment later.

Lena F.

Author

How would the IRS even know if I missed a cross-account wash sale?

They might not catch it immediately, but if the accounts are all at the same broker and the broker files multiple 1099-Bs, the proceeds and dates are all there. And if you're ever audited for another reason, the examiner would likely look at all 1099-Bs together. It's the kind of thing that's easier to get right the first time.

Publication 550 is freely available on irs.gov and the wash sale chapter is worth reading directly — it covers the DRIP scenario implicitly through the general rule about any acquisition of substantially identical stock within the window. The instructions for Form 8949 at irs.gov lay out exactly how to report the code W adjustment in columns (f) and (g).

To pull everything together for the original question: same fund, same CUSIP, DRIP within 30 days — wash sale, no question. The disallowed loss goes to basis of the new shares. Different ETFs tracking the same index — no clear rule, treated as a facts-and-circumstances question, most practitioners use funds with different benchmarks or meaningfully different holdings to be safe.

Lena F.

Author

This clears it up. I'll report the DRIP wash sale with code W on Form 8949, adjust the basis of those shares, and think more carefully about which ETF pairs I use for harvesting going forward.