FinWiz

Tax-Loss Harvesting: Turn Losing Trades Into Tax Savings

intermediate10 min readUpdated January 15, 2025

Key Takeaways

  • Tax-loss harvesting offsets capital gains by selling losing investments, reducing your tax bill
  • You can deduct up to $3,000 in net capital losses against ordinary income per year
  • Unused losses carry forward indefinitely to offset future gains
  • The wash sale rule prevents repurchasing substantially identical securities within 30 days

What Is Tax-Loss Harvesting?

Tax-loss harvesting is the strategy of selling investments at a loss to offset capital gains and reduce your tax liability. By intentionally realizing losses, you reduce the net gains reported on your tax return — and potentially eliminate capital gains taxes entirely for the year.

This is one of the most powerful legal tax reduction strategies available to investors. Studies estimate that systematic tax-loss harvesting can add 0.5% to 1.5% in after-tax returns annually, depending on market conditions and the investor's tax bracket.

The concept is straightforward: if you have a $10,000 gain and a $10,000 loss, the two cancel out, resulting in zero taxable gains. Without harvesting that loss, you would owe taxes on the full $10,000 gain.

How Tax-Loss Harvesting Works

The process involves three steps:

  1. Identify losing positions in your taxable accounts
  2. Sell the losing investments to realize the capital loss
  3. Reinvest the proceeds in a similar (but not substantially identical) investment to maintain your market exposure

Tax Savings = Harvested Loss × Marginal Tax Rate Example: $15,000 loss × 32% tax rate = $4,800 in tax savings

The key insight is that you are not actually losing money — you are recognizing a loss that already exists on paper. Your portfolio value does not change when you harvest losses. You simply sell one holding and buy a comparable replacement.

The Offset Rules: How Losses Reduce Your Taxes

Capital losses offset gains in a specific order mandated by the IRS:

Step 1: Short-term losses offset short-term capital gains first.

Step 2: Long-term losses offset long-term capital gains first.

Step 3: Any remaining net short-term losses offset long-term gains, and vice versa.

Step 4: If you still have net losses after all gains are offset, you can deduct up to $3,000 ($1,500 if married filing separately) against ordinary income.

Step 5: Any excess losses beyond $3,000 carry forward to future tax years indefinitely.

Pro Tip

Short-term losses offsetting short-term gains provide the greatest tax benefit because short-term gains are taxed at higher ordinary income rates (up to 37%) versus long-term rates (0-20%).

When to Harvest Losses

Year-end review. The most common time for tax-loss harvesting is November and December, when investors can see their full-year tax picture. However, waiting until year-end means you might miss opportunities earlier in the year.

During market downturns. Corrections and bear markets create the best harvesting opportunities. The 2020 COVID crash and 2022 bear market offered exceptional chances to harvest losses across multiple asset classes.

Throughout the year. Sophisticated investors and robo-advisors practice continuous harvesting, scanning for loss opportunities daily or weekly. This approach typically captures more losses than annual-only harvesting.

Before large gains. If you anticipate selling a highly appreciated position, harvest losses beforehand to offset the expected gain.

The Wash Sale Rule: Critical Limitation

The IRS wash sale rule is the most important constraint on tax-loss harvesting. It disallows a loss if you purchase a substantially identical security within 30 days before or after the sale.

The 30-day window creates a 61-day total blackout period (30 days before, the sale date, and 30 days after). If you trigger a wash sale, the disallowed loss is added to the cost basis of the replacement shares.

What counts as substantially identical:

  • The exact same stock or bond
  • Options on the same stock
  • A mutual fund or ETF tracking the same index (debatable — IRS guidance is limited)

What is generally not substantially identical:

  • An ETF tracking a different index (e.g., selling an S&P 500 fund and buying a total market fund)
  • Stocks in the same sector but different companies
  • Bonds from different issuers with similar terms

Tax-Loss Harvesting Strategy: Step by Step

Here is a practical example of a complete tax-loss harvesting strategy:

StepActionExample
1Identify lossTechnology ETF down $8,000
2Check holding periodHeld 4 months (short-term loss)
3Sell the positionRealize $8,000 short-term loss
4Buy replacementPurchase a different tech ETF immediately
5Wait 31 daysAfter 31 days, optionally switch back to original
6Report on taxesOffset $8,000 against short-term gains

If you have $12,000 in short-term gains from other trades, this $8,000 harvested loss reduces your taxable short-term gains to just $4,000. At a 32% marginal rate, that saves you $2,560 in taxes.

Common Tax-Loss Harvesting Mistakes

Triggering a wash sale. Buying back the same security within 30 days is the most common error. This also applies across accounts — buying the same stock in your IRA within 30 days of selling it at a loss in your taxable account triggers a wash sale.

