Wash-Sale Rule and Mutual Funds
The wash sale rule disallows a loss deduction when you sell a mutual fund at a loss and buy a substantially identical fund within 30 days — a trap that catches many investors trying to harvest losses in the same fund family. The key is understanding what the IRS means by “substantially identical” and how to avoid it.
Why the Rule Exists
The wash sale rule exists to prevent “loss harvesting abuse” — a strategy where investors sell securities at a loss for the tax deduction while immediately re-entering the same position, keeping the exposure but claiming the write-off. The IRS viewed this as tax arbitrage with no real economic consequence: you’ve changed nothing but your tax bill. By forcing you to choose between the loss or the position, the rule aligns your tax interest with your economic interest.
For individual stocks, the boundary is clear: General Motors stock is not substantially identical to Ford. For mutual funds, the boundary is messier because funds are already diversified collections. A loss on Vanguard Total Stock Market can usually not be salvaged by buying SPDR S&P 500 or iShares Core S&P 500 — they track the same benchmark and are treated as substantially identical. But swapping Total Stock Market for a small-cap value fund is usually safe; they’re meaningfully different.
The same-fund-family trap is the most common pitfall. Many investors think “I’ll shift to a different style within my provider,” unaware that the IRS doesn’t care about the provider; it cares about whether the fund itself or any replacement is substantially identical to the one sold.
The 30-Day Window: Full Mechanics
The window is not 30 days after the sale; it is 30 days before and 30 days after, creating a 61-day danger zone. Specifically:
- You sell a fund at a loss on Day 0.
- Purchases between Day −30 and Day −1 (before the sale) can trigger the rule.
- Purchases between Day +1 and Day +30 (after the sale) can trigger the rule.
- Day 0 itself (the sale date) and Day +31 onward are safe.
This is why a common mistake happens when an investor buys a replacement fund in January with the intention of selling the original at a loss in February. If the new purchase falls within 30 days before the loss sale, the wash sale rule applies retroactively, even though the purchase came first. Many tax software systems do miss this lookback, which is why advisors recommend manually reviewing the sequence.
Substantially Identical: The Gray Area
The IRS hasn’t published a comprehensive list of which funds are substantially identical, leaving it partially subjective. However, settled cases and IRS guidance make a few patterns clear:
- Same fund, same provider: Obviously identical. Selling Fidelity Emerging Markets at a loss and buying Fidelity Emerging Markets again within 30 days is a wash sale.
- Funds with the same benchmark: A loss on the Vanguard S&P 500 ETF swapped for an iShares S&P 500 ETF is usually treated as substantially identical because they track the same index.
- Active funds with similar holdings: This is grayer. An actively managed growth fund and another actively managed growth fund may or may not be substantially identical depending on how similar their holdings are. The burden of proof is on you to document that they’re materially different.
- Different asset classes: A small-cap fund for a mid-cap fund, or a value fund for a growth fund, are generally not substantially identical because the economic exposure is different.
Some investors use “overlap analysis” — comparing the portfolio compositions of the original and replacement funds to argue they’re not substantially identical. This is defensible if the overlap is low, but it requires documentation and is somewhat fact-dependent. When in doubt, waiting 31 days or longer is the safest approach.
Cost Basis Adjustment When the Rule Applies
The wash sale rule doesn’t erase the loss; it defers it. When you buy a substantially identical fund within the window, the disallowed loss is added to the cost basis of the new fund. This increases your tax basis, reducing future gains or deferring the loss until you eventually sell without triggering another wash sale.
Example: You buy Fund A at $10,000, sell it at $8,000 (a $2,000 loss), and buy Fund B (substantially identical) at $8,000 within 30 days. The $2,000 loss is disallowed for this year. Your basis in Fund B is now $10,000, not $8,000. If Fund B grows to $12,000 and you sell it later (outside any wash-sale window), your gain is only $2,000 instead of $4,000, effectively recovering the deferred loss.
This mechanism means the deduction is rarely truly lost — it’s just postponed until you eventually exit the position permanently.
Same-Family Fund Substitutions
The most dangerous scenario for mutual fund investors is within a single fund family. Suppose you own a Vanguard Total Bond Market fund at a loss. You want to harvest that loss but stay in bonds. You sell the Total Bond fund and buy the Vanguard Short-Term Bond fund (or the Vanguard Intermediate-Term Bond fund) within 30 days. The IRS will likely challenge both of these as substantially identical, even though one is short-term and one is intermediate. They’re tracking different portions of the same bond market and serve the same purpose: fixed-income exposure within a similar risk profile.
This is why many sophisticated investors, when doing loss harvesting, use competing providers. Sell Vanguard Total Stock and buy Fidelity Total Market, which is a cleaner argument for non-identity. Or sell the large-cap fund and genuinely shift to small-cap or international, changing your actual exposure profile.
Documentation and Tracking
The IRS requires you to keep records supporting your position that a replacement fund is not substantially identical. This means:
- Documenting the dates of sale and purchase.
- Noting the specific funds involved.
- Keeping a copy of each fund’s prospectus or fact sheet to show differences if challenged.
- Flagging transactions in your tax software or on Schedule D to ensure the loss deduction is claimed in the right year (or deferred).
Many brokerages now flag wash-sale transactions automatically, but their algorithms may be overly conservative, flagging as wash sales transactions that wouldn’t withstand IRS scrutiny. Conversely, some software misses the 30-day lookback window. Manual review is still recommended, especially for multi-fund families.
Impact on Loss Harvesting Strategies
The wash sale rule is the reason tax-loss harvesting within mutual funds is an active, planned strategy rather than a passive opportunity. Disciplined investors:
- Plan which funds to sell and which to buy as replacements before executing.
- Ensure at least 31 days elapse between selling one fund and buying a replacement (when possible).
- Use non-identical replacements (different asset class, different manager, different benchmark) when they want to maintain the market exposure.
- Document the non-identity with prospectus comparisons if relying on a close substitution.
Careless execution — selling at a loss and reflexively buying back something “close enough” in the same family — is the most expensive mistake. The deduction is lost for that year, and the burden of recovering it through the cost-basis adjustment falls on the investor’s future tax planning.
See also
Closely related
- Tax-Loss Harvesting — the broader strategy of intentionally selling securities at losses for tax benefit
- Cost Basis — how the adjusted basis applies after a wash sale
- Schedule D — where loss deductions are reported on the tax return
- Mutual Fund — the security type most affected by this rule in retail portfolios
- Active ETF — alternative funds that may not be “substantially identical” to traditional active mutual funds
Wider context
- Capital Gains Tax (Investor) — the broader tax framework within which wash sales operate
- Equity ETF — often used as a replacement vehicle in harvesting strategies
- Bond ETF — frequently involved in fixed-income loss harvesting
- Securities and Exchange Commission — the regulator that oversees mutual funds and ETFs