Individuals & FamiliesWash Sale RuleForm 8949 Code WIRA Repurchases

How does the wash sale rule work? The 61-day window, other brokers and your spouse, IRA repurchases, RSUs, options, crypto and Form 8949

Short answer

If you sell stock, ETFs or options at a loss and you, your spouse or your IRA buy the same or substantially identical securities within 30 days before or after the sale, you can't deduct the loss that year. It's added to the basis of the new shares, and their holding period picks up the old one. If the repurchase happens in an IRA, the loss is gone for good, and brokers only track wash sales within a single account.

Questions? Reach us directly

Message us on WhatsApp

Scan the code with WhatsApp, or tap the button if you are on your phone.

919-802-8376Open WhatsApp

Add us on WeChat

Scan the code with WeChat, or copy the WeChat ID and search for it in the app.

WeChat ID: YCLUSA
FacebookInstagramXRednoteWeChat Channels
61 days
The wash sale window: 30 days before the loss sale, the sale date and 30 days after. Acquire the same or substantially identical securities (or an option or contract to acquire them) in that window and the loss is disallowed for now
Box 1g
Where Form 1099-B shows wash sale losses the broker disallowed. Brokers must report only when the purchase and sale are in the same account, for covered securities with the same CUSIP. Other brokers, your spouse, IRAs and employer plans are on you
Rev. Rul. 2008-5
The IRS ruling that selling at a loss in a taxable account and having your IRA or Roth IRA buy substantially identical stock within 30 days is a wash sale, and the disallowed loss is not added to IRA basis. It's lost permanently
April 15, 2027
Deadline for a securities trader to elect section 475(f) mark-to-market (which takes trading securities out of the wash sale rule) for 2027: the original due date of the 2026 return, not counting extensions. New taxpayers have a separate 2-month-15-day rule
01

