What Is Tax-Loss Harvesting? How to Turn Losses Into Tax Savings
What Is Tax-Loss Harvesting — and Why Should You Care?
Here's a truth most people don't fully absorb until they've been investing for a few years: losses aren't always bad. Yes, watching a position drop in value stings. But the tax code gives you a way to convert that paper pain into an actual, bankable benefit — one that shows up on your tax return as real money saved.
That mechanism is called tax-loss harvesting. And if you hold investments in a taxable brokerage account, it's one of the most legitimate, IRS-approved ways to lower your tax bill without changing your investment strategy in any meaningful way.
This guide is going to walk you through exactly what tax-loss harvesting is, how it works step by step, the rules you absolutely need to know (the wash sale rule being the big one), and concrete dollar examples so you can see whether this is worth your attention.
Short answer: for most investors with taxable accounts, it is.
The Core Idea: Using Losses to Offset Gains (and Income)
When you sell an investment for more than you paid for it, you have a capital gain. The IRS wants a share of that. Depending on how long you held the asset, you'll owe either short-term capital gains tax (taxed at ordinary income rates, which can run as high as 37%) or long-term capital gains tax (taxed at 0%, 15%, or 20%, depending on your income).
When you sell an investment for less than you paid for it, you have a capital loss. The IRS lets you use that loss to offset your gains — dollar for dollar. If you have more losses than gains in a given year, you can apply up to $3,000 of the excess losses against ordinary income (salary, freelance income, etc.). Any losses beyond that carry forward to future tax years indefinitely.
Tax-loss harvesting is the deliberate, strategic practice of selling positions that are currently at a loss to capture that tax benefit — and then immediately reinvesting the proceeds in a similar (but not identical) investment so you stay fully invested in the market.
You're not abandoning your investment strategy. You're not betting against a position. You're simply swapping one investment for a comparable one, crystallizing a tax deduction in the process, and moving on. The portfolio looks nearly the same. The tax bill looks meaningfully different.
Short-Term vs. Long-Term: Why It Matters
Capital losses are categorized the same way gains are — short-term (held less than one year) or long-term (held more than one year). Short-term losses first offset short-term gains; long-term losses first offset long-term gains. After that, any excess losses cross over to offset the other category.
Why does this matter? Because short-term gains are taxed at your ordinary income rate, which is almost always higher than the long-term rate. A short-term loss that offsets a short-term gain saves you more in taxes than a long-term loss offsetting a long-term gain at the same dollar amount. It's worth being aware of as you think about timing your harvesting decisions.
How Tax-Loss Harvesting Actually Works: A Step-by-Step Walkthrough
The mechanics are more straightforward than the name suggests. Here's how to think through each step.
Step 1: Identify positions in your taxable account that are currently at a loss.
Log into your brokerage and look at your unrealized gains and losses. You're hunting for positions where your current market value is below your cost basis. (Cost basis = what you paid, including any reinvested dividends.) Most brokerages show this clearly in the "positions" view.
A few things worth noting: this only applies to taxable accounts — your 401(k) and IRA don't generate taxable capital gains or losses, so harvesting doesn't apply there. Also, you're looking at unrealized losses. Until you sell, nothing is locked in.
Step 2: Decide which losses are worth harvesting.
Not every small loss is worth acting on. Transaction costs aside (most brokerages are now commission-free), you want to weigh the tax benefit against the risk of being out of the market — even briefly — in a position that might rebound. Generally, losses in the range of several hundred dollars or more start to feel meaningful. The math gets more compelling the higher your tax bracket.
Also consider whether the loss is short-term or long-term, as discussed above, since the tax value differs.
Step 3: Sell the losing position.
Execute the sale. This locks in the capital loss on that tax year's return. Keep the trade confirmation or note the date and proceeds — your brokerage will report this to the IRS on a Form 1099-B, but you'll want your own records to confirm the cost basis is correct.
Step 4: Immediately reinvest in a similar (but not substantially identical) investment.
Here's where the wash sale rule comes into play — we'll cover it in depth in the next section. The short version: you cannot buy back the same security within 30 days before or after the sale and still claim the loss. So you'll replace it with something that tracks the same general market exposure but is considered a different security.
For example: if you sell shares of the Vanguard Total Stock Market ETF (VTI) at a loss, you might immediately buy the Schwab U.S. Broad Market ETF (SCHB) or the iShares Core S&P Total U.S. Stock Market ETF (ITOT). These track slightly different indexes but provide nearly identical economic exposure. You're still fully invested in U.S. equities. You've just changed the ticker.
Step 5: After 30 days, optionally swap back.
After the wash sale window closes (31 days), you can sell the replacement fund and repurchase your original holding if you prefer it. Many investors just keep the replacement fund permanently — especially if it has similar expenses and performance characteristics.
Step 6: Apply the harvested losses when you file your taxes.
Report capital gains and losses on Schedule D of your federal tax return. Your brokerage's 1099-B will provide the raw data; tax software like TurboTax or a CPA will handle the netting. The savings show up as reduced taxable income — which means either a lower tax bill or a larger refund.
The Wash Sale Rule: The One Rule You Cannot Ignore
The IRS isn't naive. They anticipated that investors would try to sell losing positions just to grab the deduction, then buy right back in. To close that loophole, they created the wash sale rule.
Under IRS Publication 550, a wash sale occurs when you sell a security at a loss and, within the 61-day window centered on the sale date (30 days before the sale, the day of the sale, and 30 days after), you buy a "substantially identical" security. If you trigger a wash sale, the loss is disallowed — you don't get the deduction. The disallowed loss isn't gone forever; it gets added to the cost basis of the replacement shares, deferring the benefit. But you lose the current-year deduction, which is the whole point of the exercise.
"Substantially identical" is a term the IRS has never fully defined through bright-line rules, which creates some grey area. What we do know:
- Clearly a wash sale: Selling VTI and buying VTI back within 30 days. Selling a stock and buying call options on the same stock. Selling shares in your taxable account and buying the same fund in your IRA within the window.
- Generally not a wash sale: Selling VTI (tracks the CRSP US Total Market Index) and buying SCHB (tracks the Dow Jones U.S. Broad Stock Market Index). Different index, different fund company — the IRS has generally treated these as not substantially identical. Selling a U.S. large-cap fund and buying an S&P 500 fund is a judgment call that many tax professionals consider safe, but it's worth consulting your own CPA for higher-stakes situations.
- Important caveat: The wash sale rule applies across all your accounts — taxable, IRA, spouse's accounts. If you sell at a loss in your taxable account and your spouse's IRA buys the same fund within the window, you've triggered a wash sale. Coordination matters in households with multiple accounts.
The practical takeaway: maintain a short list of "replacement pairs" for your core holdings — securities that provide similar market exposure but are clearly different funds. Most index investors can do this easily. Stock-pickers have a harder time, since individual stocks don't have obvious substitutes.
The Real Numbers: How Much Can Tax-Loss Harvesting Actually Save You?
Abstract tax concepts become much clearer with concrete examples. Here are a few scenarios that illustrate the range of impact.
Scenario 1: The Simple Offset
It's December. You realize you have $8,000 in long-term capital gains from selling appreciated shares earlier in the year. You also hold a position currently worth $5,000 that you bought for $8,000 — a $3,000 unrealized loss. You're in the 22% ordinary income bracket and the 15% long-term capital gains bracket.
If you don't harvest the loss, you owe 15% on $8,000 in gains: $1,200 in capital gains tax.
If you do harvest the loss, you now have $8,000 in gains offset by $3,000 in losses = $5,000 in net taxable gains. You owe 15% on $5,000: $750 in capital gains tax.
Tax savings: $450. You immediately reinvest the $5,000 proceeds into a similar fund, so your portfolio exposure is unchanged. You're $450 richer on April 15.
Scenario 2: Gains Fully Offset + Ordinary Income Deduction
You have $2,000 in short-term capital gains (taxed at your 24% ordinary rate) and $7,000 in harvestable losses across a few positions. You harvest all $7,000 in losses.
The $7,000 in losses offsets the $2,000 in short-term gains, leaving $5,000 in "excess" losses. You can apply $3,000 of that against your ordinary income. The remaining $2,000 carries forward to next year.
- Tax saved on short-term gains: $2,000 × 24% = $480
- Tax saved on ordinary income: $3,000 × 24% = $720
- Total savings this year: $1,200
- Plus $2,000 in losses available to offset next year's gains.
Scenario 3: High-Income Investor, Market Downturn Year
A volatile year. A high-income investor (37% ordinary rate, 20% long-term gains rate) has $30,000 in harvestable long-term losses and $15,000 in long-term gains.
Losses fully offset the gains: $30,000 − $15,000 = $15,000 in excess losses. Applying $3,000 against ordinary income: 3,000 × 37% = $1,110 saved. Remaining $12,000 carries forward.
Tax savings in year one: $3,000 (on gains) + $1,110 (on income) = $4,110. The $12,000 carryforward is a future benefit waiting to be deployed.
Quick Reference: Tax Rate Impact on Loss Value
| Filing Status / Income Range | Ordinary Income Rate | Long-Term Gains Rate | Value of $1,000 Short-Term Loss | Value of $1,000 Long-Term Loss |
|---|---|---|---|---|
| Single, ~$47K–$100K | 22% | 15% | $220 | $150 |
| Single, ~$100K–$191K | 24% | 15% | $240 | $150 |
| Single, ~$191K–$243K | 32% | 15% | $320 | $150 |
| Single, ~$243K–$609K | 35% | 20% | $350 | $200 |
| Single, $609K+ | 37% | 20% | $370 | $200 |
Note: Rates shown are approximate for 2025. State income taxes can add 3–13% on top. High earners may also owe the 3.8% Net Investment Income Tax (NIIT) on gains.
The table makes one thing clear: the higher your tax bracket, the more valuable harvesting becomes. An investor in the 37% bracket gets nearly twice the benefit from a short-term loss compared to someone in the 22% bracket.
What Tax-Loss Harvesting Is Not (Common Misconceptions)
A few things worth clearing up, because this strategy gets misunderstood in ways that lead people to either ignore it or misapply it.
It's not "timing the market." A common objection is that selling at a loss and reinvesting feels like it involves a market call. It doesn't — the whole point is to stay invested through an equivalent replacement security. You're not betting on a recovery or a further decline. You're making a tax move, not a market move.
It doesn't make sense in tax-advantaged accounts. There are no capital gains taxes in a 401(k) or IRA, so there are no gains to offset. Harvesting only applies in taxable brokerage accounts.
It doesn't make sense if you're in the 0% capital gains bracket. If your taxable income is low enough that you qualify for the 0% long-term capital gains rate (under roughly $47,025 for single filers in 2025), harvesting long-term losses against long-term gains produces zero benefit. You'd want to focus on short-term losses offsetting ordinary income instead, or simply skip the strategy until your income increases.
It doesn't eliminate taxes — it defers and reduces them. When you sell the replacement security in the future at a gain, that gain is larger than it would have been (because your cost basis is lower, since you bought the replacement at a lower price). You'll owe taxes then. The net benefit is the time value of money: you keep more cash working in the market now, and you pay a smaller total bill over time if you hold appreciated shares until death or donate them to charity (when the step-up in basis eliminates the embedded gain).
When to Harvest: Opportunistic vs. Systematic
There are two broad approaches, and neither is wrong.
Opportunistic harvesting means you keep an eye on your taxable account and act when a meaningful loss opportunity appears — typically during market corrections, sector downturns, or after a volatile earnings event for an individual stock. Year-end is the traditional hunting season, since you know your full year's gains picture by November or December. Many investors do a single annual review in November to identify and act on the largest available losses before December 31.
Systematic harvesting means you (or your automated investment platform) continuously scans for harvesting opportunities throughout the year, acting whenever losses cross a threshold. This is what robo-advisors like Betterment and Wealthfront advertise as "daily tax-loss harvesting." The argument is that markets fluctuate constantly, and waiting for year-end means missing intra-year opportunities. The counter-argument is that transaction friction, complexity, and the risk of triggering wash sales increase with frequency. For most individual investors managing their own accounts, a quarterly or annual review captures most of the available benefit with far less hassle.
Practical Considerations Before You Start
A few logistics worth thinking through before your first harvest:
Confirm your cost basis method. The default for most brokerages is "average cost" for mutual funds and FIFO (first in, first out) for ETFs and stocks. Switching to "specific identification" lets you choose which lots to sell — valuable when a fund has been purchased over time at different prices. You might have lots purchased at $100, $80, and $60, and only want to sell the $100 lots that are now at $75. Ask your brokerage about changing your cost basis accounting method before you trade.
Track your replacement fund's 30-day window. Note the date you bought your replacement security in a spreadsheet or calendar reminder. After 31 days, you can swap back to your original fund if you want — or just keep the replacement.
Consider state taxes. Some states don't allow capital loss deductions or treat them differently than federal. California, for example, follows federal rules, but a handful of states don't. Worth a quick check if you live somewhere with high state income taxes.
Work with a CPA for complex situations. If you have a large portfolio, concentrated positions, RSUs, or significant gains from selling real estate or a business, the interaction effects between different types of income and losses get complicated quickly. The concepts here apply, but the optimization layer benefits from professional guidance.
You Might Also Enjoy
- The Financial Order of Operations: Where to Put Your Money First — Understand the priority stack for savings and investment accounts before diving deeper into taxable investing.
- Asset Location Strategy: Which Investments Belong in Which Accounts — Tax-loss harvesting is one piece of the tax-efficiency puzzle. Asset location is the other major lever, and they work together.
- Index Funds vs. Mutual Funds: What's Actually Different? — When picking your replacement securities for harvesting, understanding the structural differences between fund types helps you choose wisely.
- Dollar-Cost Averaging: Does It Actually Work? — Regular investing creates multiple tax lots over time, which gives you more flexibility when harvesting.
- Lump Sum vs. Dollar-Cost Averaging: The Data-Driven Answer — If you're deciding how to deploy cash into a taxable account, understanding the tradeoffs here shapes how many harvesting opportunities you'll have going forward.