Back to blog
Wash Sale RulesWash Sale Rule ExplainedWash Sale Examples

The Wash Sale Rule: What It Costs You and How to Track It

Learn how the wash sale rule can quietly cost you valuable tax deductions, and discover smart strategies to track trades and manage your portfolio wisely.

TThe Evibe Team· Building EvibeAug 23, 202610 min read

The Wash Sale Rule: What It Costs You and How to Track It

Hands adjusting stock trade records on desk

A wash sale happens when you sell a security at a loss and buy the same or a "substantially identical" one within 30 days before or after that sale. Under 26 U.S.C. §1091, the IRS disallows that loss on your current tax return. The window runs 61 days total, counting the sale date itself.

The loss isn't gone. It gets added to the cost basis of your replacement shares, deferring the tax benefit rather than erasing it.

Before you assume you're clear, check these:

  • The 61-day window: 30 days before the sale, the sale day, and 30 days after.
  • Cross-account exposure: purchases in a spouse's account, a joint account, or an IRA can count.
  • Partial repurchases: buying back only some shares disallows only part of the loss.

Key Takeaways

A wash sale disallows your current-year loss deduction and adds that loss to your replacement shares' cost basis instead of erasing it.

PointDetails
61-day window appliesCount 30 days before the sale, the sale day, and 30 days after when checking for a wash sale.
Loss is deferred, not lostThe disallowed loss increases the cost basis of your replacement shares, per IRS guidance.
Cross-account risk is realBrokerages typically track wash sales only within one account, so multi-broker and IRA holdings need manual review.
Report with Code WUse Form 8949 with Code W for the adjustment, then carry totals to Schedule D.
Evibe flags cross-account exposureAutomatic account syncing and AI alerts surface wash-sale risk across brokers and IRAs in one dashboard.

Table of Contents

How the Wash Sale Rule Adjusts Your Cost Basis

The mechanics follow a fixed sequence, and once you see it laid out, the "disallowed loss" label makes more sense.

  1. You sell a security at a loss.
  2. The IRS disallows that loss as a current-year deduction.
  3. The disallowed amount gets added to the cost basis of the replacement shares.
  4. Your holding period from the original shares carries over to the replacement position.

The math: New basis = purchase price of replacement shares + disallowed loss. If you sold shares for a $250 loss and bought replacements for $800, your adjusted basis becomes $1,050, per IRS guidance.

That basis bump changes your future tax bill in two ways. First, it shrinks any gain (or grows any loss) when you eventually sell the replacement shares. Second, the carried-over holding period can push you from short-term to long-term treatment sooner than a fresh purchase would, since the clock doesn't reset. 26 U.S.C. §1091 is the statutory anchor for both effects, and the rule also reaches short sales and certain options contracts, not just plain stock trades, according to the U.S. Code's own text.

What Counts as a Substantially Identical Security

This phrase does most of the heavy lifting in wash sale law, and the IRS has never published an exhaustive list, so investors rely on precedent and common sense.

Clearly identical: the same stock repurchased under the same CUSIP, or shares bought back through options, warrants, or convertible bonds tied to the same company. Clearly not identical: bonds from the same issuer with different maturities, or stock in a different company within the same sector.

ETFs and mutual funds sit in gray territory. Two S&P 500 index funds from different providers are usually treated as distinct, but two funds tracking the exact same niche index with nearly identical holdings invite scrutiny. Investopedia's wash sale examples walk through several of these edge cases.

  • Same company, same class of stock: identical.
  • Same index, different provider, broad diversification: usually safe.
  • Same index, narrow sector, near-identical top holdings: risky.

Pro Tip: When you're unsure whether a swap is safe, pick a substitute with a meaningfully different index or strategy, and write down your reasoning at the time of the trade. That note is worth more than memory if you're ever asked to justify the position.

Why Cross-Account and IRA Purchases Trip Up Investors

Brokerages generally track wash sales within a single account, not across your entire portfolio. That leaves the reporting burden on you when you hold the same stock in a taxable account and, say, a Roth IRA at a different firm.

Desk with overlapping stock notes and devices

The IRA trap is the sharpest version of this problem. Buy a replacement security inside your IRA within the wash-sale window, and the loss on your taxable-account sale is disallowed permanently. The IRA's basis doesn't adjust to compensate, so the tax benefit simply disappears.

Protect yourself by tracking every purchase across every account you hold, including a spouse's or joint accounts if related-party rules apply:

  • Log the trade date and account for every buy and sell of the same security.
  • Flag IRA contributions or purchases that fall inside a 61-day window from a taxable-account loss.
  • Use a portfolio tracker that consolidates account activity so nothing slips through.

Reporting a Wash Sale on Form 8949 and Schedule D

