Home / Wiki / W / Wash Sale

Wash Sale

Accounting and Financial ManagementUpdated 16 Nov 2026

A wash sale is a sale of stock or securities at a loss by a taxpayer who buys the same or a substantially identical security within a period running from 30 days before the sale to 30 days after it. Under United States tax law the loss on such a sale cannot be deducted in the year it is realised. It is not lost for good in most cases: it is added to the cost of the replacement holding and recognised when that holding is eventually sold.

The rule is set out in section 1091 of the Internal Revenue Code and is administered by the Internal Revenue Service (IRS). Its purpose is to stop investors from claiming a capital loss while keeping what is in substance the same investment. A wash sale should not be confused with a wash trade, which is a form of market manipulation in which a party trades with itself to create a false impression of activity.

01

How the rule works

The window covers 61 calendar days: the day of the sale and the 30 days on either side. A wash sale occurs if, within that window, the taxpayer buys substantially identical securities, acquires them in a fully taxable exchange, or enters into a contract or option to acquire them. The rule applies to losses only. A sale at a gain followed by a repurchase is taxed in the normal way.

Purchases by certain related parties count. The IRS treats a purchase by the taxpayer's spouse or by a corporation the taxpayer controls as triggering the rule. It has also ruled that a repurchase inside the taxpayer's individual retirement account (IRA) does so, and in that case the loss is not added to the basis of the IRA holding, so it is forfeited. The rule also applies to losses on closing a short sale.

If fewer shares are repurchased than were sold, only the matching part of the loss is disallowed, and shares are matched tax lot by tax lot in the order they were bought.

02

Basis adjustment and example

The disallowed loss is added to the cost basis of the replacement securities:

Adjusted basis=Cost of replacement shares+Disallowed loss\text{Adjusted basis} = \text{Cost of replacement shares} + \text{Disallowed loss}

The holding period of the shares sold is also carried over to the replacement shares, which can affect whether a later result is a short-term capital gain or a long-term one.

Suppose an investor buys 100 shares at $50 and sells them at $40, a loss of $1,000. Two weeks later the investor buys 100 shares of the same company at $42. The $1,000 loss is disallowed. The basis of the new shares becomes 4,200+1,000=5,2004{,}200 + 1{,}000 = 5{,}200 dollars, or $52 a share. If they are later sold at $55, the gain reported is 5,500−5,200=3005{,}500 - 5{,}200 = 300 dollars. That matches the overall result of the two round trips: a loss of $1,000 followed by a gain of $1,300 on the shares bought at $42.

03

What counts as substantially identical

The law does not define the term precisely, and the answer depends on the facts. Shares of the same company and class are identical. Shares of two different companies are generally not, even in the same industry. Options and convertible securities can be substantially identical to the underlying shares depending on their terms. The position of two funds from different managers that track the same index has not been settled by the IRS, and advisers differ on how much risk it carries.

The question matters most in tax-loss harvesting, the practice of selling positions at a loss to offset gains. Investors who wish to stay in the market commonly wait out the 30 days or buy a similar but not identical investment, an exchange sometimes called a tax swap. Losses that are allowed but exceed the year's limits can be used later as a tax loss carryforward.

04

Reporting

A broker-dealer must report wash sales on Form 1099-B when the sale and repurchase take place in the same account and involve securities with the same CUSIP number. The taxpayer's own duty is wider. It covers all of the taxpayer's accounts, including those at other firms and those of a spouse, and securities that are substantially identical without being the same issue. The adjustment is entered on the form used to report sales of capital assets.

05

Scope and exceptions

The rule applies to stock and securities, including shares of a mutual fund or exchange-traded fund, bonds, and options on them. Dealers acting in the ordinary course of business are outside it, and so are traders who have made a valid mark-to-market election, since their positions are treated as sold at year end in any case.

Cryptocurrencies and other digital assets have generally been treated by the IRS as property and not as securities, and on that reading they have fallen outside section 1091. Proposals to extend the rule to them have been put forward in Congress more than once, so the current position should be checked against the latest law. This entry describes the rule in general terms and is not tax advice.

Last updated 16 Nov 2026