The wash sale rule (IRC Section 1091) disallows a tax loss deduction when you sell a security at a loss and buy a "substantially identical" security within 30 days before or after the sale. For active traders making hundreds or thousands of trades per year, wash sales can silently inflate your tax bill by thousands of dollars. Understanding the rule — and knowing the legal strategies to work around it — is essential for tax-efficient trading.
How the Wash Sale Rule Works
The wash sale rule creates a 61-day window (30 days before + the sale date + 30 days after) during which repurchasing a substantially identical security triggers a wash sale:
- You sell Stock A at a $5,000 loss on March 15
- You buy Stock A again on March 25 (within 30 days)
- Result: The $5,000 loss is disallowed for that tax year
- The disallowed loss is added to the cost basis of the replacement shares
- The holding period of the original shares carries over to the new shares
What Are "Substantially Identical" Securities?
The IRS has never precisely defined "substantially identical," but guidance and case law establish:
Clearly substantially identical:
- Shares of the exact same stock (selling AAPL, buying AAPL)
- Options on the same underlying stock
- Contracts to acquire the same stock
- Same cryptocurrency (selling BTC, buying BTC — as of 2025)
Generally NOT substantially identical:
- Different companies in the same industry (selling AAPL, buying MSFT)
- Different ETFs tracking different indices (selling SPY, buying QQQ)
- Bonds from different issuers
- Different cryptocurrencies (selling BTC, buying ETH)
Gray area — use caution:
- ETFs tracking the same index (selling one S&P 500 ETF, buying another)
- Mutual fund vs. ETF of the same index
- Preferred stock vs. common stock of the same company
- Convertible bonds vs. common stock of the same company
Wash Sales Now Apply to Crypto (2025+)
A major change effective for tax years beginning after December 31, 2024: the wash sale rule now applies to digital assets. Previously, crypto traders could sell Bitcoin at a loss and immediately repurchase it without wash sale implications. That loophole is closed.
What this means for crypto traders:
- Selling BTC at a loss and buying BTC within 30 days = wash sale
- Selling ETH at a loss and buying ETH within 30 days = wash sale
- Selling BTC at a loss and buying ETH = likely NOT a wash sale (different assets)
- Tax-loss harvesting in crypto now requires the same 31-day waiting period as stocks
The IRA/401(k) Trap — Closed but Still Relevant
A critical rule many traders don't know: buying a substantially identical security in your IRA or 401(k) within the 30-day window also triggers a wash sale. Worse, when the wash sale involves a tax-advantaged account:
- The loss is disallowed in your taxable account
- The cost basis adjustment does NOT transfer to the IRA (since IRAs don't track cost basis for tax purposes)
- The loss is permanently lost — you can never claim it
This is one of the most expensive wash sale mistakes a trader can make.
How Wash Sales Affect Active Traders
For buy-and-hold investors, wash sales are rare. For active traders, they're pervasive. Consider this scenario:
You trade NVDA daily, buying and selling multiple times per week. On any given day, you might sell at a loss and repurchase within hours. Every one of those transactions is a potential wash sale. Over a year of active trading in the same securities, wash sales can:
- Defer thousands of dollars in losses to future periods
- Create a massive cost basis tracking headache
- Result in significantly higher taxable income than your actual economic gain
- In worst cases, show a taxable gain even when your account lost money overall
Strategies to Manage Wash Sales
1. Elect Section 475 Mark-to-Market
The most powerful solution: Section 475(f) mark-to-market eliminates wash sale concerns entirely for covered securities. Since all positions are treated as sold at year-end at fair market value, with gains and losses as ordinary, the wash sale rule doesn't apply. This is the primary reason many active traders make the Section 475 election.
2. Wait 31 Days
The simplest approach: after selling at a loss, wait at least 31 calendar days before repurchasing the same security. For tax-loss harvesting at year-end, sell losing positions before December 1 and wait until January to repurchase.
3. Substitute with a Similar (Not Identical) Security
Sell the losing position and immediately buy a similar but not substantially identical security:
- Sell one tech stock, buy a different tech stock
- Sell one S&P 500 ETF (SPY), buy a total market ETF (VTI)
- Sell individual stock, buy sector ETF
4. Close All Positions by Year-End
If you close ALL positions in a security by December 31 and don't repurchase within 30 days (through January 30), all deferred wash sale losses become recognized. This is a common year-end strategy for active traders who don't have Section 475.
Frequently Asked Questions
What is the wash sale rule 30-day window?
The wash sale rule looks at a 61-day window: 30 calendar days before the sale, the sale date itself, and 30 calendar days after the sale. If you sell a security at a loss and buy a substantially identical security anywhere within this window, the loss is disallowed and added to the cost basis of the replacement shares.
Does the wash sale rule apply to cryptocurrency in 2026?
Yes. Starting for tax years after December 31, 2024, the wash sale rule applies to digital assets including Bitcoin, Ethereum, and other cryptocurrencies. If you sell crypto at a loss and repurchase the same crypto within 30 days, the loss is disallowed. Trading between different cryptocurrencies (e.g., selling BTC and buying ETH) generally does not trigger a wash sale since they are not substantially identical.
Can the Section 475 election eliminate wash sale problems?
Yes. The Section 475(f) mark-to-market election is the most effective solution for active traders dealing with frequent wash sales. Under Section 475, all positions are treated as sold at fair market value on the last business day of the year, and all gains and losses are ordinary. The wash sale rule does not apply to securities covered by the Section 475 election.
What happens if a wash sale occurs between a taxable account and an IRA?
This is the worst wash sale scenario. If you sell a security at a loss in a taxable account and buy it within 30 days in an IRA, the loss is permanently disallowed — you cannot claim it in the taxable account, and the cost basis adjustment does not transfer to the IRA. The loss is effectively destroyed. Always avoid triggering wash sales across taxable and retirement accounts.
Need Help With Your Trader Taxes?
At Mello Tax Group, we specialize in tax preparation and planning for traders, self-employed individuals, and small business owners. Jordan McAfee, EA, will review your situation and build a strategy to minimize your tax burden legally. We serve clients in Sacramento and all 50 states. Schedule Your Consultation → Or call (650) 686-5219