Skip to main content
Tax-Loss Harvesting

What Is Tax-Loss Harvesting?

Pomegra Learn

What Is Tax-Loss Harvesting?

Tax-loss harvesting is the deliberate sale of securities trading below their purchase price to realize capital losses that offset capital gains—and, up to a limit, ordinary income. Rather than passively holding every position until retirement, savvy investors harvest losses during down markets to reduce their annual tax liability while keeping their portfolios aligned with their target allocation.

Quick definition: Tax-loss harvesting is selling an investment at a loss to generate a capital loss that can offset capital gains, reduce taxable income by up to $3,000 per year, and carry losses forward indefinitely.

Key takeaways

  • Tax-loss harvesting converts unrealized losses (on paper) into realized losses you can use on your tax return
  • You can offset unlimited capital gains from sales that year, then deduct up to $3,000 of losses against ordinary income
  • Excess losses roll forward to future tax years with no time limit
  • The strategy works best during market downturns when many positions are underwater
  • Harvesting must be paired with a replacement purchase or portfolio rebalancing to avoid simply locking in permanent losses

How tax-loss harvesting works in practice

When you own a stock, ETF, or bond that has declined in value since purchase, its "unrealized loss" exists only on your brokerage statement. The IRS recognizes that loss only when you sell. Selling at a loss "realizes" it—converting the paper loss into an actual transaction with tax consequences.

Here's the basic sequence. Suppose you bought 100 shares of a technology stock at $50 per share ($5,000 investment). The stock has fallen to $35 per share ($3,500 current value), giving you an unrealized loss of $1,500. If you sell those shares now, you lock in a $1,500 capital loss. That loss appears on your Schedule D (capital gains and losses) when you file your tax return.

The power of harvesting emerges in how the IRS treats that loss. First, it cancels out any capital gains from other sales that year—dollar for dollar. If you sold an index fund for a $2,500 gain earlier in the year, the $1,500 loss reduces your taxable capital gain to just $1,000. Beyond that, you can deduct up to $3,000 of remaining losses against your ordinary income (wages, dividends, interest) in that tax year. Any loss beyond $3,000 carries forward to the next year, where it can offset future gains again.

Why investors harvest losses

The primary motivation is tax deferral and rate arbitrage. By harvesting a loss this year, you defer tax on a gain to a later year (or eliminate it entirely), and you use the loss when your tax bracket may be lower. A retiree who normally pays 12% tax on ordinary income might harvest a loss this year, then wait to harvest gains in a future year when she's in the 0% long-term capital gains bracket (2024–2025 thresholds: singles under ~$47,000).

Consider a concrete example. You have $50,000 in a diversified portfolio split across five holdings. One position—a small-cap growth fund—has lost 30% and is down $6,000. Another holding—a dividend aristocrat ETF—gained 15%, netting $3,000. If you harvest the $6,000 loss in December, you realize:

  • The $6,000 loss offsets the $3,000 gain entirely.
  • The remaining $3,000 loss deducts against ordinary income.
  • If you're in the 22% federal bracket, that $3,000 deduction saves ~$660 in federal tax that year.
  • Next year, you have no carried-forward loss and can start fresh.

Without harvesting, you'd owe tax on the $3,000 gain while the $6,000 loss sits on paper, unused—a missed opportunity.

The market-timing myth

A common misconception is that tax-loss harvesting requires predicting market bottoms. It does not. Markets are volatile; over any 12-month period, most diversified portfolios will have some positions underwater, especially in sectors that lag. You don't need to guess where the market goes next; you simply harvest available losses when they exist and when your overall portfolio benefits from rebalancing toward your long-term allocation.

When harvesting fits into a broader tax strategy

Tax-loss harvesting is not a standalone tactic. It operates within a year-long tax strategy alongside other moves: timing the sale of winners, choosing which accounts to trade in (taxable vs. tax-deferred), selecting tax-efficient funds, and managing alternative minimum tax (AMT) exposure. Its power multiplies when combined with asset-location strategy (keeping high-turnover funds in retirement accounts, tax-efficient index funds in taxable accounts) and thoughtful charitable-giving timing.

The constraint: wash-sale rules

The IRS imposes one major restriction: you cannot simply repurchase the same security you sold at a loss within 30 days before or after the sale—a rule called the wash-sale rule. This prevents "harvesting" a loss while keeping the same economic exposure, which would be pure tax avoidance. If you violate it, the loss is disallowed and added to the cost basis of the new purchase, deferring the benefit indefinitely.

Navigating the wash-sale rule is straightforward: buy a similar (but not identical) replacement security instead of rebuying the original, or wait 31 days. Most investors harvest and immediately buy a comparable ETF or fund tracking the same market segment, maintaining their desired portfolio exposure while restarting the loss-harvesting clock for future opportunities.

Regional and account-specific limits

Harvesting is available in taxable brokerage accounts. Tax-deferred accounts (401(k), IRA, SEP-IRA) offer no tax benefit because gains and losses are not reportable to the IRS while the account is open. Some states (e.g., California) do not recognize capital-loss deductions on state returns, limiting harvesting's overall benefit in those jurisdictions.

