How Do You Tax-Loss Harvest Without a Wash Sale? (w/Examples) + FAQs

Quick Answer: To tax-loss harvest without a wash sale, sell a losing investment in a taxable account, then wait 31 full days before rebuying that same or “substantially identical” security. For tax year 2025, this lets you keep the loss to offset gains and up to $3,000 of ordinary income.

Tax-loss harvesting means selling an investment that has dropped below what you paid, locking in the paper loss, and using that loss to cut your tax bill. The catch is the IRS wash sale rule under Section 1091, which erases your deduction if you buy back the same or a nearly identical investment too soon β€” and the cost of tripping it can be a tax bill you never saw coming.

The fix is timing and substitution. You either wait out a 61-day window (30 days before the sale through 30 days after) or replace the holding with something similar but not “substantially identical.” With investors sitting on large losses after volatile markets, the IRS notes that capital-loss reporting on Schedule D and Form 8949 is among the most error-prone areas on returns, so getting the mechanics right matters.

  • πŸ’Έ How to harvest a real loss and actually keep the deduction.
  • πŸ—“οΈ The exact 61-day window that triggers a wash sale β€” and how to count it.
  • πŸ” Safe “swap” trades that keep you invested without breaking the rule.
  • 🚨 The IRA trap that destroys a loss forever instead of just delaying it.
  • 🧾 Which forms to file, what records to keep, and when to call a pro.

This article reflects federal rules and general state treatment as of June 2026 and covers tax year 2025 (with notes for tax year 2026). Tax law changes β€” confirm current figures before you file. It is educational only and not a substitute for advice from a licensed tax professional for your specific situation.

What Tax-Loss Harvesting Actually Does

Tax-loss harvesting is the practice of selling an investment for less than you paid to create a capital loss you can use on your tax return. A capital loss is the dollar amount your investment fell below its cost basis, which is what you originally paid plus fees. You only “realize” the loss for tax purposes when you actually sell β€” a paper loss on a screen does nothing for your taxes.

Once realized, that loss has a job. The IRS makes you first use capital losses to cancel out capital gains of the same type, short-term against short-term and long-term against long-term, as explained in IRS Topic No. 409. Short-term means you held the asset one year or less; long-term means longer than a year.

If your losses are bigger than your gains, the leftover loss can wipe out up to $3,000 of ordinary income per year for tax year 2025 ($1,500 if married filing separately). Anything beyond that does not vanish β€” it carries forward to future years with no expiration, again under the rules in Topic No. 409. So a $20,000 net loss this year could shelter gains and trim ordinary income for years to come.

The reason harvesting works is the tax-rate gap. You might deduct a loss against income taxed at 24%, then later rebuy and let the investment grow into gains taxed at the lower long-term rate of 0%, 15%, or 20%. That spread is the real prize β€” and the wash sale rule exists to keep you from grabbing it without genuinely changing your position.

The Wash Sale Rule, Explained in Plain English

The wash sale rule comes from Internal Revenue Code Section 1091, first passed in 1921. In plain words, it says you cannot deduct a loss if you buy the same stock or security β€” or one “substantially identical” to it β€” within 30 days before or 30 days after the sale that created the loss.

That phrase “before or after” is what trips people up. Counting both sides of the sale date plus the sale day itself, the danger zone is a 61-day window, as Fidelity explains in its wash-sale guide. Most people only remember the 30 days after a sale and forget that a purchase 30 days before selling can taint the loss too.

The purpose is simple. Congress did not want you claiming a tax loss while your economic position stayed exactly the same β€” sell at a loss Monday, rebuy Tuesday, deduct the loss, own the same thing. The rule forces a real, 31-day gap in ownership before the loss counts.

What “Substantially Identical” Means

“Substantially identical” is the murkiest part of the entire rule, and Congress never defined it. IRS Publication 550 only says you must weigh “all the facts and circumstances,” and that stock in one company is ordinarily not substantially identical to stock in another.

In practice, the same stock you sold is always substantially identical to itself, and so is the same mutual fund or ETF. The gray area is funds from different companies that track the same index. As Morningstar notes in its analysis, two S&P 500 index funds from different providers may well be treated as substantially identical, while a fund tracking a different index is far safer.

The consequence of guessing wrong is a disallowed loss, plus possible back taxes, interest, and penalties if an audit reclassifies the trade. Because there is no bright-line test, the safe move is to choose a replacement that tracks a clearly different index or differs in management style β€” and when the dollars are large, ask a CPA before you trade.

What Counts as a Triggering Purchase

A triggering purchase is broader than a plain rebuy. It includes buying a contract or option to buy the security, acquiring substantially identical stock, or even reinvested dividends through a dividend reinvestment plan (DRIP) that quietly repurchases shares inside the window.

