Skip to content
Advertiser Disclosure: We may earn a commission when you click links to products from our partners. Learn more.

Tax-Loss Harvesting Explained: How to Turn Investment Losses into Tax Savings

Tax-Loss Harvesting Explained: How to Turn Investment Losses into Tax Savings

Nobody likes seeing red in their portfolio. But what if those investment losses could actually save you money at tax time? That is the idea behind tax-loss harvesting — a strategy that lets you turn paper losses into real tax savings.

It sounds complicated, but it is 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.

Key Takeaways
  • Tax-loss harvesting sells losing investments to offset capital gains taxes on your winners — reducing your tax bill without exiting the market.
  • If losses exceed gains, you can deduct up to $3,000 per year from ordinary income. Unused losses carry forward indefinitely with no expiration.
  • The wash sale rule blocks you from buying back a “substantially identical” security within 30 days. The fix: buy a similar fund from a different index or provider.
  • This strategy only works in taxable brokerage accounts. Gains inside a Roth IRA or 401(k) are not taxable, so there is nothing to harvest.
  • High earners in the 15% to 20% long-term capital gains bracket benefit most. Investors in the 0% bracket gain nothing from harvesting capital gains.

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 with no expiration date.

Here is the core idea: you are not losing money on purpose. You are 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

Say you have two investments in your taxable brokerage account this year:

  • Investment A: Bought for $10,000, now worth $13,000. Selling creates a $3,000 capital gain.
  • Investment B: Bought for $8,000, now worth $6,000. Selling creates a $2,000 capital loss.

Without tax-loss harvesting, selling Investment A triggers taxes on the full $3,000 gain. At a 15% long-term capital gains rate, that is $450 in taxes.

With tax-loss harvesting, you sell Investment B at a $2,000 loss. Your net capital gain is now only $1,000. Tax bill drops to $150. That is $300 saved with one deliberate move.

What if losses exceed gains? Even better. With $5,000 in losses and $2,000 in gains: the losses wipe out your $2,000 in gains entirely, then up to $3,000 of the remaining loss offsets ordinary income (saving $660 to $1,110 depending on your bracket), and any amount beyond that carries forward to future years.

Use the calculator below to run your own numbers:

Tax-Loss Harvesting Savings Calculator

Enter your situation to see your exact potential tax savings. Not tax advice — consult a CPA for your specific situation.

0% = income under ~$47K single. 15% = most middle/upper earners. 20% = top bracket.

The Wash Sale Rule: The One Big Catch

The IRS will not 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.

What counts as substantially identical?

  • Selling Apple stock and buying Apple back within 30 days? Wash sale. Loss disallowed.
  • Selling a Vanguard S&P 500 ETF (VOO) and buying a Fidelity S&P 500 fund (FXAIX)? Same index, different provider — most tax professionals consider this wash sale risk. Avoid.
  • Selling a total US market fund and buying an S&P 500 fund? Different universe of stocks — generally considered safe, though consult a tax professional for your situation.

Wash Sale Safe Swap Reference

When you harvest a loss, immediately buy a replacement to stay invested. Use this table as a starting point — always confirm with a tax professional:

If you sold Safe replacement Risk level
VTI (Vanguard Total Market) SCHB (Schwab Total Market) or SPTM Lower risk
VTSAX (Vanguard Total Market MF) FSKAX (Fidelity) or SWTSX (Schwab) Gray area
VOO (Vanguard S&P 500) SCHB (Total Market) or VTI (Total Market) Lower risk
VOO (Vanguard S&P 500) IVV or SPY (S&P 500, different provider) Higher risk
BND (Vanguard Total Bond) AGG (iShares US Aggregate Bond) Gray area
BND (Total Bond) VGIT (Intermediate Treasury) or VCIT (Corp Bond) Lower risk
VXUS (Vanguard International) IXUS (iShares International) or SPDW + SPEM Gray area
QQQ (Nasdaq 100) VGT (Vanguard IT Sector) or QQQM Gray area

Risk levels: “Lower risk” means different fund families tracking meaningfully different indexes. “Gray area” means different providers but very similar or identical indexes — the IRS has not issued definitive guidance and tax professionals differ. “Higher risk” means same index, different provider — many advisors consider this wash sale territory. Always consult a tax professional before harvesting.

When Tax-Loss Harvesting Makes Sense

