Tax-Loss Harvesting Explained: How to Turn Losing Investments Into Tax Savings
Tax-loss harvesting lets you use investment losses to offset gains and reduce your tax bill — potentially saving thousands per year. Here's exactly how it works, the wash-sale rule to avoid, and when to harvest.
Tax-Loss Harvesting Playbook
$9.97
Get the complete step-by-step guide — everything you need to take action today, in one focused ebook.
Get the Full Guide View product detailsWhat Is Tax-Loss Harvesting?
Tax-loss harvesting is the practice of selling an investment that has declined in value to lock in a capital loss, which you can then use to offset capital gains elsewhere in your portfolio — reducing your tax bill.
Here's the simple version: if Stock A is up $5,000 and Stock B is down $3,000, selling Stock B creates a $3,000 loss you can use to cancel out $3,000 of Stock A's gain. Instead of owing taxes on $5,000 of gains, you only owe on $2,000.
The result is a tax savings — not tax elimination, but deferral and reduction — that compounds meaningfully over a long investing career.
How Tax-Loss Harvesting Works in Practice
Step 1: Identify unrealized losses. Review your taxable brokerage account for positions currently worth less than you paid for them.
Step 2: Sell the losing position. This "realizes" the loss — it now exists as an official capital loss on your tax return.
Step 3: Offset gains with the loss. Capital losses first offset capital gains of the same type (short-term losses offset short-term gains, long-term losses offset long-term gains), then cross-offset.
Step 4: Deduct up to $3,000 against ordinary income. If your losses exceed your gains, you can deduct up to $3,000 of net capital losses against ordinary income (wages, self-employment income, etc.) per year.
Step 5: Carry forward excess losses. Losses beyond the $3,000 limit roll forward to future tax years indefinitely.
Step 6: Reinvest in a similar — but not identical — investment. This keeps your portfolio invested and your asset allocation intact.
The Wash-Sale Rule: The #1 Mistake to Avoid
The IRS has a rule specifically designed to prevent gaming the system: the wash-sale rule.
If you sell a security at a loss and buy the same or a "substantially identical" security within 30 days before or after the sale, the loss is disallowed. Your tax savings evaporate, and the disallowed loss gets added to the cost basis of the replacement security instead.
What counts as substantially identical? The same stock or ETF, or a fund tracking the same index. Two S&P 500 ETFs from different providers are considered substantially identical.
What's safe? Selling a Total Market ETF and buying an S&P 500 ETF, or selling a large-cap growth fund and buying a broad market fund. The assets are similar enough to maintain your exposure but different enough to satisfy the IRS.
Waiting 31+ days before repurchasing the original security also clears the wash-sale window — though that introduces market risk while you're out of the position.
When Should You Harvest Losses?
Tax-loss harvesting is most valuable in these situations:
You have significant capital gains to offset. If you've sold appreciated stock, an investment property, or exercised stock options, harvested losses directly reduce that tax bill.
You're in a high tax bracket. The higher your ordinary income rate, the more valuable the $3,000 deduction against income becomes — up to 37% federal savings on that slice.
You have a taxable brokerage account. Tax-loss harvesting only applies to taxable accounts. You cannot harvest losses in a 401(k), IRA, or other tax-advantaged account — gains and losses in those accounts aren't taxable events.
Markets have been volatile. Down markets create harvesting opportunities. If your portfolio dropped 15%, positions that were purchased at different times likely have unrealized losses you can use.
Year-end approach: December is prime harvesting season. You have the full picture of your capital gains for the year and can harvest losses strategically before the calendar resets.
Taxable vs. Retirement Accounts
This distinction is critical: tax-loss harvesting only exists in taxable accounts.
In a traditional IRA or 401(k), your money grows tax-deferred — you don't pay capital gains tax when you sell, so there's nothing to offset. In a Roth IRA, growth is tax-free.
The tax-loss harvesting strategy lives entirely in your regular brokerage account, where every sale is a taxable event.
If you have a mix of account types, a common strategy is to hold tax-efficient investments (index funds, buy-and-hold positions) in taxable accounts where harvesting opportunities arise, and hold tax-inefficient assets (bonds, actively traded funds, REITs) inside tax-advantaged accounts where their income doesn't create annual tax drag.
Robo-Advisor Harvesting and the Year-End Checklist
Several robo-advisors — Betterment, Wealthfront, and Schwab Intelligent Portfolios Premium — automate tax-loss harvesting daily. They continuously scan your portfolio for harvesting opportunities and execute trades automatically, staying compliant with wash-sale rules by using approved substitute funds.
For DIY investors, here's a year-end tax-loss harvesting checklist:
- Review your realized gains so far this year — short-term vs. long-term
- Scan your taxable portfolio for positions with unrealized losses
- Calculate potential savings from harvesting each loss position
- Check the wash-sale window — avoid repurchasing anything you sold in the last 30 days
- Identify substitute investments that maintain your asset allocation
- Execute trades before December 31 — losses only count in the tax year they're realized
- Document everything for your tax return — your broker's 1099-B will show proceeds and cost basis, but you're responsible for tracking wash-sale implications across accounts
Tax-loss harvesting won't make bad investments good — but it does mean that losing positions aren't a pure loss. They become a tool. Used consistently over a long investing career, harvesting can add meaningful dollars to your net worth simply by keeping more of what your investments earn.
You Might Also Like
Tax-Loss Harvesting Playbook
$9.97
Get the complete step-by-step guide — everything you need to take action today, in one focused ebook.
Get the Full Guide View product detailsYou Might Also Like
10 Tax Tips That Could Save You Thousands This Year
Most Americans overpay their taxes because they miss deductions that are perfectly legal and surprisingly accessible. Here are 10 strategies that work for W-2 employees and the self-employed alike.
How to Invest in Index Funds: The Beginner's Complete Guide
Index funds are how ordinary people build extraordinary wealth. Here's everything a beginner needs to know — what they are, why they work, and how to buy your first one today.