

Portfolio rebalancing keeps your investment mix on target. Learn when to rebalance, the best strategies, and how to avoid unnecessary taxes and fees.

Learn exactly what taxes you owe on stocks when you sell, hold, or collect dividends. Includes 2025-2026 rates, worked examples, and the wash sale rule.

Learn how investments are taxed across every account type, from capital gains and dividends to IRAs and 401(k)s. Includes 2025-2026 rates and examples.

Founder of Arcanomy
Ph.D. engineer and MBA writing about wealth psychology, financial clarity, and why most money advice misses the point.
Subscribe for more insights, tips, and updates, straight to your inbox.
We respect your privacy and will never share your information.
Selling investments at a loss feels terrible. Nobody opens a brokerage app hoping to see red. But here's the counterintuitive truth: those losses have real monetary value. A $10,000 investment loss can save you $1,500 to $3,700 in taxes, depending on your bracket.
Tax-loss harvesting is the strategy of deliberately selling losing investments to offset gains and reduce your tax bill. Academic research using data from 1926 to 2018 estimates this approach can add approximately 1.1% per year to after-tax returns. Wealthfront's data suggests automated harvesting generates 0.78% to 1.38% in annual "tax alpha" for its clients.
Those numbers compound. On a $500,000 portfolio, 1% per year is $5,000 in tax savings. Over 20 years, that's six figures.
The quick version: Sell losing investments to offset capital gains and deduct up to $3,000 of ordinary income per year. Unused losses carry forward indefinitely. But you must avoid the wash-sale rule (no buying back the same security within 30 days).
The IRS lets you use capital losses to offset capital gains, dollar for dollar. If you have $8,000 in gains and $5,000 in losses this year, you only pay tax on the net $3,000.
If losses exceed gains, you can deduct up to $3,000 of the excess against ordinary income ($1,500 if married filing separately). Any remaining losses carry forward to future years. Indefinitely.
The sequence matters:
Profile: Danielle, 38, single filer. Salary: $160,000. 24% marginal tax bracket.
Portfolio activity this year:
The harvest:
Danielle sells the losing position for $5,000, locking in a $10,000 short-term capital loss.
Tax impact:
| Step | Amount | Tax Effect |
|---|---|---|
| Offset short-term gains | $4,000 loss vs. $4,000 gain | Saves $4,000 × 24% = $960 |
| Offset ordinary income | $3,000 deduction | Saves $3,000 × 24% = $720 |
| Carry forward to next year | $3,000 remaining loss | Future tax savings |
| Total current-year savings | $1,680 |
Danielle still has $5,000 in cash from selling the position, plus $1,680 in tax savings. And she has three grand in losses banked for next year.
The reinvestment step matters too. Danielle can immediately invest that $5,000 into a similar (but not "substantially identical") investment to stay in the market. More on that in a moment.
Here's where tax-loss harvesting gets tricky. The IRS has a rule designed to stop investors from selling for a loss and immediately buying back the same thing:
The wash-sale rule: 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.
The 30-day window runs in both directions. Sell on December 15? You can't have bought the same thing after November 14, and you can't buy it again before January 15. That's a 61-day total window.
What counts as "substantially identical"? The IRS hasn't published a precise definition, but here's the practical spectrum:
I've seen people get burned by the second category more than any other. "Different fund company, same index" is not different enough.
The penalty for violating the wash-sale rule isn't permanent destruction of the loss. The disallowed loss gets added to the cost basis of the new purchase. You'll eventually get the benefit, just not right now. But the timing difference matters for tax planning.
One more trap: the wash-sale rule applies across accounts. Sell a stock for a loss in your taxable brokerage, then buy it in your IRA within 30 days? That's a wash sale. And in this case, you may permanently lose the deduction because the IRA basis adjustment has no tax benefit.
As of early 2026, cryptocurrency is classified as property, not a security. The wash-sale rule technically applies only to securities. This means you could, in theory, sell Bitcoin at a loss on Coinbase and buy it back immediately without triggering a wash sale.
Multiple budget proposals have targeted this loophole, and the IRS's "economic substance doctrine" could challenge purely tax-motivated transactions. The safest approach: assume the rules may change and don't rely on this gap as a permanent strategy.
Good candidates:
Not a good fit:
Here's the fundamental principle: don't let the tax tail wag the investment dog. Harvesting a loss on an investment you'd sell anyway? Great. Selling a solid long-term holding just to claim a temporary loss? That's likely to cost you more in missed gains than you save in taxes.
Robo-advisors like Wealthfront, Betterment, and Schwab Intelligent Portfolios offer automated tax-loss harvesting. They scan your portfolio daily and execute harvests whenever losses exceed a threshold.
Wealthfront's data shows that for 96% of taxable accounts using automated harvesting for at least a year, the estimated tax benefit exceeded the advisory fees paid. That's a strong argument for automation, especially if you wouldn't otherwise think to check for harvesting opportunities on a random Tuesday in October.
Manual harvesting works too. Review your portfolio quarterly (or at least in November before year-end). Identify positions with unrealized losses. Decide if selling makes sense given your overall gains for the year.
For the broader context on how capital gains tax works, start with our pillar guide. If you're looking at year-end timing, our year-end tax moves guide includes harvesting as part of a larger December strategy. And for investors who want to understand how long-term rates affect the savings calculation, that guide has every bracket.