Tax Strategy

Tax Loss Harvesting vs. the Wash-Sale Rule: Your Complete 2026 Guide

Poor Man's StocksΒ·

Affiliate Disclosure: This article contains affiliate links. If you click through and open an account, we may earn a commission at no additional cost to you. We only recommend platforms we've personally evaluated.

Financial Disclaimer: This article is for informational and educational purposes only and does not constitute tax, legal, or investment advice. Tax-loss harvesting involves real tax consequences. Consult a qualified CPA before executing these strategies, especially if your situation is complex.


Tax Loss Harvesting vs. the Wash-Sale Rule: Your Complete 2026 Guide

There is money hiding in your losing positions right now.

Not metaphorically. If you have positions in your taxable brokerage account that are worth less than what you paid for them, the IRS will let you use that paper loss to offset real gains β€” and even up to $3,000 of your ordinary income. The strategy is called tax-loss harvesting, and it costs nothing to execute.

But there's a catch. Mess up the wash-sale rule and the IRS disallows the entire loss. Your deduction evaporates, you're still holding the same economic position, and you've done nothing but create paperwork.

This guide explains exactly how to harvest losses cleanly, legally, and without triggering wash-sale violations. We'll cover what counts as a "substantially identical" security, the 31-day timeline, the IRA trap most investors don't know about, and a table of battle-tested ETF swap pairs.

Model your tax savings before you trade at valueofstock.com/calculator.


What Is Tax-Loss Harvesting?

Tax-loss harvesting is the practice of selling an investment that has declined in value to "realize" a capital loss. That loss can then:

  1. Offset capital gains from other positions you've sold at a profit (dollar-for-dollar)
  2. Offset up to $3,000 of ordinary income if your losses exceed your gains
  3. Carry forward indefinitely if your net losses exceed $3,000 in a given year

The mechanics: sell the loser, capture the loss on paper, immediately reinvest in something similar (not identical) so your market exposure doesn't change, and wait 31 days before buying back the original security.

Example: You own 100 shares of XYZ stock you bought at $80. XYZ is now at $55. You have a $2,500 unrealized loss. You sell β€” the loss is now realized and locked in as a tax deduction. You immediately buy a different fund with similar exposure (say, a broad market ETF) so your portfolio isn't sitting in cash. In 31 days, you can buy XYZ back if you want.

That $2,500 loss offsets $2,500 of gains elsewhere in your portfolio. At a 15% long-term capital gains rate, you've just saved $375 in taxes. At 20%, that's $500 β€” all while maintaining nearly identical market exposure throughout.


The Wash-Sale Rule: What It Is and Why It Kills Losses

The wash-sale rule (IRS Section 1091) states: if you sell a security at a loss and buy a "substantially identical" security within 30 days before or after the sale, the loss is disallowed.

Note the symmetry: it's 30 days in both directions. If you bought replacement shares 15 days before you sold the original position, the wash-sale clock already started. You can't outsmart it by buying first.

The disallowed loss doesn't disappear permanently β€” it gets added to your cost basis in the replacement security. But the timing is destroyed. You wanted the deduction in 2026; you may not get it until 2028 when you eventually sell the replacement. That's a real cost of money.

What Does "Substantially Identical" Mean?

This is where it gets nuanced. The IRS has never published a complete, bright-line definition of "substantially identical." Here's what we know from IRS guidance and case law:

Clearly substantially identical (loss WILL be disallowed):

  • Selling and rebuying the exact same stock (same ticker, same company)
  • Selling a stock and buying call options on the same stock
  • Selling a mutual fund and buying the same mutual fund
  • Selling an ETF and buying the exact same ETF (e.g., selling SPY and buying SPY)

Generally NOT substantially identical (loss is likely safe):

  • Selling one S&P 500 ETF (SPY) and buying a different S&P 500 ETF (IVV) β€” different issuers, nearly identical exposure. The IRS has not ruled these substantially identical.
  • Selling a sector ETF and buying a broad market ETF
  • Selling one company's stock and buying a competitor in the same industry
  • Selling a US bond fund and buying a different US bond fund

Gray area:

  • Selling an index ETF and buying a nearly identical index ETF that tracks a slightly different index (e.g., Nasdaq-100 vs. Nasdaq Composite)
  • Leveraged ETFs that track the same underlying index

