Nobody likes seeing red in their portfolio. But what if those investment losses could actually save you money at tax time? That’s the idea behind tax-loss harvesting, a strategy that lets you turn paper losses into real tax savings.
It sounds complicated, but it’s more straightforward than most people think. Whether you do it yourself or let a robo-advisor handle it, tax-loss harvesting can put hundreds or even thousands of dollars back in your pocket each year.
What Is Tax-Loss Harvesting?
Tax-loss harvesting is the practice of selling investments that are currently at a loss to offset capital gains taxes on your winners. If your losses exceed your gains, the IRS allows you to deduct up to $3,000 per year from your ordinary income. Any remaining losses carry forward to future tax years.
Here’s the core idea: you’re not losing money on purpose. You’re recognizing losses that already exist in your portfolio and using them strategically to reduce your tax bill.
How Tax-Loss Harvesting Works: A Simple Example
Let’s say you have two investments in your taxable brokerage account this year:
- Investment A: You bought for $10,000 and it’s now worth $13,000. If you sell, you have a $3,000 capital gain.
- Investment B: You bought for $8,000 and it’s now worth $6,000. If you sell, you have a $2,000 capital loss.
Without tax-loss harvesting, selling Investment A would trigger taxes on the full $3,000 gain. At a 15% long-term capital gains rate, that’s $450 in taxes.
With tax-loss harvesting, you sell Investment B at a $2,000 loss. Now your net capital gain is only $1,000 ($3,000 gain minus $2,000 loss). Your tax bill drops to $150.
That’s $300 saved with one simple move.
What If Your Losses Exceed Your Gains?
Even better. If you have $5,000 in losses and only $2,000 in gains, you can:
- Offset the full $2,000 in gains (tax on gains = $0).
- Deduct $3,000 of the remaining loss from your ordinary income.
- Carry forward the leftover $0 loss to next year (since $5,000 – $2,000 – $3,000 = $0).
If your losses were $10,000 and gains were $2,000, you’d offset the gains, deduct $3,000 from income, and carry forward the remaining $5,000 to future years. Those carried-forward losses never expire.
The Wash Sale Rule: The One Big Catch
The IRS isn’t going to let you sell a stock at a loss and immediately buy it back. That would be too easy. Enter the wash sale rule.
The wash sale rule says: 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. That means you can’t claim it on your taxes.
What Counts as “Substantially Identical”?
- Selling shares of Apple and buying Apple back within 30 days? Wash sale. Loss disallowed.
- Selling an S&P 500 index fund from Vanguard and buying a different S&P 500 index fund from Fidelity? The IRS hasn’t given a definitive ruling, but most tax professionals consider this risky and treat them as substantially identical.
- Selling a total U.S. stock market fund and buying an S&P 500 fund? Generally considered different enough, but it’s a gray area. Consult a tax professional for your specific situation.
How to Work Around the Wash Sale Rule
The standard approach is to sell the losing investment and immediately buy a similar (but not substantially identical) replacement. For example:
- Sell a total stock market ETF and buy a large-cap value ETF
- Sell one international fund and buy a different international fund tracking a different index
- Wait 31 days and buy back the original investment (though you risk missing a rebound)
The goal is to stay invested in a similar asset class so your portfolio allocation doesn’t drift, while still claiming the tax loss.
When Tax-Loss Harvesting Makes Sense
Tax-loss harvesting is powerful, but it’s not for everyone or every situation.
It Works In: Taxable Brokerage Accounts
This strategy only matters in taxable accounts. Any account where you’ll owe capital gains taxes when you sell is a candidate.
It Does NOT Work In: IRAs, 401(k)s, or Other Tax-Advantaged Accounts
Gains and losses inside a traditional IRA, Roth IRA, or 401(k) aren’t taxed annually. You don’t pay capital gains taxes when you sell within these accounts, so there’s nothing to harvest. If you’re investing primarily through retirement accounts, tax-loss harvesting isn’t relevant to you yet.
Best Scenarios for Tax-Loss Harvesting
- You have significant capital gains to offset. The more gains you have, the more valuable your losses become.
- You’re in a higher tax bracket. Higher income means higher capital gains rates, so each dollar of offset saves you more.
- You have a large taxable portfolio. More holdings means more opportunities to find losses to harvest.
- The market has dipped. Downturns are prime harvesting opportunities. While everyone else is panicking, you can be strategic. Our guide on investing during a recession covers how to keep a level head.
Direct Indexing: Tax-Loss Harvesting on Steroids
If you have $100,000 or more in a taxable account, direct indexing takes tax-loss harvesting to the next level.
Instead of owning an S&P 500 ETF, direct indexing means owning the individual stocks that make up the index (or a representative sample). When individual stocks dip, you can harvest those losses even when the overall index is flat or up.
For example, the S&P 500 might be up 5% for the year, but within those 500 stocks, dozens are likely down. Direct indexing lets you capture those individual losses while maintaining the same overall market exposure.
Services like Wealthfront and Fidelity offer direct indexing, typically for accounts of $100,000 or more.
How Robo-Advisors Automate Tax-Loss Harvesting
One of the biggest selling points of robo-advisors is automated tax-loss harvesting. Instead of manually monitoring your portfolio for opportunities, the algorithm does it daily.
Betterment
Betterment offers automatic tax-loss harvesting on all taxable accounts at no extra cost. Their system monitors your portfolio daily and harvests losses whenever opportunities arise, automatically buying replacement funds to maintain your target allocation. Read our full Betterment review for more details.
Wealthfront
Wealthfront was one of the pioneers of automated tax-loss harvesting and also offers direct indexing for accounts over $100,000. They estimate their tax-loss harvesting adds 1% to 2% in after-tax returns annually for most clients. Check out our Wealthfront review for a deep dive.
Both platforms handle the wash sale rule compliance automatically, which removes one of the biggest headaches of doing it yourself.
DIY Tax-Loss Harvesting: Step by Step
Prefer to handle it yourself? Here’s how.
Step 1: Review Your Taxable Holdings
Log into your brokerage account and look at each position’s unrealized gain or loss. Most platforms show this clearly in your portfolio view. Focus only on your taxable accounts.
Step 2: Identify Positions with Meaningful Losses
Look for investments that are down significantly. A $50 loss probably isn’t worth the effort, but a $500 or $1,000 loss is worth harvesting.
Step 3: Check Your Gain Situation
How much in capital gains have you already realized this year? If you’ve sold winners, harvesting losses to offset those gains is the highest-value move. Even without gains, remember you can deduct up to $3,000 from ordinary income.
Step 4: Sell the Losing Position
Execute the sale in your brokerage account. Note the date, because the 30-day wash sale window starts now.
Step 5: Buy a Replacement Investment Immediately
To stay invested in the market, buy a similar but not substantially identical fund right away. For example, if you sold a total U.S. stock market ETF (VTI), you might buy a large-cap ETF (VOO) or a total market fund from a different index provider.
Step 6: Wait 31 Days (If You Want the Original Back)
If you prefer your original investment, set a calendar reminder for 31 days after the sale. You can then sell the replacement and buy back your original without triggering the wash sale rule.
Step 7: Document Everything
Keep records of every sale: the date, the cost basis, the sale price, and the replacement security purchased. Your brokerage provides most of this on your 1099-B, but having your own records makes tax time much smoother.
Who Benefits Most from Tax-Loss Harvesting
Tax-loss harvesting is most valuable for:
- High-income earners in the 15% to 20% capital gains brackets
- Investors with large taxable brokerage accounts ($50,000+)
- People who have realized significant capital gains in the current year
- Active investors who buy and sell positions regularly
It’s less impactful for:
- People who invest only through retirement accounts (IRAs, 401(k)s)
- Investors in the 0% capital gains bracket (single filers earning under roughly $48,000 in 2026)
- Buy-and-hold investors with few realized gains
Common Misconceptions
“Tax-loss harvesting eliminates taxes.” Not exactly. It defers taxes in most cases. When you buy a replacement security at a lower cost basis, you’ll owe more in capital gains when you eventually sell that replacement. However, deferral is still valuable because a dollar saved today can be invested and grow.
“I should sell everything at a loss in December.” Year-end is a popular time for harvesting, but opportunities exist throughout the year. Market dips in March, June, or September are just as valid.
“It’s only for rich people.” While high earners benefit most, anyone with a taxable account and unrealized losses can benefit. Even the $3,000 annual deduction against ordinary income is meaningful if you’re in the 22% or 24% bracket, saving you $660 to $720 per year.
The Bottom Line
Tax-loss harvesting is one of those rare strategies where the tax code actually works in your favor. By selling investments at a loss, offsetting gains, and deducting up to $3,000 per year from your income, you keep more of your money working for you.
If you want to keep things simple, a robo-advisor like Betterment or Wealthfront automates the entire process. If you prefer the hands-on approach, follow the steps above and stay mindful of the wash sale rule.
Either way, don’t let investment losses go to waste. Put them to work.