Wash-Sale Rule: Definition, 61-Day Window, Cost Basis Adjustments & Examples
The wash-sale rule is an Internal Revenue Service regulation prohibiting an investor from claiming a tax deduction for a loss realized on the sale of a security if they acquire a substantially identical security within a sixty-one-day window.
Key Takeaways
- Under IRC Section 1091, capital losses are disallowed if replacement shares are acquired within 30 days before or after the sale date.
- The disallowed loss is not permanently forfeited; it is added to the cost basis of the newly acquired replacement shares.
- The holding period of the original sold shares tacks onto the holding period of the replacement shares for long-term capital gains classification.
- Triggering a wash sale by repurchasing shares inside an IRA permanently destroys the tax loss, creating a severe tax trap under Revenue Ruling 2008-5.
In tax planning and active investment management, the wash-sale rule is one of the most critical regulatory guardrails governing capital losses. Codified under Section 1091 of the Internal Revenue Code (IRC), this rule was instituted by Congress to prevent taxpayers from executing superficial, paper loss transactions to offset Capital Gains Tax liabilities without materially altering their economic market exposure.
Understanding the mechanics of the 61-day window and subsequent cost basis adjustments is essential for executing effective Tax-Loss Harvesting strategies without running afoul of the IRS.
Mechanics Breakdown: How IRC Section 1091 Operates
The wash-sale rule activates automatically whenever an investor sells a stock or security at a realized loss and engages in a prohibited replacement transaction.
- The 61-Day Statutory Window: The restriction is not confined to the days following a transaction. It covers:
- Exactly 30 calendar days before the sale date.
- The day of the sale.
- Exactly 30 calendar days after the sale date.
- Substantially Identical Standard: The rule applies if you acquire “substantially identical” stock or securities, or enter into a contract or option to acquire them (including buying call options or writing in-the-money put options).
- Disallowance and Basis Addition: When a wash sale occurs, the realized capital loss cannot be deducted on the current year’s tax return. Instead, the disallowed loss is added to the tax cost basis of the replacement shares purchased.
- Holding Period Tacking: The investor does not lose the accumulated holding time of the sold lot. Under IRC Section 1223(4), the holding period of the original shares is tacked onto the replacement shares, accelerating their eligibility for lower long-term capital gains rates.
- Cross-Account Enforcement: The wash-sale rule applies across all accounts controlled by the taxpayer or their spouse, including joint accounts, separate taxable accounts at different brokerage firms, and retirement accounts (Traditional and Roth IRAs).
Formulas and Calculations: Basis Adjustments
When a wash sale occurs, the loss is deferred rather than completely eliminated (except in retirement accounts). The tax code mandates a two-part basis and gain adjustment:
1. Disallowed Loss Calculation
Disallowed Loss = (Original Adjusted Basis - Sale Price) × Replaced Shares Count
2. Adjusted Cost Basis of Replacement Shares
Adjusted Basis = Purchase Price of Replacement Shares + (Disallowed Loss / Replaced Shares Count)
3. Ultimate Recognized Gain/Loss on Final Sale
Final Taxable Gain/Loss = Final Sale Proceeds - Adjusted Basis
Step-by-Step Mathematical Demonstration
Investor Profile: Jonathan Brooks (2026 Active Portfolio)
- Original Purchase: On February 10, 2026, Jonathan buys 1,000 shares of Apex Semiconductor (APEX) at $100.00 per share (Cost Basis: $100,000).
- Tax-Loss Sale: On October 15, 2026, APEX falls to $70.00 per share. Seeking a tax deduction, Jonathan sells all 1,000 shares, realizing a $30,000 loss ($70,000 proceeds − $100,000 basis).
- Prohibited Repurchase: On October 27, 2026 (12 days later, well within the 30-day post-sale window), fearing he will miss a market rebound, Jonathan buys back 1,000 shares of APEX at $75.00 per share ($75,000 outlay).
Step 1: Check 61-Day Window:
The purchase on October 27 occurred 12 days after the sale, directly within the 30-day post-sale window. A wash sale is triggered.
Step 2: Determine Current Year Tax Deduction:
Realized Loss = $30,000
Allowed Current Deduction = $0.00
Disallowed Loss = $30,000
Step 3: Calculate Adjusted Basis for Replacement Shares:
New Purchase Price per Share = $75.00
Disallowed Loss per Share = $30,000 / 1,000 = $30.00
Adjusted Cost Basis per Share = $75.00 + $30.00 = $105.00
Total Adjusted Tax Basis = $105,000
Step 4: Ultimate Liquidation in 2027:
On August 18, 2027, Jonathan sells the replacement lot for $120.00 per share ($120,000 proceeds).
Taxable Capital Gain = $120,000 - $105,000 (Adjusted Basis) = $15,000
Tax Outcome: Without the wash sale adjustment, Jonathan would have owed taxes on a $45,000 gain ($120,000 proceeds − $75,000 purchase price). Through the basis step-up to $105.00, his taxable gain is legally reduced to $15,000, fully capturing the economic benefit of the deferred $30,000 loss.
Hypothetical Real-World Scenario: Navigating the ETF Substitution Strategy
To capture tax-loss deductions without violating Section 1091, sophisticated wealth managers utilize proxy ETF pairing strategies.
Consider an investor holding $250,000 in a Vanguard S&P 500 ETF (VOO) with an unrealized loss of $40,000 during a market correction in 2026:
| Action Plan | Security Sold | Security Purchased | Wash Sale Triggered? | Tax Deduction Permitted? |
|---|---|---|---|---|
| Direct Repurchase | VOO (S&P 500) | VOO (S&P 500 after 10 days) | YES | ❌ NO (Loss deferred) |
| Share Class Swap | VOO (S&P 500) | SPY (S&P 500 after 2 days) | RISK (Substantially Identical) | ⚠️ High Audit Risk |
| Proxy Index Swap | VOO (S&P 500) | VTI (Total Stock Market) | NO (Different Index) | ✅ YES (Deduct $40,000) |
| Factor Tilt Swap | VOO (S&P 500) | SCHD (Dividend 100 Index) | NO (Different Index) | ✅ YES (Deduct $40,000) |
Wealth Management Strategy:
- The investor sells VOO to harvest the $40,000 capital loss, offsetting realized capital gains from real estate sales and $3,000 against ordinary income.
- The investor immediately deploys the proceeds into VTI (Vanguard Total Stock Market ETF). Because VTI tracks the CRSP US Total Market Index rather than the S&P 500, the securities are not substantially identical under established tax law.
- The investor remains 100% invested in broad US equity market performance with zero market timing risk while legally securing a $40,000 tax deduction.
- After 31 calendar days elapse, the investor may switch back to VOO if desired.
Advantages and Disadvantages of the Wash-Sale Rule
| Advantages | Disadvantages |
|---|---|
| Disallowed losses are preserved via cost basis additions rather than permanently lost | Eliminates immediate current-year tax deductions on harvested capital losses |
| Holding period of original shares tacks onto replacement shares for long-term rates | Creates tedious tax accounting across multiple brokerage accounts and lots |
| Legitimate proxy substitution strategies allow continuous market exposure | Triggering inside an IRA creates permanent, non-recoverable tax loss destruction |
| Prevents tax evasion schemes designed to manufacture artificial paper losses | Applies even if the repurchase was an automated dividend reinvestment (DRIP) |
Frequently Asked Questions
What is the 61-day wash-sale window?
The wash-sale window spans a total of 61 consecutive days: exactly 30 calendar days before the sale date, the day of the sale itself, and 30 calendar days immediately following the sale date. Purchasing substantially identical securities during this entire period triggers the rule.
What qualifies as a ‘substantially identical’ security?
Common stock and call options on that same stock are substantially identical. However, selling an S&P 500 index ETF (e.g., SPY) and simultaneously purchasing a Russell 1000 ETF (e.g., IWB) or Total Stock Market ETF (e.g., VTI) is widely accepted as non-substantially identical because they track different underlying indices.
Does the wash-sale rule apply to cryptocurrencies?
As of 2026, the statutory language of IRC Section 1091 explicitly specifies ‘stocks and securities.’ Under IRS Notice 2014-21, digital assets are classified as property rather than securities, meaning crypto transactions are currently exempt from the wash-sale rule unless Congress amends the tax code.
What happens if you trigger a wash sale in an IRA?
Under IRS Revenue Ruling 2008-5, if you sell a security at a loss in a taxable brokerage account and purchase substantially identical shares within 30 days inside an IRA or Roth IRA, the loss is permanently disallowed. Furthermore, the loss cannot be added to the basis of the IRA shares, resulting in total loss destruction.
How does a wash sale affect Form 1099-B?
Your brokerage automatically tracks wash sales within the same account and reports the disallowed loss amount in Box 1g on IRS Form 1099-B. You must report this adjustment on IRS Form 8949 and Schedule D when filing your federal tax return.
Regulatory Compliance & Basis Tracking
Navigating Section 1091 requires active tax accounting when offsetting taxable Capital Gains Tax obligations through Tax-Loss Harvesting, ensuring that replacement securities do not inadvertently compromise cost basis calculations or future Step-Up in Basis allocations.
The Bottom Line
The wash-sale rule is an essential regulatory mechanism that every active investor, trader, and wealth manager must respect. By mastering the 61-day statutory calendar, understanding cost basis carryover calculations, and utilizing non-identical proxy ETF substitutions, investors can harvest powerful tax losses without forfeiting market exposure or running afoul of federal tax authorities.
Editorial & Financial Disclaimer: TXTIA is an independent financial education publisher. The tax calculations, IRS code interpretations, and scenario models presented above are for informational and educational purposes only and do not constitute formal tax or legal advice. Consult a credentialed CPA, Enrolled Agent (EA), or tax attorney regarding your individual tax return preparation.
Frequently Asked Questions
- What is the 61-day wash-sale window?
- The wash-sale window spans a total of 61 consecutive days: exactly 30 calendar days before the sale date, the day of the sale itself, and 30 calendar days immediately following the sale date. Purchasing substantially identical securities during this entire period triggers the rule.
- What qualifies as a 'substantially identical' security?
- Common stock and call options on that same stock are substantially identical. However, selling an S&P 500 index ETF (e.g., SPY) and simultaneously purchasing a Russell 1000 ETF (e.g., IWB) or Total Stock Market ETF (e.g., VTI) is widely accepted as non-substantially identical because they track different underlying indices.
- Does the wash-sale rule apply to cryptocurrencies?
- As of 2026, the statutory language of IRC Section 1091 explicitly specifies 'stocks and securities.' Under IRS Notice 2014-21, digital assets are classified as property rather than securities, meaning crypto transactions are currently exempt from the wash-sale rule unless Congress amends the tax code.
- What happens if you trigger a wash sale in an IRA?
- Under IRS Revenue Ruling 2008-5, if you sell a security at a loss in a taxable brokerage account and purchase substantially identical shares within 30 days inside an IRA or Roth IRA, the loss is permanently disallowed. Furthermore, the loss cannot be added to the basis of the IRA shares, resulting in total loss destruction.
- How does a wash sale affect Form 1099-B?
- Your brokerage automatically tracks wash sales within the same account and reports the disallowed loss amount in Box 1g on IRS Form 1099-B. You must report this adjustment on IRS Form 8949 and Schedule D when filing your federal tax return.
The Bottom Line
Understanding Wash-Sale Rule is essential for making sound financial decisions in today's complex markets. The core mechanics, formulas, and real-world scenarios outlined in this guide are regularly reviewed and updated by our credentialed editorial team to reflect the current 2026 rate environment and regulatory landscape. Whether you are a retail investor building long-term wealth or a finance professional sharpening technical knowledge, applying these principles with consistent discipline separates informed decision-making from costly financial mistakes.