Tax-loss harvesting is a technique for selling investments held at a loss in a taxable brokerage account, then using those realized losses to offset capital gains or reduce taxable income. The mechanics are straightforward, but the execution raises questions that most guides gloss over, particularly around what counts as a safe replacement investment when the IRS has never defined the key term that determines whether a loss gets disallowed.
Wash-sale risk across account types: the IRA trap
The wash-sale rule prevents claiming a loss if you buy a “substantially identical” security within 30 days before or after the sale. Most investors know this applies within a single brokerage account. Fewer realize it extends across all accounts they control, including IRAs and Roth IRAs.
Related reading: Child tax credit eligibility and planning for 2026
The consequences differ depending on where the repurchase happens. If you buy replacement shares in another taxable account, the disallowed loss gets added to the cost basis of the new shares. You defer the tax benefit rather than losing it.
A repurchase inside an IRA permanently destroys the loss. The IRS does not add the disallowed amount to the IRA’s basis. The deduction simply disappears. An investor who sells a fund at a significant loss in a brokerage account, then buys that same fund in an IRA a week later, forfeits the tax benefit entirely.
See also: Capital gains tax strategies for selling stocks and other investments
This makes coordinating purchases across account types a concrete operational step, not an afterthought. Before executing a harvest, check pending contributions, scheduled rebalancing trades, and automatic purchases in every retirement account.

“Substantially identical” securities: what the IRS leaves undefined
The phrase “substantially identical” appears throughout IRS guidance on wash sales, but the agency has never published a precise definition. This ambiguity is the central practical challenge of choosing a replacement investment after a tax-loss sale.
A few boundaries are reasonably clear. Selling shares of one company and buying back shares of the same company triggers a wash sale. Selling a mutual fund and buying back the identical fund does the same. Beyond those cases, the line blurs fast.
Index funds tracking the same benchmark
Suppose you sell an S&P 500 index fund at a loss and immediately buy a different provider’s S&P 500 index fund. Both track the same 500 stocks with nearly identical weightings. The IRS has not ruled explicitly on this scenario, and no court case has settled it. Some tax professionals treat different fund providers as sufficiently distinct. Others view the overlap as too close for comfort.
The practical risk is real: if the IRS challenged the transaction, the entire harvested loss could be disallowed. Conservative approaches involve switching to a fund that tracks a different but correlated index (total market instead of S&P 500, or large-cap value instead of large-cap blend). This introduces some tracking difference but reduces the ambiguity.
ETFs versus mutual funds of the same index
Selling an ETF version of a fund and buying the mutual fund version of the same index raises similar questions. The underlying holdings may be identical even though the legal structure differs. No definitive IRS guidance addresses this specific substitution.
When the best replacement would preserve exact portfolio exposure, the undefined standard forces a tradeoff between tax certainty and investment precision. Investors who prioritize the deduction should accept a modest shift in exposure. Those who insist on identical exposure should consult a tax advisor about the specific funds involved and document the reasoning for their position.
Tax-loss harvesting beyond capital gains: the $3,000 income offset
Harvested losses first offset capital gains dollar for dollar, with short-term losses applied against short-term gains and long-term against long-term. When losses exceed gains for the year, up to $3,000 of the excess can offset ordinary income. Any remaining losses carry forward indefinitely into future tax years.
That $3,000 annual deduction against ordinary income matters most to investors in higher tax brackets, where the marginal rate on ordinary income significantly exceeds the long-term capital gains rate. The carry-forward feature means a large loss realized in a single year can deliver tax benefits spread across multiple subsequent years.
- Short-term losses offset short-term gains first (taxed at ordinary income rates), making them more immediately valuable per dollar than long-term losses.
- Losses exceeding all capital gains reduce ordinary taxable income by up to $3,000 per year, with the unused balance carrying forward.
- Carried-forward losses do not expire, so a large harvest in a down market creates a multi-year tax asset.
Operational mistakes that trigger unintended wash sales
Deliberate trades are only part of the picture. Automatic dividend reinvestment is one of the most common accidental wash-sale triggers. If a fund pays a dividend and the account is set to reinvest automatically, that reinvestment purchase can fall within the 30-day wash-sale window and partially or fully disallow a planned loss.
Before harvesting a loss, review the dividend reinvestment settings on the specific holding. Switching to cash distribution temporarily, executing the harvest, and then re-enabling reinvestment after the 30-day window closes eliminates this risk.
Year-end custodian deadlines for tax-loss harvesting
Tax-loss harvesting is not restricted to December, but many investors concentrate activity at year-end. Custodians set their own trade processing cutoffs, which may fall several business days before December 31. A trade submitted on the last day of the year may settle in the following tax year, pushing the realized loss into the wrong period.
Checking the custodian’s specific settlement and processing deadlines, rather than assuming December 31 is the effective deadline, avoids this timing error.
- Confirm the custodian’s last trading day for same-year settlement, which often falls before December 31.
- Turn off automatic dividend reinvestment on positions targeted for harvesting.
- Review all accounts (taxable, IRA, Roth IRA, spouse’s accounts) for conflicting purchases within the 61-day wash-sale window.

Tax-loss harvesting works best as a year-round habit rather than a December scramble. The largest losses tend to appear during market drops, which rarely align with the calendar.
Investors who monitor unrealized losses throughout the year and act when opportunities arise capture more value than those who wait for a single annual review. The strategy reduces taxes without changing long-term market exposure, provided the replacement investment is chosen carefully enough to avoid the wash-sale line the IRS has drawn but never fully defined.

