Tax-Loss Harvesting: How to Turn Investment Losses Into Tax Savings (2026)
Complete guide to tax-loss harvesting: offset capital gains, carry forward losses, wash sale rules, practical strategies and real-world examples.
10 min czytaniaTax-Loss Harvesting โ Turn Losses Into a Tax Advantage
Investment losses aren't just a setback โ they're a powerful tax optimization tool that can significantly reduce your tax bill in the current year and for years to come.
Freenance breaks down the mechanics of tax-loss harvesting, practical strategies, and advanced techniques for minimizing taxes on your investment portfolio.
๐ How Capital Losses Work
What Counts as a Capital Loss?
A capital loss occurs when you sell an investment for less than your cost basis:
- Cost basis = purchase price + commissions and fees
- Loss = sale proceeds โ cost basis
- Must be realized โ you actually sold the asset
What You Can Harvest Losses From
โ Eligible for loss harvesting:
- Individual stocks
- ETFs and mutual funds
- Corporate and government bonds
- Options and other derivatives
- Cryptocurrency
โ Cannot harvest losses from:
- Losses within tax-advantaged accounts (401k, IRA, Roth IRA)
- Personal-use property (your car, furniture)
- Wash sales (see below)
๐งฎ How Loss Offsetting Works
Within the Same Tax Year
Basic rule: Losses offset gains dollar-for-dollar, with short-term losses offsetting short-term gains first.
Example:
- Gain from selling AAPL: +$15,000 (long-term)
- Loss from selling META: โ$8,000 (long-term)
- Taxable gain: $7,000
- Tax (15% rate): $1,050
Without harvesting, you'd pay: $2,250 (15% of $15,000) Savings: $1,200
The $3,000 Ordinary Income Deduction
If your losses exceed your gains, you can deduct up to $3,000 per year ($1,500 if married filing separately) against ordinary income โ like your salary.
Ordering Rules
How the IRS applies losses:
- Short-term losses offset short-term gains first
- Long-term losses offset long-term gains first
- Any remaining net loss offsets the other category
- Up to $3,000 of excess loss offsets ordinary income
- The rest carries forward indefinitely
๐ Carrying Losses Forward
Unlimited Carry-Forward
Unlike many countries, the US allows indefinite carry-forward of capital losses. There's no 5-year limit.
Example of a multi-year strategy:
| Year | Gains | Losses | Net | Deduction | Carry Forward |
|---|---|---|---|---|---|
| 2026 | $5,000 | โ$25,000 | โ$20,000 | $3,000 | $17,000 |
| 2027 | $12,000 | $0 | โ$5,000 | $3,000 | $2,000 |
| 2028 | $8,000 | $0 | +$6,000 | โ | $0 |
| 2029 | $10,000 | $0 | +$10,000 | โ | $0 |
Total tax savings over 4 years: ~$5,700 (at 15% LTCG rate + 22% ordinary income rate)
โ ๏ธ The Wash Sale Rule
What Triggers a Wash Sale?
The IRS disallows a loss if you purchase a substantially identical security within 30 days before or after the sale. This creates a 61-day window.
What counts as substantially identical:
- The same stock or fund
- Options on the same stock
- A mutual fund tracking the same index (debatable โ but be careful)
What's generally NOT substantially identical:
- A different company in the same sector
- A different index fund (e.g., S&P 500 โ Total Stock Market)
- Buying in a different account (note: wash sale rules apply across ALL your accounts, including IRAs)
Wash Sale Workarounds
Legitimate alternatives:
- Swap for a similar asset โ sell the S&P 500 ETF, buy a Total Stock Market ETF
- Wait 31 days โ buy back after the wash sale window closes
- Double up first โ buy additional shares, wait 31 days, then sell the original lot
๐ก Practical Harvesting Strategies
Year-End Harvesting
๐ฏ Best timing:
- NovemberโDecember โ review your portfolio for harvesting opportunities
- After large gains โ immediately offset with available losses
- During market corrections โ take advantage of broad declines
Continuous Harvesting
Modern approach โ harvest throughout the year: Rather than waiting for December, monitor your portfolio regularly and harvest losses whenever they appear. Robo-advisors like Betterment and Wealthfront do this automatically.
Asset Location Strategy
Optimize across account types:
- Taxable accounts โ hold investments likely to generate losses (for harvesting)
- Tax-advantaged accounts (401k, IRA) โ hold high-growth or high-dividend assets
- Roth IRA โ hold your highest-conviction growth picks (tax-free forever)
๐ Step-by-Step Harvesting Process
Step 1: Review Your Portfolio
- Identify positions with unrealized losses
- Check if the loss is short-term or long-term
- Calculate the tax impact of harvesting
Step 2: Execute the Sale
- Sell the losing position
- Document the transaction details
- Note: use specific lot identification to choose which shares to sell
Step 3: Reinvest (Carefully)
- Buy a similar but not identical replacement
- Or wait 31 days and repurchase the original
- Maintain your target asset allocation
Step 4: Report on Your Tax Return
- Form 8949 โ detail each sale transaction
- Schedule D โ summarize gains and losses
- Carry-forward worksheet โ track losses for future years
๐ฏ Advanced Strategies
Pair Harvesting with Charitable Giving
Double benefit:
- Donate appreciated stock to charity (avoid capital gains entirely)
- Harvest losses from underperforming positions
- Deduct the charitable donation on Schedule A
Harvesting in Down Markets
Bear markets are harvesting goldmines:
- Broad declines create losses across your portfolio
- Harvest aggressively and reinvest in similar positions
- Build a large loss carry-forward for future bull market gains
Direct Indexing
The ultimate harvesting strategy: Instead of holding an S&P 500 ETF, hold individual stocks in the index. This lets you harvest losses from individual names while maintaining broad market exposure.
๐ Real-World Examples
Case 1: New Investor with First Losses
Profile: 28 years old, $50K portfolio, $8K unrealized loss Strategy:
- Harvest the $8K loss in December
- Offset $5K in dividend income gains
- Deduct $3K from ordinary income
- Tax savings: ~$1,700
Case 2: Active Trader with High Turnover
Profile: 45 years old, $500K portfolio, active trading Strategy:
- Monthly loss harvesting across positions
- Separate accounts for trading vs. long-term investing
- Maximize short-term loss offsets against short-term gains
- Annual savings: $8,000โ$15,000
Case 3: Pre-Retiree with Large Portfolio
Profile: 58 years old, $1.2M portfolio, conservative approach Strategy:
- Selective harvesting during rebalancing
- Use losses to offset required minimum distributions (in future years)
- Pair with Roth conversion strategy
- Annual savings: $5,000โ$10,000
๐จ Common Pitfalls
Documentation Errors
- Incomplete records โ missing some transactions
- Wrong cost basis โ not accounting for reinvested dividends or corporate actions
- Ignoring wash sales โ the IRS flags these on your 1099-B
Strategic Mistakes
- Harvesting without a plan โ random selling disrupts your allocation
- Selling great companies just for the tax benefit
- Over-harvesting โ creating unnecessary complexity
- Forgetting the 30-day rule โ triggering wash sales accidentally
๐ก Key Takeaways
Golden Rules of Tax-Loss Harvesting
1. Document everything meticulously Every transaction needs proper records โ this is the foundation of effective harvesting.
2. Think strategically, not emotionally Don't harvest losses just because you can โ it must make investment sense too.
3. Use carry-forwards to their fullest Unlimited carry-forward is incredibly powerful โ don't waste it.
4. Integrate with your overall portfolio strategy Tax-loss harvesting is one element of portfolio management, not a standalone activity.
Freenance helps you optimize your investment tax reporting โ track gains and losses in real time, identify harvesting opportunities, and plan strategies tailored to your portfolio.
Optimize your investment tax strategy with Freenance โ use our tax calculators, monitor gains and losses, and plan tax-loss harvesting strategies customized to your portfolio.
Want full control over your finances?
Try Freenance for free