Tax Loss Harvesting Explained for Beginners
Tax Loss Harvesting Explained for Beginners
Nobody enjoys losing money on an investment. But here's something that might reframe how you think about those losses: in the right circumstances, a losing position in your portfolio can actually save you real money on your tax bill.
That's the core idea behind tax loss harvesting β a strategy that sounds complicated but is actually pretty straightforward once you understand the mechanics. It's one of the few legal ways to use a bad investment to your direct financial advantage.
Let's break it down from first principles.
Start Here: How Capital Gains Taxes Work
Before you can understand tax loss harvesting, you need a quick refresher on capital gains taxes.
When you sell an investment for more than you paid for it, the profit is called a capital gain. The IRS taxes that gain. How much you pay depends on two things:
1. How long you held the investment:
- Short-term capital gains apply to assets held for one year or less. These are taxed as ordinary income β meaning at your regular federal income tax rate, which can range from 10% to 37% depending on your income.
- Long-term capital gains apply to assets held for more than one year. These are taxed at preferential rates: 0%, 15%, or 20% depending on your taxable income.
2. Your income level: Higher earners pay higher rates on capital gains, particularly short-term gains.
The takeaway: capital gains can create meaningful tax bills. If you sold $50,000 worth of appreciated stock and you're in the 22% federal income tax bracket with a one-year holding period, you could owe $11,000 in federal taxes on that gain alone β before state taxes.
Tax loss harvesting is a way to reduce that number.
What Tax Loss Harvesting Actually Is
Here's the basic mechanic:
You sell an investment that has declined in value, realizing a loss. That realized loss can then be used to offset realized capital gains elsewhere in your portfolio β reducing your taxable income from investments.
Simple example:
- You sell Stock A for a $5,000 gain.
- You sell Stock B (which is down) for a $3,000 loss.
- Your net taxable capital gain is now $2,000, not $5,000.
- If you're in the 15% long-term capital gains bracket, you just saved $450 in taxes ($3,000 Γ 15%).
The loss doesn't evaporate β it gets applied against your gains. You're not throwing away a bad investment for nothing; you're extracting tax value from a position that was already losing money.
What if your losses exceed your gains?
The IRS allows you to use capital losses beyond just offsetting gains. If your capital losses exceed your capital gains in a given year, you can use up to $3,000 of the excess loss to offset ordinary income (salary, freelance income, etc.). Any losses beyond that $3,000 carry forward to future tax years β where they can offset future gains or reduce income again.
The Wash-Sale Rule: The Catch You Need to Know
Tax loss harvesting sounds simple, but there's an important constraint: the wash-sale rule.
The IRS doesn't want investors to sell a losing position purely for a tax benefit and then immediately buy the same thing back. So they created a rule to prevent this.
The wash-sale rule: If you sell a security at a loss and buy the same or a "substantially identical" security within 30 days before or after the sale, the IRS disallows the loss for tax purposes.
That's a 61-day window total β 30 days before the sale, the day of the sale, and 30 days after.
What counts as "substantially identical"? This is where it gets slightly murky. Clearly, buying the exact same stock back within 30 days triggers the wash-sale rule. But the IRS's guidance on "substantially identical" has gray areas, particularly for mutual funds and ETFs.
Generally accepted guidance:
- Selling a fund and buying the same fund back immediately = wash sale
- Selling a fund and buying a different fund tracking the same index = likely a wash sale
- Selling a fund and buying a fund tracking a different but similar index = generally considered acceptable
For example, selling an S&P 500 index fund and buying a total U.S. market index fund is a common tax loss harvesting strategy. The two funds are similar in exposure but not considered "substantially identical" under typical tax guidance. However, this is not tax advice β the IRS has not provided perfectly clear guidance on every ETF swap, and your specific situation matters. A CPA or tax professional can give you guidance tailored to your circumstances.
What happens if you trigger a wash sale? The loss isn't gone permanently β it gets added to the cost basis of the replacement security. You'll eventually recognize it when you sell that security. But you lose the immediate tax benefit, which is the whole point of the strategy.
When Does Tax Loss Harvesting Actually Make Sense?
Not every investor in every situation benefits from tax loss harvesting. Here's a framework for thinking about when it's worth doing:
It makes the most sense when:
You have significant capital gains to offset. If you've sold appreciated positions, received mutual fund distributions, or otherwise have realized gains for the year, losses can directly reduce that tax bill. The higher your gains, the more valuable the offset.
You're in a high tax bracket. Short-term gains taxed as ordinary income at 32%, 35%, or 37% benefit far more from harvesting than someone in the 12% bracket. The same $5,000 loss saves $1,850 at 37% versus $600 at 12%.
You have a taxable brokerage account. Tax loss harvesting only applies to taxable accounts. In a 401(k), IRA, or Roth IRA, you don't pay taxes on gains annually β so there are no gains to offset. This strategy is irrelevant inside tax-advantaged retirement accounts.
It's late in the tax year. Many investors review their portfolios in November or December to identify harvesting opportunities before December 31st closes the tax year. That said, meaningful losses can appear at any time during the year.
It matters less when:
You're in a low tax bracket. If your long-term capital gains rate is 0% (available to single filers under roughly $47,025 in 2024 taxable income), harvesting gains doesn't save you much because you weren't paying much to begin with.
All your investing is in tax-advantaged accounts. As mentioned above, 401(k)s and IRAs don't create taxable events on gains.
The transactions costs and tracking complexity outweigh the benefit. For very small portfolios or very small losses, the administrative effort may not be worth the tax savings.
Tools That Automate Tax Loss Harvesting
For most individual investors, manually tracking tax lots, identifying harvesting opportunities, and making the right swaps within the wash-sale window is genuinely time-consuming. This is one reason robo-advisors have gained traction β they automate the whole process.
Betterment pioneered automated tax loss harvesting at scale for retail investors. Their system monitors your portfolio continuously and automatically harvests losses when they appear β swapping into similar but not substantially identical funds to stay within wash-sale rules while maintaining your target asset allocation. This happens in the background without you making manual trades.
Wealthfront offers a similar feature, and their Tax-Loss Harvesting service is available to all accounts. For accounts over $100,000, they offer a more granular "Direct Indexing" feature β owning individual stocks that make up an index, which creates far more harvesting opportunities than ETF-level harvesting.
Traditional brokerages like Fidelity, Schwab, and Vanguard offer tools and reports that help you identify tax-loss opportunities, though the execution is typically manual rather than fully automated.
The tradeoff with robo-advisors: you pay management fees (typically 0.25%/year at Betterment and Wealthfront) in exchange for the automation and optimization. Whether that fee is worth it depends on your portfolio size, tax situation, and how hands-on you want to be.
A Few Things Tax Loss Harvesting Is Not
It's not avoiding taxes forever. You're deferring gains and reducing current-year tax liability. When you eventually sell the replacement position you bought after harvesting, those gains (adjusted for the lower cost basis) will be taxable. The benefit is time value of money β you're paying taxes later, not never.
It's not a reason to hold bad investments. Some investors get attached to the idea of harvesting and avoid selling losing positions at the "wrong" time. Don't let tax strategy override investment strategy. If a holding is fundamentally broken, the tax benefit of harvesting doesn't justify holding it.
It's not something to do without understanding your full picture. Alternative minimum tax, state taxes, the Net Investment Income Tax (an additional 3.8% on investment income for high earners), and other factors can affect the math significantly. This is educational β consult a CPA before building a tax strategy around these concepts.
The Bottom Line
Tax loss harvesting is a legitimate, legal strategy for reducing the tax drag on your investment portfolio. The core mechanic is simple: sell losing positions to realize losses, use those losses to offset capital gains (and up to $3,000 of ordinary income), and reinvest in a similar position to maintain your market exposure.
The wash-sale rule is the main constraint β you can't buy back the same security within the 30-day window on either side of the sale without losing the tax benefit.
For investors with substantial taxable accounts and meaningful capital gains, this strategy can save real money year after year. For investors primarily using 401(k)s and IRAs, or those in lower tax brackets, the benefit is more limited.
If you're serious about optimizing your portfolio's tax efficiency, the first step is understanding what you own and what it's worth. A financial picture built on real valuations β not wishful thinking β makes every other strategy, including tax planning, more effective.
Thinking about which stocks in your portfolio are worth holding versus harvesting? Our Graham Number calculator at valueofstock.com helps you assess intrinsic value so you can make informed decisions β not just tax-driven ones. Try it free.
This article is for educational purposes only and does not constitute tax or financial advice. Every investor's tax situation is different. Please consult a qualified CPA or tax professional before implementing any tax strategy.
Get Weekly Stock Picks & Analysis
Free weekly stock analysis and investing education delivered straight to your inbox.
Free forever. Unsubscribe anytime. We respect your inbox.