Back to Tax-Efficient Investing

Search Answer

Tax-Loss Harvesting Explained

Tax-loss harvesting is one of the highest-value tax planning tools available to taxable investors — it converts an inevitable short-term loss into a durable tax asset without requiring permanent exit from market exposure.

This guide explains tax-loss harvesting — how it works mechanically, the wash-sale rule, how to harvest losses without losing market exposure, when harvesting is most valuable, and the most common mistakes that eliminate the benefit.

Last updated: 2026-05-17

Short Answer

Tax-loss harvesting means deliberately selling positions at a loss to realize capital losses that offset capital gains — reducing your tax bill without permanently exiting market exposure by immediately reinvesting in a similar (but not identical) security.

What It Means

Tax-loss harvesting is the practice of selling an investment at a loss to generate a capital loss deduction, then immediately reinvesting proceeds in a similar (but not identical) security to maintain market exposure. The realized capital loss offsets capital gains from other positions, reducing the current-year tax owed. Net capital losses exceeding gains can offset up to $3,000 of ordinary income per year; any remainder carries forward indefinitely to future years. The key is maintaining market exposure after harvesting — the goal is not to exit the market but to convert a paper loss into a tax asset while remaining invested.

Quick Answer

The tax benefit: a $10,000 capital loss in a taxable account offsets $10,000 of capital gains. At the 23.8% long-term capital gains rate (20% + 3.8% NIIT for high-income investors), this saves $2,380 immediately. The offsetting cost: the replacement security has a lower cost basis, meaning future gains will be larger when it is eventually sold. Tax-loss harvesting defers taxes rather than eliminating them permanently — but the deferral value is real and compounds over time. Harvesting is most valuable when: (1) you have substantial realized gains to offset, (2) your tax rate is high, and (3) you have a long time horizon before liquidating the replacement position.

For the full framework, see Tax-Efficient Investing.

How to Implement Tax-Loss Harvesting

Tax-loss harvesting requires execution discipline and awareness of the wash-sale rule. Follow these steps to harvest correctly.

  1. 1. Identify harvest candidates: review all positions in taxable accounts with unrealized losses. Calculate the loss magnitude and current tax basis. Concentrate on positions with losses above $1,000 — smaller losses generate minimal tax savings but incur full trading friction.
  2. 2. Select a replacement security: the replacement must maintain market exposure without triggering the wash-sale rule. The wash-sale rule disallows the loss if you buy a 'substantially identical' security within 30 days before or after the sale. IRS guidance defines substantially identical narrowly for stocks — selling AAPL and buying MSFT is safe; selling SPY and buying VOO (both tracking the S&P 500) is legally gray; selling SPY and buying IVV (same index, different fund) is likely a wash sale.
  3. 3. Execute the sale and repurchase simultaneously: sell the loss position and immediately buy the replacement in the same transaction cycle. Do not wait — the replacement purchase re-establishes market exposure and prevents the behavioral trap of 'waiting for a better entry price,' which is market timing dressed as tax planning.
  4. 4. Reset your calendar: wait 31 days before buying back the original security if desired. After 31 days, the wash-sale rule no longer applies. Many investors simply keep the replacement security permanently if the alternative provides adequate exposure.
  5. 5. Track cost basis carefully: your new position has a lower cost basis than the original (the replacement's purchase price is lower than the original's cost basis). When you eventually sell the replacement, the gain will be larger — ensure your records accurately reflect this for future tax filings.
  6. 6. Apply losses strategically: first offset short-term gains (taxed as ordinary income at rates up to 37%); then offset long-term gains (taxed at 0%, 15%, or 20%). Short-term capital losses offsetting short-term gains provide the highest tax value. Long-term losses should be used against long-term gains when possible.

Tax-Loss Harvesting vs. Tax-Deferred Accounts

Tax-loss harvesting only applies to taxable brokerage accounts — IRAs and 401(k)s are tax-deferred, so there are no capital gains events within the account and no losses to harvest. In tax-deferred accounts, rebalancing, selling, and reinvesting are all tax-free. The optimal asset location strategy: hold tax-inefficient assets (high-turnover strategies, bonds, REITs) in tax-deferred accounts; hold tax-efficient assets (buy-and-hold equity, low-dividend growth stocks) in taxable accounts where harvesting opportunities arise.

ScenarioActionTax OutcomeWatch Out For
Stock down 20%, thesis intactSell, immediately buy a similar ETFHarvest $X loss; maintain market exposureWash-sale rule — don't buy the same or 'substantially identical' security within 30 days
Large capital gain elsewhereHarvest losses to offset gainsReduce or eliminate capital gains tax dueMatch long-term losses to long-term gains for optimal tax rate match
High-income yearHarvest losses to offset up to $3,000 ordinary incomeReduce ordinary income tax, carry forward remainingLosses exceeding $3,000 carry forward indefinitely — use them
Year-end rebalancingCombine rebalancing with harvesting where losses existTax-free rebalancing if losses offset rebalancing gainsTrack cost basis carefully after multiple purchase lots

