What Is Tax-Loss Harvesting?
Tax-loss harvesting is the practice of selling an investment that has declined in value to realize a capital loss, which can then be used to offset capital gains elsewhere in your portfolio — reducing the taxes you owe. After selling, you reinvest the proceeds in a similar (but not identical) asset to maintain your desired market exposure.
It sounds counterintuitive: why deliberately lock in a loss? Because in the world of taxes, a realized loss has real monetary value. It's one of the few legal strategies that lets you benefit from an investment's decline.
How Capital Gains and Losses Work
Before understanding tax-loss harvesting, it helps to understand how the IRS treats investment gains and losses:
- Short-term capital gains (assets held less than one year) are taxed as ordinary income — potentially at your highest marginal rate.
- Long-term capital gains (assets held more than one year) are taxed at preferential rates: 0%, 15%, or 20% depending on your income.
- Capital losses first offset capital gains of the same type, then the other type, then up to $3,000 of ordinary income per year.
- Unused losses carry forward indefinitely to future tax years.
A Simple Example
Suppose you have the following situation in a given tax year:
| Investment | Gain/Loss | Type |
|---|---|---|
| Stock A (sold) | +$8,000 | Long-term gain |
| Stock B (sold) | −$5,000 | Long-term loss |
| Net taxable gain | $3,000 | Long-term |
Without harvesting the loss on Stock B, you'd owe taxes on the full $8,000 gain. By harvesting that loss, your taxable gain drops to $3,000 — saving you real money at tax time.
The Wash-Sale Rule: The Critical Catch
The IRS has a rule specifically designed to prevent abuse of tax-loss harvesting: the wash-sale rule. It states that if you sell a security at a loss and buy a "substantially identical" security within 30 days before or after the sale, the loss is disallowed.
What counts as substantially identical? Generally, the same stock or the same mutual fund. What doesn't? A similar but different ETF or fund. For example, selling an S&P 500 index fund from Vanguard and immediately buying a comparable S&P 500 fund from Fidelity likely violates the rule. Selling that Vanguard fund and buying a total market fund or a large-cap growth fund likely does not — but this is a gray area worth discussing with a tax professional.
When Does Tax-Loss Harvesting Make the Most Sense?
- You have significant realized capital gains in the same year (from selling appreciated assets, receiving distributions, etc.)
- You are in a high income tax bracket where capital gains rates are meaningful.
- Your portfolio has experienced volatility, creating unrealized losses in individual positions.
- You have carryover losses from prior years that you want to deploy efficiently.
What Tax-Loss Harvesting Is NOT
It's important to be clear about what this strategy doesn't do:
- It doesn't eliminate taxes — it defers them. When you reinvest in a similar asset at a lower cost basis, future gains on that asset will be larger.
- It's not worth doing just to generate losses if you have no gains to offset.
- It doesn't benefit tax-advantaged accounts like 401(k)s or IRAs — only taxable brokerage accounts.
Automating Tax-Loss Harvesting
Many robo-advisors and brokerage platforms now offer automated tax-loss harvesting as a feature. These tools monitor your portfolio continuously and execute harvesting trades when thresholds are met — a significant advantage for investors who don't want to track this manually.
The Bottom Line
Tax-loss harvesting is one of the most actionable tax strategies available to individual investors. Done correctly — with attention to the wash-sale rule and a clear understanding of your overall tax picture — it can meaningfully improve your after-tax returns over time. Consider working with a CPA or financial advisor to ensure it's being implemented optimally for your situation.