The Wash Sale Rule: What Every Tax-Loss Harvester Must Know

David Park
The Wash Sale Rule: What Every Tax-Loss Harvester Must Know

Tax-loss harvesting ranks among the most powerful tools available to investors seeking to minimize their annual tax burden. But there’s a catch. The IRS created the wash sale rule specifically to prevent taxpayers from claiming artificial losses while maintaining essentially the same market position.

Understanding this rule isn’t optional for serious tax-loss harvesters. Get it wrong, and you’ll face disallowed deductions, complex cost basis adjustments, and potential penalties.

What the Wash Sale Rule Actually Says

The wash sale rule, codified in Internal Revenue Code Section 1091, disallows a loss deduction when an investor sells a security at a loss. Purchases a “substantially identical” security within 30 days before or after the sale. That’s a 61-day window total-30 days prior, the sale date, and 30 days after.

Here’s a concrete example. An investor holds 100 shares of Company XYZ purchased at $50 per share ($5,000 total). The stock drops to $35. The investor sells all shares, realizing a $1,500 capital loss. Three weeks later, the stock looks attractive again, so the investor buys back 100 shares at $36.

Result? The IRS disallows the $1,500 loss entirely.

The loss doesn’t disappear forever, though. It gets added to the cost basis of the replacement shares. Those new shares now have a basis of $5,100 instead of $3,600. The investor can eventually recognize that loss-just not on the current year’s tax return.

The “Substantially Identical” Problem

The IRS never precisely defined “substantially identical. " This ambiguity creates both risk and opportunity.

Securities clearly considered substantially identical include:

  • The same stock or bond
  • Options or contracts to acquire the same stock
  • Preferred stock convertible into the same common stock
  • Bonds from the same issuer with matching terms

Securities generally not considered substantially identical:

  • Stock of different companies in the same industry
  • Different ETFs tracking different indexes
  • Bonds from the same issuer with significantly different terms

The gray area involves index funds and ETFs. Is an S&P 500 ETF from Vanguard substantially identical to one from iShares? The IRS hasn’t issued definitive guidance. Most tax professionals advise switching to a fund tracking a different index-say, moving from an S&P 500 fund to a total stock market fund-to stay safely within the rules.

A 2019 study by Wealthfront found that approximately 12% of individual investors who attempted tax-loss harvesting made wash sale errors, primarily through confusion about substantially identical securities.

Common Wash Sale Traps

The Retirement Account Problem

Many investors don’t realize that purchases in IRAs and 401(k)s can trigger wash sales. Sell a stock at a loss in a taxable brokerage account, then buy the same stock in your IRA within 30 days? That’s a wash sale.

Worse, when a retirement account triggers the wash sale, the disallowed loss cannot be added to any cost basis. The loss simply vanishes permanently. IRS Publication 550 makes this clear, yet it remains one of the most overlooked aspects of the rule.

Dividend Reinvestment Plans

Automatic dividend reinvestment can wreck a tax-loss harvesting strategy. If a stock pays dividends monthly. You sell at a loss, those automatic reinvestments during the 61-day window trigger wash sales-even if you weren’t thinking about the dividends at all.

Investors serious about tax-loss harvesting should suspend dividend reinvestment on positions they might sell at a loss.

Spouse and Controlled Entity Purchases

The wash sale rule applies across accounts you control. A purchase by your spouse in their separate account triggers a wash sale. So does a purchase by a corporation, trust, or partnership you control.

Married couples managing separate portfolios must coordinate carefully. A study by the Tax Policy Center in 2022 estimated that spouse-triggered wash sales affect roughly 8% of households filing jointly who engage in active trading.

Strategies That Work Within the Rules

The 31-Day Wait

The simplest approach: sell the losing position and wait 31 days before repurchasing. During that time, the investor has no exposure to the security. If it rises 15% during the waiting period, that opportunity cost eats into the tax benefit.

For investors in the 37% federal bracket plus state taxes, a $10,000 short-term loss saves roughly $4,500 in taxes. Missing a 15% gain on a $10,000 position costs $1,500. The math often still favors harvesting-but not always.

The “Similar But Not Identical” Swap

Sell a position at a loss and immediately purchase a similar but not substantially identical security. Examples:

  • Sell Chevron, buy ExxonMobil
  • Sell Vanguard S&P 500 ETF, buy Schwab Total Stock Market ETF
  • Sell individual tech stock, buy technology sector ETF

This approach maintains market exposure while capturing the tax loss. After 31 days, the investor can swap back to the original position if desired.

Specific Share Identification

Investors who purchase shares at different times and prices can specify exactly which shares they’re selling. Selling the highest-cost shares first maximizes losses (or minimizes gains). The IRS allows this, but the investor must adequately identify the shares at the time of sale and receive written confirmation from the broker.

Without specific identification, the IRS applies FIFO (first in, first out), which may not improve the tax outcome.

Record-Keeping Requirements

Brokers report wash sales on Form 1099-B, but they only track wash sales within a single account at their institution. They don’t see trades at other brokers or in your spouse’s accounts.

Investors bear responsibility for identifying and reporting wash sales across all accounts. The IRS expects accurate reporting on Schedule D and Form 8949, including proper basis adjustments for disallowed losses.

Trading actively across multiple brokers - spreadsheet tracking becomes essential. Software solutions like TradeLog or GainsKeeper can automate wash sale tracking across accounts, though they require complete trade data to function accurately.

When Wash Sales Don’t Matter

Some investors overthink this. The wash sale rule only matters when you’re trying to claim a loss.

Long-term buy-and-hold investors who rarely sell don’t need to worry. The rule only triggers on sales at a loss followed by repurchases.

Investors planning to hold indefinitely might intentionally trigger wash sales. Buying more shares during a dip within the 61-day window adds the disallowed loss to basis. When eventually selling the entire position-maybe decades later-the full loss gets recognized anyway. No harm done.

Those with no capital gains to offset might not benefit from harvesting losses anyway. Capital losses can offset gains plus $3,000 of ordinary income annually. Excess losses carry forward, but there’s no guarantee of future gains to offset them.

The Bigger Picture

Tax-loss harvesting makes sense for investors with significant capital gains, especially short-term gains taxed as ordinary income. According to a 2023 analysis by Betterment, automated tax-loss harvesting added approximately 0. 77% annually to after-tax returns for their average client over a 10-year period.

But the wash sale rule demands respect. The 61-day window, the substantially identical test, and the cross-account triggers create genuine complexity.

Investors should consider whether the tax savings justify the administrative burden and opportunity costs. For a $2,000 loss in the 24% bracket, the tax savings total roughly $480 federally. Worth it? Depends on the investor’s time, sophistication, and overall portfolio strategy.

Those managing portfolios exceeding $500,000 with regular trading activity often benefit from professional tax software or advisor assistance. The stakes get high enough that the wash sale rule’s nuances matter significantly to bottom-line results.