How the 61-Day Wash Sale Window Defers Tax-Loss Harvesting Benefits and Alters Cost Basis
The IRS wash sale rule prevents investors from claiming an immediate tax deduction on a security sold at a loss if a substantially identical asset is purchased within a 61-day window. Instead of a permanent penalty, the disallowed loss is added to the new asset's cost basis, deferring the tax benefit until the final liquidation.
- Tax Professionals
- Focuses on strict IRS compliance, accurate Schedule D reporting, and avoiding permanent loss forfeiture through IRA crossovers.
- Passive Index Investors
- Prioritizes maintaining continuous market exposure by utilizing proxy ETFs that correlate closely but avoid the substantially identical classification.
- Active Traders
- Views the rule primarily as an administrative hurdle requiring meticulous tracking across multiple brokerage accounts and automated dividend systems.
Perspectives this story doesn't cover
- Algorithmic Trading Developers
Common questions
Does the wash sale rule apply to cryptocurrency?
As of the 2026 tax year, the IRS classifies cryptocurrency as property rather than a security, meaning the wash sale rule does not currently apply to direct crypto trades, though legislative proposals aim to close this gap.
What happens if I trigger a wash sale in my IRA?
If you sell a stock at a loss in a taxable account and repurchase it within 30 days inside an IRA, the loss is permanently disallowed and cannot be added to the IRA's cost basis.
Do dividend reinvestments trigger the rule?
Yes. If an automated dividend reinvestment purchases fractional shares of a stock within 30 days of you selling that same stock at a loss, a wash sale is triggered on those specific fractional shares.
How long exactly must I wait to repurchase?
To safely claim the capital loss deduction without triggering a wash sale, you must wait until the 31st day following the date of the sale to repurchase the substantially identical asset.
The short answer
- The wash sale rule spans a 61-day window: 30 days before the sale, the day of the sale, and 30 days after.
- Triggering the rule does not make the trade illegal; it defers the tax deduction by adding the loss to the new asset's cost basis.
- Selling an asset at a loss in a taxable account and repurchasing it in an IRA results in a permanent forfeiture of the tax benefit.
- Automated dividend reinvestment plans (DRIPs) can inadvertently trigger wash sales on fractional shares.
- Investors often swap highly correlated but distinct ETFs to maintain market exposure while legally harvesting losses.
A standard capital loss deduction allows an investor to sell an underperforming asset and immediately use that loss to offset taxable gains. The wash sale rule operates on the exact same premise, but with one structural difference: it dictates the precise timing of reinvestment. If an investor attempts to harvest a loss while maintaining their exact position in the market, the Internal Revenue Service intervenes to reclassify the transaction.[7]
The mechanism is defined by a strict 61-day timeline. "A wash sale occurs when you sell or trade securities at a loss and within 30 days before or after the sale you buy substantially identical securities," states Investor.gov. This creates a window that includes the 30 days prior to the sale, the day of the sale itself, and the 30 days following it. Any purchase of the same asset within this period triggers the rule.[1]
When a wash sale is triggered, the loss is not illegal, nor is it permanently erased. Instead, the IRS disallows the immediate tax deduction and mandates a cost basis adjustment. The disallowed loss is added directly to the purchase price of the newly acquired shares. This defers the tax benefit until the investor eventually sells the replacement shares outside of the 61-day window.[2][7]
Consider a concrete mathematical example. An investor purchases 100 shares of a stock for $10,000. Months later, the value drops, and they sell the position for $8,000, generating a $2,000 capital loss. If they wait 31 days to repurchase the stock, they can use that $2,000 loss to offset other capital gains or up to $3,000 of ordinary income for the 2026 tax year.[4][7]
However, if that same investor repurchases the 100 shares for $8,500 just 15 days after the sale, the wash sale rule activates. The $2,000 loss is disallowed for the current tax year. Instead, that $2,000 is added to the $8,500 purchase price of the new shares, creating an adjusted cost basis of $10,500. The holding period of the original shares is also tacked onto the new shares.[2][3]
However, if that same investor repurchases the 100 shares for $8,500 just 15 days after the sale, the wash sale rule activates.
The most complex variable in this equation is the IRS definition of "substantially identical." Selling shares of Apple to buy shares of Microsoft does not trigger a wash sale, as they are distinct companies. However, Charles Schwab notes that selling one S&P 500 index fund and immediately buying a different S&P 500 index fund from another issuer is widely considered substantially identical by tax professionals, even if the IRS has not issued exhaustive rulings on every specific ETF pair.[3]
To navigate this ambiguity, passive index investors frequently employ a strategy known as tax-loss harvesting by proxy. Instead of buying the exact same index, an investor might sell an S&P 500 ETF at a loss and immediately purchase a Russell 1000 ETF. Because the underlying indexes track different segments of the market—despite having a high performance correlation—the assets are not substantially identical, allowing the investor to claim the loss while remaining exposed to large-cap U.S. equities.[5][7]
The most severe penalty within the wash sale framework occurs across different account types. The rule applies to the investor, not the individual brokerage account. If an investor sells a stock at a loss in a taxable brokerage account and repurchases the same stock within 30 days inside an Individual Retirement Account (IRA), the wash sale is triggered.[2][6]
Unlike a standard wash sale where the loss is deferred through a cost basis adjustment, the IRA crossover creates a permanent forfeiture. Because IRAs are tax-advantaged accounts that do not track cost basis for capital gains purposes, the disallowed loss cannot be added to the new shares. The tax benefit of the loss is entirely destroyed.[6]
The proliferation of automated trading and robo-advisors in 2026 has inadvertently increased the frequency of wash sales. Jupid research highlights that automated dividend reinvestment plans (DRIPs) are a common culprit. If an investor sells a stock at a loss, and a scheduled dividend reinvestment automatically purchases fractional shares of that same stock two weeks later, a wash sale is triggered on the number of shares repurchased.[4]
Tracking these transactions requires significant administrative oversight. AdvisorFinder points out that while individual brokerages automatically track and report wash sales on Form 1099-B for trades executed within their own ecosystem, they cannot see trades executed at competing institutions. An investor who sells at a loss at Fidelity and repurchases at Schwab within 15 days is still legally subject to the wash sale rule and must manually adjust their Schedule D tax filings.[5]
The defining metric for successful tax-loss harvesting remains the calendar. To cleanly claim a deduction without triggering cost basis adjustments or risking permanent forfeiture in an IRA, the reinvestment into a substantially identical security cannot occur until the 31st day following the sale.[1][7]
Jargon, explained
- Wash Sale
- A transaction where an investor sells a security at a loss and purchases a substantially identical security within 30 days before or after the sale.
- Tax-Loss Harvesting
- The strategy of selling underperforming assets at a loss to offset capital gains or up to $3,000 of ordinary income in a given tax year.
- Cost Basis
- The original value of an asset for tax purposes, usually the purchase price, adjusted for stock splits, dividends, and disallowed wash sale losses.
- Substantially Identical
- An IRS classification for securities that are practically the same, such as two ETFs tracking the exact same index, which triggers the wash sale rule.
Sources
[1]Investor.govTax ProfessionalsWash Sales
Read on Investor.gov →
[2]Fidelity InvestmentsPassive Index InvestorsWash-Sale Rules
Read on Fidelity Investments →
[3]Charles SchwabPassive Index InvestorsWash-Sale Rule: How It Works & What to Know
Read on Charles Schwab →
[4]JupidActive TradersWash Sale Rule 2026: How the 61-Day Window Works and How to Avoid It
Read on Jupid →
[5]AdvisorFinderActive TradersWash Sale Rule 2026: Complete Guide to Avoiding Tax Mistakes
Read on AdvisorFinder →
[6]NSKT GlobalTax ProfessionalsWash Sale Rule Explained: How to Avoid Tax Loss Traps
Read on NSKT Global →
[7]Factlen Editorial TeamSynthesis by Factlen editorial team
Read on Factlen Editorial Team →
Comments
More in Finance
See all →Bankruptcy Mechanics
How Collateral Dictates Interest Rates and Creditor Priority in Bankruptcy
3 sources
Index Mechanics
How Share Price Distorts the Dow: The Mathematical Divide Between Price-Weighted and Market-Cap Indices
2 sources
Yen Carry Trade
Bank of Japan Rate Hike Bets Drive Yen to Six-Month High, Triggering Global Portfolio Shifts
6 sources
Capital Budgeting
How the Net Present Value (NPV) and Internal Rate of Return (IRR) Rules Conflict in Capital Budgeting
6 sources
Every angle. Every day.
Get Finance stories with full source coverage and perspective breakdowns delivered to your inbox.




