The wash sale rule prevents you from claiming tax losses when you repurchase substantially identical securities within 30 days of selling at a loss. This IRS regulation can derail tax-loss harvesting strategies, but savvy investors use carefully planned ETF swaps to maintain market exposure while preserving their tax benefits. The key lies in understanding which securities the IRS considers "substantially identical" and timing your trades appropriately.
Tax-loss harvesting through ETF swapping has become increasingly popular as investors seek to offset gains in taxable accounts. However, the wash sale rule creates a 61-day window (30 days before and after the sale) where purchasing similar securities will disallow your loss deduction. Getting this wrong can cost you thousands in missed tax savings.
What Triggers the Wash Sale Rule
A wash sale occurs when you sell a security at a loss and purchase a "substantially identical" security within 30 days before or after the sale. The IRS hasn't provided a precise definition of "substantially identical," but decades of tax court cases have established clear guidelines.
Securities that definitely trigger wash sales include:
- The exact same stock or ETF (selling 100 shares of AAPL and buying 50 shares of AAPL)
- Call options on the same underlying security
- Bonds from the same issuer with identical terms
- Mutual fund shares of the same fund
The rule also applies to purchases made in your spouse's account, your IRA, or any account you control. This means you can't simply buy the same security in a different account to circumvent the rule.
When a wash sale occurs, the IRS disallows the loss for tax purposes and adds the disallowed loss to the cost basis of the replacement security. While you don't permanently lose the tax benefit, you defer it until you sell the replacement security without triggering another wash sale.
ETF Pairs That Avoid Wash Sale Issues
The good news is that ETFs tracking different indexes are generally not considered substantially identical, even if they have similar holdings. This creates opportunities for strategic swaps that maintain market exposure while preserving tax losses.
Popular ETF swap pairs include:
| Original ETF | Swap Candidate | Key Difference | Correlation (5-year) |
|---|---|---|---|
| VOO (S&P 500) | VTI (Total Stock Market) | VTI includes mid/small caps | 0.99 |
| VEA (Developed Markets) | IEFA (Core MSCI EAFE) | Different index methodology | 0.98 |
| VWO (Emerging Markets) | IEMG (Core MSCI EM) | Different index provider | 0.99 |
| AGG (Total Bond Market) | BND (Total Bond Market) | Different fund company | 0.99 |
These pairs typically have correlations above 0.95, meaning they move very similarly while avoiding wash sale issues. The slight differences in holdings or methodology are enough to satisfy IRS requirements.
Sector ETF Swaps
Sector ETFs offer more swap opportunities because different fund companies often track different sector indexes:
One dashboard. Fifteen indicators. Five minutes a day.
Recessionist Pro compresses 15 Fed indicators into a single 0-100 Recession Risk Score. No opinions. Just the math.
- Technology: XLK (Technology Select SPDR) ↔ VGT (Vanguard Information Technology)
- Healthcare: XLV (Health Care Select SPDR) ↔ VHT (Vanguard Health Care)
- Financials: XLF (Financial Select SPDR) ↔ VFH (Vanguard Financials)
These swaps work because the ETFs track different indexes with varying inclusion criteria and weighting methodologies.
Want to track recession risk in real-time? Recessionist Pro monitors 15 economic indicators daily and gives you a simple 0-100 risk score. Start your 7-day free trial to see where we are in the economic cycle.
Step-by-Step ETF Swap Process
Executing a proper ETF swap requires careful timing and documentation. Here's the process I use with clients:
- Identify positions with unrealized losses - Focus on losses exceeding $1,000 to make the strategy worthwhile after transaction costs
- Select appropriate swap candidates - Choose ETFs with high correlation but different underlying indexes
- Check your purchase history - Ensure you haven't bought the target ETF within the past 30 days
- Execute the swap on the same day - Sell the losing position and immediately buy the replacement to minimize tracking error
- Set a calendar reminder for 31 days - Mark when you can safely swap back to the original ETF if desired
- Document the trade rationale - Keep records showing the ETFs track different indexes
The key is executing both trades on the same day to minimize the risk of market movement between selling and buying. Most brokers allow you to place both orders simultaneously.
Timing Considerations
Market volatility affects the optimal timing for ETF swaps. During periods of high correlation breakdown, like liquidity crises, even similar ETFs can diverge significantly. This creates both opportunity and risk.
Consider waiting for market stability before executing swaps if:
- The VIX exceeds 30 (indicating high volatility)
- Bid-ask spreads on your target ETFs are wider than 0.05%
- You're swapping during the first or last hour of trading
Common Wash Sale Mistakes to Avoid
Even experienced investors make costly wash sale errors. Here are the most common mistakes I've seen:
Recessionist Pro tracks these indicators (and 14 more) daily. See the live dashboard.
The Dividend Reinvestment Trap
Automatic dividend reinvestment can trigger wash sales without you realizing it. If you sell a position at a loss but have dividend reinvestment enabled, any dividends paid within 30 days before the sale will create a wash sale for the reinvested shares.
Solution: Turn off dividend reinvestment 30 days before any planned tax-loss harvesting, or ensure your broker can identify which specific shares you're selling.
Multiple Account Coordination
The wash sale rule applies across all accounts you control, including:
- Joint accounts with your spouse
- Traditional and Roth IRAs
- 401(k) plans where you direct investments
- Taxable accounts at different brokers
Buying the same security in your IRA while selling it in your taxable account triggers a wash sale, and you can't recover the loss even when you sell the IRA position.
Options Complications
Options on the same underlying security can trigger wash sales with stock positions. Selling Apple stock at a loss while buying Apple call options within 30 days creates a wash sale. This includes:
- Covered calls written against positions you plan to sell
- Cash-secured puts on stocks you're harvesting losses on
- Long calls or puts purchased as hedges
Advanced Strategies for Large Portfolios
Investors with substantial portfolios can use more sophisticated approaches to maximize tax-loss harvesting while avoiding wash sales.
The Direct Indexing Approach
Instead of swapping between ETFs, some investors build their own index using individual stocks. This allows for precise loss harvesting without wash sale concerns, since you can sell losing positions and replace them with similar companies in the same sector.
For example, if you own Microsoft at a loss, you could sell it and buy Apple, maintaining tech exposure without triggering wash sale rules. This strategy works best for portfolios exceeding $250,000 due to the complexity involved.
Factor-Based Rotation
You can rotate between ETFs emphasizing different factors while maintaining broad market exposure:
- Value ETFs (VTV) ↔ Growth ETFs (VUG)
- Equal-weight ETFs (RSP) ↔ Cap-weighted ETFs (SPY)
- Momentum ETFs (MTUM) ↔ Quality ETFs (QUAL)
These swaps avoid wash sale issues because the ETFs use fundamentally different selection and weighting criteria, despite potentially overlapping holdings.
Tax-Loss Harvesting in Different Market Environments
Market conditions significantly impact the effectiveness of tax-loss harvesting strategies. During bear markets, opportunities multiply, but so do the risks of wash sale violations.
In 2022's broad market decline, many investors found themselves with substantial unrealized losses across multiple positions. This created both opportunity and complexity - more positions qualified for tax-loss harvesting, but coordinating swaps across a diversified portfolio became challenging.
Our recession indicators at Recessionist Pro help identify when market stress might create widespread loss-harvesting opportunities. When our composite score exceeds 70, historically about 60% of equity positions in diversified portfolios show unrealized losses suitable for harvesting.
Bear Market Considerations
During extended bear markets like 2008 or early 2022, consider these factors:
- Harvest losses early: Don't wait for year-end when everyone else is selling
- Prioritize high-conviction swaps: Focus on ETF pairs with correlations above 0.98
- Watch for style drift: Market stress can cause ETFs to behave differently than normal
- Consider tax-rate changes: Political uncertainty might affect future capital gains rates
Record Keeping and Compliance
Proper documentation protects you if the IRS questions your ETF swaps. Maintain detailed records showing:
- Trade confirmations with exact dates and amounts
- ETF prospectuses showing different underlying indexes
- Correlation analysis demonstrating the securities aren't substantially identical
- Investment rationale for each swap beyond tax benefits
The IRS examines the economic substance of transactions, so document legitimate investment reasons for your swaps. Simply stating "tax loss harvesting" isn't enough - explain why the replacement ETF fits your investment strategy.
Professional Guidance
Complex situations warrant professional advice:
- Portfolios exceeding $500,000 in taxable accounts
- Significant options positions
- Multiple account types across different institutions
- Previous wash sale adjustments from your broker
A qualified tax professional can review your strategy and ensure compliance with current regulations.
Important: This analysis is for educational purposes and doesn't constitute personalized tax advice. Consult with a qualified tax professional before implementing any tax-loss harvesting strategy, as individual circumstances vary significantly.