What Counts as Substantially Identical Under the Wash Sale Rule?

Under the wash sale rule in 26 U.S.C. § 1091, two securities are “substantially identical” when they give you essentially the same economic exposure — the same risks, the same upside, the same tie to underlying value — but the IRS has never drawn a bright line and instead evaluates each situation on its facts and circumstances.1Internal Revenue Service. Publication 550 (2025), Investment Income and Expenses That vagueness is deliberate, and it forces investors to think through the analysis category by category: shares of the same company behave differently from bonds, which behave differently from options, which behave differently from index funds.

Why the Question Comes Up: The 61-Day Window

The rule looks at a 61-calendar-day period around any loss sale: 30 days before, the day of the sale, and 30 days after. If you acquire substantially identical stock or securities anywhere in that window, the loss on the sale is disallowed.2Office of the Law Revision Counsel. 26 USC 1091 – Loss From Wash Sales of Stock or Securities The order does not matter. Buying replacement shares first and then selling the original position at a loss within 30 days triggers the rule just as much as the reverse.

Every substantial identity question is really a question about this window. Outside it, the analysis does not apply. Inside it, you need to know whether what you bought is close enough to what you sold to collapse the two into a single continued position.

The Core Test

Publication 550 instructs taxpayers to consider “all the facts and circumstances” of each particular case.1Internal Revenue Service. Publication 550 (2025), Investment Income and Expenses The practical question is whether your portfolio, after the swap, looks economically the same as it did before. If it does, expect the IRS to treat the transaction as a wash sale.

Courts read the phrase with some flexibility. In Hanlin v. Commissioner, the Third Circuit held that “substantially identical” requires something less than mathematical certainty — two securities can meet the standard without being perfect duplicates.3Justia Law. Hanlin v Commissioner of Internal Revenue, 108 F2d 429 What matters is meaningful change in your investment position, not cosmetic difference.

Different Companies, Same Company, Different Share Classes

Shares of one corporation are ordinarily not substantially identical to shares of a different corporation. Selling Company A at a loss and buying Company B is safe even when both operate in the same industry.1Internal Revenue Service. Publication 550 (2025), Investment Income and Expenses

Different classes of stock within the same company are harder. Common and preferred stock of the same corporation are generally treated as distinct because they carry different rights — voting power, dividend priority, and liquidation preference create real economic differences. That comfort disappears when the preferred is convertible into common at the holder’s election without restriction. When convertible preferred trades at prices that closely track the conversion ratio into common, the IRS treats the two classes as economically interchangeable and therefore substantially identical.1Internal Revenue Service. Publication 550 (2025), Investment Income and Expenses

Bonds and Convertibles

Bonds follow the same logic. Two bonds from the same issuer with different maturity dates, interest rates, or collateral backing are generally distinct enough to avoid the rule, and the wider the gap in their cash flow profiles, the safer you are. Bonds or preferred stock convertible into common stock of the same corporation may be treated as substantially identical to that common stock when relative values and price movements confirm they behave as a single economic unit.

Options and Other Derivatives

The statute handles options through two separate mechanisms, and confusing them causes real reporting errors.

Section 1091(a) states that entering into a contract or option to acquire substantially identical stock counts as an acquisition. If you sell shares of Company X at a loss and buy a call option on Company X inside the 61-day window, the wash sale rule applies directly — not because the option and the stock are themselves substantially identical, but because the statute independently treats acquiring an option on the same stock as a triggering purchase.2Office of the Law Revision Counsel. 26 USC 1091 – Loss From Wash Sales of Stock or Securities

Separately, the IRS has taken the position that writing a deep-in-the-money put can be the functional equivalent of acquiring stock. When a put’s strike price sits well above the current market price, exercise becomes virtually certain and the seller will end up owning the shares. The IRS has acknowledged that the threshold for “deep enough” is not precisely defined, which leaves ambiguity for traders near the boundary.

Going the other way, the IRS has ruled that a call option and the underlying shares are not themselves substantially identical securities. Closing a call option at a loss and then buying the underlying stock does not automatically trigger the rule under the substantially-identical prong, though the separate contract-or-option prong can still apply depending on the direction of the transaction.

ETFs and Mutual Funds

This is where the absence of formal IRS guidance produces the most anxiety. The agency has never issued a definitive ruling on whether two ETFs or mutual funds tracking the same index are substantially identical.