It also reaches across your accounts. The IRS treats a purchase in your IRA or your spouse’s account as your purchase for wash-sale purposes, so you cannot dodge the rule by buying back in a different bucket. The consequence is the same disallowed loss, just harder to spot.

The reader’s next step is to switch off automatic dividend reinvestment on a holding before harvesting it, and to check every account β€” including a spouse’s and any IRAs β€” for buys in the 61-day window.

How a Wash Sale Hurts (and the Hidden Silver Lining)

When you trigger a wash sale, you do not get to deduct the loss this year. Instead, the disallowed loss is added to the cost basis of the replacement shares, and the old holding period carries over, per Fidelity’s explanation.

That deferral is the silver lining in a taxable account. You will eventually get the benefit through a higher basis β€” a bigger future loss or a smaller future gain β€” and the inherited holding period can help you reach the lower long-term rate. The loss is delayed, not destroyed.

But there is one place it is destroyed. Under Revenue Ruling 2008-5, if you sell at a loss in a taxable account and rebuy the same security in your IRA within 30 days, the wash sale applies and your IRA basis is not increased. The loss is permanently forfeited because IRA basis rules will not let it resurface. This is the single most expensive wash-sale mistake an ordinary investor can make.

Which Situation Applies to You?

The right harvesting move depends on what you own and where. Find your situation below, then follow the matching strategy.

  • You sold a single stock at a loss: Buy a different company in the same sector, or a sector ETF, to keep exposure without owning the same stock.
  • You sold an index ETF or mutual fund: Swap into a fund that tracks a different index (for example, S&P 500 to a total-market or Russell 1000 fund) to stay invested but not substantially identical.
  • You hold the loser in an IRA or 401(k): Do not harvest β€” losses inside tax-advantaged accounts generally cannot be deducted at all, so there is nothing to harvest.
  • You and a spouse share investments: Coordinate both taxable and IRA accounts, because a spouse’s purchase can trigger your wash sale.
  • You hold crypto at a loss: You may currently rebuy immediately (see the crypto section), but watch for law changes.

Strategy 1: Wait 31 Days (the Simplest Path)

The cleanest way to avoid a wash sale is to sell the loser and simply not rebuy it β€” or anything substantially identical β€” until the 31st day after the sale. Waiting the full 31 days clears the 30-day post-sale window with a day to spare, which Fidelity recommends as the safe practice.

The cost of this path is time out of the market. If the price jumps during your 31 days on the sidelines, you may pay more to rebuy than you saved in taxes. For a volatile growth stock, that risk can be larger than the tax benefit, which is why many investors prefer the swap strategy below.

The misconception here is the off-by-one error: counting 30 days from the sale and rebuying on day 30, which is still inside the window. Count to day 31. If you sell on December 5, you cannot rebuy until January 5.

Strategy 2: Buy a Similar-but-Not-Identical Replacement

The smarter path for most investors is to immediately buy a similar holding that keeps your market exposure but is not substantially identical. As Morningstar describes, an advisor who sells $50,000 of Apple to harvest a loss might buy $50,000 of a tech-sector ETF or a different large-cap stock to stay fully invested.

For funds, the working guideline professionals use is to choose a replacement tracking a different index or run with a different strategy or manager. Some advisors borrow the 70%-overlap line from the straddle rules under Treasury Regulation 1.246-5 as a rough comfort threshold, but this is a rule of thumb, not a safe harbor the IRS has blessed.

The consequence of a poorly chosen swap β€” say, two near-identical S&P 500 index funds from different companies β€” is a possible disallowed loss. The reader’s next step is to keep a written note of why the replacement is materially different (different index, different manager, different holdings) in case the IRS ever asks.

Safe vs. Risky Fund Swaps

Fund Swap Wash-Sale Risk
S&P 500 ETF sold, total-market ETF bought Lower β€” tracks a broader, different index
S&P 500 ETF sold, Russell 1000 fund bought Lower β€” different benchmark and holdings
Vanguard S&P 500 sold, another company’s S&P 500 fund bought Higher β€” same index, likely substantially identical
Same ETF sold and rebought in 10 days Wash sale β€” identical security

Worked Example: The Full Math

Here is the math step by step so you can copy it. Assume tax year 2025 and a single filer in the 24% bracket.

  • You bought 200 shares of a fund at $100 = $20,000 cost basis.
  • The price falls to $70. You sell all 200 shares for $14,000.
  • Your realized capital loss is $20,000 βˆ’ $14,000 = $6,000.
  • Same day, you buy a different-index fund for $14,000 to stay invested. No wash sale, because it is not substantially identical.
  • You had a $4,000 long-term capital gain elsewhere this year. The $6,000 loss erases it, leaving a $2,000 net loss.
  • That $2,000 then offsets ordinary income (under the $3,000 limit). At 24%, that saves you $480 this year.
  • You also avoided tax on the $4,000 gain β€” at the 15% long-term rate, another $600 saved.
  • Total tax benefit this year: about $1,080, while staying fully invested.

