Definition
Tax-loss harvesting is the practice of deliberately selling an investment that has fallen below what you paid for it, *realizing* the loss, and using that loss to reduce your tax bill. A loss only "counts" for taxes once you actually sell — an unrealized paper loss does nothing. Harvesting turns that paper loss into a realized capital loss you can put to work.
Once realized, a capital loss is used in a specific order set by the tax code:
- It offsets capital gains first. Losses cancel out gains dollar-for-dollar —
short-term losses against short-term gains, long-term against long-term, then the leftovers cross over.
- It offsets up to $3,000 of ordinary income per year. If your losses exceed your
gains, up to $3,000 of the excess can be deducted against ordinary income (wages, interest, non-qualified dividends) each year.
- The rest carries forward. Any loss beyond that $3,000 doesn't expire — it
carries forward indefinitely to future tax years, where it offsets future gains or another $3,000 of income annually.
The catch that makes harvesting an art rather than a giveaway is the wash-sale rule: you cannot sell a security for a loss and buy back the same (or a "substantially identical") security within a 30-day window. For ETF investors, the usual answer is to sell one fund and immediately buy a *similar-but-not-identical* one, so you keep the same market exposure without triggering the rule.
Why It Matters
For income and ETF investors, tax-loss harvesting matters because it is one of the few levers that raises your after-tax return without changing your investment strategy at all. You stay invested; you just harvest the paperwork.
Think of it as a lever on total return. Total return measures what you actually keep, and taxes are a direct drag on that figure. A harvested loss lowers the tax you owe on gains realized elsewhere in the portfolio — say, from rebalancing, a fund liquidation, or selling an appreciated position — so more of your return survives to compound.
It is especially relevant to dividend and covered-call investors for two reasons. First, income funds throw off taxable distributions every year, and a bank of carried- forward losses can shelter future capital-gain distributions. Second, high-payout funds like SPYI sometimes drift below cost basis even while paying well — a dip that can be harvested without giving up the income stream, by rotating into a comparable option-income ETF.
Key idea: harvesting doesn't erase tax — it *defers* it. You claim the deduction now, and because your new position carries a lower basis, a larger gain waits for you down the road.
One more reason it matters: it only works in the right account. In a taxable brokerage account, gains and losses hit your tax return, so a realized loss has real value. In a tax-sheltered account like an IRA or 401(k), gains and losses inside the account are invisible to the IRS until you withdraw — so there is nothing to harvest.
Example
Suppose you buy $10,000 of a dividend ETF — SCHD, say — and a market pullback drops the position to $8,000. You haven't sold, so that $2,000 loss is only on paper. Separately, earlier in the year you sold an appreciated holding and locked in a $2,000 capital gain, which you would otherwise owe tax on.
You harvest: you sell the SCHD position, realize the $2,000 loss, and immediately buy a *similar-but-not-identical* dividend ETF such as VYM to stay invested in large-cap dividend stocks. The realized loss now offsets the realized gain.
Assuming an illustrative 15% long-term capital-gains rate, here is the walk-through (numbers are illustrative):
| Step | Amount |
|---|---|
| Buy dividend ETF (cost basis) | $10,000 |
| Position falls to | $8,000 |
| Harvested (realized) loss | $2,000 |
| Capital gain realized elsewhere | $2,000 |
| Gain remaining after offset | $0 |
| Tax saved (at 15%) | $300 |
| New basis in replacement ETF | $8,000 |
The $2,000 loss wiped out the $2,000 gain, so instead of owing roughly $300 in tax this year, you owe nothing on that gain. You are still fully invested — you swapped SCHD for VYM and never left the market.
But notice the last row. Your replacement fund has a new cost basis of $8,000, not $10,000. If VYM later recovers to $10,000 and you sell, you'll have a $2,000 gain to report. That is the deferral at work: the tax you skipped today reappears as a larger gain tomorrow. The benefit is the time value of that deferred tax — plus any losses you bank against future income at $3,000 a year.
How the Wash-Sale Rule Shapes the Swap
The wash-sale rule disallows a loss if you buy the *same or substantially identical* security within 30 days before or after the sale — a 61-day window centered on the sale date. Buying it back in your spouse's account or your IRA can trigger it too. When a loss is disallowed in a taxable account, it isn't lost forever; it's added to the basis of the replacement shares. But the point of harvesting — claiming the deduction *now* — is defeated. There is one harsher exception: if the repurchase happens in an IRA, IRS guidance (Rev. Rul. 2008-5) says the loss is permanently disallowed — an IRA has no cost basis to adjust, so the loss is not added anywhere and never comes back.
Wash-sale window: [ -30 days ] --- SELL AT LOSS --- [ +30 days ]
Buy the "substantially identical" security anywhere in this
61-day span -> the loss is disallowed for this year.
ETFs make the workaround clean. Two funds that track *different indexes* — even very similar ones — are generally not considered substantially identical, so selling one and buying the other typically preserves the loss while keeping you invested. Selling a fund and rebuying the *exact same fund* is a textbook wash sale; selling one large-cap dividend ETF and buying a *different issuer's* large-cap dividend ETF usually is not.
This is educational information, not tax advice. "Substantially identical" is not precisely defined for ETFs, and reasonable interpretations differ — confirm your own swap with a qualified tax professional.
Common Mistakes
- Rebuying the identical fund too soon. Selling a fund for a loss and buying the
same fund back a week later is the classic wash sale — the loss is disallowed. Wait more than 30 days, or swap into a genuinely different fund.
- Forgetting the window runs both directions. The 30 days apply *before* the sale
too. If your dividend reinvestment (DRIP) bought shares of the same fund two weeks before you harvested, part of your loss can be disallowed. Turn off automatic reinvestment on positions you plan to harvest.
- Harvesting in an IRA or 401(k). Losses inside a tax-sheltered account produce no
deduction — there is nothing to report to the IRS. Worse, selling for a loss in a taxable account and rebuying in your IRA still triggers the wash-sale rule — and in that case the loss is permanently disallowed, not just deferred, because there is no taxable basis to add it to.
- Ignoring the new, lower cost basis. The replacement fund carries a reduced basis,
so a bigger gain waits at sale. Harvesting *defers* tax; it rarely eliminates it. Track your return of capital and basis adjustments so there are no surprises later.
- Chasing tiny losses and racking up costs. Bid-ask spreads, and the risk of the
market rebounding while you're between funds, can eat a small tax benefit. Harvest when the loss is meaningful, not for every wiggle.
- Overlooking the short-term vs. long-term ordering. Losses net against same-term
gains first. A short-term loss ideally offsets short-term gains, which are taxed at higher ordinary rates — so which lot you sell can matter.
FAQ
What is the wash-sale rule?
The wash-sale rule disallows a capital loss if you buy the same or a "substantially identical" security within 30 days before or after the sale — a 61-day window. It exists to stop investors from claiming a loss while effectively holding the same position. For ETF investors the standard workaround is to sell one fund and buy a similar-but-not-identical fund (one tracking a different index or from a different issuer), which keeps your market exposure while preserving the loss. This is educational information, not tax advice.
Can I tax-loss harvest in my IRA?
No. Gains and losses inside an IRA, Roth IRA, or 401(k) are not reported to the IRS until you take a distribution, so there is no realized loss to deduct — nothing to harvest. Tax-loss harvesting only produces a benefit in a taxable brokerage account. Be careful, too: if you sell a fund for a loss in your taxable account and buy a substantially identical fund in your IRA within the 30-day window, the wash-sale rule still disallows the loss — and that disallowance is permanent. Unlike a wash sale in a taxable account, the lost deduction is not added to any basis, so it can never be recovered. This is educational information, not tax advice.
How much can a capital loss save me in taxes?
A realized loss first offsets your capital gains dollar-for-dollar. If losses exceed gains, you can deduct up to $3,000 of the excess against ordinary income each year, and anything beyond that carries forward to future years indefinitely. The actual dollar savings depend on your tax rate and how the loss is applied, so the figure varies by investor.
Does tax-loss harvesting eliminate my taxes or just delay them?
Usually it defers rather than eliminates. When you harvest, your replacement position carries a lower cost basis, so a larger taxable gain waits when you eventually sell. The benefit is the time value of postponing the tax — plus the ability to offset up to $3,000 of ordinary income a year — not a permanent tax cut. In some cases (for example, if a stepped-up basis applies at inheritance) the deferred gain can be reduced, but that is a separate topic.
Which ETF should I swap into to avoid a wash sale?
Choose a fund with similar exposure but a different underlying index or issuer so it isn't "substantially identical." For example, an investor harvesting one large-cap dividend ETF might rotate into another large-cap dividend ETF that tracks a different benchmark. This keeps you invested in the same corner of the market while preserving the loss. Because "substantially identical" isn't precisely defined for ETFs, confirm your specific swap with a qualified tax professional.
When is the best time to harvest losses?
Many investors review positions toward year-end, when their realized gains for the year are clearer, but harvesting can be done any time a position trades below its cost basis. Sharp market pullbacks often create the best opportunities. The key is that the loss be large enough to justify the trading costs and the risk of being briefly out of your preferred fund. Watch that DRIP and rebalancing purchases don't accidentally create a wash sale.