Tax-Loss Harvesting 2026: Wash-Sale Rules & When It Actually Saves You Money

Tax-Loss Harvesting 2026: Wash-Sale Rules & When It Actually Saves You Money
Year-End Tax Strategy

Tax-Loss Harvesting in 2026: Wash-Sale Rules & When It Actually Saves You Money

Selling a losing position to offset a winner sounds simple — until the wash-sale rule quietly disallows the deduction, or the $3,000 income-offset cap makes the whole exercise smaller than expected. Here's the mechanics, the traps, and where crypto's rules genuinely differ.

Published: August 14, 2026 By: Gnz, SmartFinanceHub ~9 min read Primary Sources: IRS, Internal Revenue Code §1091
Reviewed each year-end as filing rules and thresholds are confirmed
Ordinary Income Offset Cap0Per year; $1,500 MFS — IRC §1211
Wash-Sale Window030 before + 30 after + sale day
Excess LossCarries ForwardIndefinitely, per IRC §1212
⚡ Quick Answer

Tax-loss harvesting means selling a losing investment to realize a capital loss that offsets capital gains elsewhere in your portfolio, plus up to $3,000 of ordinary income per year (IRC §1211), with any excess loss carrying forward indefinitely. The strategy is voided for that specific loss if you buy the same or a "substantially identical" security within 30 days before or after the sale — the wash-sale rule under IRC §1091. It matters most for taxable brokerage accounts (not IRAs or 401(k)s, which aren't taxed on trades) and is typically executed near year-end, since trades must settle by December 31 to count for that tax year.

๐Ÿ“Š Tax-Loss Harvesting — At a Glance
0
Max Income Offset/Year
$1,500 if married filing separately
0
Wash-Sale Window
30 days each side of the sale
Unlimited
Carryforward
Excess losses roll to future years
Taxable Accounts Only
Where It Applies
Not relevant inside IRAs/401(k)s
The core dynamic: This is purely a taxable-account strategy — it does nothing inside tax-advantaged accounts, which is why it pairs naturally with the contribution and account-type decisions covered in our 401(k) and IRA contribution limits guide. The mechanics also interact directly with how your gains are taxed in the first place — see our capital gains tax rates and strategies guide for the brackets and NIIT thresholds this offset is measured against.

Every taxable brokerage account accumulates a mix of winners and losers over time, and by default most investors only think about the winners when a tax bill arrives. Tax-loss harvesting flips that: it treats a losing position as a usable asset, realized deliberately to reduce what you owe on gains realized elsewhere — or, within a capped limit, to reduce ordinary income directly. It is one of the few tax strategies available to everyday investors that costs nothing to execute and requires no special account type, which is exactly why it's worth understanding the mechanics precisely rather than approximately.

⚠️
A note on this topic: This is general tax-education content, not personalized tax advice. Tax-loss harvesting interacts with your specific cost basis, holding periods, state tax rules, and overall portfolio — confirm your own numbers with a licensed tax professional or CPA before executing trades for tax purposes.

1. How the Offset Actually Works

The mechanics follow a fixed order under the Internal Revenue Code:

  • Short-term losses offset short-term gains first. Short-term gains (assets held one year or less) are taxed at ordinary income rates, so offsetting them first has the highest value per dollar of loss for most taxpayers.
  • Long-term losses offset long-term gains next. Long-term gains get preferential capital gains rates, so this offset is still valuable but typically worth less per dollar than offsetting short-term gains.
  • Any leftover loss can cross categories. If short-term losses exceed short-term gains (or vice versa), the excess can offset the other category.
  • Up to $3,000 of any remaining net loss offsets ordinary income ($1,500 if married filing separately) under IRC §1211.
  • Anything beyond that carries forward indefinitely under IRC §1212, retaining its short-term or long-term character into future tax years.

Because the math depends on your full-year gain and loss picture, harvesting decisions made in isolation in, say, March can look very different by December once the rest of the year's trades are known. Investors who also hold retirement or dividend-focused positions should weigh this alongside our dividend investing guide and index fund investing guide, since both affect how much of your annual gain is short-term versus long-term to begin with.

2. The Wash-Sale Rule (and How It Voids the Deduction)

Internal Revenue Code Section 1091 disallows the loss deduction if you buy the same or a "substantially identical" security within 30 days before or 30 days after the sale that generated the loss — a 61-day window when you count the sale date itself. The disallowed loss doesn't simply vanish: it's added to the cost basis of the replacement shares, deferring the tax benefit rather than eliminating it outright, but it does mean the loss cannot be claimed for the year you intended.

  • "Substantially identical" is broader than "identical." Buying back the exact same stock or fund is an obvious violation, but buying a fund that closely tracks the same index can also trigger the rule depending on the specifics — this is a genuinely gray area the IRS has not defined with a precise bright-line test for every fund pairing.
  • The window applies across all your accounts, including a spouse's accounts and IRAs in many interpretations — a repurchase inside a retirement account can trigger the rule even though the retirement account itself isn't taxable.
  • Dividend reinvestment plans (DRIPs) can trigger it accidentally if a scheduled dividend reinvestment happens to fall inside the 61-day window on a position you just harvested.

The common workaround is buying a similar — but not substantially identical — replacement to maintain market exposure during the 30-day window: for example, swapping one broad-market index fund for a different index fund tracking a different (but correlated) index, rather than swapping into an identical fund from a different provider. This is a nuanced determination and worth confirming with a tax professional before large trades.

3. Where Crypto's Rules Currently Differ

As of August 2026, the wash-sale rule still does not apply to cryptocurrency. The IRS treats digital assets as property rather than a security for tax purposes, and Section 1091 applies specifically to securities — so, unlike a stock or ETF, an investor can currently sell a losing crypto position and repurchase it immediately without triggering the 30-day restriction. That said, this is no longer a purely theoretical gray area on the legislative front — there is active, bipartisan movement to close it.

๐Ÿช™
Legislative status (as of August 2026): Rep. Jodey Arrington (R-TX) introduced H.R. 9172, the "Applying Existing Tax Anti-Abuse Rules to Digital Assets Act," on June 8, 2026, which would extend the wash-sale rule (and the constructive-sale rule under IRC §1259) to cryptocurrency. It builds on earlier proposals — the Senate's Digital Asset PARITY Act (Sen. Cynthia Lummis, June 2025) and a House discussion draft from Reps. Max Miller and Steven Horsford (December 2025). The House Ways and Means Committee held a hearing on six digital-asset tax bills in June 2026, and Rep. Ron Estes has publicly backed extending the rule for consistency with traditional securities. Tax specialists describe the eventual extension as something the industry now largely expects, though passage before the 2026 midterm elections is considered unlikely. The U.S. Treasury previously estimated the change would raise nearly $24 billion over a decade.

Practical takeaway: harvesting a crypto loss and immediately repurchasing is still allowed today, but treat it as a closing window rather than a permanent feature of the tax code — a version of this bill could pass with an effective date as early as the 2026 tax year itself, or a following year, depending on which version eventually moves. Anyone relying heavily on this strategy should build in a buffer rather than assume the current treatment persists indefinitely.

Regardless of the wash-sale question, crypto gains and losses still flow through the same short-term/long-term and $3,000 offset mechanics described in Section 1. If you're calculating the underlying gain or loss on a crypto sale in the first place, our crypto capital gains tax calculator guide walks through short-term versus long-term treatment, and our broader Bitcoin ETF flows analysis is useful context if the position you're considering harvesting is ETF-wrapped rather than a direct coin holding, since ETF-wrapped crypto exposure is unambiguously a security and is subject to the wash-sale rule like any other fund.

4. Timing: The Year-End Deadline

For most taxpayers using the calendar year as their tax year, a sale must settle by December 31 to count as a realized loss for that tax year. Trade settlement typically takes at least one business day after the trade date, and markets are closed on weekends and holidays, so advisors generally recommend placing loss-harvesting trades several business days before year-end rather than waiting for the final trading session. This matters most in years where the last trading day falls close to a weekend.

Because harvesting decisions are most valuable when weighed against your complete annual picture — including any bonus income, retirement contributions, or major capital gains events — it's worth reviewing your 2026 tax brackets and running the numbers through our tax bracket calculator before executing trades late in the year, so you know which marginal bracket the offset is actually working against.

5. Risks and Considerations

  • The wash-sale rule voiding an intended deduction. Confirm no repurchase — including automatic dividend reinvestment — falls inside the 61-day window.
  • Transaction costs and bid-ask spreads. Harvesting small losses can cost more in trading friction than the tax benefit is worth; this matters less with commission-free brokerages but spreads still apply.
  • Changing your portfolio's risk profile. Swapping into a "similar but not identical" replacement fund changes your actual exposure, even if only slightly — verify the replacement still fits your allocation goals.
  • State tax treatment can differ from federal. Some states don't conform exactly to federal capital loss rules; check your state's specific treatment.
  • Doesn't apply inside tax-advantaged accounts. IRAs, 401(k)s, and similar accounts aren't taxed on individual trades, so harvesting has no effect there — see our 2026 retirement contribution limits guide and average 401(k) balance benchmarks for how those accounts are typically prioritized instead.
  • Alternative assets have their own quirks. Physical or IRA-held gold and other alternative holdings follow different rules; see our Gold IRA rules guide and commodities investing guide if harvesting decisions touch those holdings.

6. Frequently Asked Questions

Tax-loss harvesting is selling an investment that has lost value to realize a capital loss, which can offset capital gains realized elsewhere in your portfolio and, within limits, offset a portion of ordinary income. The proceeds are typically reinvested in a similar but not identical holding to keep the portfolio's overall market exposure roughly the same.

Under Internal Revenue Code Section 1091, if you sell a security at a loss and buy the same or a substantially identical security within 30 days before or after the sale (a 61-day window total), the loss is disallowed for tax purposes and added to the cost basis of the replacement shares instead of being deductible immediately.

After capital losses offset all capital gains for the year, up to $3,000 of any remaining net capital loss ($1,500 if married filing separately) can offset ordinary income in that tax year. Any loss beyond that amount carries forward indefinitely to future tax years, subject to the same rules.

Not currently. The wash-sale rule under Section 1091 applies to securities, and the IRS treats cryptocurrency as property rather than a security, so crypto trades are not subject to the 30-day wash-sale restriction as of August 2026. This is actively changing on the legislative front: Rep. Jodey Arrington introduced H.R. 9172 in June 2026 to extend the wash-sale rule to digital assets, building on earlier Senate and House proposals, and tax specialists broadly expect an eventual extension even though passage before the 2026 midterms is considered unlikely. Confirm the current-year status before relying on this strategy heavily.

For most taxpayers using the calendar year as their tax year, trades must settle by December 31 to count for that tax year. Because trade settlement can take a business day or more, most advisors recommend placing loss-harvesting trades well before the final trading days of the year rather than waiting until December 31 itself.

7. Update Archive

Aug 2026
Guide published: offset mechanics, wash-sale rule, and crypto treatment confirmed current as of publication — including H.R. 9172, introduced June 8, 2026, which would extend the wash-sale rule to digital assets.
Upcoming
Watch for: whether H.R. 9172 or a related bill advances past the House Ways and Means Committee, and year-end IRS confirmations of the $3,000/$1,500 offset figures for the current tax year.

✅ Key Takeaways

  • Losses offset short-term gains first, then long-term gains, then up to $3,000 of ordinary income per year — excess carries forward indefinitely.
  • The wash-sale rule (IRC §1091) disallows the loss if you buy the same or a substantially identical security within 30 days before or after the sale.
  • Crypto has historically sat outside the wash-sale rule since it's treated as property, not a security — but this is actively debated and should be confirmed each tax year.
  • Harvesting only matters in taxable brokerage accounts; it does nothing inside IRAs or 401(k)s.
  • Trades must settle by December 31 to count for that tax year — don't wait for the last trading day.

Financial Tools & Official Resources

๐Ÿ“Ž Sources & External References

  1. Internal Revenue Service — Tax Topic 409: Capital Gains and Losses
  2. Internal Revenue Service — Publication 550: Investment Income and Expenses
  3. Internal Revenue Service — Frequently Asked Questions on Virtual Currency Transactions
  4. Internal Revenue Code — Section 1091 (wash sales) and Sections 1211–1212 (capital loss limitations and carryover)
  5. H.R. 9172, "Applying Existing Tax Anti-Abuse Rules to Digital Assets Act," introduced June 8, 2026 (U.S. House of Representatives)
  6. CNBC — "Lawmakers renew push to axe a lucrative tax loophole for crypto investors," July 28, 2026

Was this guide helpful?

Thanks for the feedback — it helps us improve this guide.
⚠️
Disclaimer: This content is for general informational and educational purposes only and does not constitute financial, investment, tax, or legal advice. Always consult a licensed tax professional before making tax-related decisions. Figures cited are subject to change — verify current data directly with the IRS or the sources listed above. See our full disclaimer.
X f W