Tax-loss harvesting is the practice of selling investments at a loss to offset capital gains and reduce your tax bill. For active traders, this isn't just a year-end exercise — it's a continuous strategy that can save $5,000-$20,000+ annually. But doing it wrong (especially triggering wash sales) can backfire. Here's how to harvest losses effectively while staying compliant.
How Tax-Loss Harvesting Works
The basic mechanics are straightforward:
- Identify positions in your portfolio that are currently at a loss
- Sell those positions to "realize" the loss for tax purposes
- Use the realized losses to offset capital gains from winning trades
- If losses exceed gains, deduct up to $3,000 against ordinary income (without Section 475)
- Carry forward any remaining unused losses to future years
The tax math: If you realized $50,000 in capital gains and $30,000 in capital losses, you only pay tax on $20,000 of net gains. At a 35% combined federal/state rate, that's $10,500 saved.
Year-End Tax-Loss Harvesting Timeline
For traders using the calendar tax year, here's the critical timeline:
| Date | Action |
|---|---|
| October-November | Review all positions, identify unrealized losses |
| Before December 1 | Sell losing positions (allows 31 days before year-end purchases) |
| December 31 | Last day for realized gains/losses to count for the tax year |
| After January 30 | Safe to repurchase sold securities without wash sale risk |
Advanced Strategies for Active Traders
1. Gain-Loss Pairing Throughout the Year
Don't wait until December. Active traders should track gains and losses quarterly and strategically realize losses to offset gains as they accumulate:
- Had a big winning trade in March? Look for losing positions to harvest in March/April
- Use short-term losses to offset short-term gains first (highest tax rate offset)
- Track your running net gain/loss throughout the year
2. Lot-Level Optimization (Specific Identification)
If you bought a stock multiple times at different prices, you can sell specific lots to maximize your loss (or minimize your gain):
- Bought 100 shares of XYZ at $50 in January (Lot 1)
- Bought 100 shares at $80 in April (Lot 2)
- Current price: $60
- Selling Lot 2 realizes a $2,000 loss. Selling Lot 1 realizes a $1,000 gain
- Use specific identification to choose which lot to sell
Tell your broker which specific lot you're selling BEFORE the trade. Most brokers allow you to select lots in your order settings.
3. Substitute Security Strategy
To avoid wash sales while maintaining market exposure:
- Sell the losing position (e.g., Vanguard S&P 500 ETF / VOO)
- Immediately buy a similar but not identical fund (e.g., iShares Core S&P 500 / IVV, or Schwab Total Market / SWTSX)
- After 31 days, swap back if desired
- This keeps your portfolio exposure similar while realizing the tax loss
4. Short-Term vs. Long-Term Loss Prioritization
Tax losses are most valuable when they offset the highest-taxed gains:
- Short-term losses vs. short-term gains: Best match (offsets at your ordinary rate, up to 37%)
- Long-term losses vs. long-term gains: Good match (offsets at 15-20%)
- Net losses vs. ordinary income: Limited to $3,000/year deduction
5. Crypto Tax-Loss Harvesting
With wash sale rules now applying to crypto (2025+), the old strategy of selling and immediately rebuying is no longer viable. Instead:
- Sell a losing crypto position (e.g., Bitcoin)
- Buy a different cryptocurrency (e.g., Ethereum) as a substitute — this is generally NOT a wash sale since different cryptos are not substantially identical
- Wait 31 days if you want to repurchase the original crypto
- Or simply hold the substitute and rebalance later
When Tax-Loss Harvesting Becomes Unnecessary: Section 475
Traders who elect Section 475(f) mark-to-market accounting don't need to worry about tax-loss harvesting in the traditional sense because:
- All positions are treated as sold at year-end at fair market value
- Losses are ordinary losses (not capital losses) with no $3,000 limitation
- The wash sale rule doesn't apply
- No need to strategically time sales — the year-end mark-to-market handles it automatically
If you're an active trader with frequent wash sale headaches and variable annual performance, Section 475 may be a better long-term solution than tax-loss harvesting.
Common Tax-Loss Harvesting Mistakes
- Triggering wash sales in retirement accounts: Buying the same security in your IRA within 30 days permanently destroys the loss
- Ignoring state taxes: If your state doesn't conform to federal loss rules, you may owe state tax even with federal losses
- Selling too early in December: If you sell December 28 and the stock drops further January 5, you can't sell again for the additional loss without a wash sale
- Forgetting about dividends: DRIP (Dividend Reinvestment Plan) purchases within 30 days of a loss sale can trigger wash sales
- Over-harvesting: Don't let tax considerations drive bad investment decisions. Selling a high-conviction position just for a tax loss may cost more in missed gains than you save in taxes
Frequently Asked Questions
How much can tax-loss harvesting save a trader per year?
The savings depend on your gains and tax bracket. A trader who offsets $30,000 in capital gains with harvested losses at a 35% combined federal/state rate saves $10,500. Even if you have no gains, you can deduct up to $3,000 in net losses against ordinary income annually ($1,050 savings at 35%), with unlimited carryforward. Active traders with high volume can often harvest $10,000-$50,000+ in losses throughout the year.
Can I sell a stock at a loss and buy it back immediately?
No — this triggers a wash sale under IRS Section 1091. If you buy the same or substantially identical security within 30 days before or after the sale, the loss is disallowed and added to the cost basis of the replacement shares. You must wait at least 31 days to repurchase, or buy a similar but not identical security as a substitute.
Do I need to do tax-loss harvesting if I have the Section 475 election?
No. Under Section 475 mark-to-market, all positions are treated as sold at year-end at fair market value, with gains and losses as ordinary income. The wash sale rule doesn't apply, and there's no capital loss limitation. Tax-loss harvesting becomes unnecessary because the year-end mark-to-market automatically recognizes all gains and losses.
Can I tax-loss harvest in my IRA or 401(k)?
There is no tax benefit to selling at a loss inside an IRA or 401(k) — these accounts are tax-deferred (or tax-free for Roth), so realized losses have no tax impact. Worse, buying a security in your IRA within 30 days of selling it at a loss in a taxable account triggers a wash sale that permanently destroys the loss.
Need Help With Your Trader Taxes?
At Mello Tax Group, we specialize in tax preparation and planning for traders, self-employed individuals, and small business owners. Jordan McAfee, EA, will review your situation and build a strategy to minimize your tax burden legally. We serve clients in Sacramento and all 50 states. Schedule Your Consultation → Or call (650) 686-5219