Wash Sale Rule
An IRS rule that disallows claiming a capital loss if you buy the same or substantially identical security within 30 days before or after the sale.
What You Need to Know
The wash sale rule prevents you from gaming the tax system by selling an investment for a loss, claiming the tax deduction, then immediately buying it back.
The Rule: You CANNOT claim a capital loss if you:
- Sell a stock/fund at a loss, AND
- Buy the same (or "substantially identical") investment within 30 days before or after the sale
The 30-Day Window:
- 30 days BEFORE the sale
- Day of sale
- 30 days AFTER the sale
- Total: 61-day window where you can't repurchase
Example Violation:
- Dec 10: Sell Apple stock for $5,000 loss
- Dec 15: Buy Apple stock again
- Result: $5,000 loss is disallowed
- The loss is added to the cost basis of the new shares (deferred, not lost forever)
What "Substantially Identical" Means:
Definitely Identical:
- Same stock (Apple → Apple)
- Same ETF (VOO → VOO)
- Same mutual fund
Probably Identical (IRS may disallow):
- Apple stock → Apple call options
- VOO → SPY (both S&P 500 ETFs)
Definitely NOT Identical:
- Apple → Microsoft
- VOO → VTI (S&P 500 vs. Total Market)
- Individual stock → sector ETF
Workarounds for Tax-Loss Harvesting:
Strategy 1: Wait 31 Days
- Sell losing position
- Wait 31 calendar days
- Buy it back
- Risk: Price might recover during wait
Strategy 2: Buy Similar (Not Identical)
- Sell VOO (S&P 500 ETF)
- Buy VTI (Total Market ETF) immediately
- Maintain market exposure, avoid wash sale
Strategy 3: Double Down Then Sell
- Own Apple at $10,000 loss
- Buy $10,000 MORE Apple today
- Wait 31 days
- Sell original shares at loss
- Keep new shares
Broker Tracking: Most brokers flag wash sales on Form 1099-B. But they only track within the same account—if you have multiple accounts (including spouse's IRA!), you must track manually.
IRA Trap: Selling in taxable account at a loss, then buying in IRA within 30 days = permanent loss disallowance (can't be added to cost basis).
Penalty: No penalty, just loss disallowed. The disallowed loss gets added to cost basis of replacement shares—you eventually get the benefit when you sell those.
Sources & References
This information is sourced from authoritative government and academic institutions:
- irs.gov
https://www.irs.gov/publications/p550#en_US_2022_publink100010601
Related Calculators & Tools
Put your knowledge into action with these interactive tools:
Capital Gains Tax Calculator
Calculate federal and state capital gains taxes on stocks, crypto, real estate. Compare short-term vs long-term rates and get tax optimization strategies
Crypto Tax Calculator
Calculate cryptocurrency taxes with FIFO/LIFO cost basis tracking - short-term vs long-term gains, mining income, Form 8949 prep
Related Terms in Investment Analysis
Appreciation
The increase in an asset's value over time, whether it's real estate, stocks, or other investments.
Asset Class
A group of investments with similar behavior, risk, and regulatory profiles (e.g., stocks, bonds, cash).
Bond
A fixed-income investment where you loan money to a government or corporation in exchange for regular interest payments.
Bond Yield
The return an investor earns on a bond, expressed as a percentage, which can be calculated as current yield (annual interest ÷ current price) or yield to maturity (total return if held until maturity).
Capital Gains Tax
Tax on profits from selling investments like stocks, bonds, or real estate.
Capital Loss
A loss realized when you sell an investment for less than you paid for it, which can offset capital gains for tax purposes.