Ignoring transaction costs. Frequent harvesting generates trading commissions and bid-ask spread costs. Ensure your tax savings exceed these costs. With commission-free brokers, this is less of a concern today.

Harvesting losses with no gains to offset. While you can deduct $3,000 per year against ordinary income, harvesting $50,000 in losses when you have no gains means it takes 16+ years to fully use those losses. It is still beneficial, but the time value of money reduces the present value of far-future deductions.

Changing your asset allocation. When replacing a sold position, choose a substitute that maintains your target allocation. Selling a value ETF and replacing it with a growth ETF changes your portfolio's risk profile.

Pro Tip

Maintain a list of "replacement" securities for each of your core holdings before you need them. This allows you to act quickly during market dips without risking a wash sale or changing your allocation.

Tax-Loss Harvesting in Different Account Types

Taxable brokerage accounts: Tax-loss harvesting applies only in taxable accounts. Gains and losses in tax-advantaged accounts have no immediate tax impact.

IRA and 401(k): These accounts are tax-deferred (or tax-free for Roth), so losses cannot be harvested. Worse, buying a substantially identical security in your IRA within 30 days of a taxable account sale triggers a wash sale — and the loss is permanently disallowed (not added to the IRA's basis).

Multiple taxable accounts: The wash sale rule applies across all your accounts, including your spouse's accounts. A purchase in any account within the 30-day window can trigger a wash sale.

Advanced Tax-Loss Harvesting Techniques

Direct indexing is an advanced strategy where you hold individual stocks that replicate an index rather than owning an index fund. This creates dozens or hundreds of individual positions, dramatically increasing harvesting opportunities. Studies show direct indexing can harvest 2x to 5x more losses than fund-level harvesting.

Asset location optimization involves placing tax-inefficient investments (bonds, REITs) in tax-advantaged accounts and tax-efficient investments (index funds, long-term holdings) in taxable accounts. This maximizes harvesting opportunities while minimizing overall tax drag.

Loss carry-forward planning involves tracking your accumulated carried-forward losses and planning future gain realization accordingly. If you have $50,000 in carry-forward losses, you can realize $50,000 in gains tax-free in future years.

Measuring the Value of Tax-Loss Harvesting

Annual After-Tax Benefit = Harvested Losses × Tax Rate × (1 − Present Value Discount) For a $20,000 loss at 35% tax rate: Immediate benefit = $20,000 × 0.35 = $7,000 Note: The tax benefit is partially a deferral, not elimination, since your replacement shares have a lower cost basis.

It is important to understand that tax-loss harvesting primarily provides tax deferral rather than tax elimination. When you sell the replacement shares later, your cost basis is lower, resulting in a larger future gain. However, the time value of deferring taxes — plus the potential for future gains to be taxed at lower long-term rates — makes this strategy overwhelmingly beneficial.

FAQ

How much can you write off with tax-loss harvesting?

There is no limit on the amount of capital losses you can use to offset capital gains. However, if your net losses exceed your net gains, you can only deduct $3,000 per year ($1,500 if married filing separately) against ordinary income. Excess losses carry forward to future years.

Is tax-loss harvesting worth it for small portfolios?

Yes, but the benefit scales with portfolio size and tax bracket. For a small portfolio generating $1,000 in harvestable losses, the tax savings might be $200-$370. With commission-free trading, there is minimal cost to executing the strategy.

Can I harvest losses on cryptocurrency?

Yes. As of current IRS guidance, crypto is treated as property. The wash sale rule historically did not apply to crypto, though legislation has been proposed to extend it. Check the latest IRS guidance, as rules are evolving.

Does tax-loss harvesting work in a bull market?

Yes, even in strong bull markets, individual positions can decline. Sector rotations, company-specific issues, and normal volatility create harvesting opportunities. Direct indexing is particularly effective at finding losses in rising markets.

How does tax-loss harvesting interact with the wash sale rule?

The wash sale rule disallows losses if you buy a substantially identical security within 30 days before or after the sale. To avoid triggering it, replace sold positions with similar but not identical investments, and wait at least 31 days before repurchasing the original security.

Disclaimer

This is educational content, not financial advice. Trading involves risk, and you should consult a qualified financial advisor before making any investment decisions. Past performance does not guarantee future results.

Frequently Asked Questions

What is the best way to get started with trading taxes?

Start by reading this guide thoroughly, then practice with a paper trading account before risking real capital. Focus on understanding the concepts rather than memorizing rules.

How long does it take to learn tax-loss harvesting?

Most traders can grasp the basics within a few weeks of study and practice. However, developing consistency and proficiency typically takes several months of active application.

Related Articles