Tax-Loss Harvesting: Complete Strategy Guide
Tax-Loss Harvesting: Complete Strategy Guide
Tax-loss harvesting is one of the most powerful legal tax reduction strategies available to investors. The concept is simple: sell investments that have declined in value to realize capital losses, then use those losses to offset capital gains and up to $3,000 of ordinary income per year. When executed properly, you reduce your tax bill without meaningfully changing your portfolio’s investment exposure. When executed poorly — or in violation of the wash sale rule — you achieve nothing. This guide covers the strategy from end to end.
Data Notice: Figures, rates, and statistics cited in this article are based on the most recent available data at time of writing and may reflect projections or prior-year figures. Always verify current numbers with official sources before making financial, medical, or educational decisions.
How Tax-Loss Harvesting Works
The Basic Mechanics
- Identify losing positions — Review your portfolio for investments currently trading below your cost basis
- Sell the losing position — Realize the capital loss
- Report the loss — Use Form 8949 and Schedule D to report the loss on your tax return
- Offset gains — The realized loss offsets capital gains dollar-for-dollar (short-term losses first offset short-term gains; long-term losses first offset long-term gains, then cross-net)
- Offset ordinary income — Any net capital loss remaining after offsetting all gains can offset up to $3,000 of ordinary income ($1,500 if married filing separately)
- Carry forward excess — Losses exceeding the $3,000 limit carry forward to future tax years indefinitely
- Reinvest — Purchase a similar (but not “substantially identical”) investment to maintain your market exposure
Example
You have:
- $15,000 in long-term capital gains from selling appreciated stock
- A position in Fund A that is currently down $10,000
Without harvesting: You owe tax on the full $15,000 gain. At the ~15% long-term rate, that is ~$2,250.
With harvesting: You sell Fund A, realizing a $10,000 loss. Your net gain is $5,000. At ~15%, you owe ~$750. Tax savings: ~$1,500.
You immediately reinvest in a similar fund (Fund B, tracking the same index but from a different provider) to maintain your exposure. Your investment strategy is essentially unchanged, but your tax bill dropped by ~$1,500.
The $3,000 Ordinary Income Deduction
Even if you have no capital gains to offset, harvested losses are valuable. After netting all gains and losses:
- Up to $3,000 of net capital losses can be deducted against ordinary income each year
- At a 24% tax bracket, that saves ~$720 per year
- At a 35% bracket, that saves ~$1,050 per year
- Unused losses carry forward indefinitely — a $30,000 harvested loss with no gains to offset could provide $3,000/year of deductions for 10 years
This makes tax-loss harvesting valuable even in years when you have no gains, and it makes large losses particularly powerful as a multi-year deduction machine.
The Wash Sale Rule: The Critical Constraint
The wash sale rule is the single most important rule in tax-loss harvesting. It exists to prevent taxpayers from claiming a loss while immediately repurchasing the same investment.
The Rule
If you sell a security at a loss and purchase a “substantially identical” security within 30 days before or after the sale, the loss is disallowed. The disallowed loss is added to the cost basis of the replacement security.
The 61-Day Window
The wash sale window is 61 days total:
- 30 days before the sale
- The day of the sale
- 30 days after the sale
If you bought the same security within this window — either through a purchase, dividend reinvestment, IRA contribution, or even in a different account — the loss is disallowed.
What Is “Substantially Identical”?
The IRS has never provided a comprehensive definition, but the established guidelines are:
| Substantially Identical | NOT Substantially Identical |
|---|---|
| Same stock (selling and rebuying AAPL) | Different company in same sector (AAPL vs. MSFT) |
| Same mutual fund (Vanguard S&P 500 VFIAX) | Different fund tracking same index (Schwab S&P 500 SWPPX) — generally accepted as not identical, though not definitively ruled by IRS |
| Same ETF (SPY) | Different ETF tracking different index (SPY vs. VTI) |
| Options or contracts to acquire substantially identical stock | ETFs tracking a similar but different index |
Conservative approach: If two funds hold the same stocks in the same proportions, some advisors treat them as substantially identical even if they are from different providers. The safest approach is to switch to a fund tracking a different (but related) index during the 30-day window.
Wash Sales Across Accounts
The wash sale rule applies across all your accounts, including:
- Brokerage accounts
- IRA accounts (traditional and Roth)
- Your spouse’s accounts (if filing jointly)
- 401(k) accounts (debated, but the IRS position is that it applies)
Your broker will report wash sales within your accounts at that broker, but they cannot track purchases in accounts at other brokers or in your IRA. You are responsible for tracking wash sales across all accounts.
Dangerous scenario: You sell Stock X at a loss in your taxable brokerage account. Your 401(k) automatically buys Stock X through a rebalance or target-date fund purchase within 30 days. The loss is potentially disallowed, and the basis adjustment goes to the 401(k) — where it provides no tax benefit because 401(k) distributions are taxed as ordinary income regardless of basis. The loss is permanently destroyed.
Strategic Approaches to Tax-Loss Harvesting
Year-End Harvesting
The most common approach. In November and December, review your portfolio for positions with unrealized losses. Sell the losers, use the losses to offset gains realized during the year, and reinvest in substitute positions.
Advantages: Simple, concentrated effort once a year Disadvantages: Markets may recover before year-end, eliminating opportunities
Continuous / Opportunistic Harvesting
Monitor your portfolio throughout the year and harvest losses whenever they appear — after market dips, sector rotations, or individual stock declines.
Advantages: Captures losses that may disappear by year-end Disadvantages: More work, more transactions, more wash sale monitoring
Automated Harvesting
Robo-advisors like Wealthfront, Betterment, and Schwab Intelligent Portfolios offer automated tax-loss harvesting. These platforms:
- Monitor your portfolio daily for harvesting opportunities
- Automatically sell losing positions and replace them with similar funds
- Track wash sale windows
- Maintain target asset allocation
Advantages: Hands-off, captures more opportunities, handles wash sale tracking Disadvantages: Limited to the platform’s fund universe, may not coordinate with outside accounts, advisory fees apply
Harvesting Strategies by Asset Type
Individual Stocks
- Sell the specific lot with the highest basis (using specific identification)
- Replace with a stock in the same sector but different company, or an ETF covering that sector
- Wait 31 days and rebuy the original stock if desired
Index Funds and ETFs
- Sell S&P 500 fund, replace with total market fund (or vice versa)
- Sell U.S. large-cap ETF, replace with a different provider’s large-cap ETF
- Sell international fund, replace with a similar but not identical international fund
Bonds
- Sell individual bonds at a loss, replace with bonds of similar duration and credit quality from different issuers
- Sell bond funds, replace with similar but not identical funds
Cryptocurrency
As of current IRS guidance, the wash sale rule now applies to cryptocurrency. This was clarified in recent legislation. Previously, crypto was in a gray area, but the wash sale rule now covers digital assets. See our crypto tax guide for the latest rules.
The Math: When Harvesting Saves (and Doesn’t Save) Money
When It Works Best
- You have large capital gains to offset — The more gains you have, the more valuable each dollar of losses becomes
- You are in a high tax bracket — A 37% bracket taxpayer saves $370 per $1,000 of short-term gains offset, vs. $120 for a 12% bracket taxpayer
- You can harvest short-term losses against short-term gains — Short-term gains are taxed at ordinary rates, so offsetting them saves more than offsetting long-term gains
- You have significant unrealized losses — Volatile portfolios with large positions create more harvesting opportunities
When It’s Less Valuable
- You are in the 0% capital gains bracket — If your taxable income is below the 0% threshold (~$47,025 single / ~$94,050 joint for 2025), long-term gains are already tax-free. Harvesting losses to offset 0%-rate gains provides no benefit for the gains themselves (though the $3,000 ordinary income deduction still applies).
- Transaction costs exceed tax savings — For very small positions, commissions and bid-ask spreads may exceed the tax benefit (less relevant now that most brokers charge $0 commissions)
- You are deferring, not eliminating — Harvesting reduces your basis in replacement investments, meaning larger gains later. The true benefit is the time value of the deferred tax and any rate differential if future gains are long-term vs. current gains being short-term.
The Deferral Reality
Tax-loss harvesting is primarily a deferral strategy, not a permanent tax elimination. When you buy the replacement investment at a lower basis, future gains are larger. However:
- Deferral has real value — a dollar of tax paid in 10 years is worth less than a dollar paid today
- If you hold until death, the step-up in basis eliminates the deferred gain entirely (this is the ultimate harvest)
- You may be in a lower tax bracket when you eventually realize the gain
- The $3,000 ordinary income deduction is a permanent benefit, not a deferral
Tax-Loss Harvesting and Specific Tax Situations
High-Income Taxpayers: The Net Investment Income Tax (NIIT)
If your modified AGI exceeds $200,000 (single) or $250,000 (joint), you owe a 3.8% NIIT on the lesser of your net investment income or the excess over the threshold. Capital gains are included in net investment income. Harvesting losses that reduce your net investment income can save you the additional 3.8% — making the total tax savings on long-term gains ~18.8% (15% + 3.8%) or ~23.8% (20% + 3.8%).
Real Estate Investors
If you sold rental property and have capital gains, you can offset those gains with stock market losses. The gains and losses are combined on Schedule D. See our real estate tax guide for more on property-related gains.
Rebalancing Your Portfolio
Tax-loss harvesting pairs naturally with portfolio rebalancing. When you sell losing positions to harvest losses, you can reinvest in assets that bring your portfolio back to target allocation. You accomplish two goals — tax reduction and rebalancing — in one set of transactions.
Record-Keeping Requirements
Maintain records of:
- Every harvest transaction — Date, security, shares, proceeds, and basis
- Replacement purchases — Date, security, shares, and cost (to prove it is not substantially identical)
- Wash sale tracking — A log of all purchases within the 61-day window across all accounts
- Carryforward losses — Track your capital loss carryforward balance year to year (your prior year’s Schedule D shows this)
- Basis adjustments — If a wash sale is triggered, document the basis adjustment to the replacement shares
For additional deductions you may be missing, review the complete deductions list.
Frequently Asked Questions
Can I harvest losses in my IRA or 401(k)?
No. Losses inside tax-deferred or tax-free accounts (traditional IRA, Roth IRA, 401(k)) have no tax effect. You cannot claim capital losses from sales within these accounts. Tax-loss harvesting only works in taxable accounts.
How much can I save with tax-loss harvesting each year?
It depends on the size of your gains, losses, and tax bracket. A high-income investor with $50,000 in gains and $50,000 in harvestable losses could save ~$7,500-$12,000 in taxes. An investor with no gains but $10,000 in harvestable losses saves ~$720-$1,050 per year (from the $3,000 ordinary income deduction) for several years.
Does tax-loss harvesting work for day traders?
Technically yes, but day traders face significant challenges: high transaction volume creates more wash sale risk, most gains are short-term, and the record-keeping burden is substantial. Day traders who elect mark-to-market (Section 475) treatment cannot use capital loss harvesting at all — their gains and losses are ordinary.
Can I donate harvested-loss shares to charity instead of selling?
No — that would waste the loss. You should donate appreciated shares (which avoids the capital gains tax on the appreciation) and sell the losing shares to claim the loss. This combination maximizes your tax benefit. See our capital gains strategies guide for more on charitable donation of appreciated stock.
What happens to my capital loss carryforward when I die?
Capital loss carryforwards expire at death. They do not pass to your spouse, heirs, or estate. If you have large carryforward losses, consider strategies to use them before death — such as selling appreciated assets to trigger gains that the losses can offset.
My broker’s wash sale report shows different numbers than what I calculated. Which is correct?
Your calculation governs. Brokers only track wash sales within their own accounts. If you have accounts at multiple brokers or own the same securities in an IRA, you must make your own wash sale adjustments on Form 8949. Report the broker’s numbers and add an adjustment code “W” for any additional wash sales you identified.
Key Takeaways
- Tax-loss harvesting offsets capital gains and up to $3,000 of ordinary income per year, with unlimited carryforward
- The wash sale rule prohibits repurchasing the same or substantially identical security within 30 days before or after the sale
- Replace sold positions with similar but not identical investments to maintain market exposure
- Watch for wash sales across all accounts — including IRAs and spouse’s accounts
- Harvesting is primarily a deferral strategy, but deferral has real value (and the step-up in basis at death can make it permanent)
- Automated platforms can handle continuous harvesting, but cannot coordinate with accounts held elsewhere
- The strategy is most valuable for high-income investors with large gain exposure
Tax information is for educational purposes only and does not constitute tax advice. Consult a licensed tax professional or financial advisor for guidance specific to your situation.