Wash Sale Rule Explained for Investors Avoiding Taxes

The wash sale rule disallows tax losses when investors repurchase identical securities within 61 days, making precise execution essential for effective tax loss harvesting.

,

In fact, most investors who trigger a wash sale never see it coming. They’ve done their homework, they know about tax-loss harvesting, and they’re confident they’re managing their portfolio strategically, right up until they discover the IRS has disallowed a loss they were counting on. The wash sale rule is precisely the kind of regulation that punishes not ignorance, but incomplete knowledge.

The rule itself sounds simple enough: sell a security at a loss, wait long enough before buying it back, and you can use that loss to offset gains on your tax return. But the execution is where things fall apart for even experienced investors.

What follows is a breakdown of how the rule actually works, where the real traps are, and what practical steps protect a tax-loss harvesting strategy without sacrificing market exposure.

Investor at a kitchen table compares two similar trade confirmations, highlighting the wash sale rule.

What the Wash Sale Rule Actually Does

Essentially, the IRS designed this rule to prevent investors from claiming a tax deduction on a loss while never truly exiting the investment position.

If an investor sells a security at a loss and repurchases the same or a substantially identical security within 30 days before or after that sale, the loss gets disallowed for tax purposes.

That creates a 61-day window in total: 30 days before the sale, the day of the sale itself, and 30 days after. Any repurchase within that window triggers the rule.

Moreover, as Fidelity explains in their wash sale overview, the disallowed loss isn’t gone forever. It gets added to the cost basis of the replacement security, which can reduce taxable gains in the future.

There’s also a holding period carryover. The time the investor held the original security adds onto the holding period of the replacement, which can affect whether future gains get taxed at short-term or long-term capital gains rates.

When the Loss Disappears Entirely

Most investors assume a disallowed wash sale simply defers their tax benefit. In most cases, that’s true, but not when the replacement purchase happens inside an IRA or Roth IRA.

Under IRS Revenue Ruling 2008-5, if an investor sells a security at a loss in a taxable account and then repurchases it within the wash sale window inside a retirement account, the disallowed loss does not get added to the IRA’s cost basis.

Thus, the loss is permanently forfeited, not deferred. That distinction is critical and often misunderstood, even by investors who consider themselves well-versed in tax strategy.

The Hidden Triggers Most Investors Miss

However, knowing the basic 61-day window is a starting point, not a finish line. Several transaction types trigger the rule in ways that catch investors off guard.

Dividend Reinvestment Plans

Automatic dividend reinvestments, commonly called DRIPs, count as acquisitions of securities for wash sale purposes.

If an investor sells a stock at a loss and that same stock pays a dividend that gets automatically reinvested within the 30-day window, the wash sale rule activates. This happens without any conscious decision from the investor, which makes it especially easy to miss.

Cross-Account and Spousal Transactions

The rule doesn’t apply only within a single brokerage account. It extends across all accounts held by the investor, including accounts at different financial institutions, IRA accounts, and accounts held in disregarded entities like single-member LLCs.

Moreover, according to J.P. Morgan Private Bank’s year-end tax planning guidance, the IRS also considers a spouse’s repurchase within the window as a potential wash sale trigger, even when spouses file taxes separately.

RSU Vestings and Compensatory Options

For employees who receive equity compensation, restricted stock unit (RSU) vestings and the exercise of compensatory options both qualify as security acquisitions.

Thus, selling company shares at a loss within 30 days of an RSU vest can trigger the rule automatically, even if the investor had no intention of repurchasing shares in the traditional sense.

The Calendar Year Does Not Reset the Clock

Furthermore, a common misconception is that selling a losing position in late December and repurchasing in early January avoids the rule because the transactions fall in different tax years. They don’t.

The 61-day window crosses calendar year boundaries without interruption, so, for instance, selling on December 28 and repurchasing on January 10 still triggers a wash sale.

