Tax-Loss Harvesting: How to Save on Investment Taxes
Common Misconception
Myth: Selling investments at a loss is a mistake because you lock in a loss. Reality: If a position is down and you sell it, buy a similar (but not identical) replacement, and claim the loss against your gains or ordinary income, you are in exactly the same market position you were before — but your tax bill is permanently lower. The loss is not "lost." It converts from a paper loss into a real tax asset.
Key Takeaways
- →Capital losses offset capital gains dollar for dollar; net losses up to $3,000 per year can offset ordinary income (IRC Section 1211(b)).
- →Excess losses carry forward indefinitely — they do not expire.
- →The wash sale rule (IRC Section 1091) disallows a harvested loss if you repurchase a substantially identical security within 61 days.
- →Roughly 30% of investors who attempt tax-loss harvesting inadvertently trigger wash sales each year, per brokerage industry data.
- →Cryptocurrency is currently not subject to the wash sale rule — a significant advantage for crypto investors in 2026.
The Mechanics: How Tax-Loss Harvesting Actually Works
Tax-loss harvesting is the deliberate sale of a security that has declined below your purchase price in order to recognize a capital loss on your tax return. That loss can then be used to offset capital gains realized elsewhere in your portfolio. If your losses exceed your gains, up to $3,000 of the net loss can be deducted against ordinary income — wages, self-employment income, rental income — each year. Any remaining excess carries forward to future tax years without expiration.
The strategy works because the U.S. tax code taxes gains only when realized (when you sell) but also allows you to claim losses when realized. This asymmetry is exploitable: you can trigger a loss while maintaining your market exposure by replacing the sold security with a similar — but not substantially identical — investment. You stay invested. You stay diversified. But your cost basis resets lower, and your tax bill shrinks.
The IRS rules governing losses on investment securities are found primarily in IRS Publication 550, Investment Income and Expenses. For capital loss limitations and carry-forward rules, see IRC Section 1211(b). For the wash sale disallowance, see IRC Section 1091.
How Capital Losses Are Applied: The Netting Rules
The IRS has a specific netting order for capital gains and losses that you must follow. Short-term and long-term are calculated separately, and the interaction between them determines your final tax outcome:
- Net short-term gains and losses against each other. Short-term losses first offset short-term gains. If short-term losses exceed short-term gains, you have a net short-term loss.
- Net long-term gains and losses against each other. Long-term losses first offset long-term gains. If long-term losses exceed long-term gains, you have a net long-term loss.
- Cross-apply if one is a net gain and the other is a net loss. A net short-term loss offsets a net long-term gain, and vice versa.
- Deduct remaining net losses against ordinary income, up to $3,000 per year. Anything above $3,000 carries forward.
This netting order has a strategic implication: harvested long-term losses are most valuable when you have long-term gains to offset (eliminating the preferential 15-20% rate), while harvested short-term losses are most valuable when you have short-term gains taxed at your full ordinary rate up to 37%. When planning your harvesting, match the character of your losses to the character of your largest gains.
Real Example: How Much Tax-Loss Harvesting Can Save
Consider an investor in the 22% ordinary income bracket with the following situation in their taxable brokerage account in 2026:
| Position | Purchase Price | Current Value | Gain / (Loss) | Holding Period |
|---|---|---|---|---|
| Tech ETF (QQQM) | $80,000 | $112,000 | +$32,000 | 18 months (long-term) |
| Individual stock A | $40,000 | $27,000 | −$13,000 | 14 months (long-term) |
| Individual stock B | $20,000 | $15,000 | −$5,000 | 8 months (short-term) |
Without harvesting: If this investor sells the tech ETF and realizes a $32,000 long-term gain, they owe $4,800 in federal capital gains tax (15% long-term rate). The losses on stocks A and B are unrealized — no tax benefit claimed.
With harvesting: The investor simultaneously sells stocks A and B, realizing $13,000 + $5,000 = $18,000 in losses. Against the $32,000 long-term gain, the $13,000 long-term loss offsets first, leaving a $19,000 net long-term gain. The $5,000 short-term loss then offsets the $19,000 net long-term gain, leaving $14,000 in net long-term gains. Tax owed: $14,000 × 15% = $2,100.
Total savings: $4,800 − $2,100 = $2,700 in immediate tax savings. The investor immediately reinvests the proceeds from stocks A and B into similar (not identical) replacement securities, maintaining full market exposure. The new positions have a lower cost basis, so future gains will be larger — but those gains will be at the favorable long-term rate if held over a year, and the money that would have gone to the IRS now compounds tax-deferred in the portfolio.
The Wash Sale Rule: The One Rule That Can Invalidate Everything
The wash sale rule under IRC Section 1091 is the single most important constraint on tax-loss harvesting. If you sell a security at a loss and buy a "substantially identical" security within 30 days before or after the sale date — a total 61-day window — the IRS disallows the loss. It is not gone permanently; the disallowed loss is added to the cost basis of the replacement security. But you lose the immediate tax benefit and must wait until you eventually sell the replacement.
The key phrase is "substantially identical." The IRS has never defined this precisely, which is both a problem and an opportunity. Clearly substantially identical: selling 100 shares of Apple stock and buying 100 Apple shares the next day. Likely substantially identical: selling one S&P 500 index ETF and immediately buying a different S&P 500 index ETF from a different fund family (both tracking the exact same index). Probably not substantially identical: selling an S&P 500 ETF and buying a total market ETF (different index, different composition) or a dividend-focused ETF.
According to brokerage industry data, approximately 30% of investors who attempt tax-loss harvesting inadvertently trigger wash sales each year — often because they forget about purchases in other accounts. The wash sale rule applies across all accounts you own or control, including IRAs. Selling a position in your taxable account at a loss and then buying the same position in your IRA within the 61-day window permanently disallows the loss — it cannot even be added to the IRA's cost basis.
Replacement Security Strategy: Maintaining Exposure Without Triggering Wash Sales
The standard approach after harvesting a loss is to immediately purchase a similar but non-identical replacement to maintain your target market exposure. Common replacement pairs used by tax-aware investors include:
| Sold Position | Replacement Security | Rationale (Not Identical) |
|---|---|---|
| Vanguard S&P 500 ETF (VOO) | Vanguard Total Market ETF (VTI) | Tracks different index; includes small/mid-cap |
| iShares S&P 500 (IVV) | Schwab US Broad Market (SCHB) | Tracks Russell 3000, wider universe |
| Individual stock (e.g., JPMorgan) | Financial sector ETF (XLF) | Single stock → diversified fund, not identical |
| Treasury bond fund (VGIT) | Corporate bond fund (VCIT) | Different underlying securities and issuers |
Important caution: Whether two ETFs tracking nearly identical indexes qualify as "substantially identical" is a facts-and-circumstances determination. SPY (SPDR S&P 500) and IVV (iShares S&P 500) track the exact same index; the IRS could take the position they are substantially identical. Most tax practitioners recommend replacing with a fund tracking a meaningfully different index to eliminate the ambiguity entirely. When in doubt, consult a tax professional — the risk of a wash sale disallowance is real and the IRS has not provided bright-line guidance for ETF swaps.
The $3,000 Ordinary Income Deduction: Often Overlooked
Many investors focus on using losses to offset gains, but the $3,000 annual deduction against ordinary income is frequently underutilized. Under IRC Section 1211(b), if your net capital losses exceed your capital gains in a given year, you can deduct up to $3,000 from your ordinary taxable income — wages, rental income, self-employment income, or any other type.
For a single filer in the 22% bracket, a $3,000 ordinary income deduction saves exactly $660 in federal tax ($3,000 × 22%). For someone in the 32% bracket, it saves $960. This benefit is available even in years with no capital gains — if you have pure losses, you can still harvest $3,000 worth of tax savings against your wages. The unused balance carries to the next year, where you get another $3,000 against ordinary income.
A taxpayer who carries forward $30,000 in net capital losses from a bad market year can deduct $3,000 per year for 10 consecutive years — a reliable, low-effort annual tax reduction requiring no additional selling. This carry-forward benefit is why aggressive loss harvesting during market downturns (2022 was a prime example) pays dividends for years afterward.
The Crypto Tax-Loss Harvesting Advantage
Cryptocurrency is classified as property by the IRS under Notice 2014-21 — not as a security. Because the wash sale rule (IRC Section 1091) applies only to securities, crypto is currently exempt. As of 2026, you can sell Bitcoin at a $20,000 loss, immediately repurchase the same amount of Bitcoin, and claim the full $20,000 capital loss. No 30-day wait. No replacement security needed.
This creates a substantial advantage for crypto investors. During any meaningful market pullback, investors can harvest losses and immediately buy back the same coin at the lower price, locking in both the tax benefit and the full market position. This strategy became widely used during the crypto market corrections of 2022 and 2023.
Legislative risk: Multiple bills have been introduced in Congress to extend wash sale rules to cryptocurrency — most recently provisions in various infrastructure and revenue packages. If such legislation passes, the crypto wash sale exemption would end, potentially with a retroactive effective date. Investors using this strategy should monitor legislative developments closely. For a full breakdown of crypto tax rules, our 2026 Crypto Tax Guide covers the complete picture.
When to Harvest: Year-Round vs Year-End
Many investors think of tax-loss harvesting as a December activity. This is a mistake. Optimal harvesting is opportunistic — it should happen whenever two conditions align: (1) a position is down enough that the tax savings justify the transaction costs and tracking burden, and (2) the market context gives you a reasonable replacement option.
Robo-advisors like Betterment and Wealthfront run automated daily harvesting algorithms that scan every account position for harvestable losses. According to Betterment's published research, their tax-loss harvesting feature added an average of 0.77% per year in after-tax return for clients with taxable accounts — a significant figure that compounds dramatically over decades. Manual investors can replicate the approach less frequently but should check for opportunities at least quarterly, particularly after significant market drawdowns.
Year-end is still an important time to review your net capital gain/loss position for the year and harvest any remaining losses needed to offset recognized gains. But waiting until November or December means missing opportunities throughout the year. Pair harvesting with our Capital Gains Tax Guide to understand exactly which rate you are shielding against.
Tax-Loss Harvesting in Retirement Accounts: A Common Mistake
Tax-loss harvesting is only applicable to taxable investment accounts. You cannot harvest losses inside a traditional IRA, Roth IRA, 401(k), or other tax-advantaged account because gains and losses within those accounts do not trigger taxable events until withdrawal (or never, for Roth). Selling a losing position inside an IRA produces no tax benefit and is purely an investment decision.
The interaction between retirement accounts and taxable accounts creates the wash sale trap described earlier: if you harvest a loss in your taxable brokerage and then buy back the same position in your IRA, the loss is permanently disallowed. The IRS looks across all accounts you control, and the wash sale rule applies. This is one of the most common and costly tax-loss harvesting errors.
Frequently Asked Questions
Can I deduct capital losses against my salary or ordinary income?
Yes — up to $3,000 per year. Under IRC Section 1211(b), if your net capital losses exceed your capital gains, you can deduct up to $3,000 of the remaining loss against ordinary income such as wages or self-employment income. Any losses above $3,000 carry forward to future tax years indefinitely. This $3,000 limit applies per tax year, not per transaction.
Do capital loss carryforwards expire?
No. Capital loss carryforwards survive indefinitely. If you harvested $50,000 in losses in 2023 and only used $3,000 per year against ordinary income with no capital gains to offset, you would still have $38,000 in carryforward losses available in 2026. The losses are tracked on Schedule D and Form 8949 and carry from year to year until fully utilized. They are also transferable at death in some circumstances but do not pass to heirs through an estate.
What forms do I use to report harvested losses?
Form 8949, Sales and Other Dispositions of Capital Assets, and Schedule D of Form 1040. Each harvested position is reported on Form 8949 with the sale date, cost basis, proceeds, and gain or loss. Totals flow to Schedule D, which nets all gains and losses. If you have a carryforward from prior years, you enter it on Schedule D Line 6 (short-term) or Line 14 (long-term). Brokerage 1099-B forms provide cost basis and sale proceeds.
Is tax-loss harvesting worth it if my gains are taxed at 0%?
Generally no, if all your gains fall in the 0% long-term capital gains bracket. Single filers with taxable income below $48,350 (or MFJ couples below $96,700) in 2026 pay zero federal tax on long-term capital gains — there is nothing to offset. In this case, harvesting long-term losses provides no immediate benefit and resets your cost basis lower, meaning future gains will be larger when you eventually sell at a taxable rate. However, the $3,000 deduction against ordinary income still has value if you have wage income above the 10% bracket.
What is the 'double up' strategy for tax-loss harvesting?
The double up strategy involves purchasing additional shares of the losing position before selling the original shares. You buy an equal number of new shares at the current (lower) price, wait 31 days, then sell the original higher-cost-basis shares to realize the loss. You maintain continuous market exposure and never had a gap in ownership. The risk: if the stock drops further during the 31-day window, you hold double the position. If it rises, your loss opportunity shrinks. The wash sale clock runs from the purchase of the new shares, so you must sell the original shares after the 31-day window closes.
See How Capital Gains Tax Affects Your Portfolio
Use our Capital Gains Tax Calculator to estimate the tax cost of your gains — and the savings from offsetting losses.
View Capital Gains Tax Guide