Now the wash-sale version: if instead you had rebought the same fund three days later, the entire $6,000 loss would be disallowed for 2025. You would owe tax on the $4,000 gain and get no income offset β€” the $1,080 benefit vanishes, deferred into the new shares’ basis.

Three Named Examples

Maria swaps to keep exposure. Maria sells $30,000 of a single airline stock at an $8,000 loss in November 2025. She wants to stay in travel stocks, so she immediately buys an airline-sector ETF. Because the ETF holds dozens of companies, it is not substantially identical, her $8,000 loss stands, and she keeps sector exposure.

David triggers the IRA trap. David sells a mutual fund at a $5,000 loss in his brokerage account, then his automatic IRA contribution buys the same fund 12 days later. Under Revenue Ruling 2008-5, the loss is disallowed and his IRA basis is not raised. David loses the entire $5,000 deduction permanently.

Lin forgets the DRIP. Lin sells shares of an index fund at a $3,000 loss but forgets her dividend reinvestment is on. A $200 dividend buys back shares eight days later, creating a partial wash sale. The loss on those repurchased shares is disallowed, while the rest of her loss survives.

Crypto: The Current Loophole

As of tax year 2025, the wash sale rule under Section 1091 applies to “stocks and securities,” and the IRS treats cryptocurrency as property, not a security. That means a crypto wash sale generally does not apply β€” you can sell Bitcoin at a loss and rebuy it minutes later and still claim the loss, a quirk covered widely in 2026 harvesting guides.

This is unsettled and may change. Lawmakers have repeatedly proposed extending the wash sale rule to digital assets, so the loophole could close in a future year. The reader’s next step is to confirm the rule’s status for the tax year in question before relying on it, and to document trade dates carefully.

One caution: tokenized stocks or crypto ETFs that hold actual securities may fall under the rule even though raw crypto does not. When in doubt, treat security-backed products like securities.

Federal vs. State Treatment

Level How the Loss Is Treated
Federal Wash sale disallowed under Section 1091; capital losses offset gains plus $3,000 of income (tax year 2025)
Most states Conform to federal capital-gain/loss and wash-sale rules, so the federal result usually flows through
No-income-tax states States like Florida, Texas, and Washington tax no wage/investment income, so harvesting only affects your federal return

Start with federal law, which controls the wash sale itself. Most states that tax income begin from your federal adjusted gross income, so they generally accept the same disallowed loss and the same $3,000 cap. The federal calculation does the heavy lifting.

Still, never assume. A handful of states have their own capital-loss quirks or carryforward limits, and states with no income tax (such as Florida, Texas, Nevada, and Washington for wages) make state harvesting moot. Check your state’s department of revenue page for its treatment before you plan around a state benefit.

How to Report It: Forms and Deadlines

You report harvested losses on Form 8949 and summarize them on Schedule D, both filed with your Form 1040. Your broker reports sales on Form 1099-B, and for “covered” securities it will flag and adjust known wash sales with code W in column (f) of Form 8949.

The trap is that your broker only sees your account at that firm. It cannot see a rebuy in your IRA, your spouse’s account, or another brokerage β€” so you must catch and report those wash sales yourself. The consequence of missing one is an underreported loss and a possible IRS notice.

The key deadline is the trade itself: the sale must settle in the tax year you want the loss, so for a 2025 loss you generally must sell by December 31, 2025. Filing then happens by the April 15, 2026 deadline. DIY filing through tax software is low-cost; a CPA for a complex multi-account year typically runs a few hundred dollars and is worth it when large losses or IRAs are involved.

Mistakes to Avoid

  • Rebuying on day 30. Off by one β€” day 30 is still inside the window, disallowing the loss. Wait to day 31.
  • Forgetting the 30 days before the sale. A purchase shortly before selling can taint the loss just as much as one after.
  • Leaving DRIP on. Automatic dividend reinvestment quietly rebuys shares and creates a partial wash sale, killing part of your loss.
  • Harvesting into an IRA. Under Revenue Ruling 2008-5 the loss is permanently destroyed, not deferred β€” the worst outcome possible.
  • Ignoring a spouse’s account. The IRS treats your spouse’s purchase as yours, so coordinated buys can trigger the rule.
  • Swapping two same-index funds. Two S&P 500 funds from different firms may be substantially identical, risking a disallowed loss.
  • Harvesting inside a tax-advantaged account. Losses in an IRA or 401(k) generally cannot be deducted at all, so there is no loss to harvest.
  • Trading after December 31 and expecting this year’s deduction. The sale must occur within the tax year to count for that year.

