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:
- 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.
- 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.
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
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.
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.
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:
- Clearly identical: Selling Apple stock and buying Apple stock back within 30 days. Selling an S&P 500 ETF (SPY) and buying the same ETF back.
- Gray area — same index, different fund: Selling SPY and buying IVV (both track the S&P 500) may or may not be considered substantially identical — the IRS has not ruled definitively on ETF-to-ETF swaps. Practices vary among tax professionals. The more conservative approach is to swap into a fund tracking a different index entirely.
- Cleaner swap: Selling an S&P 500 fund and buying a total market fund (VTI, SCHB) or a different-index fund. Different composition makes the "not identical" case much stronger. This is the recommended approach for most investors.
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:
- Capital loss deduction limit: $3,000/year against ordinary income ($1,500 if married filing separately). No limit on offsetting capital gains.
- Carryforward: Unused losses carry forward indefinitely. Losses you harvest in 2026 can offset gains in 2027, 2028, or any future year.
- Short-term vs long-term ordering: Short-term losses first offset short-term gains; long-term losses first offset long-term gains. Excess losses in either category then offset the other type. Any offset is still tax-beneficial — but short-term gains (taxed at ordinary income rates up to 37%) are more valuable to offset than long-term gains (taxed at 0%, 15%, or 20%).
- Holding period: The holding period of the replacement asset starts fresh on the date of purchase — not from the original investment's purchase date.
- Crypto status: The IRS treats cryptocurrency as property. Crypto losses are deductible as capital losses. As of March 2026, the IRS had not released definitive guidance on whether the wash sale rule applies to crypto — legislation to extend it has been proposed but not passed as of this writing. Consult a tax professional for current status.
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.
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
- Triggering a wash sale accidentally. Automatic dividend reinvestment plans (DRIPs) can trigger wash sales if you harvest a loss on a fund while dividends are reinvesting in the same fund. Temporarily pause DRIPs when harvesting.
- Harvesting in tax-advantaged accounts. Tax-loss harvesting only provides benefit in taxable brokerage accounts. There's no tax benefit to harvesting losses in an IRA or 401(k) — those accounts grow tax-deferred regardless.
- Ignoring transaction costs. The tax benefit of harvesting a small loss can be eroded by trading commissions or bid-ask spreads. For most investors using commission-free brokerages, this is less of a concern — but it matters for thinly traded assets.
- Harvesting short-term losses to offset long-term gains. Short-term gains are taxed at ordinary income rates (up to 37%); long-term gains at 0%, 15%, or 20%. A short-term loss is most valuable when offsetting short-term gains. Using it to offset long-term gains at 15% is less efficient — though still beneficial.
- Not tracking carryforward losses. Losses that exceed the current year's gains and the $3,000 income limit carry forward. Many investors don't track these and leave future tax benefits unclaimed. Keep a record of your carryforward loss balance each year.
- Waiting until December. Market corrections happen throughout the year. Harvesting losses when they're large (during the dip) rather than when the year is almost over (when markets may have recovered) produces better outcomes.
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 calculatorThe 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.
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.