Here’s a counterintuitive idea: sometimes, losing money on an investment can be a financial win.
Not because losses are good—they’re not. But because the US tax code gives you the ability to use investment losses to offset investment gains, reducing the taxes you owe. This strategy is called tax-loss harvesting, and when used correctly, it can save you hundreds or thousands of dollars per year.
In this guide, we’ll explain exactly how tax-loss harvesting works, walk through a real example with numbers, explain the critical wash-sale rule, and help you determine whether this strategy makes sense for your situation.
What Is Tax-Loss Harvesting?
Tax-loss harvesting is the practice of deliberately selling investments that have declined in value to realize a capital loss, then using that loss to offset capital gains elsewhere in your portfolio—thereby reducing your tax liability.
The key insight is that you don’t have to abandon your investment strategy. After selling the losing position, you immediately reinvest the proceeds in a similar (but not identical) investment, maintaining your market exposure while locking in the tax benefit.
You’re essentially borrowing from the future: the losses you harvest now reduce taxes today, while your replacement investment continues growing. Eventually, when you sell the replacement, you’ll pay taxes on those gains—but by then, you’ve had years of additional tax-free compounding on the money you didn’t pay in taxes.
How Capital Gains and Losses Work
Before diving into the strategy, it helps to understand the tax framework:
Short-Term Capital Gains
Gains on assets held for one year or less are taxed as ordinary income—meaning at your regular marginal tax rate, which could be 22%, 24%, 32%, 35%, or 37% for 2026.
Long-Term Capital Gains
Gains on assets held for more than one year receive preferential tax rates: 0%, 15%, or 20% depending on your taxable income. Most middle-class investors pay the 15% rate.
How Losses Are Applied
Capital losses first offset capital gains of the same type (short-term losses offset short-term gains; long-term losses offset long-term gains). Remaining losses can then offset gains of the other type. If you still have losses left over, you can deduct up to $3,000 against ordinary income per year, and carry the rest forward to future tax years indefinitely.
A Real Example: Tax-Loss Harvesting in Action
Let’s say it’s late November 2026 and you review your taxable brokerage account. Here’s what you find:
Your Portfolio Situation
| Investment | Purchase Price | Current Value | Gain/Loss | Type |
|---|---|---|---|---|
| Apple (AAPL) | $8,000 | $14,000 | +$6,000 | Long-term gain |
| International ETF (VXUS) | $15,000 | $11,500 | -$3,500 | Long-term loss |
| Small-cap ETF (VBR) | $10,000 | $8,200 | -$1,800 | Long-term loss |
Scenario A: No Tax-Loss Harvesting
You decide to sell your Apple shares to rebalance. You have $6,000 in long-term capital gains.
- Tax owed (at 15% long-term rate): $900
Scenario B: With Tax-Loss Harvesting
Before selling Apple, you sell both VXUS and VBR to realize $5,300 in losses.
- Long-term gains from Apple sale: $6,000
- Long-term losses from VXUS + VBR: -$5,300
- Net taxable gain: $700
- Tax owed (at 15%): $105
- Tax savings: $795
You immediately reinvest the VXUS proceeds into a similar international ETF (say, IXUS, the iShares Core MSCI Total International Stock ETF) and the VBR proceeds into another small-cap ETF (say, SCHA, the Schwab US Small-Cap ETF). Your market exposure is nearly identical, but you’ve saved $795 in taxes.
The Extra $3,000 Deduction
If your losses exceed your gains in a given year, you can deduct up to $3,000 of the excess against ordinary income. If you’re in the 22% tax bracket, $3,000 in deductible losses saves you $660 in federal taxes—plus state tax savings if applicable. Any remaining losses carry forward to offset future gains.
The Wash-Sale Rule: The Critical Rule You Cannot Ignore
The IRS isn’t naive. They anticipated that investors might sell losing positions just to claim a tax loss and then immediately buy back the same investment. To prevent this, they created the wash-sale rule.
What Is the Wash-Sale Rule?
The wash-sale rule states that if you sell a security at a loss and buy a “substantially identical” security within 30 days before or after the sale (a 61-day window total), your loss is disallowed for tax purposes. The disallowed loss is added to the cost basis of the replacement security, deferring (not eliminating) the loss to when you eventually sell the replacement.
What Triggers the Wash Sale?
Selling at a loss and buying back:
- The exact same stock or fund
- Options or warrants on the same stock
- A fund tracking the same index from the same provider (e.g., selling VOO and buying VFIAX—both are Vanguard S&P 500 funds)
What Does NOT Trigger a Wash Sale?
- Selling VOO (Vanguard S&P 500 ETF) and buying SPY (SPDR S&P 500 ETF)—different providers, same index: generally acceptable, though the IRS has not provided definitive guidance
- Selling VXUS (Vanguard Total International) and buying IXUS (iShares Total International)—different funds tracking similar but not identical indexes: acceptable
- Selling one sector ETF and buying a broader market ETF
- Selling an individual stock and buying an ETF in the same sector
Common Wash-Sale Mistakes
The wash-sale window covers 30 days before the sale as well. If you bought more shares of VXUS in mid-October and then sell your position at a loss in November, the October purchase triggers a wash sale for the overlapping lots.
The rule also applies across accounts. Selling at a loss in your taxable brokerage account and buying the same fund in your IRA within 30 days triggers a wash sale—and the loss is permanently disallowed (not just deferred), because the replacement is in a different account.
When Does Tax-Loss Harvesting Make Sense?
When It Makes Sense
- You have a taxable brokerage account with unrealized losses. (Tax-loss harvesting does nothing in IRAs, 401(k)s, or other tax-advantaged accounts.)
- You also have capital gains to offset in the same year, or expect to in future years
- You’re in a moderate to high tax bracket (15%+ capital gains rate or 22%+ ordinary income rate)
- The tax savings are meaningful relative to transaction costs
- You can find a suitable replacement investment that maintains your desired asset allocation
When It Doesn’t Make Sense
- You’re in the 0% capital gains bracket (taxable income below ~$47,000 for single filers in 2026)
- All your investments are in tax-advantaged accounts (IRAs, 401k)
- The loss amount is too small to justify the effort and transaction costs
- You can’t find an appropriate replacement investment without significantly changing your strategy
- You plan to donate the losing asset to charity (better to donate appreciated assets and take the deduction, or donate the loss asset for the fair market value deduction)
Automated Tax-Loss Harvesting
One of the most valuable features of robo-advisors is automated tax-loss harvesting. Services that offer this include:
- Betterment — Automated daily tax-loss harvesting, automatically invests in replacement funds
- Wealthfront — Tax-loss harvesting plus “direct indexing” for accounts over $100,000 (harvests losses at the individual stock level within an index)
- Schwab Intelligent Portfolios Premium — Automated harvesting included
- Fidelity Go — Tax-loss harvesting available at higher account levels
Wealthfront claims their tax-loss harvesting generates an average of 1.8% in additional after-tax returns annually for affected accounts. Even if the real number is half that, it’s meaningful compounded over decades.
Year-End Tax-Loss Harvesting Checklist
- Review your taxable accounts for unrealized losses in October/November
- Identify any realized gains for the year that losses can offset
- Check for any wash-sale issues with recent purchases
- Identify suitable replacement investments
- Execute the sales and immediately purchase replacements
- Set a calendar reminder for 31 days later to repurchase original securities if desired
- Document everything for tax filing purposes
This article contains affiliate links.
Bottom Line
Tax-loss harvesting is one of the most accessible and reliable ways to improve your after-tax investment returns without changing your underlying strategy or taking on additional risk. By selling positions at a loss, immediately replacing them with similar investments, and using the losses to offset gains, you defer taxes and keep more of your money compounding.
The wash-sale rule is the key rule to respect—always wait 31 days before repurchasing the same security, and never buy the replacement in a different account type. With proper execution, tax-loss harvesting is a strategy that truly pays.
Disclaimer: This article is for informational and educational purposes only and does not constitute tax or financial advice. Tax laws are complex and change frequently. Individual situations vary significantly. Please consult with a qualified tax professional or CPA before implementing any tax strategy.
