Tax-loss harvesting can be a smart way to reduce your taxable income—but only if you do it correctly. Many investors fall into a common trap that wipes out the benefit entirely: the wash sale rule.
A wash sale happens when you sell an investment at a loss and then buy the same or a “substantially identical” investment within 30 days before or after the sale. When this happens, the IRS disallows the loss. In other words, you can’t use it to offset your taxable gains.
This rule applies not only to you, but also to:
Your spouse
Accounts you control (such as an IRA)
Automatic dividend reinvestments
Swaps between mutual funds or ETFs with the same underlying holdings
That’s why many investors get caught by surprise—they think they’re executing a clean tax-loss harvest, but the IRS sees it as if the sale never happened.
The IRS created the wash sale rule to prevent investors from “gaming the system”—selling an investment just to capture a tax loss and then immediately buying it back to maintain the same market position. Without this safeguard, investors could artificially create losses while continuing to hold the same assets.
Tax-loss harvesting is still a valuable tool, but you need to follow the rules carefully. Here are a few tips:
Wait 31 days before repurchasing the same or a substantially identical security.
Consider alternatives. If you want to stay invested, you can buy a different security in the same sector or asset class that isn’t considered “substantially identical.”
Watch out for automatic reinvestments. Dividends automatically buying new shares could trigger a wash sale.
Check across all accounts. Purchases in your IRA or your spouse’s account can invalidate the loss.
Get professional advice. Many financial institutions offer automated tax-loss harvesting, but it’s wise to confirm the details with a tax advisor.
Tax-loss harvesting can save you money, but only if you do it intentionally and with a solid plan. Don’t let a wash sale turn your smart strategy into a wasted trade. Know the rules, work with professionals when needed, and execute carefully—because that’s how you protect your savings and build long-term financial freedom.