A qualified tax professional or financial advisor can confirm the current tax rules and limits, as they change periodically. The $3,000 annual deduction limit and the 30-day wash-sale window are long-standing, but regulations are subject to future revision.

The timing decision

Most harvesting happens in November and December, when investors tally their year-to-date gains and losses and take action before year-end. However, strategic harvesting can occur throughout the year when:

  • A major market correction creates many underwater positions.
  • A sector rotation moves capital out of a lagging position.
  • A company-specific downturn creates a loss in an otherwise-bullish portfolio.
  • Tax brackets are known early (e.g., after a job change or retirement).

The best time to harvest is whenever your portfolio has losses to harvest and you plan to rebalance back to your target allocation anyway.

Real-world examples

Example 1: The midyear market dip. In mid-2023, technology stocks fell sharply. An investor with a $10,000 NASDAQ-100 ETF position (originally $12,000) harvests the $2,000 loss by selling the position in June. She immediately buys a different technology-focused ETF tracking the S&P 500's tech sector to maintain exposure. The $2,000 loss offsets a gain from selling Tesla shares earlier that year. The investor stays fully invested in tech and captures any recovery from the June lows onward.

Example 2: The dividend-paying loser. A retiree holds a utility-sector dividend ETF that declined 15% over two years (cost $8,000, now $6,800). She harvests the $1,200 loss in November. Since she has no capital gains that year, the $1,200 deduction applies to her $50,000 ordinary income (Social Security and pension). At her 22% marginal tax rate, it saves ~$264 in federal tax. She replaces the position with a similar utility fund and receives the same dividend stream.

Example 3: The concentrated position. A founder holds 5,000 shares of her company stock from an early equity grant. It has appreciated 400% since vesting and now represents 40% of her taxable portfolio. She has significant unrealized gains but also owns a speculative small-cap position (down 25%) that she harvested at a loss for $8,000. That loss shelters $8,000 of her company-stock gains from tax when she eventually diversify. By harvesting intentionally, she can sell company stock over multiple years, using harvested losses to manage the tax on each tranche.

Common mistakes

1. Harvesting without rebalancing. Some investors harvest a loss but leave the portfolio unbalanced, missing the opportunity to restore their intended allocation. If a tech position declined 30% and now represents 8% of your portfolio instead of 15%, harvest the loss and buy tech back (a different fund) to re-weight to 15%. You realize a tax benefit while keeping your risk profile intact.

2. Violating the wash-sale rule by accident. Selling a stock at a loss and repurchasing an identical position within 30 days disallows the loss. Worse, it happens automatically if you're subscribed to a dividend reinvestment plan (DRIP) or if a robo-advisor rebalances into the same fund. Always check your trading history and DRIP settings before harvesting.

3. Harvesting losses in tax-deferred accounts. Gains and losses in a 401(k) or traditional IRA are never reported to the IRS, so harvesting provides zero tax benefit. Focus harvesting efforts exclusively on taxable accounts.

4. Ignoring capital-gains distributions. Many mutual funds pay capital-gains distributions in December (from internal securities sales). These create unexpected gains in your taxable account. Harvest losses before the distribution date to offset it, not after.

5. Conflating harvesting with market timing. Harvesting is not about predicting when a stock will recover. It's about using real losses that exist today. Even if a stock declines further after you sell, you've locked in a loss that helps your taxes. If it recovers, your replacement security captures the rebound—you're not worse off.

FAQ

Can I harvest losses in a Roth IRA? No. Roth IRAs are tax-deferred accounts; gains and losses within them are not reported to the IRS and offer no tax deduction. Tax-loss harvesting applies only to taxable brokerage accounts.

How many times can I harvest losses in a year? Unlimited, as long as losses are available and you respect the wash-sale rule. Many investors harvest continuously throughout the year whenever they rebalance or take profits.

What happens if I harvest a huge loss? Can I deduct it all this year? No. You can deduct only $3,000 of losses against ordinary income per year. Excess losses carry forward indefinitely to future years, where they offset future gains and income with the same $3,000 annual cap.

Do I need to report harvested losses on my tax return? Yes. All harvested losses appear on Schedule D (Form 1040), which you file with your annual tax return. You do not claim them separately; they offset gains automatically on the IRS's calculation.

Can I harvest losses in employer stock I own outside my 401(k)? Yes. Stock you own in a taxable brokerage account (not through an employer plan) is eligible for tax-loss harvesting, same as any other holding. Watch for concentrated-position tax issues and consult a tax professional before selling employer stock.

Is there a limit to how much I can harvest in dollars? No limit on harvesting losses themselves. The $3,000 cap applies only to deducting losses against ordinary income. Harvested losses can offset unlimited capital gains. Excess losses carry forward, preserving them for future years.

Summary

Tax-loss harvesting is a deliberate strategy to realize capital losses in your taxable account when they exist, converting paper losses into tax deductions that offset gains, reduce ordinary income by up to $3,000 per year, and carry forward indefinitely. The strategy works within taxable brokerage accounts only, requires respecting the 30-day wash-sale window, and succeeds when paired with portfolio rebalancing toward your long-term allocation. Harvesting losses is not market timing; it's a disciplined way to improve your after-tax returns over time while maintaining your intended portfolio exposure.

Next

How Tax-Loss Harvesting Works