Two S&P 500 index funds from different providers make the strongest case for substantial identity. Their holdings overlap almost completely, their daily returns move in near-perfect lockstep, and the only differences are minor variations in expense ratios and tracking methodology. Many tax professionals treat these as too similar to swap safely, even without a ruling on point.

Switching to a fund that tracks a genuinely different index provides more breathing room. Moving from an S&P 500 fund to a total stock market fund, or from a large-cap growth fund to a large-cap value fund, introduces meaningful differences in methodology and holdings. The argument against substantial identity is much stronger, though “stronger argument” is the best anyone can honestly promise. No safe harbor exists here.

Actively managed funds are the easiest case among pooled vehicles. Two actively managed funds with similar objectives but different portfolio managers making independent daily decisions are unlikely to be substantially identical, because each manager’s choices create a unique risk profile that shifts over time. Moving from a passive index fund to an actively managed fund covering a similar market segment generally provides enough differentiation.

Mergers and Reorganizations

Corporate deals can create wash sales investors don’t see coming. When a merger is announced and the two companies’ stocks begin trading in a fixed ratio, buying the acquirer’s shares after selling the target’s shares at a loss may trigger the rule. Publication 550 notes that in a reorganization, stocks and securities of the predecessor and successor corporations may be substantially identical.1Internal Revenue Service. Publication 550 (2025), Investment Income and Expenses

Tax-free reorganizations under IRC § 368 raise a particular concern because the exchange of securities is treated as a continuation of the original investment rather than a new purchase.4Office of the Law Revision Counsel. 26 USC 368 – Definitions Relating to Corporate Reorganizations If you sold target-company stock at a loss shortly before a merger closed and then received acquiring-company stock in the reorganization, the IRS may view those acquiring-company shares as substantially identical replacement securities. Form 8937, filed by the acquiring company to report the tax impact of the transaction, helps clarify whether this risk applies.

A Boundary: Digital Assets

The wash sale rule reaches only “stock or securities” as the statute defines those terms.2Office of the Law Revision Counsel. 26 USC 1091 – Loss From Wash Sales of Stock or Securities Cryptocurrency and other digital assets are currently taxed as property under federal law, not as securities, so the substantially identical analysis does not apply to them. Selling Bitcoin at a loss and immediately rebuying it does not trigger a wash sale under existing law. Proposals to extend the rule to digital assets have appeared in recent federal budget documents but have not been enacted as of early 2026, and the law in this area is moving quickly.

Why Identity Matters Most Across Accounts

Substantial identity does its worst damage when the replacement purchase happens somewhere other than your regular taxable brokerage account, because those situations are also the ones your broker won’t flag for you.

If you sell stock at a loss in your taxable account and buy the same stock in your IRA or Roth IRA within the 61-day window, the loss is disallowed. Revenue Ruling 2008-5 held that an IRA purchase counts as an acquisition by the taxpayer because the taxpayer maintains “actual command over the property” within the IRA. The critical wrinkle: in an ordinary wash sale between two taxable accounts, the disallowed loss is added to the basis of the replacement shares and recovered when you eventually sell them. The IRS ruled that basis in the IRA is not increased under Section 1091(d) when the replacement purchase happens inside the IRA.5Internal Revenue Service. Revenue Ruling 2008-5 Because IRA distributions are taxed under their own rules, the disallowed loss is permanently destroyed rather than deferred. Of all the wash sale traps, this one has the worst outcome.

The rule also reaches across all of your accounts and, per the IRS, across spouses. If you sell stock at a loss and your spouse buys the same stock within the 61-day window, the IRS treats it as a wash sale. Your broker is only required to track wash sales within the same account and CUSIP number, so cross-account matching is on you.

Safe Swaps for Tax-Loss Harvesting

The cleanest approach is to sell the position and wait 31 full calendar days before buying back in. Sell on July 1 and August 1 is the earliest safe repurchase date. The cost is the risk that the security rallies while you sit out.

To stay invested during the waiting period, buy something that covers the same market exposure without being substantially identical. Selling shares of a single tech company and buying a broad technology sector ETF generally works, since a diversified fund holding dozens of companies is not identical to any single stock. For index fund investors, switching between funds that track different indices — an S&P 500 fund to a Russell 1000 fund, for instance — is a reasonable move, though the lack of formal IRS guidance means no strategy in this space is entirely risk-free.

Whatever you swap into, remember that intent does not matter. An automatic dividend reinvestment inside the window is enough to trigger the rule, so review any standing instructions on the account before you harvest a loss.