Your broker's Form 1099-B will often show a wash-sale adjustment in Box 1g, but only for trades it can match within that single account. Cross-account and cross-broker matches are your responsibility.

  1. Report the sale on Form 8949, entering the disallowed loss amount in the adjustment column.
  2. Use Code W to flag the transaction as a wash sale.
  3. Carry the adjusted totals to Schedule D for your net capital gain or loss.
  4. Keep trade confirmations and account statements in case the IRS asks for support.

Investopedia and most tax software walk through this process step by step, but if you're juggling multiple brokers or an active trading account, a tax preparer familiar with wash sales is worth the fee.

Practical Ways to Avoid Triggering the Rule

Timing is the simplest lever. Wait 31 days after selling a losing position before buying it back, and you're outside the window entirely on the repurchase side; just remember the rule also looks 30 days backward from your sale.

Swapping into a different but similar holding works too, as long as it isn't substantially identical. Tax-loss harvesting frequently relies on this: sell one broad-market ETF, buy a different one tracking a comparable but not identical index, and stay invested while banking the loss.

Options and inverse instruments can technically avoid the letter of the rule but often recreate the same economic exposure, which can draw the same disallowance treatment under the statute's short-sale and options provisions. Treat these as a last resort, not a loophole.

  • Wait 31+ days before repurchasing the identical security.
  • Buy a similar, non-identical substitute and document why you chose it.
  • Avoid options or inverse positions that recreate the same exposure.
  • If a wash sale is unavoidable, plan around the basis adjustment instead of fighting it.

Pro Tip: If you're actively trading around volatile positions, mark your calendar the moment you sell at a loss. Thirty days moves faster than you think when you're watching a ticker daily.

A Numeric Example of the Basis Adjustment

Numbers make this rule click faster than definitions do.

  1. You sell 100 shares for a $250 loss.
  2. Within 30 days, you repurchase similar shares for $800.
  3. Your disallowed $250 loss is added to the $800 purchase price, giving you an $1,050 adjusted basis, matching the IRS's own example.
  4. If you later sell those shares for $1,200, your taxable gain is $150, not $400, because the earlier loss is baked into the new basis.

Partial repurchases work proportionally. Sell 200 shares at a loss but only buy back 100 within the window, and only half the loss gets disallowed; the other half is deductible now. The holding period from your original shares also carries over to the replacement lot, which can shift a position from short-term to long-term sooner than the purchase date alone would suggest.

When the Wash Sale Rule Doesn't Apply

The rule covers securities, not every asset class you might trade.

  • Most cryptocurrency is treated as property, not a security, so wash sale rules generally don't apply to crypto trades under current guidance.
  • Traders with a mark-to-market election, and securities dealers, face different timing rules entirely.
  • Confirm treatment for complex instruments like options and futures before assuming either exception applies to your position.

Why the IRA Trap Is the Part Investors Actually Miss

Most investors understand the 61-day window in the abstract. What trips people up is the assumption that "my accounts are separate" means the IRS treats them separately too. It doesn't. The wash sale rule applies to you as a taxpayer, not to any single brokerage relationship, and the IRA scenario is the one place where getting it wrong is unrecoverable rather than just annoying.

A disallowed loss in a taxable account is a deferral. A disallowed loss caused by an IRA purchase is a permanent forfeiture, because the IRA never adjusts its own basis to absorb it. That asymmetry deserves more attention than it gets in most tax-season checklists, and it's the scenario I'd flag first to any investor running a taxable account and a retirement account side by side at different firms. The conventional advice, "just don't rebuy for a month," assumes you can see every account at once. Plenty of investors can't, and that's precisely where the exposure hides. For deeper background on how basis carries forward, Evibe's guide to cost basis tracking is worth a look, as is the realized versus unrealized gains primer for anyone still fuzzy on why the timing of a sale matters this much.

— Vincent

How Evibe Helps You Catch Wash Sales Before They Cost You

Evibe syncs your brokerage and IRA accounts automatically, which means a purchase in your Roth IRA shows up right next to the loss you took in your taxable account, on the same screen, the same day.

Evibe

That matters because brokerages typically only flag wash sales within a single account, leaving cross-account matches for you to catch manually or miss entirely. Evibe's AI-driven alerts surface potential wash-sale exposure across every linked account, and its cost-basis tracking keeps your adjusted basis accurate as replacement shares roll forward. If you trade ETFs actively, the ETF portfolio tracker consolidates your holdings across brokers into one view; if you trade individual names, the stock portfolio tracker does the same for cost-basis reconciliation. Evibe is free to use and every new account gets 7 days of Premium, so you can check your own accounts for hidden wash-sale exposure before your next tax filing.

Sources

This article is general information, not a substitute for advice from a qualified financial advisor. Consult a qualified financial professional about your own circumstances before acting on anything here.