Skip to main content

The Wash Sale Rule: How Active Investors and Crypto Traders Walk Into a Tax Trap

· 11 min read
Mike Thrift
Mike Thrift
Marketing Manager

You sold Tesla at a $4,000 loss in early December to harvest a tax deduction. Two weeks later, the stock dipped further and you bought back in, planning to ride the rebound. Smart trade — except when you file your taxes, your accountant tells you the $4,000 loss is gone. Disallowed. Vanished into the cost basis of your new shares.

Welcome to the wash sale rule, one of the most misunderstood traps in the U.S. tax code. It catches active traders, retirement savers, and ETF investors every season — and the IRS doesn't care that you didn't know.

2026-05-02-wash-sale-rule-active-investors-crypto-traders-tax-trap-guide

What the Wash Sale Rule Actually Says

The wash sale rule, codified in IRS Section 1091, prevents you from claiming a tax loss on the sale of a security if you buy a "substantially identical" security within a 61-day window — that's 30 days before the sale, the day of the sale, and 30 days after.

The rule exists because Congress wanted to stop investors from selling at a loss purely to manufacture a tax deduction while remaining economically invested in the same position. Without it, you could sell a losing stock on December 30, buy it back on December 31, capture the loss for the current tax year, and never actually change your portfolio.

If you trigger a wash sale, three things happen:

  1. The loss is disallowed. You can't use it to offset capital gains or reduce your taxable income for the year.
  2. The disallowed loss gets added to the cost basis of the replacement security. So you don't lose the loss permanently — you defer it until you sell the replacement.
  3. The holding period of the original shares carries over to the replacement. This can affect whether your eventual gain qualifies as long-term or short-term.

The mechanics sound benign — you'll get the loss back eventually. But "eventually" can mean years, and in the meantime, you owe more tax this year than you expected.

The 61-Day Window, Explained Plainly

The biggest source of confusion is the timing. People hear "30-day rule" and assume they need to wait 30 days before re-buying. The actual rule is wider:

  • 30 days before the sale
  • The day of the sale
  • 30 days after the sale

That's 61 calendar days where you cannot acquire a substantially identical security without poisoning the loss. To safely repurchase, you must wait until day 31 after the sale.

A common misstep: investors sell a stock for a loss in late January, forgetting that they bought additional shares of that same stock on January 5. Even though the December purchase came before the loss sale, it falls within the 30-day pre-sale window — and the loss is disallowed.

What Counts as "Substantially Identical"?

Here's where the rule gets murky. Neither Congress nor the IRS has ever published a clear definition of "substantially identical." Tax courts and IRS guidance have built a rough framework over decades, but plenty of gray area remains.

What is clearly substantially identical:

  • The exact same stock (Apple common stock vs. Apple common stock)
  • A call option or contract to buy the same stock
  • A short sale of the same security followed by closing the short

What is generally not considered substantially identical:

  • Common stock and preferred stock of the same company (usually)
  • Bonds of the same company with materially different terms
  • Stock of a different company in the same industry

Where it gets tricky:

  • ETFs tracking the same index. Two S&P 500 ETFs from different providers (VOO and IVV) track the same underlying index with near-identical holdings. The IRS hasn't ruled definitively, but most tax professionals consider these substantially identical and avoid swapping between them within the 61-day window.
  • ETFs tracking similar but distinct indexes. Selling a Russell 1000 ETF and buying a Total Market ETF is generally considered safe because the underlying indexes differ, even if the funds correlate strongly.
  • Mutual funds and ETFs covering the same sector. A tech-sector mutual fund and a tech-sector ETF holding different baskets are usually fine.

The conservative rule of thumb: if two securities track the same exact index or hold materially overlapping portfolios with the same investment objective, treat them as substantially identical until your tax advisor says otherwise.

The IRA Trap That Kills Losses Forever

Most wash sale traps are timing problems — defer the loss, get it back later. The IRA trap is different. It can permanently destroy your loss.

Here's the scenario: You sell 100 shares of Microsoft at a $5,000 loss in your taxable brokerage account. Within 30 days, your IRA buys 100 shares of Microsoft. The wash sale rule applies across all accounts you control, including IRAs and Roth IRAs.

But here's the catch: when the replacement shares land in an IRA, the disallowed loss does not get added to the IRA's cost basis. IRAs don't track cost basis the way taxable accounts do, because withdrawals are taxed differently (or not at all, for Roth IRAs). The result: your $5,000 loss disappears entirely. You can't deduct it now, and you can't recover it later.

This is one of the most expensive mistakes active investors make, and brokers won't catch it because the two accounts are separate. Your taxable brokerage 1099-B will report the wash sale only if it can see the offsetting purchase — it can't see your IRA at another institution, your spouse's account, or your 401(k).

Spouses and Cross-Account Wash Sales

The IRS treats spouses as a single economic unit for wash sale purposes. If you sell Apple at a loss in your individual account and your spouse buys Apple in her account within 30 days, that's a wash sale. Same household, same family unit, same disallowed loss.

The same logic extends to entities you control: an S-corp you own, a trust where you're the grantor, or a partnership where you have substantial interest. The rule is designed to prevent any economic substitution that leaves you (or your household) holding the same position.

Brokers can't see across these account boundaries. Their 1099-B reports reflect only what happens inside their own walls. The full responsibility for catching cross-account wash sales falls on you and your tax preparer — and the IRS does sometimes audit these.

Crypto: The Loophole That Might Close

