Wash Sale
Quick Definition
An IRS rule that disallows a tax deduction for a loss if you repurchase the same or substantially identical security within 30 days before or after the sale.
Key Takeaways
- The wash sale rule disallows a tax loss if you buy the same or substantially identical security within 30 days before or after selling — the 61-day total window catches many unsuspecting investors
- The loss isn't permanently lost — it's added to the replacement shares' cost basis, deferring the tax benefit until the final sale. But the time value of the deferred deduction is lost
- To properly tax-loss harvest without triggering wash sales, buy a similar but not identical investment (e.g., sell VOO, buy VTI) and track the rule across ALL accounts including IRAs
What Is Wash Sale?
A wash sale occurs when you sell a security at a loss and then repurchase the same or a "substantially identical" security within a 61-day window (30 days before or after the sale). The IRS wash sale rule (Section 1091) prevents taxpayers from claiming an artificial tax loss while essentially maintaining the same investment position — it closes the loophole of selling to harvest a loss and immediately buying back.
The rule doesn't eliminate the loss — it defers it by adding the disallowed loss to the cost basis of the replacement shares. If you buy Stock A at $100, sell at $80 (a $20 loss), and repurchase within 30 days at $82, the wash sale rule disallows the $20 loss deduction. Instead, your new cost basis becomes $102 ($82 purchase price + $20 disallowed loss). When you eventually sell the replacement shares, the deferred loss reduces your future gain or increases your future loss.
The "substantially identical" rule extends beyond the exact same stock. Selling Apple stock and buying an Apple call option would trigger a wash sale. Selling an S&P 500 index fund from Vanguard and buying an S&P 500 fund from Fidelity would likely be considered substantially identical. However, selling an S&P 500 fund and buying a total stock market fund is generally considered different enough to avoid the rule, despite high correlation.
The wash sale rule applies across all your accounts — selling at a loss in a taxable account and buying in your IRA within 30 days triggers the rule. This is a common and costly mistake. For active tax-loss harvesters, tracking the 61-day window across all accounts is essential. Many robo-advisors and tax-loss harvesting services automatically manage wash sale compliance, which is one of their most valuable features.
Wash Sale Example
- 1On December 15, you sell 200 shares of Microsoft at a $4,000 loss to harvest tax savings. On January 5 (21 days later), you repurchase 200 shares of Microsoft. The wash sale rule disallows your $4,000 loss deduction because you repurchased within 30 days. To properly harvest this loss, you could instead buy a technology sector ETF (like XLK) during the 30-day window to maintain tech exposure without triggering the rule.
- 2An investor sells Vanguard S&P 500 ETF (VOO) at a $3,000 loss and immediately buys iShares Core S&P 500 ETF (IVV). Both track the identical S&P 500 index and are likely "substantially identical" — triggering the wash sale rule. A safer alternative would be buying a total stock market ETF (VTI) or a large-cap growth ETF that has different composition, avoiding the wash sale while maintaining similar market exposure.
Related Terms
Tax-Loss Harvesting
Selling investments at a loss to offset capital gains taxes, then reinvesting in similar (but not identical) assets.
Capital Gains
The profit realized when an investment is sold for more than its purchase price, subject to taxation at rates that vary based on holding period and income level.
Realized Gains
Profits that have been locked in by actually selling an investment at a price higher than the purchase price, triggering a taxable event.
Cost Basis
The original value or purchase price of an investment, adjusted for stock splits, dividends, and return of capital, used to calculate capital gains or losses for tax purposes.
Unrealized Loss
A loss on an investment that has declined in value but has not been sold, also known as a "paper loss."
Dividend
A distribution of a company's profits to shareholders, typically paid quarterly in cash or additional shares.
Expand Your Financial Vocabulary
Explore 130+ financial terms with definitions, examples, and formulas
Browse General Investing Terms