What Is Tax-Loss Harvesting?
Tax-loss harvesting is one of those strategies that sounds complicated until you break it down. At its core, it is a legal way to use investment losses to reduce your tax bill. That’s it. You are not “making money” from a loss. You are using the tax code to make a bad situation less painful.
What Is Tax-Loss Harvesting?
Tax-loss harvesting is one of those strategies that sounds complicated until you break it down. At its core, it is a legal way to use investment losses to reduce your tax bill. That’s it. You are not “making money” from a loss. You are using the tax code to make a bad situation less painful.
For investors with taxable brokerage accounts, tax-loss harvesting can be a useful tool. It is especially relevant in volatile markets, when some holdings may be down while others are up. The basic idea is simple: sell an investment at a loss, use that loss to offset capital gains, and potentially deduct a limited amount against ordinary income. Then, if appropriate, you may reinvest in a similar—but not identical—investment to stay invested.
Used correctly, this strategy can improve after-tax returns. Used carelessly, it can create wash sale problems, unnecessary trading, or poor portfolio decisions. So let’s get clear on what it is, how it works, and where the traps are.
The Basic Idea Behind Tax-Loss Harvesting
Tax-loss harvesting means intentionally realizing a loss on an investment in a taxable account so that loss can be used for tax purposes.
Here’s the simple version:
- You bought an investment for $10,000.
- It drops to $7,000.
- You sell it, realizing a $3,000 loss.
- That loss can offset taxable gains elsewhere.
If you have capital gains from selling other investments at a profit, the loss can cancel those gains dollar for dollar. If your losses exceed your gains, you can usually use up to $3,000 per year to offset ordinary income if you are single or married filing jointly. Any remaining loss carries forward to future years.
This matters because taxes reduce what you keep. A portfolio that looks good before taxes may look much better or worse after taxes. Tax-loss harvesting is one way to improve the after-tax result.
How It Works in Real Life
Let’s use a straightforward example.
Imagine you have the following in a taxable brokerage account:
- Stock A: bought for $20,000, now worth $14,000
- Stock B: bought for $15,000, now worth $22,000
If you sell Stock B, you realize a $7,000 capital gain. If you also sell Stock A, you realize a $6,000 capital loss.
Your taxable gain is now only $1,000 instead of $7,000. That can make a meaningful difference at tax time.
Now let’s say you have no gains at all, only losses. If you realize a $5,000 net capital loss, you may deduct $3,000 against ordinary income this year, and the remaining $2,000 carries forward.
That carryforward is valuable. It means losses do not disappear just because you cannot use them all immediately.
Why Investors Use It
Tax-loss harvesting is popular for a few reasons:
-
It reduces current-year taxes.
Lower taxes mean more money stays invested or available for other goals. -
It can offset gains from rebalancing.
If you need to sell appreciated assets to rebalance your portfolio, losses elsewhere can reduce the tax cost. -
It creates tax assets for future years.
Loss carryforwards can be useful in later years when you realize gains. -
It may help high-income investors more.
Investors in higher tax brackets often get more benefit from reducing taxable gains.
This strategy is usually most relevant in taxable accounts, not retirement accounts. You do not typically harvest losses inside IRAs or 401(k)s because those accounts already have special tax treatment.
The Wash Sale Rule: The Big Trap
This is where people get into trouble.
The wash sale rule says you cannot claim a tax loss if you buy the same or a “substantially identical” security within 30 days before or after the sale that created the loss.
In plain English: if you sell something at a loss and then immediately buy it back, the IRS may disallow the loss for now.
Example:
- You sell a fund at a $4,000 loss on June 1.
- You buy the same fund again on June 10.
That likely triggers a wash sale. The loss is not lost forever, but it gets added to the basis of the new shares and deferred. That can complicate your records and reduce the immediate tax benefit.
This is why tax-loss harvesting is not just “sell and rebuy.” You need a plan to stay invested without violating the wash sale rule. Often that means buying a similar, but not identical, investment for the replacement period.
What Counts as “Substantially Identical”?
This is one of the gray areas.
The IRS has clear rules for some things and less clarity for others. In general, identical securities are easy to identify. “Substantially identical” is more nuanced and depends on the facts.
For example, selling one mutual fund and buying another fund that tracks a different index may be acceptable. But selling one share class and buying the same fund in another share class may not be enough difference.
Because the rule is not always black and white, this is an area where professional guidance can matter. If you are doing this with large dollar amounts, talk to a CPA or tax attorney before executing a strategy that could create a wash sale mess.
Who Benefits Most?
Tax-loss harvesting tends to be most useful for:
- Investors in taxable brokerage accounts
- People with realized capital gains
- Higher-income taxpayers
- Investors in volatile markets
- People who actively rebalance portfolios
It may be less valuable for:
- Investors who mostly hold assets in retirement accounts
- People in very low tax brackets
- Investors with little or no taxable gain activity
- Those who would incur transaction costs or poor investment choices just to harvest a loss
A tax strategy should not force you to make a bad investment decision. If the replacement asset is inferior, the tax benefit may not justify the portfolio risk.
A Concrete Example With Numbers
Let’s say you are married filing jointly and have the following in a taxable account:
- Realized long-term capital gains from other sales: $12,000
- Unrealized loss in another holding: $8,000
If you sell the losing position, your net taxable capital gain drops to $4,000.
Now assume your long-term capital gains tax rate is 15%. Without harvesting, the tax on $12,000 of gains would be $1,800. With harvesting, the tax on $4,000 of gains is $600.
That is a $1,200 tax savings.
If you had no gains at all, the $8,000 loss could still be useful. You might use $3,000 to offset ordinary income this year and carry the remaining $5,000 forward.
That is the power of the strategy: it turns market losses into tax value.
Common Misconceptions
“Tax-loss harvesting means I’m ahead because I sold at a loss.”
No. A loss is still a loss economically. Tax-loss harvesting only reduces the tax damage. It does not erase the investment loss itself.
“I can do this in any account.”
No. This is mainly a taxable account strategy. Retirement accounts are taxed differently and generally do not benefit in the same way.
“I can sell and immediately buy the same thing back.”
Usually no. That is the classic wash sale mistake. The 30-day rule matters.
“If I have losses, I should harvest them automatically.”
Not always. Sometimes the asset has strong recovery potential, and the tax benefit is not worth the transaction cost, tracking complexity, or portfolio disruption. The right answer depends on your full tax situation.
“This is only for rich people.”
Not true. Anyone with taxable investments can potentially benefit. That said, the dollar value of the benefit is often larger for people with higher incomes or larger portfolios.
When It Makes Sense to Get Professional Help
Tax-loss harvesting is conceptually simple but can get messy fast when you add:
- multiple brokerage accounts
- spouse accounts
- funds held in IRAs
- options or complex securities
- prior-year carryforwards
- state tax issues
- large realized gains from business or real estate activity
If your tax picture is more than basic, professional advice is worth considering. A CPA, enrolled agent, or tax attorney can help you avoid wash sales and coordinate the strategy with your broader tax plan.
The Bottom Line
Tax-loss harvesting is a legal tax strategy that uses investment losses to offset capital gains and, in some cases, ordinary income. It does not create wealth out of thin air. It simply reduces the tax cost of investing.
The strategy works best in taxable accounts, especially when you have gains to offset or losses large enough to carry forward. The main risk is the wash sale rule, which can disallow the loss if you buy the same or substantially identical investment too soon.
If you understand the mechanics, tax-loss harvesting can be a useful part of an after-tax investing plan. If you do not, it can become a recordkeeping headache. As with most tax strategies, the details matter.
Suggested Follow-Up Questions
- How does the wash sale rule work in taxable brokerage accounts?
- Can tax-loss harvesting help offset gains from selling real estate?
- What is the difference between short-term and long-term capital losses?
- When should I ask a CPA or tax attorney about tax-loss harvesting?