Currently, the wash sale rule does not apply to cryptocurrency. The IRS classifies digital assets as property rather than securities, and Section 1091 specifically references "stock or securities." This means a crypto trader can sell Bitcoin at a $10,000 loss on Tuesday, buy it back on Wednesday, claim the full loss, and stay economically invested.

This is a meaningful tax planning advantage that stock investors don't have. But three caveats:

  1. Legislative risk is real. Congress has proposed extending wash sale rules to digital assets in multiple draft bills since 2021. The Inflation Reduction Act of 2022 nearly included it. In December 2025, a bipartisan discussion draft (the PARITY Act) reintroduced wash sale provisions for digital assets. The exemption could disappear with one piece of legislation.

  2. Mechanical loss harvesting may attract scrutiny. If you repeatedly sell crypto at a loss and immediately repurchase as part of an automated, mechanical pattern, the IRS may invoke broader doctrines like economic substance or substance over form. The argument: the transactions lack genuine economic purpose, so the losses should be disallowed under general anti-abuse principles even though Section 1091 doesn't apply.

  3. Tokenized securities and crypto ETFs are different. A spot Bitcoin ETF holds securities, not crypto directly. Selling and rebuying spot Bitcoin ETFs within 30 days is a wash sale. The exemption applies only to direct holdings of cryptocurrency.

Crypto traders should harvest losses while the exemption stands but document the trades and avoid suspiciously mechanical patterns.

How to Report Wash Sales: Form 8949 and Schedule D

When you trigger a wash sale, you can't just leave the loss off your return. You must report the sale and explicitly identify it as a wash sale.

On Form 8949 (Sales and Other Dispositions of Capital Assets):

  • Column (a): Description of the security
  • Column (d): Proceeds from the sale
  • Column (e): Cost basis as reported on your 1099-B
  • Column (f): Enter code "W" to flag the wash sale
  • Column (g): Enter the disallowed loss amount as a positive number — this adjusts the loss back to zero (or to the partial amount allowed)

Form 8949 totals roll up to Schedule D, which feeds your Form 1040.

If your broker reports the wash sale on your 1099-B (which they're required to do for "covered" transactions within their own systems), the wash sale is already accounted for. But if the wash sale spans multiple accounts or institutions, you may need to manually adjust your reported cost basis to include the disallowed loss from the prior sale.

Strategies for Active Investors

If you trade frequently, the wash sale rule will affect you. The question is whether you manage around it or trip into it.

Use tax-loss harvesting with non-identical replacements. Sell VOO (Vanguard S&P 500), buy VTI (Vanguard Total Market). Different index, different holdings, generally not substantially identical. You stay invested in U.S. equities while harvesting the loss.

Wait 31 days. The simplest path. Sell, sit in cash or a money market fund for 31 days, then re-establish the position. You miss potential upside during the window, but you cleanly preserve the loss.

Avoid round-trip trading near year-end. December losses are the most valuable from a tax planning perspective, but they're also where wash sales most frequently sneak in. If you're harvesting losses in December, freeze new purchases of the same securities until February.

Reconcile across accounts before filing. Pull statements from every brokerage, IRA, and your spouse's accounts. Identify any purchases of identical securities that fall within the 61-day window of any loss sale. This is tedious but it's the only way to catch cross-account wash sales that brokers miss.

Watch dividend reinvestment. A DRIP that reinvests dividends in the same security within 30 days of a loss sale is a wash sale on the reinvested portion. Many active investors trip this without realizing it.

Why Bookkeeping Matters Here

The wash sale rule is fundamentally a record-keeping problem. The IRS isn't checking whether your trades were profitable — it's checking whether you correctly tracked dates, cost basis, and the cross-account relationships between purchases. Most wash sale errors aren't intentional; they happen because traders rely on broker 1099-Bs that can only see part of the picture.

Investors who maintain their own complete trade ledger — every buy, every sell, every account, dated and tagged — catch wash sales before they file rather than discovering them in an audit two years later. Plain-text accounting makes this auditable: you can grep your entire trade history for a ticker, see every transaction across every account in chronological order, and prove exactly what happened on what date.

Common Mistakes That Trigger Wash Sales

  • Selling at a loss in December and buying back in early January because "it's a new tax year" (the calendar year doesn't reset the 61-day window)
  • Forgetting that automatic dividend reinvestment counts as a purchase
  • Selling in your taxable account and buying in your 401(k) within 30 days
  • Selling a stock and buying a deep-in-the-money call option on the same stock
  • Spouses making independent investment decisions in the same security
  • Selling a mutual fund and buying an ETF that holds the same underlying index
  • Closing a short sale at a loss and re-shorting the same security within 30 days

When the Loss Is Worth Letting Go

Sometimes the cleanest move is to accept the wash sale and move on. If you genuinely want to stay in the position and don't have a comparable substitute, triggering a wash sale isn't catastrophic — the loss carries forward in the cost basis. You'll get the deduction when you eventually sell the replacement shares.

The trap is when investors think they're doing tax-loss harvesting, claim the deduction on their return, and only learn during an IRS notice or amendment that the loss was disallowed. By then, penalties and interest may apply. Knowing the rule, even when you choose to step into it, is better than tripping over it.

Keep Your Trade Records Audit-Ready

Tracking trades across multiple accounts, brokerages, and household members is exactly the kind of bookkeeping problem that benefits from a transparent, version-controlled system. Beancount.io provides plain-text accounting that gives you complete visibility into every transaction, with a full audit trail and no vendor lock-in. Get started for free and see why developers, finance professionals, and active investors are switching to plain-text accounting to keep their records audit-ready.