Tax-Loss Harvesting: Turning Losses Into Tax Savings
The strategy nobody explains
Here's something most people don't know: when your investments lose money, you can use those losses to reduce your tax bill. It's called tax-loss harvesting, and it's one of the few ways the tax code actually works in your favor.
The idea is simple: if you sell an investment that's down, that loss can offset gains you made elsewhere. Made $5,000 on one stock and lost $2,000 on another? You only pay taxes on the $3,000 net gain. It's not about timing the market — it's about making the tax code work for you.
How it works (with real numbers)
Let's say you bought $10,000 of Stock A and it grew to $15,000. If you sell, you have a $5,000 capital gain — and you owe taxes on it.
But you also own Stock B, which dropped from $10,000 to $8,000. If you sell Stock B at a loss, you have a $2,000 capital loss. That loss reduces your taxable gain: $5,000 gain minus $2,000 loss = $3,000 net gain. You just cut your tax bill by about $300-$400 (depending on your tax bracket).
Here's the best part: after you sell Stock B, you can immediately buy a similar (but not identical) investment to maintain your market exposure. You harvested the tax loss without changing your investment strategy.
The wash sale rule you need to know
The IRS has one important rule: you can't sell an investment at a loss and then buy back the exact same (or "substantially identical") investment within 30 days. This is called the wash sale rule.
The 30-day window applies both before and after the sale. That means if you buy shares on December 1st and sell them at a loss on December 15th, you can't buy them back until January 15th. If you violate this rule, the IRS disallows your loss deduction.
How to avoid the wash sale trap
- Wait 31 days before repurchasing the same investment
- Buy a similar but different fund instead (sell VOO, buy VTI)
- Check ALL your accounts — the rule applies to IRAs and 401(k)s too
- Set calendar reminders if you're planning to buy back
Important: The wash sale rule doesn't currently apply to cryptocurrency. But that may change as regulations evolve.
When does this actually make sense?
Tax-loss harvesting works best in taxable brokerage accounts. It doesn't apply to tax-advantaged accounts like IRAs or 401(k)s because you don't pay taxes on gains in those accounts anyway.
- •Taxable brokerage accounts
- •Years with high capital gains
- •Market downturns (more opportunities)
- •High earners in top tax brackets
- •All investments are in IRAs/401(k)s
- •You have no gains to offset
- •Selling costs outweigh tax savings
- •You're in the 0% capital gains bracket
Pro tip: Many robo-advisors (like Betterment and Wealthfront) automate tax-loss harvesting for you. They monitor your portfolio daily and harvest losses automatically while avoiding wash sales. If you have a large taxable account, this feature alone can be worth the management fee.
Real-world example
Sarah invested $50,000 in a tech fund in 2025. By December, it had dropped to $42,000 — an $8,000 loss. Earlier in the year, she sold some other investments and realized $12,000 in capital gains.
Sarah sells the tech fund, locking in the $8,000 loss. That loss offsets $8,000 of her $12,000 gain, so she only owes tax on $4,000 instead of $12,000. At a 15% capital gains rate, she saves $1,200 in taxes.
She waits 31 days, then buys back into a similar tech fund. Her portfolio is back on track, and she pocketed a $1,200 tax benefit. That's tax-loss harvesting in action.
Key takeaways
Remember these points
- You can use investment losses to offset gains (and up to $3,000 of income)
- Avoid the wash sale rule by waiting 31 days before repurchasing
- Only works in taxable accounts — not IRAs or 401(k)s
- Best during market downturns when you have more losses available
- Consider robo-advisors that automate this for you
Tax-loss harvesting isn't about avoiding taxes forever — it's about deferring them and keeping more money invested. The losses you harvest today reduce your tax bill now, giving you more capital to compound over time. That's the real win.