Tax-loss harvesting is powerful, but not for everyone or every situation.

It works in: taxable brokerage accounts. This strategy only matters where you owe capital gains taxes when you sell.

It does NOT work in: IRAs, 401(k)s, or other tax-advantaged accounts. Gains and losses inside a Roth IRA or 401(k) are not taxed annually. There is nothing to harvest.

Best scenarios:

  • You have significant capital gains to offset. The more gains, the more valuable your losses.
  • You are in a higher tax bracket. Higher rates mean each dollar of offset saves you more.
  • You have a large taxable portfolio. More holdings create more harvesting opportunities.
  • The market has dipped. Downturns are prime harvesting windows. See our guide on investing during a recession for keeping perspective.

Direct Indexing: Tax-Loss Harvesting on Steroids

If you have $100,000 or more in a taxable account, direct indexing takes this strategy to the next level. Instead of owning an S&P 500 ETF, you own the individual stocks that make up the index. When individual stocks dip, you harvest those losses even when the overall index is flat or up.

The S&P 500 might be up 5% for the year, but within those 500 stocks, dozens are likely down. Direct indexing captures those individual losses while maintaining overall market exposure. Services like Wealthfront offer direct indexing for accounts of $100,000 or more — see our review for details on how the estimated 1 to 2% in additional after-tax returns is calculated.

How Robo-Advisors Automate Tax-Loss Harvesting

One of the biggest selling points of robo-advisors is automated daily tax-loss harvesting. Instead of manually monitoring your portfolio, the algorithm does it for you — and handles wash sale compliance automatically.

Betterment offers automatic tax-loss harvesting on all taxable accounts at no extra cost, monitoring daily and buying replacement funds to maintain your target allocation. Read our full Betterment review.

Wealthfront pioneered automated tax-loss harvesting and adds direct indexing at $100,000+. Read our full Wealthfront review for how their stock-level harvesting works.

DIY Tax-Loss Harvesting: Step by Step

Step 1: Review your taxable holdings. Log into your brokerage and look at each position’s unrealized gain or loss. Focus only on taxable accounts.

Step 2: Identify positions with meaningful losses. A $50 loss is not worth the effort. A $500 to $1,000+ loss is. Focus on positions down significantly from your cost basis.

Step 3: Check your gain situation. How much in capital gains have you already realized this year? Harvesting losses to offset those gains is the highest-value move. Use the calculator above to quantify the savings.

Step 4: Sell the losing position and immediately buy a replacement. Stay invested. Use the swap table above to find a similar fund that avoids the wash sale rule. Do both trades the same day.

Step 5: Note the date. The 30-day wash sale window starts at the sale date. Set a calendar reminder if you want to buy back your original fund after 31 days.

Step 6: Document everything. Keep records of each sale: date, cost basis, sale price, and replacement security purchased. Your brokerage provides this on your 1099-B, but your own notes make tax time much smoother.

Who Benefits Most from Tax-Loss Harvesting

Most valuable for: high-income earners in the 15% to 20% capital gains brackets; investors with large taxable accounts ($50,000+); people who have realized significant capital gains in the current year; active investors who regularly buy and sell positions.

Less impactful for: people who invest only through retirement accounts; investors in the 0% capital gains bracket (single filers under roughly $48,000 in 2026); buy-and-hold investors with few realized gains.

Common Misconceptions

“Tax-loss harvesting eliminates taxes.” Not exactly — it mostly defers them. When you buy a replacement security at a lower cost basis, you will owe more capital gains when you eventually sell that replacement. Deferral is still valuable because a dollar saved today can be invested and grow, and you may eventually sell in a lower-income year (like retirement) at a lower tax rate.

“I should only do this in December.” Year-end is popular, but opportunities exist throughout the year. A market dip in March or September is equally valid. Robo-advisors harvest daily for exactly this reason.

“It is only for rich people.” While high earners benefit most, anyone with a taxable account and unrealized losses can benefit. The $3,000 annual deduction against ordinary income saves $660 to $720 per year in the 22 to 24% bracket — meaningful for anyone.

Frequently Asked Questions

Does tax-loss harvesting actually save money or just defer taxes?