Understanding “Substantially Identical” — The IRS’s Deliberate Ambiguity

The phrase “substantially identical” appears throughout IRS guidance on this rule, but the IRS has never provided a precise definition. That ambiguity is intentional. It gives the agency flexibility to evaluate each situation on its specific facts and circumstances.

In practical terms, investors need to consider whether a knowledgeable buyer would view two securities as economically interchangeable. If the answer is yes, the rule likely applies. Several scenarios illustrate where the line blurs:

  • Selling common stock in a company and buying preferred stock of the same company
  • Swapping one S&P 500 index ETF for a different ETF that tracks the same index
  • Selling a mutual fund and immediately buying a fund that holds nearly identical holdings
  • Selling stock at a loss and purchasing call options on that same stock

Conversely, selling a position in one sector ETF and buying a different ETF in the same sector, but with distinct holdings and methodology, generally does not trigger the rule. The key is that the economic exposure differs materially.

A Practical Comparison of Triggering vs. Safe Substitutions

TransactionWash Sale RiskReasoning
Sell S&P 500 ETF, buy identical S&P 500 ETFHighTracks same index, economically identical
Sell S&P 500 ETF, buy Russell 1000 ETFLowDifferent index, materially different holdings
Sell tech stock, buy tech sector ETFLowETF holds many stocks, not substantially identical
Sell stock in taxable account, buy same stock in IRAVery HighSame security; loss permanently forfeited in IRA
Sell stock at loss, spouse buys same stockHighIRS treats spousal accounts as connected
You May Also Like

How to Execute Tax-Loss Harvesting Without Triggering the Rule

Fortunately, avoiding a wash sale doesn’t mean abandoning tax-loss harvesting. It means executing it with precision. The following strategies keep the tax benefit intact while maintaining meaningful market exposure.

Wait Out the Full 61-Day Window

The most straightforward approach is to wait 31 days after the sale before repurchasing the same security.

As a result, this ensures the position falls entirely outside the post-sale 30-day window. For investors comfortable temporarily reducing exposure in a specific holding, this is the cleanest path.

Substitute With a Similar But Distinct Security

Selling a losing position and immediately deploying the proceeds into a similar, but not substantially identical, security keeps the investor in the market.

For instance, selling shares of one large-cap technology company and buying a broad technology sector ETF maintains sector exposure without triggering the rule.

Replacing an S&P 500 ETF with one tracking the Russell 1000 is a commonly cited approach that preserves asset allocation while staying compliant.

Audit All Accounts Before Executing

Before selling any security at a loss, investors should review all connected accounts, including spousal accounts, IRAs, and any accounts held in entities they control, since a loss realized in one account can be quietly disallowed by a repurchase happening in another account the investor barely checks.

Disable Automatic Reinvestments During Harvest Windows

Temporarily pausing DRIP settings on securities being harvested eliminates one of the most common accidental triggers.

Although this is a simple step, it’s one that most investors overlook entirely when planning a tax-loss harvest in volatile market conditions.

Reporting a Wash Sale Correctly

When a wash sale does occur, it must be reported on Form 8949 of the federal tax return. The disallowed loss is noted in column (f) with the code “W,” and the adjusted cost basis of the replacement security must reflect the addition of the disallowed amount.

Furthermore, there’s one important limitation: financial institutions are only required to track wash sales involving the exact same CUSIP number within the same account.

That means cross-account and cross-institution wash sales, including the substantially identical scenarios, fall entirely on the investor to identify and report. As tax resources like S.D. Mayer emphasize, relying on a brokerage’s 1099-B alone is not sufficient.

Moreover, for investors managing multiple accounts across different institutions, consolidating holdings where possible reduces the administrative complexity.

Thus, considering working with a tax professional who actively tracks these transactions is a practical safeguard, particularly during high-volume trading periods or year-end harvesting activity.

Final Takeaways for Smarter Tax Execution

