Tax-Loss Harvesting with Index Funds
Harvesting a loss turns a paper decline into a real tax deduction without leaving the market. The whole strategy lives or dies on understanding the wash-sale rule.
Don't have time? Here's what you need to know:
- 1Harvested losses offset capital gains and let you deduct up to $3,000 against ordinary income per year, with the rest carrying forward.
- 2The wash-sale rule disallows the loss if you buy a substantially identical fund within 30 days before or after the sale.
- 3Swap into a similar-but-different fund — selling VTI to buy VOO is the classic move — to stay invested and keep the loss.
- 4It only works in taxable accounts, partly defers rather than eliminates tax, and pays off most for higher earners at scale.
What Tax-Loss Harvesting Actually Does
Tax-loss harvesting means deliberately selling an investment that has dropped below what you paid for it, locking in a capital loss on paper, and immediately buying a similar (but not identical) investment so you stay invested. The realized loss then does real work on your tax return: it offsets capital gains dollar-for-dollar, and if your losses exceed your gains, you can deduct up to $3,000 against ordinary income each year. Any leftover loss carries forward to future years indefinitely.
The point is that a market decline you were going to ride out anyway can be converted into a permanent tax benefit, without changing your overall market exposure. Broad index funds are the ideal vehicle for this because so many near-substitutes exist — you can sell one total-market fund and buy another that tracks a different-but-similar index, keeping your asset allocation essentially unchanged while banking the loss.
Tip: Harvesting doesn't require predicting the market. You're simply capturing losses that already exist on positions you intend to keep holding through a substitute fund.
The Wash-Sale Rule: The Trap That Voids Everything
Here is the rule that makes or breaks the strategy. The IRS wash-sale rule disallows your loss if you buy a "substantially identical" security within 30 days before or after the sale — a 61-day window centered on the sale date. Buy back the same fund too soon and the loss is disallowed; it gets added to the cost basis of the new shares instead of helping you now.
The workaround is to swap into a similar-but-not-identical fund. Selling VTI (a total U.S. market fund) and buying VOO (an S&P 500 fund) is the classic move — they track different indexes from different providers, so they are generally not considered substantially identical, yet they give you nearly the same market exposure. After 31 days you can switch back if you want, or simply keep the replacement. A few traps catch people: the rule spans all your accounts including your IRA and even a spouse's accounts, and an automatic dividend reinvestment during the window can accidentally trigger a wash sale.
Important: Turn off automatic dividend reinvestment on a fund you're harvesting. A reinvested dividend within the 61-day window can trigger a wash sale and disallow part of your loss.
Building a Pair of Tax-Loss-Harvesting Partners
The practical setup is to designate "partner" funds in advance for each asset class — two funds that are similar enough to keep your allocation steady but track different indexes so the swap is clean. When one drops, you sell it, buy its partner, and reverse later if you wish. Keeping the pairs documented avoids scrambling during a downturn, which is exactly when the opportunities appear.
The table below shows common, broadly accepted partner pairings. The key is that the two funds track distinct indexes from distinct families — that is what keeps them from being "substantially identical." The IRS has never published a bright-line test for ETFs, so most practitioners stay on the conservative side by choosing genuinely different indexes rather than two funds tracking the exact same one.
| Asset class | Fund you sell | Partner you buy | Why it's a clean swap |
|---|---|---|---|
| U.S. total market | VTI | VOO | Total market vs S&P 500 — different indexes |
| International | VXUS | IXUS | Different index providers, similar coverage |
| Emerging markets | VWO | IEMG | FTSE vs MSCI emerging-market indexes |
| U.S. bonds | BND | AGG | Same asset class, different fund families |
Ready to invest? Open an IBKR account in 10 minutes and get free stock. $0 commissions on US ETFs • Fractional shares from $1 • 150+ global markets.
When Harvesting Is Worth the Effort — and When It Isn't
Tax-loss harvesting only works in a taxable brokerage account. Inside an IRA or 401(k) there are no taxable gains to offset and no losses to harvest, so the strategy is irrelevant there. It is most valuable for investors in higher tax brackets, those with sizable realized gains to offset, and anyone who invests new money regularly enough to create harvestable lots after market dips.
It is worth remembering one catch: harvesting is partly tax deferral, not pure tax elimination. Selling at a loss lowers your cost basis in the replacement shares, so you may owe more capital-gains tax later when you eventually sell. The benefit comes from the time value of paying tax later, from offsetting gains taxed at higher rates with the $3,000 ordinary-income deduction, and from the possibility of a step-up in basis at death. For small balances or modest losses, the paperwork may outweigh the gain — the strategy earns its keep at scale.
Frequently Asked Questions
How much can tax-loss harvesting save me?
Harvested losses first offset your capital gains dollar-for-dollar. If your losses exceed your gains, you can deduct up to $3,000 against ordinary income per year, and any remaining loss carries forward to future years indefinitely. The actual dollar value depends on your tax bracket and how many gains you have to offset, so it is most valuable for higher earners with sizable gains.
What is the wash-sale rule?
The IRS wash-sale rule disallows a capital loss if you buy a substantially identical security within 30 days before or after the sale — a 61-day window. If triggered, the loss is added to the cost basis of the new shares instead of being usable now. The rule applies across all your accounts, including IRAs and a spouse's accounts, and a reinvested dividend during the window can trigger it.
Can I sell VTI and buy VOO to harvest a loss?
Generally yes. VTI tracks a total U.S. market index and VOO tracks the S&P 500 — different indexes from the same provider — so they are typically not considered substantially identical, while giving you nearly the same exposure. This is the classic harvesting swap. After 31 days you can switch back if you prefer, or simply keep the replacement fund.
Does tax-loss harvesting work in a Roth IRA or 401(k)?
No. Tax-loss harvesting only applies to taxable brokerage accounts, where capital gains and losses are reported. Inside a Roth IRA, traditional IRA or 401(k), there are no taxable gains to offset and no harvestable losses, so the strategy has no effect. Keep your harvesting activity to your taxable account.
Is harvesting just deferring taxes rather than avoiding them?
Partly. Selling at a loss lowers your cost basis in the replacement shares, so you may owe more capital-gains tax when you eventually sell. The real benefits are the time value of paying tax later, offsetting higher-taxed gains and up to $3,000 of ordinary income now, and a potential step-up in basis at death. That makes it valuable, but it is not pure tax elimination.
Further Reading
Free Tools
Alex Harrington
CFA Level II Candidate, Finance & Economics
Alex Harrington is an independent ETF researcher and personal finance writer with over 8 years of experience analyzing exchange-traded funds. A CFA Level II candidate with a background in economics, Alex has reviewed 800+ ETFs and helped thousands of beginners build their first investment portfolios through clear, jargon-free education.
This content is for educational purposes only and does not constitute financial advice. Past performance does not guarantee future results. Consult a licensed financial advisor before making investment decisions.