Mostly defer, with some permanent savings. When you harvest a loss and buy a replacement at a lower cost basis, you will owe more capital gains when you eventually sell that replacement. However, the deferral has real value: the tax money you would have paid today stays invested and compounds. If you hold the replacement for decades and sell in retirement (when income is lower), you may owe at the 0% capital gains rate — turning deferral into permanent savings. The $3,000 annual ordinary income deduction is a permanent saving, not deferred.

Can I tax-loss harvest in a Roth IRA?

No. Gains and losses inside a Roth IRA are not subject to annual capital gains taxes, so there is nothing to harvest. The same applies to traditional IRAs and 401(k)s. Tax-loss harvesting only applies to taxable brokerage accounts where you pay capital gains taxes when you sell. One implication: hold your most tax-efficient investments (total market ETFs) in taxable accounts, and keep your least efficient (bonds, REITs) in tax-advantaged accounts.

Can my spouse’s accounts trigger a wash sale?

Yes. The IRS wash sale rules apply across your entire household, not just individual accounts. If you sell VTI at a loss in your taxable account and your spouse buys VTI in their IRA within 30 days, that triggers a wash sale. This catches many investors by surprise. If you are harvesting losses in one account, coordinate with any accounts your spouse manages simultaneously, including IRAs and 401(k)s.

What happens to harvested losses if I die?

If you have unused loss carryforwards at death, they generally die with you — they cannot be transferred to heirs or your estate. This is one reason some tax professionals recommend using loss carryforwards aggressively while you can, rather than letting them accumulate indefinitely. However, your heirs do receive a “step-up in basis” on inherited assets, which effectively eliminates the capital gains built up in your portfolio — a separate and powerful tax benefit at death.

Does tax-loss harvesting work if I am in the 0% capital gains bracket?

Not for offsetting capital gains — if you owe 0% on long-term gains, harvesting losses to offset those gains saves you $0 in capital gains taxes. However, you can still deduct up to $3,000 against ordinary income (wages, interest, etc.), which is taxable even in the 0% capital gains bracket. If your ordinary income is in the 12% or 22% bracket, a $3,000 deduction still saves $360 to $660. Beyond the $3K deduction, harvesting losses at the 0% bracket has limited value.

How often should I check for harvesting opportunities?

If you are doing it manually, quarterly is a reasonable cadence — check after any significant market dip. Year-end is the most popular time because you can see your full gain picture for the year. If you use a robo-advisor like Betterment or Wealthfront, they check daily and harvest automatically, which captures more opportunities than any manual approach. For DIY investors with larger portfolios (over $100,000), setting a rule like “harvest any position down more than 10% from cost basis” gives a systematic trigger.

Is tax-loss harvesting worth it for small portfolios?

It depends on the size of your losses and your tax bracket. The $3,000 annual ordinary income deduction is the floor value — in the 22% bracket, that is worth $660 per year regardless of portfolio size. If your taxable portfolio is under $10,000 and you have small losses, the administrative hassle may not justify the savings. Most financial planners suggest tax-loss harvesting becomes meaningfully valuable at $50,000+ in taxable assets in the 22%+ bracket. Under that threshold, focus on maximizing your IRA and 401(k) contributions first.

Do I need to report tax-loss harvesting on my taxes?

Yes. Any sale in a taxable account must be reported to the IRS via Schedule D on your tax return. Your brokerage sends a Form 1099-B after year-end showing all your sales, cost basis, and gains or losses. If you do carry-forward losses from prior years, you report those on Form 8949 and Schedule D as well. Tax software like TurboTax or H&R Block handles this automatically when you import your 1099-B — you do not need to calculate it manually. Keep your own records of the wash sale replacements you purchased in case of a discrepancy.

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.

The calculator above shows exactly how much your specific situation saves. The wash sale swap table shows how to stay invested while still claiming the loss. And if you would rather not manage this manually, a robo-advisor like Betterment or Wealthfront automates the entire process daily.

Either way, do not let investment losses go to waste. Put them to work.

Next steps:

  • Want automated tax-loss harvesting? Read our robo-advisor comparison — Betterment and Wealthfront both do this daily at no extra charge.
  • Have $100K+ in a taxable account? Read our Wealthfront review to understand how direct indexing amplifies TLH significantly.
  • Building the taxable account you will harvest? Read our ETF investing guide for which funds are most tax-efficient to hold in a taxable account.

Leave a Reply

Your email address will not be published. Required fields are marked *