Do’s and Don’ts

Do: – Do turn off automatic dividend reinvestment before harvesting, because a DRIP buy inside the window disallows part of the loss. – Do count to day 31, since waiting the full 31 days clears the post-sale window cleanly. – Do choose a different-index replacement, which keeps you invested while avoiding “substantially identical” risk. – Do check every account, including IRAs and a spouse’s, because purchases there can trigger your wash sale. – Do keep written notes on why a replacement differs, in case the IRS questions the swap.

Don’t: – Don’t rebuy in your IRA, because the loss is forfeited forever under Revenue Ruling 2008-5. – Don’t rely on your broker to catch cross-account wash sales β€” it only sees one account. – Don’t harvest losses inside a 401(k) or IRA, since they generally are not deductible. – Don’t assume your state follows federal, because a few states diverge on losses. – Don’t wait until December 31 to start; year-end crowding leaves no room for settlement errors.

Pros and Cons of Tax-Loss Harvesting

Pros: – Cuts your current tax bill, because losses offset gains and up to $3,000 of income for tax year 2025. – Losses carry forward forever, so unused amounts keep helping in future years. – You can stay invested by swapping into a similar holding, avoiding time out of the market. – Resets cost basis lower, which can be useful for future planning. – Works alongside rebalancing, letting you fix your portfolio and save tax at once.

Cons: – Wash sale risk can disallow the loss if you rebuy too soon. – Lowers your basis, which may mean a larger taxable gain later. – Recordkeeping burden grows across multiple accounts and brokers. – Only helps in taxable accounts, not IRAs or 401(k)s. – Benefit is partly a deferral, not always permanent tax savings.

What to Do Next

  1. List your losers in taxable accounts and find each one’s cost basis.
  2. Turn off DRIP on any holding you plan to harvest.
  3. Sell before December 31 to claim the loss for that tax year.
  4. Immediately buy a different-index or different-company replacement if you want to stay invested.
  5. Block the 61-day window on your calendar and avoid rebuying the same security β€” in any account, including a spouse’s and IRAs.
  6. Gather your 1099-B and report on Form 8949 and Schedule D, adjusting for any cross-account wash sales.
  7. Call a CPA if you have large losses, multiple accounts, IRAs in play, or any “substantially identical” doubt.

FAQs

What is the wash sale rule in one sentence? It disallows a loss deduction when you buy the same or substantially identical security within 30 days before or after selling it at a loss, under Section 1091 for tax year 2025.

How many days must I wait to avoid a wash sale? 31 days. Selling and rebuying must be at least 31 days apart, because the 30-day post-sale window must fully pass before you repurchase the same or substantially identical security.

Does the wash sale rule apply to crypto? No, generally not for tax year 2025, because the IRS treats cryptocurrency as property, not a security. This loophole is unsettled and proposed laws could close it in a future year.

Can I buy a similar ETF to stay invested? Yes. Buying an ETF that tracks a different index keeps your exposure while avoiding “substantially identical” status. Avoid two funds tracking the same index from different companies.

What happens to my disallowed loss? It is added to your basis in the replacement shares and the holding period carries over β€” so in a taxable account the loss is deferred, not lost.

Is a wash sale in my IRA permanent? Yes. Under Revenue Ruling 2008-5, rebuying in an IRA disallows the loss and does not raise IRA basis, permanently destroying the deduction.

Does my spouse’s purchase count? Yes. The IRS treats a substantially identical purchase by your spouse within the window as yours, triggering the wash sale on your loss.

How much loss can I deduct against income? $3,000 per year for tax year 2025 ($1,500 if married filing separately) after offsetting capital gains. Excess losses carry forward indefinitely.

Do reinvested dividends trigger a wash sale? Yes. A DRIP that buys shares of the same security within 30 days of your loss sale creates a partial wash sale on those shares.

Which forms report a harvested loss? Form 8949 and Schedule D, filed with Form 1040. Brokers report sales on Form 1099-B and mark known wash sales with code W.

Can I harvest losses in my 401(k)? No. Losses inside tax-advantaged accounts like 401(k)s and IRAs generally cannot be deducted, so there is no loss to harvest there.

Will my state honor the same loss? Usually yes. Most income-tax states start from federal AGI and follow the federal result, but a few diverge and no-income-tax states make it moot β€” check your state’s rules.

This article reflects federal rules and general state treatment as of June 2026 and covers tax year 2025. Consult a licensed tax professional for your specific situation.