📈 Track your investment performance — real avg cost, live P&L, weekly AI signals Try Pro free →

Tax-loss harvesting explained — how it works, the rules, and 2026 strategies

Tax-loss harvesting is one of the few investment strategies where a loss makes you richer. By selling investments that have declined below their purchase price, you realize a capital loss that can offset gains elsewhere in your portfolio — reducing the taxes you owe this year. The 2026 rules haven't changed from prior years: losses offset gains dollar-for-dollar with no limit, and up to $3,000 of excess losses can reduce your ordinary income. Here's how it works in practice.

How tax-loss harvesting works

When you sell an investment for less than you paid for it, you realize a capital loss. That loss has real monetary value — the IRS lets you use it to reduce your taxable income in two ways:

  1. Offset capital gains dollar-for-dollar. If you have $10,000 in realized gains from other investments, a $10,000 harvested loss eliminates the tax on those gains entirely. There's no limit on how much you can offset this way.
  2. Offset ordinary income up to $3,000/year. If your losses exceed your gains, you can deduct up to $3,000 of the remaining net loss against wages and other ordinary income. Any losses beyond that carry forward to future tax years indefinitely.

The key insight is that harvesting a loss doesn't mean abandoning the investment. You sell the declining asset, capture the tax loss, and immediately reinvest the proceeds in a similar but not identical investment. Your portfolio exposure is maintained, your tax bill is reduced, and you haven't actually changed your long-term investment thesis — you've just moved it to a different vehicle temporarily.

The best time to harvest

Most investors treat tax-loss harvesting as a December activity. That leaves money on the table. Starting in April — after filing your prior-year return — gives you a full view of your tax situation and 9 months of market opportunity. Acting on market dips as they happen is more effective than scrambling in the last two weeks of December when every other investor is doing the same thing.

The math — a concrete example

Example: Offsetting a capital gain
Bought Investment A at$10,000
Current value of Investment A$7,500
Harvested loss (sell Investment A)−$2,500
Gain realized on Investment B (sold earlier)+$2,500
Net taxable gain after harvesting$0
Tax saved (assuming 15% long-term CGT rate)$375

The $375 in saved taxes is not lost — it compounds in your portfolio going forward. Over 20 years at 7% annual returns, $375 saved today is worth approximately $1,450 in future portfolio value. That's the compounding benefit of tax efficiency.

Example: Offsetting ordinary income (losses exceed gains)
Total harvested losses this year−$8,000
Capital gains to offset+$2,000
Remaining net loss−$6,000
Deducted against ordinary income this year−$3,000 (max)
Loss carried forward to future years−$3,000
$0
Limit on using losses to offset capital gains (unlimited)
$3K
Annual limit for offsetting ordinary income (2026)
Years losses carry forward (no expiration)

The wash sale rule — the critical constraint

The wash sale rule is the IRS mechanism that prevents investors from selling a security at a loss and immediately buying it back — which would be a tax benefit without any real economic change. If you trigger a wash sale, your loss is disallowed and cannot be used to offset gains or income.

The rule: If you sell a security at a loss and purchase the same or a "substantially identical" security within 30 days before or after the sale, the loss is disallowed. This creates a 61-day window during which you cannot repurchase the same investment.

The 61-day wash sale window
Day −30
to −1
(danger zone)
Day 0
SALE
(harvest date)
Day +1
to +30
(danger zone)
Day +31
onwards
(safe to rebuy)

If you buy the same or substantially identical security anywhere in the 61-day window — 30 days before your sale, the sale date, and 30 days after — your loss is disallowed.

What counts as "substantially identical"?

The IRS has not provided an exhaustive definition, which creates some ambiguity — but general guidance is clear on a few points:

Critical: The wash sale rule applies across all accounts

The wash sale rule applies across all your accounts — taxable brokerage, IRA, 401(k), and your spouse's accounts. If you sell a stock at a loss in your taxable account and your spouse buys the same stock in their IRA within 30 days, your loss is disallowed. Always coordinate across your full household when harvesting losses.

2026 rules and limits

The core mechanics of tax-loss harvesting have not changed for 2026. Key figures:

2025 tax law changes

Recent tax legislation (2025) included increases to the standard deduction, a higher SALT deduction cap, and a new seniors tax deduction. These changes affect the overall tax picture for many investors but do not change the fundamental mechanics of capital loss harvesting. Consult a tax advisor for how recent changes affect your specific situation.

How DCA investors use tax-loss harvesting

DCA investors are particularly well-positioned to benefit from tax-loss harvesting because they hold diversified positions purchased across many price points. Here's how it applies specifically:

Harvesting dips without abandoning your strategy

When a market correction hits a position in your DCA portfolio, you can harvest the loss by selling the declining asset and replacing it with a similar — but not identical — alternative. You stay fully invested, your long-term allocation is unchanged, and you've captured a tax benefit. After 31 days, you can switch back to your original holding if you prefer.

Example: You DCA into the S&P 500 via SPY. During a 15% correction, you sell SPY and immediately buy VTI (total market) or SCHB (Schwab US broad market). You've captured a loss for tax purposes while remaining exposed to US equities. After 31+ days, you can return to SPY if you choose.

Identifying lots with losses

