BLACK FRIDAY 30% OFF
BLACK FRIDAY SALE 30% OFF MASTERCLASSES USE CODE BLACKFRIDAY SALE STARTS IN 02d 07h 43m 04s
Skip to main content

US Wash Sale Rule for Stock Traders: 30 Days Before and After a Loss Explained

The US wash-sale rule generally prevents an immediate federal tax deduction for a loss when a taxpayer disposes of stock or securities at a loss and acquires substantially identical securities within 30 days before or after the sale. The practical window encompasses the loss-sale date plus 30 calendar days on either side—a 61-day period—not simply ‘do not buy back for 30 days afterwards’. For an eligible taxable-account replacement, the disallowed loss normally adjusts the new holding’s tax basis rather than disappearing entirely, subject to important exceptions.

The Internal Revenue Service’s Publication 550 wash-sale section explains the loss disallowance, matching and reporting. This is US federal tax education for US-taxable securities transactions, not UK share identification: Traders MBA’s separate UK 30-day share matching guide addresses materially different HMRC rules. It is also not a substitute for professional advice on a particular taxpayer’s circumstances.

Worked calculation and account consequence
InputValueInterpretation
Original stock basis100 shares × $10$1,000
Sale proceeds100 × $7.50$750
Original loss$750 − $1,000−$250
Replacement purchase100 shares for $800Within 30-day window
Adjusted replacement basis$800 + $250$1,050

Hypothetical computations; exact broker rules, client classification and transaction costs vary.

The replacement can be acquired before the loss sale

Suppose a US taxable investor buys 100 shares, sells them at a loss and replaces them with substantially identical shares 12 days later. That is an obvious potential wash sale. But buying the new shares 10 days before selling the old losing shares can create the same type of issue, because the lookback window includes qualifying purchases during the 30 days before the loss sale. A trader averaging down while closing a previously held losing block should therefore examine both directions in time.

The rule involves acquiring substantially identical shares or qualifying contracts/options, not simply seeing the same ticker on a watchlist. Some ETF and option replacement questions can be nuanced. The IRS examples also identify transactions in controlled entities or spouse accounts; a single brokerage app may not have full visibility across the taxpayer’s accounts.

The US wash-sale matching window
30 days before

Qualifying acquisitions may match the loss disposal

Loss-sale date

Record loss, quantity, cost basis and sale date

30 days after

Qualifying replacement purchases can defer matched loss

61 calendar days including the disposal day. Tax basis treatment depends on replacement type and account; IRA cases can differ.

Worked IRS-style example: $250 loss carried into replacement shares

Assume 100 shares originally cost $1,000, or $10 each. They are sold for $750, generating a realised transaction loss of $250 before costs. Within 30 days the investor buys 100 substantially identical shares for $800. Under the ordinary taxable-account wash-sale example, the $250 loss is disallowed at the time of the first sale and added to replacement cost basis: $800 + $250 = $1,050, or $10.50 per replacement share.

If those replacement shares are later sold in a transaction to which no further loss-deferral rule applies, that adjusted basis affects the later gain/loss. In a simplified sale for $1,100, the taxable gain against $1,050 basis would be $50 rather than $300. The original $250 economic loss was not magically reversed by repurchasing shares.

Partial replacement: only matched shares may be affected

Suppose an investor sells 100 losing shares with a total $500 loss, then acquires only 40 substantially identical shares within the relevant window. Under a simplified equal per-share loss, 40/100 of the loss, or $200, may be deferred into the replacement shares, while the other $300 relates to unmatched shares and may remain eligible for deduction, subject to all other rules. Where purchases occur in different batches, the IRS prescribes matching in acquisition order.

Do not assume that one replacement share disallows the entire loss on a 1,000-share sale or that every loss can be matched indiscriminately. Position sizes, acquisition dates, share lots and account identity matter. Cost-basis calculation may also need commissions and previous adjustments.

Why a Form 1099-B may not catch every wash sale

Broker reporting in Box 1g of Form 1099-B typically captures specified covered securities transactions when the substantially identical replacement shares have the same CUSIP and are acquired in the same account under reporting rules. The IRS warns that a wash sale can be legally relevant even when not shown on Form 1099-B, including activity across accounts or certain related holdings. Relying solely on a broker’s automatically adjusted P/L display can be incomplete.

