Even better: if your losses are bigger than your gains, you can knock $3,000 off your regular income (your salary, your business income — whatever) and carry the rest forward to use in future years. Forever. The loss never expires.
The catch: there's a 30-day "wash-sale rule" you have to dodge (we'll explain), and there's a sweet-spot 0% tax bracket most people don't know exists (we'll show you). Plug in your numbers below to see exactly how much you'd save.
Salary, business income — what you'd report before adding the gains below.
Profits from selling investments held > 1 year.
Profits from selling investments held ≤ 1 year.
Investments sold at a loss this year (combined ST + LT).
Investments currently down — what you could sell to lock in losses.
A concrete example, step by step
Meet Alex. He sold some Tesla stock this year for a $20,000 profit (held it more than a year, so it's "long-term"). He's in the 32% federal tax bracket. Meanwhile, his old GameStop shares are currently down $15,000 — he's never sold them. Here's what happens with and without harvesting.
- Alex sells his Tesla position. Profit: $20,000.
- He leaves the GameStop position alone (it's still in his account, just down).
- At tax time, he owes 15% long-term capital gains tax on the full $20,000 profit.
- Tax bill: $3,000. He hands it to the IRS in April.
- Alex sells his Tesla position. Profit: $20,000.
- Alex also sells the GameStop position. Loss: $15,000.
- The $15,000 loss cancels $15,000 of the gain. Now only $5,000 is taxable.
- He immediately buys a similar (but not identical) stock — say, Roblox — to keep his money invested.
- Tax bill: $750 (15% × $5,000). He saved $2,250.
The key insight: Alex still has the same amount of money invested in the market either way. He just swapped a losing stock for a similar one — the IRS calls that "harvesting the loss." Same risk profile, same exposure, same long-term plan.
The only thing that changed: he booked a paper loss for tax purposes. $2,250 less in taxes this year, and if his losses had been bigger than his gains, he could've used $3,000 of leftover loss against his salary too.
Don't accidentally trigger a wash sale
If you sell an investment at a loss and buy a "substantially identical" one within 30 days before or after the sale, the IRS disallows your loss for that year. The rule applies to your own accounts, your spouse's, and any IRA / 401(k) you control.
How to avoid:
- Wait 31 days before re-buying the exact same fund / stock.
- Or swap into a similar-but-not-identical fund (sell VTI → buy ITOT; sell SPY → buy VOO; sell QQQ → buy QQQM).
- Watch your dividend reinvestment settings — if a position pays a dividend during the wash window and your account auto-reinvests, you can trigger a partial wash on yourself.
- Most robo-advisors handle this automatically.
Frequently asked questions
What is tax-loss harvesting?▾
Walk me through it with real numbers — what does this look like?▾
Wait — there's a 0% tax rate on investments? Tell me more.▾
What's this 'wash-sale rule' and will it bite me?▾
Why does it matter how long I held the stock?▾
What's NIIT and do I need to worry about it?▾
Should I harvest losses every year, even if I don't have gains?▾
Do robo-advisors do this for me automatically?▾
Do I need a CPA to do this, or can I DIY?▾
See your full tax picture
Capital gains optimization is one tax lever. The full optimizer factors retirement contributions, deductions, entity choice, and more in one place.
Open the full calculator