Ultimately, the wash sale rule is not a technicality that affects only careless investors; it routinely catches disciplined investors who understand the concept but underestimate its reach.

The core principles that prevent costly mistakes come down to a short list of execution habits:

  • Map the full 61-day window before executing any tax-loss harvest, including 30 days prior to the planned sale
  • Check all accounts, including a spouse’s, for any recent or upcoming purchases of the same security
  • Disable DRIP settings on securities being sold at a loss during the harvest window
  • Avoid IRA repurchases of securities sold at a loss in taxable accounts, since the loss is permanently lost, not deferred
  • Document the cost basis adjustment for any replacement security and report accurately on Form 8949

In the end, tax-loss harvesting remains one of the most accessible strategies for reducing a portfolio’s tax burden. The investors who benefit from it most consistently are the ones who treat execution as seriously as they treat the strategy itself, because one imprecise trade can erase months of careful planning.

Watch this video to learn how the wash sale rule works and how to avoid costly tax mistakes.

Frequently Asked Questions

What are the consequences of triggering a wash sale in different accounts?

Triggering a wash sale across different accounts can lead to disallowed losses that impact your tax return, as the IRS considers all accounts collectively, regardless of financial institutions.

How can investors avoid automatic triggers of the wash sale rule?

Investors can avoid automatic triggers of the wash sale rule by disabling dividend reinvestment plans on affected securities during the tax-loss harvesting timeframe.

What should investors do if they have multiple brokerage accounts?

Investors with multiple brokerage accounts should review all connected accounts carefully prior to executing any sell orders, as repurchases in different accounts can trigger a wash sale.

How does timing affect the ability to claim losses?

The timing of selling and repurchasing securities is critical, as transactions within the 61-day washing period disallow loss claims, regardless of the calendar year.

What should investors ensure regarding their tax reporting for wash sales?

Investors must ensure that they report any wash sales accurately on Form 8949, noting disallowed losses and adjusting the cost basis of replacement securities appropriately.

Nayara Krause


Legal expert with a postgraduate degree in Constitutional Law and a linguist qualified in Portuguese and Italian Languages and Literatures. She is a specialized SEO writer for websites and blogs, focusing on content creation for social media. She also works with text, book, and audiobook editing. Currently, she writes articles about finance, financial products, Brazilian and foreign literature, and the arts in general. She is passionate about languages and the craft of reading and writing.

Disclaimer Under no circumstances will Monyzo require you to pay in order to release any type of product, including credit cards, loans, or any other offer. If this happens, please contact us immediately. Always read the terms and conditions of the service provider you are reaching out to. Monyzo earns revenue through advertising and referral commissions for some, but not all, of the products displayed. All content published here is based on quantitative and qualitative research, and our team strives to be as impartial as possible when comparing different options.

Advertiser Disclosure Monyzo is an independent, objective, advertising-supported website. To support our ability to provide free content to our users, the recommendations that appear on Monyzo may come from companies from which we receive affiliate compensation. This compensation may impact how, where, and in what order offers appear on the site. Other factors, such as our proprietary algorithms and first-party data, may also affect the placement and prominence of products/offers. We do not include all financial or credit offers available on the market on our site.

Editorial Note The opinions expressed on Monyzo are solely those of the author and not of any bank, credit card issuer, hotel, airline, or other entity. This content has not been reviewed, approved, or otherwise endorsed by any of the entities mentioned. That said, the compensation we receive from our affiliate partners does not influence the recommendations or advice our writing team provides in our articles, nor does it impact any of the content on this site. While we work hard to provide accurate and up-to-date information that we believe is relevant to our users, we cannot guarantee that the information provided is complete and make no representations or warranties regarding its accuracy or applicability.

Loan terms: 12 to 60 months. APR: 0.99% to 9% based on the selected term (includes fees, per local law). Example: $10,000 loan at 0.99% APR for 36 months totals $11,957.15. Fees from 0.99%, up to $100,000.