Wash Sale Rule: What Traders Need to Know
Understand the IRS wash sale rule, how it affects trading tax deductions, and why forex spot traders are generally exempt under Section 988.
Start Free TrialNo credit card required
The wash sale rule disallows a tax deduction on a security sold at a loss if a substantially identical security is purchased within 30 days before or after the sale.
Key Rules
30-Day Window
If you sell a security at a loss and buy a substantially identical security within 30 days before or after the sale, the loss is disallowed for tax purposes.
Substantially Identical Securities
The rule applies when you repurchase the same or a substantially identical security. This includes stocks, ETFs tracking the same index, and options on the same underlying.
Cost Basis Adjustment
Disallowed losses are not permanently lost — they are added to the cost basis of the replacement security, deferring the tax benefit until the replacement is sold.
Applies Across Accounts
The wash sale rule applies across all your accounts, including IRAs, 401(k)s, and spousal accounts. Buying in one account after selling at a loss in another still triggers the rule.
Forex Spot Trading Exemption
Forex spot contracts taxed under IRC Section 988 are generally not considered securities for wash sale purposes. However, forex futures and options on futures may be subject to the rule.
No De Minimis Exception
There is no minimum loss threshold. Even a $1 loss on a security can trigger the wash sale rule if you repurchase within the 30-day window.
Practical Examples
You sell 100 shares of SPY at a $500 loss on March 1, then buy 100 shares of SPY on March 15. The $500 loss is disallowed and added to the cost basis of the new shares.
You close a losing EUR/USD spot forex position and reopen the same pair 10 minutes later. Since forex spot is taxed under Section 988, the wash sale rule generally does not apply.
You sell a stock at a loss in your taxable brokerage account and buy the same stock in your IRA within 30 days. The loss is permanently disallowed — you cannot add it to the IRA cost basis.
You sell an S&P 500 ETF (SPY) at a loss and immediately buy a different S&P 500 ETF (VOO). The IRS may consider these substantially identical, triggering a wash sale.
Who This Applies To
US traders who trade securities; forex spot trading under Section 988 is generally exempt
How PipJournal Helps
PipJournal automatically timestamps every trade with entry and exit dates, making it straightforward to identify potential wash sale windows during tax season. The detailed trade log with pair, direction, and timing data gives you and your tax professional the records needed to assess wash sale applicability across your trading activity.
The wash sale rule is one of the most misunderstood tax provisions among active traders. It can silently inflate your tax bill by disallowing losses you assumed were deductible — and most traders don’t discover the problem until they’re staring at an unexpected 1099-B during tax season.
If you trade US securities, understanding this rule isn’t optional. If you trade forex, you’re likely exempt — but knowing why matters for your overall tax strategy.
What Is the Wash Sale Rule?
The wash sale rule is an IRS provision under IRC Section 1091 that prevents traders from claiming a tax deduction on a security sold at a loss if they purchase a “substantially identical” security within a 61-day window — 30 days before or 30 days after the sale.
The purpose is straightforward: the IRS doesn’t want traders selling at a loss purely for the tax deduction while maintaining the same market position.
The 61-day window explained:
- 30 days before the loss sale
- The day of the loss sale
- 30 days after the loss sale
If you acquire a substantially identical security at any point during this window, the loss is disallowed.
Who Does the Wash Sale Rule Affect?
The wash sale rule primarily affects:
- Stock traders who actively trade individual equities
- Options traders buying and selling options on the same underlying
- ETF traders who trade overlapping or identical index funds
- Any US taxpayer who trades securities in taxable accounts
Who Is Generally Exempt
- Forex spot traders — Spot forex is taxed under Section 988 as ordinary income/loss and is generally not classified as a security for wash sale purposes
- Traders with Section 475(f) election — Mark-to-Market accounting eliminates wash sale concerns entirely
- Traders in tax-advantaged accounts only — Though this creates other complications
This exemption is one reason many active traders prefer the forex market. If you’re trading EUR/USD, GBP/JPY, or any spot forex pair, the wash sale rule is unlikely to apply to your trading. Learn more about forex tax treatment.
Key Rules in Detail
The 30-Day Window Is Wider Than You Think
Most traders think the wash sale window is 30 days after the sale. It’s actually 30 days in both directions. If you buy shares of a stock on February 15 and sell at a loss on March 10 (23 days later), that’s a wash sale — the purchase preceded the loss sale within the 30-day window.
”Substantially Identical” Is Broader Than You Think
The IRS has never provided a comprehensive definition of “substantially identical.” What’s clear:
- Same stock = wash sale. Selling AAPL and buying AAPL is always a wash sale.
- Same ETF = wash sale. Selling SPY and buying SPY triggers the rule.
- Options on the same underlying can trigger wash sales with the underlying stock.
What’s less clear:
- Two ETFs tracking the same index (e.g., SPY and VOO both track the S&P 500) — the IRS may consider these substantially identical
- Mutual funds and ETFs tracking the same index
- Convertible bonds and the underlying stock
Cross-Account Rules Are Your Responsibility
Your broker tracks wash sales within a single account. But the rule applies across all your accounts — your Schwab taxable account, your Fidelity IRA, and even your spouse’s accounts.
If you sell stock at a loss in your brokerage account and your spouse buys the same stock in their account within 30 days, that’s a wash sale. Brokers won’t catch this. You have to.
The IRA Trap
This is the most expensive wash sale mistake: selling a security at a loss in a taxable account and buying it within 30 days in an IRA. The loss is disallowed in the taxable account, but because you can’t adjust cost basis in an IRA, the loss is permanently lost. You never get the deduction.
Real-World Examples
Example 1: Standard Wash Sale
You bought 500 shares of Tesla (TSLA) at $250. The stock drops to $200 and you sell, realizing a $25,000 loss. Two weeks later, Tesla bounces and you buy 500 shares at $210.
Result: The $25,000 loss is disallowed. Your new cost basis becomes $260 ($210 purchase price + $50/share disallowed loss). You’ll realize the loss when you sell the replacement shares — assuming you don’t trigger another wash sale.
Example 2: Forex Trader — No Wash Sale
You go long EUR/USD at 1.0850, hit your stop at 1.0800 for a 50-pip loss, then re-enter long EUR/USD at 1.0820 ten minutes later. Under Section 988, forex spot trading is not subject to the wash sale rule. Your 50-pip loss is fully deductible as an ordinary loss.
This is a significant advantage of forex trading for active US traders.
Example 3: Year-End Tax Planning Gone Wrong
On December 28, you sell a losing stock position to realize the loss for the current tax year. On January 3, you buy the same stock back. The wash sale rule applies across calendar years — your loss from December is disallowed and added to the January cost basis.
Example 4: ETF Switcharoo
You sell Vanguard S&P 500 ETF (VOO) at a loss and immediately buy SPDR S&P 500 ETF (SPY). Both track the same index with nearly identical holdings. The IRS could classify these as substantially identical, disallowing your loss. A safer tax-loss harvesting move would be switching to a total market fund or a different index entirely.
How PipJournal Helps with Tax Record-Keeping
Keeping detailed trade records is the foundation of accurate tax reporting — whether you’re dealing with wash sales, Section 988 elections, or general record-keeping requirements.
PipJournal automatically logs every trade with precise timestamps, pair information, entry and exit prices, position sizes, and P&L calculations. During tax season, this trade log becomes your primary reference document for identifying potential wash sale windows and providing your tax professional with the data they need.
For forex traders specifically, PipJournal’s comprehensive trade history supports Section 988 reporting by maintaining the detailed records the IRS requires. Paired with PipJournal’s analytics, you can also pull performance reports filtered by date range — useful for quarterly estimated tax calculations.
Proper record-keeping isn’t just good trading practice — it’s a tax requirement.
How to Avoid Wash Sale Problems
- Wait 31 days before repurchasing the same or substantially identical security after a loss sale
- Use tax-loss harvesting properly — swap into a different, non-identical investment
- Consider the Section 475(f) election if you qualify as a full-time trader — this eliminates wash sale concerns entirely
- Trade forex — spot forex under Section 988 is generally exempt from wash sale rules
- Track across all accounts — don’t assume your broker is catching everything
- Keep detailed trade logs — you’ll need them if the IRS questions your deductions
Common Mistakes Traders Make
Thinking the rule only looks forward. The 30-day window looks backward too. A purchase 29 days before a loss sale triggers a wash sale.
Ignoring cross-account transactions. Selling at a loss in a taxable account while your IRA auto-purchases the same fund triggers a wash sale — and the IRA version is the most expensive because the loss is permanently disallowed.
Assuming different share classes or ETFs are safe. Two ETFs tracking the same index may be considered substantially identical. When in doubt, consult your tax advisor.
Not tracking wash sales throughout the year. Waiting until tax season to sort this out is painful. Using a trading journal that timestamps every trade makes year-end reconciliation dramatically easier.
Disclaimer
This content is for educational purposes only and does not constitute tax, legal, or financial advice. Tax rules are complex and change frequently. Consult a qualified tax professional or attorney for guidance specific to your situation. PipJournal is a trade journaling tool, not a tax advisor.
This content is for educational purposes only and does not constitute tax, legal, or financial advice. Consult a qualified tax professional or attorney for guidance specific to your situation.
Frequently Asked Questions
Does the wash sale rule apply to forex trading?
Generally no. Forex spot trading taxed under IRC Section 988 is not subject to the wash sale rule because spot forex contracts are not classified as securities. However, forex futures and options on regulated exchanges may be subject to the rule under Section 1256. Always confirm with a tax professional.
What happens to a disallowed wash sale loss?
The disallowed loss is added to the cost basis of the replacement security. This means the tax benefit is deferred, not eliminated. When you eventually sell the replacement security without triggering another wash sale, you will realize the combined loss.
Can wash sales carry over into the next tax year?
Yes. If you sell a security at a loss in December and repurchase it in January within the 30-day window, the loss from the prior tax year is disallowed and added to the cost basis of the new shares in the current year.
Does the wash sale rule apply to cryptocurrency?
As of 2025, the IRS treats cryptocurrency as property. The wash sale rule historically applied only to securities and did not cover crypto. However, new legislation effective in 2026 extends wash sale rules to digital assets. Check with your tax advisor for the latest guidance.
How do I avoid triggering the wash sale rule?
Wait at least 31 days before repurchasing a substantially identical security after selling at a loss. Alternatively, you can buy a similar but not substantially identical investment — for example, switching from one sector ETF to a different sector ETF.
Do brokers report wash sales to the IRS?
Brokers are required to track and report wash sales on Form 1099-B, but only within the same account at that broker. They do not track wash sales across different brokers or account types, which means you are responsible for identifying cross-account wash sales.
Can day traders avoid the wash sale rule?
Active day traders who qualify for trader tax status (TTS) can elect Mark-to-Market accounting under Section 475(f), which exempts them from the wash sale rule entirely. This election must be made by the tax filing deadline for the prior year and has other significant tax implications.
Stay Compliant With Your Journal
PipJournal helps you maintain the records you need for tax reporting and regulatory compliance.
Start Free TrialNo credit card required