Because DCA means you've purchased at multiple prices over time, some purchase lots will show losses even when the overall position is profitable. Tax-aware selling — specifically selling lots purchased at higher prices — can harvest losses on specific lots while the overall investment has appreciated. Most brokerages allow you to specify which lot to sell using the "specific identification" cost basis method.

Year-round harvesting vs December-only

A common mistake is treating tax-loss harvesting as a December-only activity. Year-round awareness is more effective. Every significant market dip is a potential harvesting opportunity. The April-to-December window is particularly valuable — you have a full picture of your tax year so far and can make informed decisions about how much harvesting provides meaningful benefit.

DCA investor playbook

During any 10%+ market correction: (1) Identify positions showing losses. (2) Sell and immediately reinvest in similar-but-not-identical funds. (3) Note the 31-day date in your calendar. (4) After 31 days, decide whether to switch back to original holdings or stay in the replacement. (5) Record the harvested loss amount for tax filing. The process can meaningfully reduce taxes in volatile years — and takes less than an hour once you know your positions.

Important for DCA investors: Automatic recurring purchases — not just DRIPs — can also trigger wash sales. If you have a weekly auto-buy set up for a fund you just harvested a loss on, pause it during the 31-day window.

Tax-loss harvesting and crypto

Cryptocurrency is treated as property by the IRS, making crypto losses deductible as capital losses — subject to the same rules as stock losses with one important current distinction: the wash sale rule has historically not applied to crypto. This means you could theoretically sell Bitcoin at a loss and immediately buy it back without the 30-day waiting period.

However, this is an actively evolving area. Legislation to extend wash sale rules to crypto has been introduced multiple times. As of the IRS's March 2026 statement, a definitive ruling had not been issued. Given regulatory momentum, it's prudent to treat crypto with similar caution to stocks when harvesting losses — consult a tax professional before acting on the assumption that crypto is exempt from wash sale rules.

The practical opportunity: in years with significant crypto volatility, investors who actively DCA into BTC or ETH may have individual lots showing substantial losses even if their overall position is profitable. Harvesting those specific lots — using the specific identification method — can generate tax losses without changing your long-term crypto exposure.

Common mistakes to avoid

Frequently asked questions

Can I harvest losses to offset gains from selling my home?

Home sale gains up to $250,000 ($500,000 for married couples) are excluded from capital gains tax under the primary residence exclusion. For gains above those thresholds, investment losses can offset the taxable portion of the gain. Consult a tax advisor for specifics on your situation.

Does tax-loss harvesting work if I'm in the 0% capital gains tax bracket?

If your income is low enough to qualify for the 0% long-term capital gains rate, harvesting losses to offset those gains provides no immediate benefit — there's no tax to offset. However, harvesting losses now still generates carryforward losses that can be used in higher-income future years.

What replacement funds are commonly used after harvesting?

Common pairs: sell SPY (S&P 500) → buy VTI (total US market) or SCHB; sell IVV → buy VOO or SPLG; sell QQQ (Nasdaq) → buy QQQM or VGT; sell a bond fund → buy a similar-duration but different-index bond fund. The goal is similar exposure with enough compositional difference to avoid "substantially identical" classification.

How does tax-loss harvesting interact with DCA purchases?

Each DCA purchase creates a separate tax lot with its own cost basis and holding period. When harvesting, you can choose which specific lots to sell — selling only the lots showing losses, even if your overall position is profitable. Use the "specific identification" cost basis method at your brokerage to select individual lots.

Track your investment returns and cost basis

Use the DCA calculator to project your portfolio growth, and the backtest calculator to see historical returns on your DCA strategy.

Try the DCA calculator

The bottom line

Tax-loss harvesting is one of the highest-value, lowest-effort tax strategies available to investors — and most people either don't use it or only use it once a year in December. The mechanics are straightforward: sell losing positions, capture the tax loss, reinvest in similar alternatives, and wait 31 days before switching back if desired.

The constraints are manageable: know the wash sale rule, coordinate across all household accounts, and track your carryforward losses. For DCA investors specifically, the strategy pairs naturally with the regular purchase schedule — every market dip is both a buying opportunity and a potential harvesting opportunity for existing lots purchased at higher prices.

The value compounds. Tax savings reinvested today grow for decades. Research estimates systematic tax-loss harvesting can add approximately 0.5–1% in annual after-tax returns for taxable accounts — a meaningful edge that accumulates significantly over long holding periods. A $500 tax saving at age 35 is worth approximately $2,700 at age 65 at 7% returns.

One tradeoff worth knowing: harvested losses reduce your cost basis in the replacement investment, which means you'll owe more tax when you eventually sell it. Tax-loss harvesting is a deferral strategy — you're moving tax liability into the future, not eliminating it. For very long-term holders who plan to leave assets to heirs, the "step-up in basis" at death eliminates capital gains on appreciated assets entirely, which can make frequent harvesting less advantageous in some estate planning scenarios.

Disclaimer

This article is for informational purposes only and does not constitute tax or financial advice. Tax rules change and individual situations vary significantly. The wash sale rule's application to cryptocurrency is an evolving area of law. Always consult a qualified tax professional before implementing tax-loss harvesting strategies. References to 2026 tax rules reflect information available at the time of writing.

JC
James Colter
Long-term Investor & Personal Finance Writer
Former financial analyst writing about long-term investing, dollar cost averaging, and compound growth. Based in Denver, CO.
View all articles by James →