At a glance

  • The rule in one sentence: if you buy substantially identical stock or securities, or an option or contract to buy them, within 30 days before or after selling at a loss, you can't deduct the loss for now. Gains aren't affected.
  • Usually it's a deferral: the disallowed loss is added to the basis of the replacement shares, and their holding period includes the old shares'. You get the loss back when you sell the replacement shares without triggering another wash sale. The exception is an IRA or Roth IRA repurchase: that loss is gone.
  • Your broker won't catch everything: box 1g on Form 1099-B covers only same-account, same-CUSIP trades. Another broker, your spouse's account, an IRA, an equity plan account (RSUs, ESPP), dividend reinvestment and options can all trigger wash sales that you report yourself with code W on Form 8949.
  • Count the days at year-end: wait 31 days to buy back, or switch to something not substantially identical. The "buy first, sell 31 days later" approach needed a purchase by November 30 for a 2026 sale. Sell in December and buy back in January, and the loss can't be used for 2026.
  • Special cases: as of December 1, 2026, crypto itself is still outside the rule (a House committee approved H.R. 10357 to change that; it isn't law). Qualifying traders can elect section 475(f) to escape wash sales. Nonresidents without U.S. status who just trade U.S. stocks generally owe no U.S. tax on the gains. North Carolina, California and New York all follow the federal rule.
02

What is the wash sale rule, and how do you count the 61 days?

The wash sale rule (Internal Revenue Code section 1091) stops "sell for the loss, buy it right back." If you acquire substantially identical stock or securities anywhere from 30 days before to 30 days after the day you sell at a loss, you can't deduct the loss for now. The window is 61 days, counted by trade date, not settlement date.

Section 1091 disallows a loss on the sale or other disposition of stock or securities if, within the period beginning 30 days before and ending 30 days after the sale, the taxpayer acquires (by purchase or in a fully taxable exchange), or enters into a contract or option to acquire, substantially identical stock or securities. Dealers' losses in the ordinary course of business are excepted. Key points:

  • People forget the 30 days before. Buy a new lot, then sell the old losing lot within 30 days, and it's still a wash sale.
  • Options and contracts count as acquiring. The statute treats contracts or options to acquire or sell stock or securities as stock or securities. Buying a call within 30 days of selling the stock at a loss is a wash sale (see the options section below).
  • Losses only. Sell at a gain and buy back the next day, and there's no wash sale; you simply pay tax on the gain.
  • Trade date controls. A sale executed by December 31 counts in 2026, whenever it settles.
  • Not covered: commodity futures and foreign currency (Publication 550 says so), redemptions of floating-NAV money market funds, securities in a trading business covered by a section 475(f) election, and, as of December 1, 2026, crypto itself.
Figure 1 The 61-day wash sale window (example: loss sale on December 15, 2026)

Description: The sale date sits in the middle, with a 30-day window on each side. A purchase in any account inside the window disallows the loss for now; from day 31 on, it doesn't.

Point in timeDateBuying the same or substantially identical security on this day
31 or more days before the saleNovember 14, 2026 or earlierNot a wash sale
Window opens (30 days before)November 15, 2026Wash sale
Sale date (day 0)December 15, 2026Buying the same day is a wash sale
Window closes (30 days after)January 14, 2027Wash sale; the 2026 loss can't be used
Day 31 and laterJanuary 15, 2027 or laterNot a wash sale
03

What counts as "substantially identical"? Same stock, options, ETFs, fund share classes, preferred stock and bonds

The IRS has never defined "substantially identical" precisely; it depends on all the facts. The same class of stock in the same company and call options on it count; another company's stock usually doesn't. ETFs from different sponsors that track the same index are a gray area the IRS hasn't addressed.

Publication 550 (2025) says you must consider all the facts and circumstances. Stocks or securities of one corporation ordinarily aren't substantially identical to another corporation's, though they can be, for example around a reorganization. Bonds or preferred stock usually aren't substantially identical to the same company's common stock, but convertible bonds or preferred can be, depending on relative values, price changes and other circumstances.

Figure 2 What counts as "substantially identical"? (based on IRS guidance; treat gray areas with care)

Description: The left column is what you sold at a loss, the middle column is what you acquired within 30 days, and the right column is the usual answer. "Unclear" means there's no formal IRS rule.

Sold at a lossAcquired within 30 daysUsual answer
A company's common stockThe same common stock, in any accountYes
A company's common stockA call option, warrant or contract to buy that stockYes (the statute covers options and contracts; Pub. 550 addresses warrants)
A company's common stockWriting a deep in-the-money put on that stockPossibly (Rev. Rul. 85-87 treats a written put almost certain to be exercised like a contract to buy; there's no bright line for "deep")
A company's common stockConvertible preferred of the same company, freely convertible and trading at the conversion ratioPossibly (Pub. 550 lists five factors)
A company's common stockNonconvertible preferred or bonds of the same companyUsually not
A company's common stockAnother company in the same industryUsually not
An ETF tracking index AAnother sponsor's ETF tracking the same index AUnclear; the conservative course is to avoid it
An ETF tracking index AA fund tracking a different index (say, total market vs. S&P 500)Usually not, though heavily overlapping indexes are debated
One share class of a mutual fundAnother share class of the same fund, or an ETF share class of the same portfolioUnclear; same portfolio, so conservatively treat as identical
A bondA bond of the same issuer with a different rate and maturityUsually not (practice generally treats different rates and maturities as not substantially identical; there's no general IRS rule)
A spot bitcoin ETFThe same ETF, or another sponsor's spot bitcoin ETFSame ETF yes (ETF shares are securities); different sponsor unclear

We explain how the tax rules work; we don't recommend what to buy. Whether to stay invested and in what is a decision for you and your adviser.

04

Where does the disallowed loss go? Basis, holding period and when you get it back

A wash sale loss usually isn't lost; it moves. It's added to the basis of the replacement shares, and their holding period includes the time you held the shares you sold. The loss shows up when you sell the replacement shares in a sale that isn't itself a wash sale.

  • Basis: replacement basis = what you paid for the new shares + the disallowed loss (section 1091(d); Treas. Reg. §1.1091-2).
  • Holding period: the new shares' holding period includes the old shares' (section 1223(3)), so they may turn long-term sooner than you'd expect.
  • When the loss comes back: in the year you sell the replacement shares. If they're bought back again within 30 days, the loss rolls forward again. Someone who trades the same stock constantly can roll losses past year-end.
  • When it's lost for good: when the replacement purchase happens in an IRA or Roth IRA (below), or if you hold the replacement shares until death, since heirs take a basis equal to fair market value at death.

Example 1: a full wash sale and the loss coming back

Example (hypothetical numbers, to show the method):

  • March 2, 2026: buy 100 shares of XYZ at Broker A for $5,000 ($50 a share).
  • November 10, 2026: sell all 100 for $4,000 ($40 a share), a $1,000 loss.
  • November 24, 2026: buy 100 shares of XYZ back in the same account for $4,200 ($42 a share). That's 14 days after the sale, so it's a wash sale.
  • February 15, 2027: sell those 100 shares for $4,500, with no purchase in the next 30 days.
Form 8949(a) Description(b) Acquired(c) Sold(d) Proceeds(e) Basis(f) Code(g) Adjustment(h) Gain or loss
2026, Part I (short-term), box A100 sh XYZ03/02/202611/10/20264,0005,000W1,0000
2027, Part I (short-term), box A100 sh XYZ11/24/202602/15/20274,5005,200(700)
  • Replacement basis: $4,200 + $1,000 = $5,200. The holding period adds the 253 days the old shares were held (March 2 to November 10, 2026), still under a year when sold in February 2027, so it's short-term.
  • Over the two years you paid $9,200 and received $8,500, a real loss of $700, recognized in 2027. The wash sale simply moved the $1,000 loss from 2026 to 2027, where it netted against the $300 gain.
  • On the 2027 line: if the broker made the wash sale adjustment, the 1099-B shows $5,200 basis. If the repurchase was at another broker, that broker's 1099-B shows $4,200 and you fix it with code B (see the Form 8949 section).
05

What if you buy back only part? How are multiple purchases matched?

If you buy back fewer shares than you sold, only the loss on that many shares is disallowed; the rest is deductible. Replacement shares are matched in the order you bought them. And a wash sale loss on one block can't offset gains on identical blocks sold the same day.

  • Fewer bought than sold (Treas. Reg. §1.1091-1(c)): shares acquired in the window are matched, in order of acquisition starting with the earliest, with an equal number of the shares sold. That part of the loss is disallowed.
  • More bought than sold (paragraph (d)): the shares sold are matched with the earliest acquired shares in the window; later extra purchases aren't affected.
  • Several losses in a year (paragraph (b)): the rule applies to the losses in the order of the sales. A purchase that already caused one loss to be disallowed can't be used again for another (paragraph (e)).
  • Gains and losses on the same day: per Pub. 550, a wash sale loss on one block can't reduce gains on identical blocks sold that day.

Example 2: a partial wash sale

Example (hypothetical numbers, to show the method): You bought 200 shares of ABC on February 10, 2026, for $6,000 ($30 a share). On October 15, 2026, you sold those 200 shares (identifying the February lot at the time of sale) for $4,000 ($20 a share), a $2,000 loss, or $10 a share. Inside the window you also bought 50 shares on October 1 for $1,100 and 30 shares on October 28 for $570.

  • You acquired 80 shares in the window, fewer than the 200 sold, so the loss on 80 shares, $800, is disallowed and the loss on the other 120 shares, $1,200, is deductible.
  • Basis of the 50 shares bought October 1: $1,100 + 50 × $10 = $1,600. Basis of the 30 shares bought October 28: $570 + 30 × $10 = $870.
  • Form 8949, Part I: 200 sh ABC | 02/10/2026 | 10/15/2026 | 4,000 | 6,000 | W | 800 | (1,200).
06

What happens if you buy back in an IRA, Roth IRA or 401(k)?

Sell at a loss in a taxable account and have your own IRA or Roth IRA buy substantially identical securities within 30 days, and Rev. Rul. 2008-5 says it's a wash sale, with no basis increase inside the IRA. The loss is permanently lost. This is the costliest wash sale there is.

  • The ruling's facts: an individual sold 100 shares at a loss in a taxable account and the next day had his IRA (or Roth IRA) buy 100 shares of the same stock. The IRS held that section 1091 disallows the loss and that the individual's basis in the IRA or Roth IRA isn't increased under section 1091(d). It relied on *Security First National Bank* (28 BTA 289, 1933) and *Shoenberg v. Commissioner* (77 F.2d 446, 8th Cir. 1935): buying back through a trust or company you control is the same as buying it yourself.
  • Your spouse's IRA: Pub. 550 says a purchase by your spouse is a wash sale, so a purchase in your spouse's IRA should be avoided too.
  • 401(k), 403(b), HSA: Rev. Rul. 2008-5 addresses only IRAs and Roth IRAs. The IRS hasn't said whether 401(k) contributions or reinvested dividends buying the same fund trigger a wash sale. The conservative course is to keep the same fund out of your plan purchases during the window.
  • The reverse is fine: selling at a loss inside an IRA (where losses don't count anyway) and buying in a taxable account doesn't raise a wash sale issue.

Example 3: a Roth IRA repurchase wipes out the loss

Example (hypothetical numbers, to show the method): On November 3, 2026, you sell 300 shares of an index ETF in a taxable account. Basis is $30,000 and proceeds are $27,000, a $3,000 loss. On November 10, 2026, your Roth IRA buys 300 shares of the same ETF.

  • Form 8949: 300 sh index ETF | ... | 11/03/2026 | 27,000 | 30,000 | W | 3,000 | 0.
  • The $3,000 isn't added to Roth IRA basis and never comes back. If it would have offset short-term gains taxed at a 24% federal rate plus North Carolina's 3.99%, roughly $840 of tax savings is gone for good.
  • The taxable account's broker doesn't know what your Roth IRA bought, so box 1g will be blank. The adjustment is yours to make.
07

Do purchases by your spouse or at another broker count? Why doesn't the 1099-B show them?

Yes, they count. The question is whether you acquired substantially identical securities, not where, and purchases by your spouse count too. But brokers must report wash sales only within the same account, for covered securities with the same CUSIP, so the rest won't appear on Form 1099-B. You track and report them yourself.

The Form 1099-B instructions (box 1g) require brokers to report a wash sale only when both the sale and purchase occur in the same account, for covered securities with the same CUSIP. Brokers may report cross-account wash sales voluntarily but don't have to, and needn't apply the rule when the shares were transferred in or out, the accounts are treated as separate, or the customer has given written notice of a section 475 election. Pub. 550 and the Schedule D instructions both say it plainly: you can't deduct a wash sale loss even if it isn't reported on Form 1099-B.

Figure 3 What your broker's 1099-B reports vs. what you track yourself

Description: The left column is where the replacement purchase happened, the middle column says whether box 1g will show it, and the right column is what you do.

Replacement purchase happened inForm 1099-B box 1gWhat you do
The same account, same stock or ETF (same CUSIP)Shown (covered securities)Check the amount; report code W
Another account at the same broker (say, individual and joint)Not necessarilyCheck; add what's missing
A different brokerNoFigure it yourself, code W; fix the new shares' basis with code B when sold
Your spouse's account (any broker)NoCombine both spouses' trades
Your or your spouse's IRA or Roth IRANoLoss lost for good; code W, no basis increase
Equity plan account: RSU vesting, ESPP purchaseUsually not (often another platform)Compare vesting and purchase dates
Dividend reinvestment, automatic investingUsually yes if same account and CUSIPTurn reinvestment off around the sale, or check yourself
Buying calls, writing deep in-the-money putsNo (different CUSIP)Judge it yourself; code W
Brokers in Hong Kong, China or elsewhere abroadNo 1099-B at allFigure everything; Form 8949 box C or F
Noncovered securities (old or transferred-in lots missing data)Not requiredFigure it yourself

Example 4: one spouse sells, the other buys at a different broker

Example (hypothetical numbers, to show the method): Mr. Lin sells 100 shares of XYZ at Broker A on September 10, 2026, for $8,500. Basis is $10,000, so the loss is $1,500. On September 25, 2026, Mrs. Lin buys 100 shares of XYZ at Broker B for $8,700. They file jointly.

  • Broker A's box 1g is blank. On the 2026 Form 8949, Part I (box A): 100 sh XYZ | ... | 09/10/2026 | 8,500 | 10,000 | W | 1,500 | 0.
  • Mrs. Lin's basis is $8,700 + $1,500 = $10,200. When she sells in 2027, Broker B's 1099-B will still show $8,700, so she uses code B with (1,500) in column (g) to add the basis back. Otherwise she overstates her gain by $1,500.
  • Married filing separately: Pub. 550 doesn't distinguish joint and separate filers for spouse purchases, so the wash sale still applies. The IRS hasn't spelled out how the deferred loss carries into the other spouse's basis in that case; it needs case-by-case handling.
08

Can dividend reinvestment, automatic investing, RSUs or ESPP trigger a wash sale?

Yes. The rule looks at acquisitions, whether you clicked "buy," a plan reinvested a dividend or your employer delivered shares. A reinvested dividend, an automatic purchase, an RSU vest or an ESPP purchase of the same stock or fund within 30 days of a loss sale can disallow the loss on that many shares.

  • Dividend reinvestment (DRIP): reinvesting is buying. A small reinvestment within 30 days of the loss sale disallows the loss on those few shares. The dollars are usually small, but it scatters wash sale adjustments across your 1099-B. If you plan to harvest a loss, consider turning reinvestment off for that security first.
  • Automatic investment plans: monthly purchases of the same fund within the window count.
  • RSU vesting: Pub. 550 gives the example of an employee who receives company stock as a bonus (included in pay at fair market value), later sells company shares at a loss, and receives another award of substantially identical stock within 30 days; the loss isn't deductible. RSU vesting works the same way, as of the vesting date.
  • ESPP purchases: an employee stock purchase plan buys company stock on the purchase date, a plain purchase.
  • The common setup: you sell previously vested company shares at a loss at Schwab or Fidelity while RSUs vest or ESPP shares are bought on another platform (E*Trade, Morgan Stanley at Work). Neither broker knows about the other, and neither 1099-B will show it.
  • RSU basis is often wrong to begin with: RSU basis on the 1099-B is often $0 or blank. Fix it to the vesting-date value first (see yclcpa.com/investtax), then deal with wash sales.

Example 5: selling company stock at a loss two weeks before an RSU vest

Example (hypothetical numbers, to show the method): Ms. Wang had 100 shares vest on November 20, 2025, at $150 a share, for a $15,000 basis. On November 5, 2026, she sold all 100 at $120, receiving $12,000, a $3,000 loss ($30 a share). Another 50 RSUs vested on November 20, 2026, at $125 a share, with $6,250 included on her W-2.

  • She acquired 50 shares in the window, fewer than the 100 sold, so the loss on 50 shares, $1,500, is disallowed and the other $1,500 is deductible.
  • Basis of the 50 newly vested shares: $6,250 + $1,500 = $7,750, with a holding period that adds the old shares' 350 days.
  • Form 8949, Part I: 100 sh company stock | 11/20/2025 | 11/05/2026 | 12,000 | 15,000 | W | 1,500 | (1,500).
  • If shares were withheld or sold to cover taxes at vesting, fewer shares landed in the account; matching follows the shares you actually acquired, so check the vesting detail.
09

How do wash sales work with options and short sales?

Options are inside the rule. Buy a call on a stock within 30 days of selling it at a loss and the loss is disallowed; close an option at a loss and reopen the same option within 30 days, same result. For short sales, a loss on closing is disallowed if you sell or short substantially identical stock within 30 days of the close.

  • Stock loss + buying a call: buying a call is acquiring an option to buy the stock, so it's a wash sale. The Schedule D instructions say the disallowed loss is added to the basis of the option or contract.
  • Stock loss + writing a put: a written put obligates you to buy. Rev. Rul. 85-87 treats a put written so deep in the money that exercise is nearly certain like a contract to buy, which can trigger a wash sale; out-of-the-money or slightly in-the-money puts generally don't. There's no numeric test for "deep."
  • Losses on the options themselves: close an option at a loss and buy the same option (same underlying, strike and expiration) within 30 days, and it's a wash sale. Whether an option with a different strike or expiration is substantially identical hasn't been settled by the IRS.
  • Covered calls: premium on a call that expires is short-term capital gain; if it's exercised, the premium is added to your sale proceeds. That's separate from wash sales, but writing deep in-the-money calls can suspend the stock's holding period, and the straddle rules may apply.
  • Short sales: a loss on closing a short sale is disallowed if, within 30 days before or after the close, you sell or enter into another short sale of substantially identical stock. If you already own the stock when you sell short (shorting against the box), Pub. 550 treats the short sale as complete on the day you enter it.
  • Your broker won't connect them: a stock and its options have different CUSIPs, so brokers don't link "sold the stock" with "bought the call."
10

How do you harvest losses at year-end without a wash sale? What if you sell in December and buy in January?

Three common approaches: wait a full 31 days to buy back; switch right away to an investment that isn't substantially identical; or buy a second lot first and sell the old losing lot 31 days later. Sell in December and buy back in January, and the loss can't be used this year; it waits until you sell the replacement shares.

Figure 4 Three ways to harvest losses and the last dates (2026 example)

Description: Each row is an approach, how it works, the key date and the trade-off. As of December 1, 2026, the third approach can no longer be completed within 2026.

ApproachHow it worksKey dateTrade-off / watch out
1. Sell, wait 31 days, buy backSell at a loss; buy the same security from day 31Sell on December 31 and you can't buy back until January 31, 2027Out of the market for 31 days; turn off reinvestment; no IRA or spouse purchases either
2. Sell and switchSell at a loss and buy a different investment the same daySell by December 31 (trade date)The two investments won't track exactly; same-index ETFs from different sponsors are a gray area
3. Buy first, sell later ("double up")Buy the same number of shares, wait 31 days, sell the old losing lot by specific identificationFor a 2026 sale, buy by November 30, 2026; that date has passedDouble exposure for 31 days; no repurchase for 30 days after the sale
Sell in December, buy in Januarye.g., sell December 18, 2026; buy back January 8, 2027Window runs to day 30 (January 17, 2027)The loss can't be used in 2026; it's added to the basis of the 2027 shares
  • A cross-year wash sale still goes on the sale year's return: sell at a loss on December 18, 2026, buy back on January 8, 2027, and the 2026 Form 8949 still shows code W disallowing the loss. A same-account broker will show it in box 1g of the 2026 1099-B. Many people only find out when they file in the spring.
  • Total the year first: add up realized gains and losses across all your brokers, your spouse's accounts and foreign accounts before deciding how much more to harvest. Without gains to absorb them, losses offset only $3,000 of ordinary income a year ($1,500 married filing separately), and the rest carries forward.
  • In a low-income year, think the other way: if your taxable income falls in the 0% long-term bracket (2026: up to $98,900 joint, $49,450 single), realizing gains to raise basis may beat harvesting losses, and gains have no wash sale rule. Full rates are at yclcpa.com/investtax.
  • Harvesting mostly defers tax: the replacement has a lower basis, so the later gain is bigger. The real benefit is time value, rate differences and a basis step-up if you hold until death.
  • We don't tell you what to sell or buy: we work out the tax and the dates for each option; the investment call is yours.
11

What if you trade every day? Trader status and the section 475(f) mark-to-market election

Frequent trading in the same stocks keeps pushing losses forward, and positions still open at year-end can carry large deferred losses into the next year. A person who qualifies as a securities trader can elect section 475(f) mark-to-market, which takes trading securities out of the wash sale rule and the $3,000 loss limit, but turns gains into ordinary income. To be effective for 2027, the election is due by April 15, 2027.

Who counts as a trader?

The IRS (Topic No. 429, updated November 9, 2026, and the Schedule D instructions) requires all three:

  1. You seek to profit from daily market movements, not from dividends, interest or capital appreciation;
  2. Your activity is substantial; and
  3. You trade with continuity and regularity.

The IRS also looks at typical holding periods, the frequency and dollar amount of trades during the year, whether you pursue it to produce income for a livelihood, and the time you devote to it. Calling yourself a day trader doesn't make you one, and there's no published minimum number of trades. If you don't qualify, you're an investor.

Trader without an election vs. with a 475(f) election

ItemInvestorTrader, no 475(f) electionTrader with 475(f) election
Gains and lossesCapital, Form 8949 / Schedule DCapital, Form 8949 / Schedule DOrdinary, Form 4797 Part II
Wash sale ruleAppliesAppliesDoesn't apply to trading securities
Net loss against other income$3,000 a year$3,000 a yearNo $3,000 cap (other loss limits may still apply)
Open positions at year-endNot taxedNot taxedTreated as sold at fair market value on the last business day
0% / 15% / 20% long-term ratesYesYesNo, all ordinary rates
Trading expensesGenerally not deductibleSchedule CSchedule C
Self-employment taxNoNoNo

How and when to elect

  • Deadline: by the original due date (not counting extensions) of the return for the year before the election takes effect. For 2027, that's April 15, 2027: attach the statement to your 2026 return, or to an extension request for that return. The deadline for a 2026 election (April 15, 2026) has passed.
  • What the statement says: that you're making an election under section 475(f), the first tax year it's effective, and the trade or business it covers.
  • New taxpayers: a taxpayer that wasn't required to file a return for the prior year can place the statement in its books and records within 2 months and 15 days after the start of the election year, and attach a copy to that year's return.
  • Change of accounting method: for the year the election takes effect, file Form 3115 under section 24.01 of Rev. Proc. 2025-23.
  • Late elections generally aren't allowed: the IRS says so directly. Miss it and you wait a year.
  • Revoking has rules too: a revocation notice is due by the same kind of deadline, with a Form 3115. Revoking within five years of electing, or re-electing within five years of revoking, goes through the non-automatic procedure with a user fee.
  • Keep investments separate: a trader who also holds long-term investments must identify them on the day acquired (for example, in a separate account), or they may be marked to market too.
  • Big losses face other limits: ordinary losses under mark-to-market can offset wages and other income, but large business losses of individuals may run into the excess business loss limitation (section 461(l)) and similar rules, so model it first.
  • Not sure you qualify? Get an assessment before electing. Trader status is a factual question, and in an audit the IRS looks at your actual trading records.
12

Does the wash sale rule apply to crypto? (Status as of December 1, 2026)

Not under current law. Section 1091 covers only "stock or securities," and the IRS treats crypto as property. You can generally sell coins at a loss, buy them right back and still deduct the loss. But Congress is moving bills to extend the rule to digital assets. The House Ways and Means Committee approved one in September 2026, and as approved it would reach sales after September 14, 2026, if enacted.

Figure 5 Digital assets and the wash sale rule: current law and proposals (as of December 1, 2026)

Description: The top rows are current rules; the bottom rows track bills in Congress. None of the bills is law.

ItemStatusNotes
Bitcoin, ether and other cryptoNot coveredSection 1091 covers stock and securities; the IRS treats virtual currency as property (Notice 2014-21)
Tokenized securities (stocks or securities on a blockchain)Covered2025 Schedule D instructions; Form 1099-DA box 1i reports the disallowed loss
Spot bitcoin ETFs and other ETF sharesCovered between ETF sharesETF shares are securities; switching between an ETF and the coin itself isn't treated as a wash sale today
S. 2207 (Sen. Lummis; introduced June 30, 2025, announced July 3, 2025)In the Senate Finance CommitteeWould extend section 1091 to digital assets; no further action found
H.R. 10357, Digital Asset Tax Certainty ActIntroduced September 14, 2026; approved 38-5 by Ways and Means on September 16, 2026Extends wash sales to "traded digital assets," excluding qualified U.S. dollar stablecoins; the Joint Committee on Taxation (JCX-47-26) describes this provision as applying to dispositions after the date of introduction; no House floor vote or Senate passage found as of December 1, 2026
  • What to do now: follow current law, but keep dates, quantities and prices for every sale and buyback. If H.R. 10357 becomes law as approved in committee, coins sold at a loss after September 14, 2026, and bought back within 30 days could need 2026 adjustments.
  • Other crypto rules (Form 1099-DA, wallet-by-wallet basis, staking and mining income, foreign exchange reporting) are in our guide at yclcpa.com/crypto.
13

Trading U.S. stocks through Hong Kong or Chinese brokers, or from China: how do wash sales work?

Start with your U.S. tax status. A nonresident without a green card who doesn't meet the 183-day test generally owes no U.S. tax on gains from simply trading U.S. stocks, so wash sales mostly don't matter. U.S. citizens, green card holders and other U.S. tax residents using a foreign broker face the same rules, with no 1099-B to help, plus FBAR and Form 8938.

  • Nonresidents (for example, Chinese residents trading U.S. stocks): a foreign individual in the U.S. fewer than 183 days in the year who just trades stocks generally isn't taxed on the gains; dividends are withheld on (10% for Chinese tax residents with a W-8BEN). Tax withheld in error is refunded on Form 1040-NR; see yclcpa.com/1040nr and yclcpa.com/1042s. In the year you become a U.S. resident (a dual-status year), trades from your residency start date on are reported under U.S. rules, wash sales included.
  • U.S. tax residents using Hong Kong or Chinese brokers: foreign brokers generally don't issue Form 1099-B. You report each trade on Form 8949 with box C (short-term) or F (long-term), apply the wash sale rule yourself and use code W. Convert the purchase and sale of trades in Hong Kong dollars or RMB at the exchange rate on each trade date and figure the gain in dollars.
  • Holding across borders: selling at a loss at a U.S. broker and buying the same U.S. stock (or the same company's Hong Kong listing) at a Hong Kong broker can also be a wash sale. Whether a U.S.-listed ADR and the same company's Hong Kong-listed shares are substantially identical hasn't been addressed by the IRS; it turns on conversion ratios and price linkage, so the conservative course is to avoid it.
  • Account reporting: foreign financial accounts totaling more than $10,000 require an FBAR (yclcpa.com/fbar), and foreign financial assets above the thresholds require Form 8938 (yclcpa.com/8938). Hong Kong-listed ETFs and Chinese mutual funds are usually PFICs, with their own rules (yclcpa.com/8621).
14

Do North Carolina, California and New York follow the federal wash sale rule?

Yes. North Carolina and New York start from federal AGI, so a loss disallowed federally is disallowed for state tax too. California adopts the federal rules on gain or loss from dispositions of property, including section 1091, through Revenue and Taxation Code section 18031. All three tax capital gains as ordinary income, with no long-term rate break.

StateWash sale rule2026 rate referenceWatch out for
North CarolinaFollows federal, starting from federal AGI3.99% flatNo separate adjustment; federally disallowed means disallowed in NC
CaliforniaFollows federal (R&TC §18031 adopts IRC Subchapter O)Up to 13.3% (including the 1% mental health tax)If your California and federal basis differ for other reasons (say, prior-year differences), adjust on California Schedule D (540)
New YorkFollows federal, starting from federal AGIUp to 10.9% state, plus city tax for NYC residentsA loss lost through an IRA repurchase isn't recoverable for state tax either

States generally follow the federal ordinary treatment for traders with a 475(f) election, but confirm the rules for your state. For the year you move, gains are generally sourced by your residency at the time of sale; see yclcpa.com/investtax.

15

How do you report it on Form 8949? Code W, code B and reconciling 1099-Bs

List the wash sale transaction on Form 8949 as usual, enter "W" in column (f) and the disallowed loss as a positive number in column (g); column (h) shrinks or goes to zero. Where box 1g already has it, copy it and check it. Where your broker missed it or got it wrong, enter the right amount. When you later sell the replacement shares and the 1099-B basis lacks the adjustment, use code B.

  1. Gather every account: composite 1099s from every broker for you and your spouse, equity plan statements (RSU, ESPP), IRA trade history and foreign broker statements.
  2. Sort by security: line up all trades in the same (or substantially identical) security across accounts by date, and flag any acquisition within 30 days of each loss sale.
  3. Check box 1g: same-account wash sales are already computed. If the amount is right, report code W with the box 1g amount.
  4. Add what the broker missed: cross-account, spouse, IRA, RSU and option wash sales; figure the disallowed amount and use code W.
  5. If the broker overstated it: enter the correct amount in column (g) and attach a statement explaining the difference, as the Form 8949 instructions require.
  6. Record the replacement shares' adjusted basis: when you sell them, if the 1099-B basis doesn't include the deferred loss (another broker or your spouse's account), use code B. With box A or D checked, enter the 1099-B basis in column (e) and a negative adjustment in column (g); with box B or E, enter the correct basis in column (e).
  7. IRA-triggered wash sales: code W to disallow, with no basis increase anywhere.
  • Heavy traders: the Form 8949 instructions allow summary reporting in some cases, but you need the detail behind any wash sale adjustment. We generally reconcile security by security from a cleaned-up trade list.
  • Crypto: starting with 2025, digital assets go in Form 8949 boxes G through L, not A through F. Crypto itself has no wash sale adjustment today; tokenized securities do (Form 1099-DA box 1i).
16

Key tax points at a glance

ItemWho / formNumber / ruleNotesAuthority / applies
Wash sale windowStock, securities, options, contracts30 days before and after; 61 daysBy trade date; losses onlyIRC §1091(a); Reg. §1.1091-1(a)
Disallowed lossReplacement sharesAdded to basisHolding period tacks onIRC §1091(d), §1223(3)
Partial repurchaseFewer bought than soldDisallowed pro rata to shares boughtMatched in order of acquisitionReg. §1.1091-1(c), (d)
IRA / Roth IRA repurchaseYou (avoid in your spouse's IRA too)Loss lost permanentlyNo IRA basis increaseRev. Rul. 2008-5
Spouse's purchaseAny accountWash saleBrokers won't show itPub. 550 (2025)
Stock awards, RSUs, ESPPEmployeesCounted on acquisition datePub. 550 uses a stock bonus examplePub. 550 (2025)
Broker reporting scopeForm 1099-B box 1gSame account, same CUSIP, coveredOthers may be reported voluntarilyForm 1099-B instructions; Reg. §1.6045-1(d)(6)(iii)
Reporting codesForm 8949 columns (f), (g)W; later basis fix with BColumn (g) positiveForm 8949 instructions (2025)
Not coveredCommodity futures, foreign currency, floating-NAV money funds—Also dealers' ordinary-course lossesPub. 550; Schedule D instructions
CryptoBitcoin and other coinsNot covered todayTokenized securities covered; H.R. 10357 pendingAs of December 1, 2026
Section 475(f) electionSecurities tradersBy April 15, 2027For 2027; trading securities exempt from wash salesIRC §475(d)(1), (f); Rev. Proc. 99-17
Form 3115Year 475(f) takes effectRev. Proc. 2025-23 §24.01Revocation under §24.02IRS Topic No. 429
Net capital lossIndividuals, Schedule D$3,000 a year ($1,500 MFS)Rest carries forward indefinitelyIRC §1211(b)
State taxNC, CA, NYFollow federalCalifornia R&TC §180312026
17

Common mistakes

!

"If I don't buy back within 30 days after the sale, I'm fine."

The window runs 30 days before and after. A purchase in the 30 days before the sale, including adding to the position, automatic investing, dividend reinvestment or an RSU vest, disallows the loss too.

!

"Box 1g is zero, so there's no wash sale."

Brokers only track the same account and CUSIP. Purchases at another broker, by your spouse, in an IRA, on an equity plan platform, through options or at a foreign broker won't appear, but the loss is still disallowed, and the IRS will want it fixed in an audit.

!

"Buying it back in my IRA just defers the loss."

A taxable-account repurchase defers it. A repurchase in your or your spouse's IRA or Roth IRA means the disallowed loss can't be added to IRA basis, so it's gone for good.

!

"Switching to another sponsor's ETF on the same index is always safe."

The IRS has no clear rule for different ETFs on the same index or different share classes of the same fund. It's a gray area. If you switch, know the risk you're taking; the facts decide, not the fund's name.

18

How should I handle my situation?

First list every account where you or your spouse hold the same kind of security, then check for any acquisition within 30 days of each loss sale. Here are the priorities in some common situations.

  • Situation A: an ordinary investor harvesting losses at year-end. Total this year's realized gains and losses across all accounts for both spouses, including IRAs and 401(k)s. Turn off reinvestment and automatic purchases in that security before selling. Choose "wait 31 days" or "switch to something not substantially identical"; it's too late in 2026 to buy first and sell later. Sell in December and buy back in January, and the loss can't be used in 2026.
  • Situation B: an employee with RSUs or ESPP. Before selling company stock at a loss, check for vesting or purchase dates in the 30 days before and after. Fix RSU basis on the 1099-B to the vesting-date value, then apply the wash sale rule. Reconcile the two platforms' records.
  • Situation C: several brokers, each spouse trading. Before filing, merge both spouses' trades from every broker by security. Report cross-account wash sales the 1099-B missed with code W, record the replacement basis, and use code B when those shares are sold.
  • Situation D: trading daily in the same stocks. First decide whether you qualify as a trader. If you do and want out of wash sales and the $3,000 limit, weigh the 475(f) election; for 2027, the statement is due by April 15, 2027. If you don't elect, try to resolve positions carrying wash sale adjustments before year-end so large deferred losses don't roll into next year.
  • Situation E: using a Hong Kong or Chinese broker, or living in China. Nonresidents who just trade U.S. stocks generally owe no U.S. tax on the gains; focus on the W-8BEN and dividend withholding. U.S. tax residents with foreign brokers get no 1099-B, so figure every wash sale yourself and file FBAR and Form 8938 as needed.
Why YCL

Bring every broker, your spouse's accounts and your IRA together, and get the wash sales and the return right

Wash sales go wrong less because of the rule and more because trades are scattered across accounts and no single 1099-B sees the whole picture. We merge every account, reconcile security by security, work out the disallowed losses and replacement basis, and make each adjustment on Form 8949. We don't sell financial products, manage money or recommend securities.

  • Big Four background, 15+ years in U.S. tax, 10 years of U.S.–China cross-border work, credentialed as CPA, EA and CAA
  • Individual returns: reconciling 1099-Bs from several brokers, tracking wash sales across accounts, spouses and IRAs, RSU and ESPP basis fixes, Form 8949 and Schedule D
  • Year-end planning: realized gains and losses to date, harvesting timing and dates, cross-year wash sales, room in the 0% bracket
  • Traders: trader status review, the 475(f) election statement and Form 3115, Form 4797 and Schedule C
  • Cross-border: converting foreign broker trades and figuring wash sales yourself, FBAR, Form 8938, PFICs and Form 1040-NR for nonresidents
  • For an in-depth working session first, book a paid consultation at yclcpa.com/advisory

How it works

  1. 1

    Free assessment

    A free 15-minute call about how many brokerage accounts you and your spouse have, plus IRAs, equity plans and foreign accounts, to see what reconciling wash sales will take.

  2. 2

    Organizing records

    You send every 1099-B, trade detail, equity plan statement and foreign statement. We merge them by security and flag purchases within 30 days of each loss sale.

  3. 3

    Tax filing

    We compute the disallowed losses and adjusted basis, prepare Form 8949, Schedule D, Form 1040 and state returns, attach any explanation needed, and you review and sign.

  4. 4

    Year-round follow-up

    A check of your harvesting dates before year-end, reminders of the 475(f) deadline for traders, and replies to any IRS or state letters from the same team.

19

FAQ

How do you count the 30 days in the wash sale rule?

Count 30 days back and 30 days forward from the trade date of the loss sale, plus the sale date: 61 days in all. For a sale on December 15, 2026, buying the same or substantially identical security in any account from November 15, 2026 through January 14, 2027 is a wash sale; buying on January 15, 2027 or later isn't.

I sold at a loss in a taxable account and bought the same stock in my IRA or Roth IRA. Can I deduct the loss?

No, and you never will. Rev. Rul. 2008-5 treats it as a wash sale, and the disallowed loss isn't added to the basis of the IRA or Roth IRA. A repurchase in a taxable account only defers the loss; one in an IRA erases it. Purchases in your spouse's IRA should be avoided too.

My 1099-B doesn't show a wash sale. Do I still need to adjust?

Yes, if one happened. Brokers must report only wash sales within the same account, for covered securities with the same CUSIP. Wash sales caused by another broker, your spouse, an IRA, an RSU vest or options won't show up, but the loss is still disallowed. Enter W in column (f) and the disallowed amount in column (g) of Form 8949, and adjust the replacement shares' basis when you sell them.

Does the wash sale rule apply to crypto now?

As of December 1, 2026, not under current law: section 1091 covers stock and securities, and crypto is treated as property. Tokenized securities and ETF shares are covered. H.R. 10357, approved by the House Ways and Means Committee on September 16, 2026, would extend the rule to traded digital assets sold after its September 14, 2026 introduction date, but it isn't law, so keep records.

Can YCL reconcile wash sales across my brokers and my spouse's accounts and prepare my return?

Yes. YCL CPA (yclcpa.com) merges trades from all your brokers, your spouse's accounts, IRAs, equity plans and foreign accounts, reconciles wash sales security by security, computes adjusted basis, and prepares Form 8949, Schedule D and your federal and state returns. We also check year-end harvesting dates and handle 475(f) elections for traders. We don't recommend securities, and results depend on your trades and the tax rules. Start with a free 15-minute call.

Sources

  • Internal Revenue Code §1091 (wash sales), §1223(3) (holding period), §1211(b), §475(c), (d)(1) and (f) (mark-to-market for traders), §871(a)(2)
  • Treas. Reg. §1.1091-1 (61-day period, matching order for partial repurchases, short sales); §1.1091-2 (basis of wash sale stock); §1.6045-1(d)(6)(iii) (broker wash sale reporting)
  • IRS: Publication 550 (Investment Income and Expenses, 2025, for use in preparing 2025 returns): Wash Sales, Options, Puts and Calls, Short Sales
  • IRS: Instructions for Form 8949 (2025): codes W and B; Instructions for Schedule D (Form 1040) (2025): Wash Sales, Traders in Securities, Mark-to-Market Election for Traders
  • IRS: Instructions for Form 1099-B (2027, the current version on IRS.gov as of December 2026): Box 1g, Wash Sale Loss Disallowed
  • IRS: Rev. Rul. 2008-5, 2008-3 I.R.B. 271 (January 22, 2008): IRA and Roth IRA repurchases; Rev. Rul. 85-87 (writing deep in-the-money puts); Rev. Proc. 99-17 (475(f) election); Rev. Proc. 2025-23, sections 24.01 and 24.02
  • IRS: Topic No. 429, Traders in securities (updated November 9, 2026); Notice 2014-21 (virtual currency treated as property)
  • Joint Committee on Taxation: Description of H.R. 10357, the "Digital Asset Tax Certainty Act" (JCX-47-26, September 14, 2026); House Ways and Means Committee vote of September 16, 2026 (38-5); S. 2207 (119th Congress, Sen. Lummis, 2025)
  • California Revenue and Taxation Code §18031; North Carolina DOR: 2026 individual income tax rate of 3.99%
  • YCL guides: yclcpa.com/investtax, /crypto, /ira, /1040nr, /1042s, /fbar, /8938, /8621, /1040es

Trades across several brokers, your spouse and an IRA? Not sure about wash sales?

Book a free 15-minute call. A CPA will check whether this year's loss sales tripped the 30-day window, which 1099-B items you need to adjust and how to time your year-end harvesting. No products, no stock picks.

Book a callQuick quote