Tax-Loss Harvesting Example

Harvesting $15,000 of losses to offset gains:

  • You realize $20,000 of long-term capital gains from selling a winning position.
  • You hold NVDA at a $15,000 unrealized loss (bought at $500, now at $275) — thesis still intact.
  • You sell NVDA, harvesting the $15,000 loss. Immediately buy AMD (a different semiconductor company).
  • Net taxable capital gains: $20,000 − $15,000 = $5,000. Tax at 23.8%: $1,190 (vs. $4,760 without harvesting).
  • AMD's cost basis is your new purchase price — future gains on AMD will be calculated from there.

You saved $3,570 in immediate taxes while maintaining semiconductor exposure through AMD. The NVDA position can be re-purchased after 31 days if desired. The tax savings of $3,570 remain invested and compound — at 8% for 20 years, that $3,570 becomes approximately $16,600.

Key Takeaways

  • Asset location: hold least tax-efficient assets (high-yield bonds, REITs, active funds) in tax-advantaged accounts; hold buy-and-hold equity index funds in taxable accounts.
  • Tax-loss harvesting converts paper losses into tax deductions — reinvest immediately in a similar (but not identical) security to maintain market exposure and avoid the wash-sale rule.
  • The gap between long-term (15-20%) and short-term (up to 37%) capital gains rates creates a powerful incentive to hold positions beyond 12 months.
  • Roth IRA conversions are most valuable during low-income years; Roth compounding produces full wealth vs. ~67% after-tax from equivalent traditional IRA growth.
  • Over multi-decade horizons, tax efficiency produces wealth differences comparable to investment alpha — tax drag compounds as powerfully as investment returns.

For the full framework, examples, and FAQs, read Tax-Efficient Investing.

Apply This Using Real Stocks

Use AIQ stock pages to compare replacement securities when harvesting losses — ensure the replacement provides similar factor exposure (sector, momentum, quality profile) to maintain your portfolio's intended risk profile.

Unique Insight

Tax-loss harvesting's biggest compounding benefit is often invisible: every dollar of tax deferred today remains invested and compounds at market rates until realization. A $10,000 tax loss harvested today that saves $2,380 in immediate taxes (at 23.8% combined rate) keeps that $2,380 invested for potentially decades — at 8% annual return, this deferred $2,380 compounds to approximately $10,500 over 20 years. The compounding value of tax deferral often exceeds the compounding value of most investment alpha decisions.

Related Search Queries

  • tax loss harvesting explained
  • how does tax loss harvesting work
  • tax loss harvesting rules
  • wash sale rule investing
  • how to reduce capital gains taxes investing

Related Search Variants

FAQs

What is the wash-sale rule in tax-loss harvesting?

The wash-sale rule (IRS Code Section 1091) disallows a capital loss deduction if you buy a 'substantially identical' security within 30 days before or after selling the original at a loss. The rule prevents investors from harvesting losses while maintaining identical economic exposure. Substantially identical is strictly defined for stocks — selling one stock and buying a different company in the same sector does not trigger the rule. Selling one S&P 500 ETF and buying another S&P 500 ETF tracking the identical index is in a gray area. Selling an ETF and buying one that tracks a closely related but different index (S&P 500 vs. Total Market) is generally accepted.

Is tax-loss harvesting worth it?

Tax-loss harvesting is worth it when: (1) you have capital gains to offset — without gains, the loss only saves $3,000 of ordinary income tax per year; (2) your combined capital gains tax rate is high (20%+ federal plus state); (3) you have a long time horizon before needing to liquidate the replacement position (the deferred gain grows, making future tax larger, but the deferral compounds the savings). For investors in the 0% or 15% capital gains bracket, harvesting is less beneficial. For investors in the 23.8% combined rate bracket with substantial gains, it is one of the highest-value tax planning moves available.

Can you tax-loss harvest in an IRA?

No — tax-loss harvesting does not apply to IRAs, 401(k)s, or any tax-deferred or tax-exempt accounts. Within these accounts, you can sell and reinvest without tax consequences, but losses realized within the account provide no deduction — they simply reduce the account balance. Tax-loss harvesting is exclusively a strategy for taxable brokerage accounts where each sale of a position creates a taxable event. The optimal approach: keep high-turnover strategies and assets that frequently generate gains in tax-advantaged accounts; keep long-term buy-and-hold equity in taxable accounts where harvesting opportunities naturally arise.

Put It Into Practice

See how this concept plays out in live stock signals, rankings, and comparisons.

Educational content only. Nothing on this page constitutes investment advice.