Direct Answer
The wash-sale rule can disallow a tax loss when an investor sells stock or securities at a loss and acquires substantially identical stock or securities within the statutory period around the sale. A disallowed loss is often deferred through basis adjustment on the replacement shares rather than permanently lost, but IRA-related wash sales can produce less favorable results. Tax-loss harvesting is the deliberate strategy of realizing selected losses to improve after-tax portfolio outcomes while maintaining appropriate investment exposure through a carefully chosen replacement.
Key Takeaways
- The wash-sale rule looks at a window around a loss sale, so replacement purchases before the sale can matter as well as purchases after it.
- Substantially identical is a tax concept, not simply "same ticker," and the analysis depends on facts and circumstances.
- A disallowed taxable-account wash-sale loss is often deferred through basis adjustment rather than permanently lost, but IRA-related cases require special care.
- Automatic dividend reinvestment and purchases in other accounts can unintentionally create wash sales.
- Tax-loss harvesting should preserve the portfolio's risk exposure and expected return rather than create large tracking error for a tax benefit.
The Wash-Sale Window
Federal wash-sale rules examine purchases of substantially identical stock or securities within a period that extends before and after the loss sale. Investors often remember only the days after the sale and forget that a replacement purchase shortly before the disposition can also matter. Because exact dates matter, use a transaction calendar rather than a month-based shortcut.
Why this changes the decision
A pre-trade screen should look backward and forward. This makes recurring purchases and automated contributions important because the investor may already have acquired replacement shares before deciding to harvest.
Research question: What purchases of the same or potentially substantially identical security occurred before the sale, and what automated purchases are scheduled afterward?
Substantially Identical Is Not a Simple Ticker Test
The tax code and IRS guidance use the phrase "substantially identical," but do not provide a universal fund-by-fund safe list. Shares of the same company are an obvious concern. Funds tracking the same index or derivatives tied tightly to the same security require more careful analysis. Investors should avoid presenting a self-created similarity score as a legal determination.
Why this changes the decision
A tax-aware replacement tool should rank portfolio similarity separately from wash-sale confidence. The first is an investment question; the second is a tax question. Conflating them can create false precision.
Research question: Does the replacement maintain the desired exposure, and has a qualified source or professional addressed whether the two instruments are substantially identical?
Basis Adjustment and Deferred Loss
In many taxable-account wash-sale situations, the disallowed loss is added to the basis of replacement shares and the holding period can be affected under applicable rules. This means the economic tax benefit may be deferred to a later disposition rather than simply erased. Correct basis records are essential so the deferred amount is not lost from the taxpayer's history.
Why this changes the decision
The investor should track the adjusted replacement lot rather than evaluate harvesting only on the day of sale. The future tax effect is part of the strategy's lifecycle.
Research question: After any wash-sale adjustment, can you reconcile the replacement lot's new basis and holding-period information?
Cross-Account and IRA Risk
Purchases outside the selling taxable account can matter. An investor may sell at a loss in one account while a spouse, managed account, dividend reinvestment program or IRA acquires the security. IRA interactions can be particularly unfavorable and should be reviewed carefully using current IRS guidance and qualified tax advice.
Why this changes the decision
Centralized household transaction awareness is a major operational advantage. A brokerage-level screen that sees only one account can miss activity elsewhere.
Research question: Which accounts, automated plans and household transactions could acquire the exposure during the relevant period?
Tax-Loss Harvesting Versus Investment Loss
A tax loss is not free money. The investor first suffered an economic decline. Harvesting may improve the timing or use of that loss, but it does not reverse the investment loss. The strategy also can lower basis in the replacement exposure, potentially increasing future gain.
Why this changes the decision
Evaluate harvesting based on expected present value of tax benefits minus tracking error, spreads, fees and complexity. Larger losses are not automatically better if the replacement damages the portfolio.
Research question: What is the expected tax value after accounting for future basis, trading cost and replacement risk?
Replacement-Security Design
A replacement should keep the portfolio near its intended factor, sector, duration or asset-class exposure while being selected conservatively with respect to wash-sale risk. For diversified funds, investors sometimes use a different index or methodology, but the tax determination is facts-and-circumstances based. Document why the replacement is appropriate as an investment, not merely why it seems tax-distinct.
Why this changes the decision
Good replacements minimize unwanted tracking error. If the portfolio's return diverges significantly during the replacement period, the tax benefit can be offset by market performance.
Research question: What characteristics must remain stable, such as beta, sector weights, duration, credit quality and geography, and how different can the replacement be before the portfolio drifts?
Automated Reinvestment and Recurring Buys
Dividend reinvestment plans and recurring investment schedules can purchase small replacement lots without the investor noticing. Those small purchases can complicate wash-sale accounting and create multiple adjusted lots. Before harvesting, inspect automation across relevant accounts and decide whether temporarily pausing a purchase is appropriate.
Why this changes the decision
The best tax-loss-harvesting system includes an automation inventory. Manual trade review alone is not enough in a household using recurring investment programs.
Research question: Which dividends, payroll contributions, robo allocations or scheduled trades can execute during the window?
Decision Framework: Loss, Window, Accounts, Replacement, Basis
Confirm a genuine loss on the intended tax lot. Map the statutory window around the sale. Search all relevant accounts and automation for replacement activity. Choose a replacement that preserves investment exposure without relying on an overconfident tax conclusion. Reconcile the resulting basis and holding period. Repeat the check before repurchasing the original exposure.
Scenario: Broad-market ETF harvest
An investor holds a broad U.S. equity ETF at a material loss and wants to remain fully invested. The investor reviews recent purchases, turns off automatic reinvestment where appropriate, maps other household accounts, and identifies a replacement fund with a meaningfully different index methodology that still provides broad U.S. exposure. The investor does not call the replacement wash-sale proof. Instead, the investor documents the exposure difference and consults current tax guidance if the similarity question is material.
Scenario: Loss sale followed by IRA purchase
A taxable account sells a security at a loss while an IRA automatically buys the same security. This is exactly the kind of cross-account sequence that a one-account harvesting tool can miss. Because IRA-related wash-sale consequences can be especially problematic, the investor stops further automation and reviews the transaction with current IRS guidance or a tax professional rather than assuming the loss merely transfers to IRA basis.
Scenario: Small loss with high trading friction
A security is down modestly, but replacing it would require crossing a wide spread and accepting substantial tracking error. The expected tax value is small. The rational answer can be to do nothing. Harvesting is a portfolio optimization tool, not a requirement to realize every available loss.
Common Mistakes and How to Correct Them
- Counting only purchases after the loss sale. Review purchases before and after the sale within the applicable window.
- Checking only one brokerage account. Other taxable accounts, IRAs and automated plans can create relevant replacement activity.
- Calling two funds safe because tickers differ. Substantially identical is not a ticker test. Avoid definitive claims without appropriate tax analysis.
- Forgetting basis adjustments. A disallowed loss can change replacement-lot basis. Preserve records.
- Sitting in cash without measuring opportunity cost. A replacement should keep risk near target when possible. Market moves can exceed the tax benefit.
- Harvesting tiny losses constantly. Trading friction and complexity can exceed the expected tax value. Set materiality thresholds.
Step-by-Step Research Workflow
1. Export loss lots
Rank unrealized losses by dollar amount, percentage and holding period.
2. Estimate tax value
Place the loss into the expected annual gain/loss picture and use current taxpayer assumptions.
3. Map prior purchases
Search the relevant pre-sale period across accounts and automation.
4. Select candidate replacements
Compare portfolio exposures and document the investment rationale for each candidate.
5. Review wash-sale uncertainty
For potentially similar securities or cross-account cases, use primary guidance and professional advice where material.
6. Pause conflicting automation
Temporarily adjust recurring buys or reinvestment when appropriate to avoid accidental replacement activity.
7. Execute and document
Record sold lots, replacement purchases and the intended investment exposure.
8. Reconcile basis and repurchase timing
Verify broker basis adjustments and recheck the window before returning to the original security.
Frequently Asked Questions
What is a wash sale?
It is a tax-rule situation that can disallow a current loss when substantially identical stock or securities are acquired within the applicable period around a loss sale.
Is the rule only 30 days after the sale?
No. Purchases before the loss sale can also be relevant. Review the full statutory window.
Does a wash sale mean the loss is gone forever?
In many taxable-account cases, the loss is deferred through basis adjustment. IRA-related situations can differ and deserve special care.
Can dividend reinvestment trigger a wash sale?
Automatic purchases can be relevant if they acquire substantially identical securities within the window.
Can I buy a different ETF?
Possibly, but substantially identical is a facts-and-circumstances tax question. A different ticker alone is not a legal safe harbor.
Do wash sales matter across accounts?
They can. Cross-account and IRA purchases should be reviewed carefully.
Is tax-loss harvesting always beneficial?
No. Trading cost, tracking error, future basis and tax circumstances can reduce or eliminate the expected benefit.
Can I harvest losses during the year?
Yes, investors can review losses when they become material rather than only at year-end, subject to the same rules.
How do I track adjusted basis?
Use broker records and personal tax-lot records, and reconcile any wash-sale adjustments before later sales.
Does this rule apply identically to every asset?
No. Asset classification matters. Verify current law for the specific instrument rather than extending stock rules by analogy.
References
Disclaimer
This content is for educational purposes only and does not constitute investment, financial, tax, legal, or accounting advice. Tax law, IRS forms, thresholds, and brokerage procedures can change. Verify the current tax year, the taxpayer's facts, and primary IRS guidance before making a filing or transaction decision. See our Financial Disclaimer for more information.