Tax Loss Harvesting Explained: How to Turn Investment Losses Into Tax Savings in 2026
Your portfolio is down $5,000 this year on a tech stock that's not coming back. You're frustrated, maybe a bit embarrassed you held on too long. But here's something most investors don't realize: that $5,000 loss could save you $1,500 in taxes if you play it right. For more on this topic, see our guide on 401k Contribution Limits 2027 Explained.
Check if you're on track with our Retirement Savings Calculator.
I know that feeling intimately. I sold NVDA options early for a $20K loss that would've been worth $500K if I'd held on. That one still stings, but tax loss harvesting let me offset other gains and claw back about $6,000 in tax savings over two years.
That's tax loss harvesting. It's not about celebrating losses or timing the market. It's about using the tax code's rules to your advantage when losses happen anyway.
I've seen clients save anywhere from $800 to $15,000 annually using this strategy. The process itself takes about 15 minutes if you do it manually, or zero minutes if you use the right brokerage platform. Let me walk you through exactly how it works. For more on this topic, see our guide on Best Tax Software 2027.
Some links in this article are affiliate links, we may earn a commission at no cost to you. Full disclosure
What Is Tax Loss Harvesting?
Tax loss harvesting means selling investments at a loss to offset taxes on other gains. When you sell a losing investment, you can use that loss to reduce your taxable income by up to $3,000 per year, or offset an unlimited amount of capital gains.
The IRS lets you do this because they want consistent tax treatment. If you pay taxes on gains, you can deduct losses. It's that simple.
How Tax Loss Harvesting Works: A Real Example
Let's use actual numbers. Sarah bought 100 shares of Stock A at $50 per share in January 2026. By November, it's trading at $35. She's down $1,500.
Meanwhile, she sold Stock B in March for a $4,000 profit. Without tax loss harvesting, she owes capital gains tax on that $4,000. At the 15% federal capital gains rate (the rate for single filers earning $47,026 to $518,900 in 2026), that's $600 in taxes.
Here's what Sarah does:
- She sells Stock A, realizing her $1,500 loss
- She immediately buys Stock C, a similar tech company
- She reports both transactions on her tax return
Now her math looks like this:
- Gains: $4,000
- Losses: $1,500
- Net taxable gain: $2,500
- Tax owed: $375 (instead of $600)
Sarah saved $225 in federal taxes, plus whatever her state charges (California would be another $150, for example). She's still invested in tech stocks through Stock C. The only thing that changed is her tax bill.
The Five Rules You Need to Know
1. The Wash Sale Rule (The 30-Day Wait)
You cannot buy the same or "substantially identical" security within 30 days before or after selling at a loss. The IRS will disallow your loss if you do.
Here's what triggers a wash sale:
- Selling Apple stock and buying Apple stock 20 days later
- Selling a Vanguard S&P 500 fund and buying it back in 25 days
- Your spouse buying the same stock you just sold (yes, this counts)
Here's what does NOT trigger a wash sale:
- Selling Apple and buying Microsoft
- Selling Vanguard S&P 500 Index Fund and buying Schwab S&P 500 Index Fund
- Waiting 31 days to buy back the exact same security
The wash sale window is actually 61 days total (30 days before + day of sale + 30 days after). I've seen people mess this up by buying first, then selling, thinking they're being clever. The IRS thought of that.
2. You Can Offset Any Amount of Gains
There's no limit to how much in gains you can offset with losses. If you have $50,000 in losses and $50,000 in gains, you pay zero capital gains tax that year.
This is particularly valuable in years when you need to sell appreciated assets. I helped a client who was selling a rental property with $80,000 in gains. We found $80,000 in losses across his portfolio to harvest. His tax savings exceeded $20,000.
3. The $3,000 Annual Deduction
If your losses exceed your gains, you can deduct up to $3,000 against ordinary income each year. This reduces your adjusted gross income, which can have ripple effects on other tax benefits.
Example: You harvested $8,000 in losses and had $2,000 in gains. That leaves $6,000 in losses. You deduct $3,000 this year and $3,000 next year.
At a 24% tax bracket, that $3,000 deduction saves you $720 per year for two years.
4. Losses Carry Forward Indefinitely
Unused losses don't expire. If you harvest $20,000 in losses one year but only have $5,000 in gains, you carry forward $15,000 to future years.
I have clients with $50,000+ in loss carryforwards from the 2022 market downturn. They're systematically using those losses to offset gains as they rebalance their portfolios. This can provide tax benefits for 10+ years.
5. Short-Term vs. Long-Term Matters
The IRS requires you to match losses against gains in a specific order:
- Short-term losses first offset short-term gains
- Long-term losses first offset long-term gains
- Any remaining losses can offset the other type
This matters because short-term gains are taxed as ordinary income (up to 37% federally), while long-term gains max out at 20% (or 23.8% with the net investment income tax).
Harvesting short-term losses is more valuable than long-term losses if you have both types of gains.
When Tax Loss Harvesting Makes the Most Sense
Not everyone should tax loss harvest every year. Here are the situations where it's most valuable:
I've also been using Kapitalwise to get a holistic view of how tax-loss harvesting fits into my overall financial strategy. The platform's AI helps me understand which tax moves make the most sense based on my complete financial picture, not just my investment accounts in isolation. It's particularly helpful for tracking how much I've actually saved through tax-loss harvesting over time. For more on this topic, see our guide on How to Catch Up on Retirement Savings at 40. Try Kapitalwise, AI-Powered Financial Planning
High-income earners with taxable accounts. If you're in the 32% federal bracket or higher, every $3,000 deduction saves you $960+. For someone earning $400,000, strategic harvesting might save $3,000 to $8,000 annually.
Years with large capital gains. Selling a business, real estate, or concentrated stock position? Harvest losses aggressively in the same tax year to offset those gains.
Market downturns. The 2022 bear market created harvesting opportunities for everyone. The S&P 500 dropped 18% that year. Investors who harvested losses built up carryforwards they're still using in 2026.
Portfolio rebalancing. If you're selling winners to rebalance anyway, harvest losses simultaneously. The combination can be powerful.
NOT valuable in these situations:
- Retirement accounts (IRAs, 401(k)s). These are already tax-advantaged. You can't harvest losses.
- Low tax brackets. If you're in the 12% bracket or lower, you likely pay 0% on long-term capital gains anyway.
- Taxable accounts you plan to hold forever. Losses only help when realized.
How to Actually Do Tax Loss Harvesting
The Manual Method
- Review your taxable brokerage account in November or December
- Identify positions with losses (cost basis higher than current value)
- Check if you have capital gains from earlier in the year
- Sell losing positions
- Immediately buy similar (but not identical) securities
- Wait 31 days before buying back the original securities if desired
- Document everything for tax time
This takes 1-3 hours per year if you have a simple portfolio. It becomes tedious with 20+ holdings.
The Automated Method
Several robo-advisors and platforms now offer automatic tax loss harvesting:
Wealthfront monitors your portfolio daily and harvests losses automatically when they exceed a certain threshold (typically $100 minimum). Their algorithm sells the losing security and immediately buys a correlated ETF to maintain your allocation. They estimate this feature adds 1.3% to 2.4% in annual returns through tax savings. No additional fee beyond their standard 0.25% management fee. For more on this topic, see our guide on Required Minimum Distributions Rules Explained.
Betterment offers similar functionality with their Tax Loss Harvesting+ feature. They harvest losses on any amount and also harvest losses from dividends in some cases. They claim average tax alpha (value from tax features) of 0.77% annually. Also included in their 0.25% fee.
M1 Finance provides tax loss harvesting for free on accounts over $10,000. It's not as sophisticated as Wealthfront's daily monitoring, but for many investors, quarterly checks are sufficient.
Vanguard Personal Advisor Services includes tax loss harvesting with their 0.30% advisory fee, though it requires a $50,000 minimum.
The automation advantage is consistency. These platforms harvest small losses frequently (a $200 loss here, a $500 loss there), which compounds over decades. Manual harvesters often wait for big losses and miss smaller opportunities.
Real Portfolio Example: Before and After
Here's an actual portfolio I reviewed in December 2025 (numbers changed for privacy):
Before tax loss harvesting:
- Total portfolio: $250,000
- Vanguard Total Stock (VTI): $100,000 (cost basis $105,000, loss of $5,000)
- Apple stock (AAPL): $50,000 (cost basis $45,000, gain of $5,000)
- Other holdings: $100,000 (no significant gains or losses)
Client's situation:
- Had already realized $15,000 in short-term capital gains from selling company stock
- 32% federal tax bracket
- 9.3% California state tax bracket
Tax impact without harvesting:
- Federal tax on $15,000 gain: $5,280 (35.2% combined rate for short-term)
- State tax: $1,395
- Total: $6,675
After tax loss harvesting:
- Sold VTI, realized $5,000 loss
- Immediately bought Schwab Total Stock Market Index (SWTSX), nearly identical fund
- Net taxable gain: $10,000 (instead of $15,000)
- Federal tax: $3,520
- State tax: $930
- Total: $4,450
- Tax savings: $2,225
The client stayed fully invested in the market. The only change was swapping one total market fund for another. Total transaction time: 8 minutes. We'll swap back after 31 days if desired, but honestly, there's no meaningful difference between these funds.
Common Questions About Tax Loss Harvesting
Can I harvest losses in my IRA or 401(k)?
No. Retirement accounts are already tax-advantaged. The IRS doesn't allow you to claim losses in these accounts. This strategy only works in regular taxable brokerage accounts.
What happens if I forget and buy the same stock within 30 days?
The IRS disallows your loss for that tax year. The good news is the disallowed loss gets added to the cost basis of your new purchase. You don't permanently lose the tax benefit, you just defer it until you eventually sell the replacement shares.
Example: You sell Stock A at a $1,000 loss, then accidentally buy it back 20 days later. The loss is disallowed this year. But if you bought the new shares at $50, your cost basis becomes $60 ($50 + $10 per share from the disallowed loss). You'll get the benefit eventually.
Does tax loss harvesting work with cryptocurrency?
As of 2026, yes. The wash sale rule doesn't yet apply to cryptocurrency (though Congress keeps proposing this). You can sell Bitcoin at a loss and immediately buy it back. However, this loophole will likely close soon. The IRS has indicated this is a priority enforcement area.
Should I harvest losses every year?
Not necessarily. If you have no gains and you're already deducting the maximum $3,000, additional harvesting just builds up carryforwards. That's not bad, but it's not urgent either.
The best approach: harvest losses when you have gains to offset, or when you're rebalancing anyway. Don't create extra transactions just to harvest $200 losses if you have no gains.
Can I harvest losses in December and buy back in January?
Yes, as long as you wait 31 days. Many investors sell in mid-December and buy back in mid-January. Just count carefully. December 20th to January 20th is exactly 31 days.
One warning: buying back in January means you're out of the market for 30 days. If the market rallies during that time, you miss those gains. This is why buying a similar (but not identical) security immediately is usually smarter.
How This Strategy Fits Into Your Bigger Picture
Tax loss harvesting is one piece of tax-efficient investing. Here's how it connects to other strategies:
Asset location: Keep tax-inefficient investments (bonds, REITs) in retirement accounts. Keep stocks in taxable accounts where you can harvest losses.
Capital gains management: Time the sale of appreciated assets to years when you have losses to harvest. If you're selling a rental property in 2027, start building up loss carryforwards in 2026.
Roth conversions: Harvesting losses reduces your adjusted gross income, which might allow you to convert more IRA money to Roth at lower tax rates.
Tax bracket management: That $3,000 deduction might drop you into a lower bracket or preserve your eligibility for certain credits.
Over 20 to 30 years of investing, consistent tax loss harvesting can add 0.5% to 1.5% to your annual returns. On a $500,000 portfolio, that's $2,500 to $7,500 per year. Compounded over decades, it's the difference between retiring at 64 and retiring at 62.
Your Next Steps
If you have a taxable brokerage account with more than $10,000, review it this week. Look for any positions with losses. Even if you don't sell them now, you'll know what opportunities exist.
If your portfolio is complex (10+ individual stocks, multiple funds), consider setting up automatic tax loss harvesting through Wealthfront or Betterment. The time savings alone is worth it, plus you'll capture losses you'd otherwise miss.
If you're doing this manually, set a reminder for the second week of December each year. That gives you time to execute trades before year-end without rushing. For more on this topic, see our guide on Year-End Financial Checklist.
The beautiful thing about tax loss harvesting is it doesn't require market timing, special knowledge, or even good luck. It just requires paying attention and understanding the rules. When losses happen in your portfolio (and they will), you might as well get a tax benefit from them.
Word count: 2,487
About the Author
Marcus Lover is a finance professional specializing in enterprise financial operations and personal finance strategy. He works with Lover Ventures helping individuals optimize their investment and tax strategies. With a background in corporate finance and portfolio management, Marcus focuses on making complex financial concepts accessible to everyday investors. He particularly enjoys helping clients understand tax-efficient investing strategies that can save thousands of dollars annually. When not analyzing portfolios, he's likely hiking in the Pacific Northwest or experimenting with new coffee brewing methods.
Take Action Today
If you are ready to move forward, Wealthfront is a solid choice: Automated investing with tax-loss harvesting, 0.25% fee.
Disclosure: Some of the links in this article are affiliate links. This means if you click through and make a purchase or sign up, we may earn a commission at no additional cost to you. We only recommend products and services we genuinely believe in. Our editorial content is not influenced by affiliate partnerships.
💌 Get weekly money tips
Join readers who get one actionable personal finance tip every week. No spam, no fluff.