The consensus among tax professionals: swapping between ETFs from different providers that track different but similar indices is generally safe. Swapping between two S&P 500 trackers is riskier β€” many tax advisors consider IVV and SPY too similar.

When in doubt, use the conservative standard: the replacement should track a meaningfully different index, not just a different provider's version of the same index.


The 31-Day Safe Harbor

You need 31 days between the sale of the original security and the purchase of any substantially identical replacement. Not 30 β€” 31. The rule specifies "30 days before or after," which means day 31 is your first safe repurchase date.

Practical timeline:

  • Day 0: Sell the losing position, capture the loss
  • Day 0 (same day): Buy the replacement fund to maintain market exposure
  • Day 31: Safe to repurchase the original security if desired

Most investors who execute tax-loss harvesting correctly never actually repurchase the original security. They hold the replacement ETF long-term and the tax savings compound over time.


The IRA Trap: The Mistake That Ruins Everything

Here's the wash-sale violation most investors don't know about until it's too late:

The wash-sale rule applies across ALL your accounts simultaneously β€” including IRAs.

If you sell a position at a loss in your taxable brokerage account, and then buy the same (or substantially identical) security in your IRA, Roth IRA, or your spouse's IRA within the 30-day window β€” the loss is disallowed.

It doesn't matter that you didn't rebuy in the same account. The IRS looks at the economic substance: you sold a loser and then turned around and bought it back, even if the repurchase was in a different account.

Practical implication: If you run automatic dividend reinvestment (DRIP) in your IRA that owns the same security you're harvesting in your taxable account, you may be inadvertently triggering wash sales every quarter when dividends reinvest.

Before harvesting, check your IRA for automatic investments or DRIP programs in the same security. Pause them for 31 days before and after the taxable account sale.


ETF Swap Pairs for Tax-Loss Harvesting

These are commonly used swap pairs that maintain similar market exposure while changing the specific security. Always confirm with a tax professional for your situation.

| Sell This | Buy This (Replacement) | Index Change | |---|---|---| | SPY (S&P 500) | SCHB (Total US Market) | S&P 500 β†’ Total Market | | IVV (S&P 500) | VTI (Total US Market) | S&P 500 β†’ Total Market | | QQQ (Nasdaq-100) | SCHG (US Large Cap Growth) | Nasdaq-100 β†’ CRSP Growth | | VTI (Total US Market) | ITOT (Total US Market, iShares) | CRSP β†’ S&P Total Market | | BND (Total Bond) | AGG (Core Bond) | Bloomberg Barclays Bond | | VEA (Developed International) | EFA (MSCI EAFE) | FTSE β†’ MSCI | | VWO (Emerging Markets) | IEMG (Emerging Markets, iShares) | FTSE EM β†’ MSCI EM | | SCHD (Dividend) | VYM (High Dividend Yield) | Dow Jones β†’ FTSE |

Key principle: You're swapping issuers and indices while keeping similar asset class exposure. Your portfolio continues to participate in market moves during the 31-day window.


The Crypto Opportunity in 2026

As of 2026, the wash-sale rule does not apply to cryptocurrency. Crypto is treated as property by the IRS, and property is not covered under Section 1091.

This means you can sell Bitcoin at a loss, immediately rebuy Bitcoin, capture the loss, and have your Bitcoin back within minutes. No 31-day wait required.

This is a meaningful planning opportunity for investors with crypto losses. It's also a provision Congress has repeatedly threatened to eliminate β€” so use it while it exists.

Important caveat: Crypto gains and losses must still be reported on Schedule D. The wash-sale exemption just means the same loss can be realized and immediately reset without the 30-day restriction.


The $3,000 Ordinary Income Deduction

If your capital losses exceed your capital gains in 2026, you can use up to $3,000 of net losses to offset ordinary income β€” wages, freelance income, interest, etc. At a 22% marginal bracket, that's $660 in direct tax savings from your W-2 income alone.

Losses above $3,000 carry forward to 2027 (and beyond) indefinitely. They don't expire.

Strategic note: If you've already harvested significant losses in 2026 and have more than $3,000 in excess losses, you may want to recognize some gains before year-end to "use" those carried losses at the favorable capital gains rate rather than carrying them forward unused.


Which Lots Should You Sell?

If you bought shares of the same security at different times and different prices, you have multiple "tax lots" β€” each with its own cost basis and holding period. Which lot should you sell for maximum harvesting benefit?

