Tax-Loss Harvesting Explained: A Beginner’s Guide
Last updated: August 2026
This post contains affiliate links. As an Amazon Associate I earn from qualifying purchases. See our Affiliate Disclosure for details.
If you’ve ever opened your brokerage app, seen an investment in the red, and felt a little sick — here’s a reframe. That paper loss can be worth real money at tax time. The strategy that makes that happen is called tax-loss harvesting, and while the name sounds like something only a CPA would touch, the core idea is simple enough to explain in a sentence.
This guide covers what tax-loss harvesting is, exactly how it saves you money, the one IRS rule that trips up beginners (the wash-sale rule), which accounts it works in, and how to actually do it — by hand or automatically. No jargon without a definition.
What is tax-loss harvesting?
Tax-loss harvesting is selling an investment that has dropped in value so you can use that loss to lower your tax bill. That’s it. You “harvest” the loss on purpose, then typically reinvest the money into something similar so you stay in the market.
Here’s why it works. When you sell an investment in a regular (taxable) brokerage account, the IRS cares about your capital gain or loss — the difference between what you paid and what you sold it for. Gains are taxable. Losses can be subtracted from those gains. So if you have a $2,000 gain on one stock and a $2,000 loss on another, selling both leaves you with a net gain of $0 — and no tax on that trade.
The key word is realized. A loss on paper does nothing for your taxes. You only get the tax benefit once you actually sell and lock in (“realize”) the loss.
How tax-loss harvesting actually saves you money
There are two ways a harvested loss helps you, and they happen in this order.
1. Losses cancel out capital gains
Your realized losses first offset your realized capital gains, dollar for dollar. The IRS matches them by type first:
- Short-term losses (investments held one year or less) offset short-term gains first.
- Long-term losses (held more than one year) offset long-term gains first.
- Any leftover of one type then offsets the other type.
This ordering matters because short-term gains are generally taxed at your ordinary income tax rate — the same rate as your paycheck — while long-term gains get lower rates. Wiping out a short-term gain is usually the more valuable outcome.
2. Up to $3,000 comes off your ordinary income
If your losses are bigger than your gains, you can use up to $3,000 of the leftover loss to reduce your ordinary income (your salary, basically) each year. This limit has been $3,000 for years and applies to most individual filers.
Say you had no gains at all this year but realized a $3,000 loss. You could deduct that full $3,000 from your taxable income. If you’re in, say, the 22% federal bracket, that’s roughly $660 back in your pocket — for a loss you were going to be sitting on anyway.
3. Anything left over carries forward — forever
Realized a $10,000 loss with no gains to offset? You use $3,000 this year, and the remaining $7,000 carries forward to future tax years. There’s no expiration date. You keep applying it — against future gains, then $3,000 of income per year — until it’s used up.
This is why big down years aren’t a total loss for disciplined investors: a large harvested loss can quietly shelter gains for years to come.
The one rule that trips up beginners: the wash-sale rule
Here’s the catch that keeps this from being a free lunch. The IRS doesn’t want you selling something just for the tax break and instantly buying it right back. So they made the wash-sale rule.
The wash-sale rule: if you sell an investment at a loss and buy the same or a “substantially identical” investment within 30 days before or after the sale, the IRS disallows the loss. You don’t get to claim it (it gets added to the cost basis of the new shares instead).
That’s a 61-day window total: 30 days before the sale, the day of, and 30 days after. A few things beginners miss:
- It applies across all your accounts, including your spouse’s and your IRA. Selling at a loss in your brokerage and rebuying in your IRA still triggers it.
- Automatic dividend reinvestment can accidentally trigger it — a small reinvested purchase within the window counts.
- It’s about “substantially identical” securities, not your whole portfolio. Selling one S&P 500 fund and buying a different fund that tracks a different index is generally fine.
How to harvest a loss and stay invested
The usual workaround: sell the losing fund, then immediately buy a similar-but-not-identical fund so you keep your market exposure without violating the rule. For example, you might sell an S&P 500 index fund at a loss and buy a total-market fund, or swap between two providers’ funds that track different indexes.
If you’re fuzzy on the difference between these fund types, our guide on index funds vs. ETFs explains what’s actually “substantially identical” and what isn’t. When in doubt, a quick check with a tax professional is cheap insurance — “substantially identical” is not perfectly defined by the IRS, so there’s some judgment involved.
Which accounts tax-loss harvesting works in
This is the part people get wrong most often, so it’s worth being blunt:
Tax-loss harvesting only works in a taxable brokerage account. It does nothing in a tax-advantaged retirement account.
Why? In a traditional IRA or 401(k), you don’t pay capital gains tax on trades in the first place — so there’s no gain to offset. In a Roth IRA, growth is tax-free, so again, no capital gains tax to reduce. Harvesting a loss inside these accounts gets you nothing, because the whole account is already shielded from capital gains tax.
If the difference between account types is still fuzzy, our traditional IRA vs. Roth IRA breakdown covers how each one is taxed. The short version: harvest losses in your regular brokerage account, and leave your IRAs and 401(k) alone.
Step-by-step: how to harvest a loss by hand
If you want to do this yourself in a taxable account, here’s the general process. (This is educational, not tax advice — everyone’s situation differs.)
- Review your taxable account for positions in the red. Look at unrealized losses, not your overall portfolio. Most brokerages show gain/loss per position.
- Check the calendar against the wash-sale window. Make sure you haven’t bought that same investment in the last 30 days, and don’t plan to for the next 30.
- Turn off automatic dividend reinvestment for that position first, so a small reinvestment doesn’t accidentally trip the rule.
- Sell the losing position to realize the loss.
- Immediately buy a similar-but-not-identical replacement so you stay invested (see the wash-sale section above).
- Keep the records. Your brokerage sends a Form 1099-B, and losses are reported on Schedule D and Form 8949. Save your confirmations.
- Wait at least 31 days before buying the original investment back, if you want to return to it.
Most people do this near year-end (often called “December tax-loss selling”), but you can harvest any time the opportunity appears — sharp market dips can create good harvesting windows mid-year.
The easier option: let a robo-advisor do it
Doing this by hand — tracking every position, dodging wash sales across accounts, finding replacement funds — is fiddly. That’s exactly why automated tax-loss harvesting became one of the headline features of robo-advisors.
Services like Wealthfront and Betterment scan your taxable account daily and harvest losses automatically, handling the replacement-fund swap and wash-sale avoidance for you. It runs quietly in the background. (Note: this only matters for taxable accounts — and some providers only enable it above a certain balance, so check the fine print.)
If you’d rather not manage this yourself, see our comparison of the best robo-advisors for beginners — automated tax-loss harvesting is one of the specific features we compare, along with fees and account minimums. For a hands-off investor, having the software handle harvesting can quietly add up over the years.
Is tax-loss harvesting worth it?
For most beginners with small taxable balances, the benefit is modest — a few hundred dollars in a given year, at most. It becomes more valuable as your taxable account grows and as you have real capital gains to offset. A few honest caveats:
- It’s a tax deferral, not always a tax elimination. Buying a replacement fund lowers your cost basis, which can mean a larger gain later. The benefit is real but often smaller than it first looks.
- Don’t let the tax tail wag the dog. Never sell a good long-term investment purely for a tax break if it messes up your plan.
- It’s irrelevant if you only invest in retirement accounts. No taxable account, no harvesting.
Used sensibly, though, it’s a legitimate way to make a down market do a little work for you — especially if it’s automated and you barely have to think about it.
Frequently asked questions
Does tax-loss harvesting work in a Roth IRA or 401(k)?
No. Those accounts don’t owe capital gains tax on trades, so there’s nothing to offset. Tax-loss harvesting only helps in a regular taxable brokerage account.
What is the $3,000 rule?
If your realized losses exceed your realized gains, you can deduct up to $3,000 of the excess loss against your ordinary income each year. Anything beyond $3,000 carries forward to future years with no expiration.
What is the wash-sale rule in simple terms?
If you sell an investment at a loss and buy the same or a “substantially identical” one within 30 days before or after, the IRS won’t let you claim that loss for now. The fix is to buy a similar-but-different investment instead, or wait 31 days.
When is the best time to harvest losses?
Many investors do it near year-end to plan around their annual taxes, but you can harvest any time you have a meaningful loss — market dips during the year often create good opportunities.
What’s the best book to understand investment taxes as a beginner?
For a plain-English overview of taxes overall, J.K. Lasser’s Your Income Tax is a well-known annual reference. For taxes in the context of a full investing plan, The Bogleheads’ Guide to Investing and JL Collins’s The Simple Path to Wealth are friendlier starting points.
Do I need an accountant to do this?
Not necessarily for simple cases, but because “substantially identical” is a judgment call and mistakes can cost you the deduction, checking with a tax professional before a large harvest is a smart, low-cost move. This article is educational and not personalized tax advice.

Meet Maurice, a staff editor at Bigger Investing. He’s an accomplished entrepreneur who owns multiple successful websites and a thriving merch shop. When he’s not busy with work, Maurice indulges in his passion for kayaking, climbing, and his family. As a savvy investor, Maurice loves putting his money to work and seeking out new opportunities. With his expertise and passion for finance, he’s dedicated to helping readers achieve their financial goals through Bigger Investing.

























![What is Velocity Banking? [Infographic]](https://www.biggerinvesting.com/wp-content/uploads/2018/07/Untitled-Design-400x250.jpg)





























































