US Form 8949 uses a ‘W’ adjustment code for disallowed wash-sale loss reporting where applicable. Taxpayers should maintain source cost, executed quantity, sale and purchase dates, acquisition history and replacement holding details rather than improvising the tax calculation after year-end.

An IRA/Roth IRA replacement is a special warning

The IRS states that purchases of substantially identical securities in an individual’s IRA or Roth IRA during the relevant wash-sale window can disallow the taxable-account loss, with different basis treatment from an ordinary taxable replacement. That means the intuitive strategy of selling for a taxable loss and immediately repurchasing inside an IRA may not simply move the deferred loss into a higher basis. Taxpayers should examine IRS guidance and specialist advice before coordinating taxable and retirement-account trades.

A wash-sale test may also involve options or contracts to acquire substantially identical shares. Avoid assuming a long call position is always irrelevant because it is a derivative rather than the underlying stock. The actual contract and statutory definitions determine treatment.

Why the UK 30-day share rule is not interchangeable

The UK’s share identification ordering rules can match same-day acquisitions, acquisitions within 30 days after disposal and Section 104 pools for relevant securities. That is a different tax regime with different calculations and applicability from US Internal Revenue Code Section 1091. A UK taxpayer researching US-listed shares should not adopt US wash-sale basis adjustments simply because the underlying instrument trades on Nasdaq.

Where a trader has dual tax obligations or foreign brokerage reporting, two jurisdictions may need separate analyses. Traders MBA explains the market and reporting mechanics for educational purposes; a specialist tax adviser is appropriate for cross-border or multi-account situations.

A repeatable US wash-sale audit

  1. List all relevant loss-making sales and security identifiers, not merely stock tickers.
  2. Search qualifying acquisitions 30 calendar days before and after every relevant loss sale.
  3. Include related account activity, options and retirement accounts where relevant.
  4. Match replacement quantities in correct acquisition order rather than using an all-or-nothing assumption.
  5. Calculate disallowed loss and adjusted replacement basis under IRS rules.
  6. Reconcile Form 1099-B reporting and any Form 8949 adjustments, noting broker omissions.
  7. Seek qualified US tax advice for options, IRAs, spouse accounts, business trader elections and complex securities.

The purpose is accurate tax-record reconciliation, not an instruction to deliberately sell losing investments for tax optimisation.

One loss sale, different replacement quantities

Qualifying replacementAssumed original loss on 100 sharesPotential loss deferred under simple equal-share assumption
0 shares$500$0 under this fact pattern
40 shares$500$200
100 shares$500$500

The figures are mathematical teaching scenarios assuming the same $5 loss per original share and one uncomplicated replacement batch. Real wash-sale calculations can involve different acquisition dates, several tax lots, options, related taxpayers and account-specific treatment. The IRS requires particular acquisition-order matching and adjustments. A brokerage account’s adjusted average price display is not a substitute for maintaining the complete acquisition/disposal history across all relevant accounts.

A US-listed security is not automatically under US personal capital gains rules

A UK-resident retail trader holding a US-listed share in a UK account should not automatically apply the US wash-sale tax rule solely because the exchange is Nasdaq. The taxpayer’s residence, status, wrapper and applicable law matter; some individuals can have multi-jurisdiction obligations. The article concerns US federal wash-sale mechanics for accounts and taxpayers to which those rules apply, while the dedicated UK guide explains same-day matching, 30-day matching and Section 104 pooling. The identical ’30-day’ phrase conceals different tax calculations, and the two should not be combined into one cost-basis formula.

Frequently asked questions

Does the wash-sale window include purchases before the loss sale?

Yes. The relevant US rule examines qualifying acquisitions within 30 days before or after the disposal.

Is my disallowed loss always permanently lost?

For ordinary taxable replacements, it is generally deferred into adjusted basis, but exceptions such as IRA transactions differ.

Does my broker’s Form 1099-B capture all wash sales?

Not necessarily, especially across accounts or securities beyond automatic reporting conditions.

Does this US rule determine the tax treatment of UK share disposals?

No. HMRC’s same-day/30-day share matching and pooling rules are distinct.

Do options ever create wash sales?

Yes, certain options and contracts involving substantially identical securities can fall within the US rules.

Original sources

Important: General trading education, not legal, tax or personal financial advice. Rules may differ by jurisdiction, broker and current account status. Trading and leverage can cause substantial loss.


Stay Ahead of the Markets

Get market analysis, financial news and practical trading insights delivered straight to your inbox.