Tax-Loss Harvesting: The Legal Way to Turn Stock Losses Into Tax Savings
What Is Tax-Loss Harvesting? (And Why You Should Care)
Here's something most beginner investors don't realize: your losing stocks can actually save you money.
No, seriously. The IRS lets you use investment losses to reduce your tax bill. It's called tax-loss harvesting, and it's one of the most powerful (and completely legal) tax strategies available to everyday investors.
If you've ever stared at a red position in your portfolio and thought, "Well, that money's gone" — think again. That loss has real value. And if you're not harvesting it, you're leaving money on the table.
Let's break down exactly how it works, step by step, in plain English.
How Tax-Loss Harvesting Works
The concept is simple:
- You sell an investment that's lost value (trading below what you paid for it)
- You claim that loss on your tax return
- The loss offsets your gains — or up to $3,000 of ordinary income
That's it. You're turning a paper loss into a real tax benefit.
The Two Ways Losses Save You Money
Way #1: Offset capital gains (unlimited)
Let's say you sold Stock A for a $10,000 profit this year. Normally, you'd owe capital gains tax on that $10,000. But if you also sold Stock B at a $7,000 loss, you only owe taxes on the net gain of $3,000.
At a 15% long-term capital gains rate, that $7,000 loss just saved you $1,050 in taxes.
Way #2: Deduct against ordinary income (up to $3,000/year)
What if your losses exceed your gains? The IRS lets you deduct up to $3,000 per year against your regular income (salary, wages, freelance income). If you're in the 22% tax bracket, that $3,000 deduction saves you $660 in taxes every single year.
And here's the kicker: any losses beyond $3,000 carry forward to future years. Indefinitely. You could harvest a $20,000 loss today and use it to reduce your taxes for the next 5+ years.
Step-by-Step: How to Tax-Loss Harvest
Here's the exact process:
Step 1: Identify Your Losers
Log into your brokerage account and look for positions trading below your cost basis (what you originally paid). Most brokers — including Moomoo and Webull — show your unrealized gains/losses right on the portfolio page.
Step 2: Decide If the Loss Is Worth Harvesting
Not every loss is worth selling. Ask yourself:
- Is the loss meaningful? A $50 loss on a $500 position probably isn't worth the hassle. A $2,000 loss on a $10,000 position? Absolutely.
- Do you still believe in the stock long-term? If yes, you might want to hold (more on this below).
- Do you have gains to offset? If you've realized gains this year, harvesting losses becomes even more valuable.
Step 3: Sell the Losing Position
Execute the sell order. The loss is now "realized" — meaning it counts for tax purposes.
Step 4: Reinvest (But Watch the Wash Sale Rule!)
This is the critical step. You probably don't want to just sit in cash. You want to stay invested in the market. So you buy something similar but not identical to what you sold.
This is where the wash sale rule comes in.
Step 5: Report on Your Tax Return
Your broker will send you a 1099-B form showing your realized gains and losses. Use Schedule D and Form 8949 to report everything. If you use tax software like TurboTax or FreeTaxUSA, it imports automatically.
The Wash Sale Rule: The One Rule You Can't Break
The IRS isn't stupid. They know people might try to sell a stock, claim the loss, and immediately buy it right back. So they created the wash sale rule.
The rule: If you sell a stock at a loss and buy a "substantially identical" security within 30 days before or after the sale, the loss is disallowed. You can't claim it.
That's a 61-day window total — 30 days before the sale, the sale date, and 30 days after.
What Counts as "Substantially Identical"?
- ❌ Selling AAPL and buying AAPL → Wash sale
- ❌ Selling AAPL in your taxable account and buying AAPL in your IRA → Still a wash sale
- ✅ Selling AAPL and buying the Technology Select Sector SPDR (XLK) → NOT a wash sale
- ✅ Selling an S&P 500 ETF from Vanguard and buying a different S&P 500 ETF from iShares → Gray area, but generally considered acceptable
The key word is "substantially identical." Different companies in the same sector? Fine. A completely different fund that tracks a different (but similar) index? Usually fine. The exact same stock or fund? Not fine.
Real Example: Harvesting an INTC Loss
Let's walk through a real-world scenario.
The situation: You bought 100 shares of Intel (INTC) at $35 per share ($3,500 total) back in early 2024. The stock has dropped to about $20 per share. Your position is now worth $2,000.
Unrealized loss: $1,500
Here's what you do:
- Sell all 100 shares of INTC for $2,000. You now have a realized loss of $1,500.
- Immediately buy a semiconductor ETF like the iShares Semiconductor ETF (SOXX) or VanEck Semiconductor ETF (SMH) with that $2,000. You maintain exposure to the semiconductor sector without triggering the wash sale rule.
- Wait at least 31 days. After that, you can buy INTC back if you still want it.
Tax impact:
- If you have $1,500 in capital gains elsewhere → the loss wipes them out completely. At a 15% rate, you save $225.
- If you have no gains → you deduct $1,500 from your ordinary income. At the 22% bracket, you save $330.
- If you have $5,000 in gains → you reduce your taxable gains to $3,500, saving $225 on the offset portion.
And you're still invested in semiconductors the entire time. You didn't miss a beat.
How Much Can You Actually Save?
Let's do the math at different levels:
Scenario 1: $3,000 in Harvested Losses, No Capital Gains
You deduct the full $3,000 against ordinary income.
| Tax Bracket | Tax Savings | |---|---| | 12% ($50,400 or less) | $360 | | 22% ($50,401 – $105,700) | $660 | | 24% ($105,701 – $201,775) | $720 | | 32% ($201,776 – $256,225) | $960 |
Based on 2026 single filer brackets.
Scenario 2: $10,000 in Gains + $10,000 in Losses
Your gains and losses cancel out. You owe $0 in capital gains tax. At a 15% long-term rate, that's $1,500 saved.
Scenario 3: $15,000 in Losses, $5,000 in Gains
- $5,000 offsets your gains → $750 saved (at 15%)
- $3,000 deducted from income → $660 saved (at 22%)
- $7,000 carries forward to future years
- Total savings this year: $1,410
Over time, that carried-forward $7,000 could save you another $1,540+ in future years.
When NOT to Tax-Loss Harvest
Tax-loss harvesting isn't always the right move. Skip it when:
1. You're Sitting on a Long-Term Winner
If a stock is down temporarily but you've held it for years and it's been a reliable performer, selling just for a tax break might not make sense. You'd reset your cost basis and potentially lose a great position.
2. The Loss Is Too Small
Selling a stock to harvest a $75 loss isn't worth the effort. Factor in transaction costs, the hassle of tracking the wash sale window, and the time spent on your tax return. Generally, aim for losses of $500 or more to make it worthwhile.
3. You're in a Low Tax Bracket
If you're in the 10% or 12% bracket, your long-term capital gains rate is already 0%. Tax-loss harvesting has less impact when your tax rate is already rock-bottom. Focus on building your portfolio instead.
4. You'd Trigger a Wash Sale Anyway
If you plan to buy back the exact same stock within 30 days, don't bother. The loss will be disallowed, and you'll have done a bunch of paperwork for nothing.
5. The Stock Pays a Dividend You Don't Want to Lose
If you own dividend stocks with upcoming ex-dividend dates, selling before the payment means you miss that dividend. Weigh the tax savings against the dividend income. Sometimes the dividend is worth more — especially for high-yield positions.
Best Time to Harvest Losses
December: The Classic Play
Most investors do their tax-loss harvesting in December, right before year-end. This gives you a clear picture of your gains and losses for the year, so you can harvest strategically.
But You Can Do It Anytime
There's nothing stopping you from harvesting losses in March, July, or any other month. In fact, harvesting throughout the year can be more effective because:
- You catch dips as they happen (instead of hoping they last until December)
- You spread out your reinvestment, which can reduce timing risk
- You're more likely to stay on top of your portfolio
Tax Season Is a Great Reminder
Right now, as you're thinking about taxes, is the perfect time to review your portfolio for harvesting opportunities. Even if you don't harvest today, make a note of your losing positions for December.
Tax-Loss Harvesting + Dividend Investing
If you're a dividend investor, tax-loss harvesting works beautifully alongside your strategy:
- Harvest losses on underperforming positions and reinvest in dividend ETFs that provide similar sector exposure
- Use the tax savings to buy more shares — more shares = more dividends = faster compounding
- Offset gains from rebalancing — when you sell appreciated stocks to rebalance, harvested losses can cover the tax bill
The goal isn't to lose money on purpose. The goal is to make your losses work for you when they happen.
Common Mistakes to Avoid
- Forgetting the wash sale rule applies across ALL your accounts. Selling in your taxable account and buying in your IRA still counts.
- Not tracking your adjusted cost basis. If a wash sale does happen, the disallowed loss gets added to the cost basis of the replacement shares. Your broker should track this, but double-check.
- Harvesting losses in tax-advantaged accounts. Losses in your Roth IRA or 401(k) don't count for tax purposes. Only harvest in taxable brokerage accounts.
- Selling everything in a panic. Tax-loss harvesting is strategic, not emotional. Don't sell your entire portfolio because the market is down.
- Ignoring state taxes. Most states follow federal rules for capital gains, but some don't. Check your state's rules.
Get Started: Open a Tax-Efficient Brokerage Account
If you don't have a taxable brokerage account yet, here are two solid options with $0 commissions that make tax-loss harvesting easy:
- Moomoo — Get up to 20 free stocks when you sign up and deposit. Great tools for tracking unrealized gains/losses. Their tax reporting features make harvest tracking simple.
- Webull — Clean interface, free stock with sign-up, and solid tax document support. Good for beginners who want a straightforward platform.
Both provide 1099-B forms at tax time and show your cost basis clearly — essential for tax-loss harvesting.
The Bottom Line
Tax-loss harvesting is one of those strategies that sounds complicated but is actually straightforward once you understand it:
- Sell losing investments
- Claim the loss on your taxes
- Reinvest in something similar (avoiding the wash sale rule)
- Save money
It won't make you rich overnight, but $500–$1,500 in annual tax savings adds up fast. That's money you can reinvest into dividend stocks, ETFs, or your retirement accounts.
The IRS gave you this tool. Use it.
This article is for educational purposes only and does not constitute tax advice. Consult a qualified tax professional for advice specific to your situation. Tax laws can change — always verify current rules with the IRS or your tax advisor.
📊 Free Tools to Optimize Your Portfolio
- Dividend Income Calculator — Reinvest your tax savings into dividend stocks
- DRIP Calculator — See how reinvested dividends compound over time
- Stock Screener — Find replacement stocks after harvesting losses
- Graham Number Calculator — Calculate fair value for any stock
Get Picks Like This Every Tuesday
Join value investors getting our best undervalued stock picks, Graham Number breakdowns, and dividend analysis — free.
Get Our Best Stock Picks — Free
Join value investors who get our top undervalued stock picks, Graham-style analysis, and dividend recommendations delivered to your inbox every week.
No spam, ever. Unsubscribe anytime.