General hierarchy for loss harvesting:

  1. Short-term losses first β€” short-term losses offset short-term gains (which are taxed at ordinary income rates, up to 37%). This is the highest-value loss type.
  2. Long-term losses second β€” offset long-term gains at 0%/15%/20% rates. Still valuable.
  3. Use specific identification β€” tell your broker exactly which shares you're selling. Don't use FIFO (first in, first out) by default, as it often misses your highest-loss lots.

At Fidelity, Vanguard, and most major brokers, you can select specific tax lots when placing a sell order. Always do this.


A Step-by-Step Tax-Loss Harvesting Playbook

Step 1: Audit your taxable account. List every position with an unrealized loss. Note the loss amount, purchase date, and current holding period (short-term = held under 1 year; long-term = held over 1 year).

Step 2: Check for wash-sale conflicts. For each position you want to harvest, check: (a) Did you buy any of this security in the last 30 days? (b) Do you hold it in an IRA with DRIP? (c) Will any automatic investments purchase this security in the next 30 days? If yes to any, pause automatics and address before proceeding.

Step 3: Identify replacement funds. For each position you're selling, identify a suitable replacement from the ETF swap table above that maintains similar exposure.

Step 4: Execute the trade. Sell the losing position, specifying the correct tax lot. Immediately purchase the replacement fund with the proceeds. The same day if possible β€” don't sit in cash during a volatile October market.

Step 5: Set a calendar reminder for Day 31. If you want to repurchase the original security, mark Day 31 on your calendar. If you don't plan to repurchase, this step is optional.

Step 6: Track everything. Record the sale date, sale price, cost basis, loss amount, replacement security purchased, and the 31-day repurchase window. Your broker's 1099-B will track this, but your own records are insurance.


When Tax-Loss Harvesting Doesn't Make Sense

Not every paper loss is worth harvesting. Skip it when:

  • The loss is trivial. Harvesting a $50 loss creates paperwork for $7 in tax savings at a 15% rate. Not worth it.
  • You're in the 0% capital gains bracket. If your taxable income is low enough to qualify for the 0% long-term capital gains rate, your gains are already tax-free. Harvesting losses against $0 gains provides no benefit this year.
  • The replacement ETF has a higher expense ratio. Saving $200 in taxes by switching to a fund that costs $150/year more to own is a poor trade.
  • You're within 31 days of a planned repurchase. If you planned to sell everything and move to a new portfolio, harvesting now just creates a wash-sale window to manage.

Tools That Automate This

If you'd rather not manage the 31-day window and ETF swap pairs manually, robo-advisors offer automated tax-loss harvesting:

  • Wealthfront β€” Daily automated tax-loss harvesting across your entire taxable portfolio. Watches wash-sale windows automatically.
  • Betterment β€” Tax-loss harvesting with coordination across all linked accounts to avoid cross-account wash sales.
  • M1 Finance β€” Not automated TLH, but excellent tax-lot management tools and easy manual harvesting execution.

For DIY investors with larger portfolios, the manual approach above captures the same benefits β€” and you stay in full control of your asset allocation.


Get the Tax-Loss Harvesting Tracker Spreadsheet

We've built a spreadsheet that tracks your positions, unrealized losses, swap-pair assignments, sale dates, and 31-day windows automatically.

Download the Tax-Loss Harvesting Tracker on Gumroad β†’

It's the fastest way to manage a multi-position harvesting strategy without missing a window or accidentally triggering a wash sale.


Bottom Line

Tax-loss harvesting is one of the few strategies where the IRS is effectively paying you to manage your portfolio thoughtfully. The rules are real but navigable:

  • Harvest losses in your taxable account
  • Maintain market exposure with a replacement fund
  • Avoid substantially identical securities for 31 days β€” in all accounts
  • Track your lots and use specific identification
  • Don't forget crypto β€” no wash-sale rules apply (yet)

Every October pullback is a potential tax savings event. Run your portfolio through the playbook above and put the IRS to work for you.

β†’ Use our calculator to estimate your exact tax savings this year

β†’ Back to the Complete Year-End Tax Planning Guide

Get Weekly Stock Picks & Analysis

Free weekly stock analysis and investing education delivered straight to your inbox.

Free forever. Unsubscribe anytime. We respect your inbox.

You Might Also Like