Skip to main content
Tax-Loss Harvesting: Turn Market Losses Into a Tax Advantage
← Back to Blog
StrategyOctober 29, 2026 · 5 min read

Tax-Loss Harvesting: Turn Market Losses Into a Tax Advantage

Tax-loss harvesting is one of the few legal ways to use market downturns to your advantage. Learn how it works, what the wash-sale rule means, and when it makes sense to use it.

Written in house: drafted with AI tools, edited by Melroy, on topics he chose.

Markets go down. Sometimes a lot. But buried inside every portfolio loss is a potential tax benefit - if you know how to unlock it.

Tax-loss harvesting is a strategy that converts paper losses into real tax savings. It won't make you feel better about a declining market, but it can meaningfully improve your after-tax returns over time.

The Basic Concept

When you sell an investment at a loss, that loss can offset capital gains elsewhere in your portfolio. If your losses exceed your gains, you can even deduct up to $3,000 of the remaining loss against ordinary income each year, and carry forward any additional losses indefinitely.

Here's the simplest version:

Example:

  • You sold Stock A for a $5,000 gain (long-term)
  • You sell ETF B, which is down $3,000 from your cost basis
  • Net taxable gain: $2,000 instead of $5,000
  • At a 15% long-term capital gains rate: you saved $450 in taxes

The key insight: you can immediately reinvest the proceeds from ETF B into a similar (but not identical) investment, maintaining your market exposure while locking in the tax benefit.

Short-Term vs Long-Term Losses

Not all losses are equal from a tax perspective.

Short-term losses (from assets held less than 1 year) first offset short-term gains, which are taxed at your ordinary income rate (up to 37%).

Long-term losses (from assets held more than 1 year) first offset long-term gains, taxed at 0%, 15%, or 20% depending on your income.

The ordering matters: short-term losses are more valuable per dollar because they offset income taxed at higher rates. If you have both types of losses available, harvest short-term losses first.

The Wash-Sale Rule

This is the critical constraint that trips up most people attempting tax-loss harvesting.

The IRS disallows a loss if you buy a "substantially identical" security within 30 days before or after the sale. This 30-day window applies on both sides of the transaction.

What violates the wash-sale rule:

  • Selling VFIAX (Vanguard S&P 500 mutual fund) and buying VOO (Vanguard S&P 500 ETF) - same index, likely "substantially identical"
  • Selling SPY and buying SPXB (both track S&P 500)
  • Buying back the same security in an IRA within the window while taking the loss in a taxable account

What's generally safe:

  • Selling a Vanguard Total Market fund and buying a Schwab Total Market fund (different fund companies, similar but not identical)
  • Selling an S&P 500 fund and buying a Total Market fund (broader index)
  • Selling a US stock fund and buying an international stock fund

The IRS has never precisely defined "substantially identical" for funds, so there's some grey area. The safe approach: swap into something clearly different in construction, even if similar in exposure.

A Practical Harvesting Example

You invested $50,000 in an S&P 500 ETF (say, IVV). The market dropped and it's now worth $42,000 - a $8,000 unrealized loss.

Step 1: Sell IVV, realizing the $8,000 loss.

Step 2: Immediately buy a different broad US market ETF - say, SCHB (Schwab US Broad Market) - with the $42,000 proceeds. You maintain full market exposure.

Step 3: Wait 31 days, then optionally switch back to IVV if preferred.

Tax impact:

  • $8,000 loss can offset $8,000 of capital gains elsewhere
  • If no gains to offset: deduct $3,000 against ordinary income this year, carry forward $5,000
  • At a 24% tax rate: $1,920 saved on ordinary income alone, with $5,000 loss carried to future years

Your portfolio position is nearly identical. Your tax situation is meaningfully better.

When Tax-Loss Harvesting Makes Sense

Good candidates:

  • Taxable brokerage accounts with unrealized losses
  • High-income investors in the 22%+ bracket
  • Years with large capital gains from other sources (selling real estate, a business, etc.)
  • Market downturns - volatility creates harvesting opportunities

Not worth it when:

  • The loss is tiny - transaction costs and complexity may not be worth it
  • You're in the 0% capital gains bracket (under ~$47,000 single, ~$94,000 married in 2026)
  • The investment is in an IRA or 401(k) - no tax benefit in tax-advantaged accounts
  • You plan to sell soon anyway - the timing benefit disappears

The "Free Lunch" Misconception

Tax-loss harvesting defers taxes, it doesn't eliminate them. When you sell the replacement fund later for a gain, you'll owe taxes on that gain too - calculated from the lower cost basis.

The value comes from the time value of money: you're paying taxes in the future with dollars that, in the meantime, have been working for you in the market.

The longer you hold the replacement investment (ideally until death, when assets receive a step-up in basis), the greater the benefit.

Automated vs. Manual Harvesting

Manual: You monitor your portfolio, identify loss positions, execute the trades yourself. This requires discipline and awareness of the wash-sale rule across all your accounts.

Automated (robo-advisors): Services like Betterment, Wealthfront, and Fidelity Go monitor daily for harvesting opportunities. Useful but requires understanding what you're paying for the feature.

Using Prismfolio: Analyze your portfolio to see your unrealized gains and losses across accounts, identify harvesting candidates, and understand your current exposure before making any moves.


Tax-loss harvesting is genuinely one of the few strategies that can improve your after-tax returns without taking on more risk. The mechanics are manageable once you understand the wash-sale rule. The discipline to act during downturns - when every instinct says to do nothing - is the harder part.

Was this helpful?

Related reading