Understanding Wash Sale
A wash sale is the transaction that occurs when an investor sells a stock or security at a loss and then purchases the same or a substantially identical stock or security within thirty days before or after the sale date, creating the exact circumstance that Internal Revenue Code Section 1091 — the wash sale rule — was written to police.
The wash sale itself is not a violation or a penalty; it is simply the pattern of trades — a loss sale bracketed by a matching purchase — that triggers the tax consequences imposed by the rule. Every wash sale rule disallowance begins with the occurrence of an actual wash sale, but the term wash sale describes the transaction, while the wash sale rule describes the law that responds to it. Understanding precisely what does and does not constitute a wash sale is essential for investment advisers, registered representatives, and tax preparers, because the transaction can occur through mechanisms that an investor never consciously initiated, and because the consequences of failing to identify one can produce an unpleasant surprise when a client's tax return is prepared.
Definition and Overview
A wash sale occurs whenever three conditions are all present: an investor sells stock or securities at a loss, the investor purchases the same or substantially identical stock or securities within the sixty-one day window surrounding the sale — thirty days before, the day of the sale, and thirty days after — and the repurchase restores the same or a functionally equivalent economic position that the loss sale had just closed out. All three conditions must be satisfied simultaneously — a loss sale without a matching repurchase is simply a loss sale, and a repurchase without a preceding loss sale is simply a purchase; only the combination of the two within the specified window constitutes a wash sale.
It is worth emphasising that a wash sale is defined entirely by the objective pattern of transactions, not by the investor's subjective purpose. An investor does not need to be attempting to harvest a tax loss for a wash sale to occur. Two entirely independent trading decisions — a loss sale made for portfolio rebalancing reasons and a repurchase made weeks later because the investor changed their mind about the stock's prospects — can combine to create a wash sale purely because of their timing, even though neither trade was motivated by tax considerations. This is one of the most frequently misunderstood aspects of the concept: many investors assume that because they did not intend to generate an artificial loss, the wash sale rule cannot apply to them, when in fact the rule is triggered mechanically by the transactional facts alone.
The Origin and Purpose of the Term
The term wash sale derives from the colloquial idea of washing a transaction clean — the investor's economic position is effectively left unchanged, or washed, even though a sale and a nominal taxable event occurred in between. The concept predates the modern securities markets considerably; the underlying statutory provision has existed in the tax code since the early twentieth century, reflecting a long-standing concern that taxpayers might otherwise sell depreciated securities purely to generate a deductible loss on their tax return while simultaneously reacquiring the identical economic exposure, leaving their actual investment position completely unaffected.
The IRS and the courts have consistently treated a wash sale as an artificial transaction from a tax policy perspective. The investor has not genuinely altered their market exposure or accepted the economic risk of exiting the position — they have merely manufactured a paper loss for tax purposes while their actual holdings, from an economic standpoint, remain essentially the same as before the sale. This is the conceptual foundation for why the wash sale rule disallows the loss deduction rather than simply taxing the transaction normally: allowing the deduction would let taxpayers reduce their tax liability without accepting any of the economic consequence that a genuine loss transaction is supposed to represent.
A Concrete Example
An investor holds two hundred shares of a technology stock purchased at sixty dollars per share — a total cost basis of twelve thousand dollars. The stock falls to forty dollars per share, and the investor sells all two hundred shares for eight thousand dollars, realising a four thousand dollar capital loss. Twelve days later, believing the stock has further upside, the investor repurchases two hundred shares of the same stock at forty-two dollars per share — a total cost of eight thousand four hundred dollars. Because the repurchase occurred within thirty days of the loss sale and involved the identical security, a wash sale has occurred, and the investor is not permitted to deduct the four thousand dollar loss in the year of the sale. As described in the discussion of the wash sale rule itself, the disallowed loss is not usually destroyed outright — it is added to the cost basis of the newly purchased shares, deferring the tax benefit to a future sale rather than eliminating it.
Partial Wash Sales and Multiple Tax Lots
A wash sale does not have to involve the investor's entire position, and this partial application is a frequent source of confusion. If an investor sells two hundred shares at a loss but repurchases only one hundred shares within the sixty-one day window, only the loss attributable to the one hundred repurchased shares is disallowed as a wash sale; the loss attributable to the remaining one hundred shares, for which no replacement was purchased, remains fully deductible in the ordinary way.
This proportional treatment becomes considerably more complicated when an investor holds multiple tax lots of the same security purchased at different times and different prices, and sells only some of those lots while repurchasing shares in a pattern that overlaps the sixty-one day window for some lots but not others. Brokers and tax software generally match wash sale disallowances to specific lots using either a first-in-first-out convention or the investor's designated lot identification method, and the resulting basis adjustments can differ meaningfully depending on which lots are treated as the ones triggering the wash sale. Investors and their advisers who engage in frequent trading of the same security are well advised to review lot-level trade confirmations carefully rather than relying solely on aggregate position figures when assessing whether a wash sale has occurred.
Wash Sale Versus the Wash Sale Rule
The wash sale is the event; the wash sale rule is the statute that responds to it. This distinction matters because a wash sale can occur without the investor intending any tax avoidance whatsoever — an investor who sells a stock for reasons entirely unrelated to taxes and then independently decides, weeks later but still within the window, to repurchase it has triggered a wash sale regardless of motive. The wash sale rule does not require intent to evade tax; it applies mechanically whenever the transactional pattern of a wash sale is present, which is why investment advisers must track client trading activity carefully rather than relying on client intent to avoid inadvertent wash sales.
This mechanical, intent-independent quality of the rule is precisely why the wash sale concept is tested separately from the wash sale rule's mechanics on securities licensing examinations. A candidate may be asked simply to identify whether a described pattern of trades constitutes a wash sale, without any need to analyse the resulting basis adjustment or holding period consequences that the wash sale rule imposes once a wash sale has been identified. Recognising the transactional pattern is the necessary first step before any of the rule's downstream consequences become relevant.
Common Ways a Wash Sale Is Triggered
A wash sale can be triggered by a repurchase after the loss sale, by a purchase before the loss sale within the preceding thirty days, by a purchase made in a spouse's separate account, by a purchase made inside an individual retirement account, by the reinvestment of dividends through an automatic dividend reinvestment plan that happens to fall within the window, or by the exercise of a call option that results in the acquisition of substantially identical stock. Each of these scenarios produces the same underlying transactional pattern — a loss sale coupled with a repurchase of the same or substantially identical security within the sixty-one day window — even though the mechanism of repurchase differs.
The dividend reinvestment scenario deserves particular attention because it is among the least intuitive triggers and among the most commonly overlooked by investors managing their own portfolios. An investor enrolled in an automatic dividend reinvestment plan who sells a stock at a loss may not realise that a small dividend payment on a related holding, automatically reinvested into additional shares of the very security just sold, falls within the thirty-day window and triggers a wash sale on some or all of the loss — even though the investor took no deliberate action to repurchase anything. Because the reinvestment is automatic and often for a modest dollar amount relative to the original position, investors frequently discover this type of wash sale only when their broker's year-end tax reporting documents reflect a disallowed loss they did not anticipate.
The option exercise scenario is similarly non-obvious. An investor who sells a stock at a loss and separately holds or acquires a call option on that same stock that is subsequently exercised within the window has effectively reacquired the underlying shares, and the wash sale rule treats this reacquisition the same as an outright market purchase. The rule reaches the option itself as well as its exercise, but in one direction only — entering into a contract or option to acquire substantially identical stock within the window, such as buying a call, is treated in the same way as acquiring the stock, even before any shares are delivered, whereas buying a put option gives its holder a right to sell the stock rather than to acquire it, and IRS Publication 550 states that buying a put option is generally treated as a short sale — the opposite of reacquiring the position that the loss sale closed out.
Short Sales and the Wash Sale Concept
While the classic wash sale scenario involves a long position sold at a loss and then repurchased, the wash sale concept also extends to short sales in certain circumstances. An investor who closes a short sale at a loss and then, within the sixty-one day window, enters into another short sale of the same or substantially identical security, or acquires an option or other position that is substantially identical to the security involved in the short sale, can trigger a wash sale with respect to the loss on the short sale closing transaction. This extension of the concept to short positions is less frequently tested than the standard long-position pattern but reflects the same underlying policy concern — that an investor should not be permitted to claim a tax loss while maintaining continuous economic exposure to the same security through an equivalent but technically distinct position.
How Brokers Report a Wash Sale
Since brokers became responsible for reporting adjusted cost basis information to the IRS on Form 1099-B for most securities purchased in recent years, brokers are required to track and report wash sales that occur within a single account involving identical CUSIP numbers — meaning the exact same security, not merely a substantially identical one. When a broker identifies such a wash sale, the disallowed loss amount is reported, and investors generally see this reflected using code W when the transaction is reported on Form 8949 of their tax return, with the disallowed amount added back as a positive adjustment that reduces the reported loss.
It is critical for investors and their advisers to understand that broker-level wash sale reporting is narrower than the full scope of the wash sale rule itself. A broker's automated system will typically catch a wash sale only when the identical CUSIP is repurchased within the same account at that same broker. It will generally not detect a wash sale that spans two different brokerage firms, a wash sale involving a spouse's separate account, a wash sale triggered by a purchase inside an IRA rather than a taxable brokerage account, or a wash sale involving a substantially identical but not identical security, such as a different share class of the same mutual fund or a different but economically equivalent exchange-traded fund.
Taxpayers remain personally responsible for identifying and reporting these broker-invisible wash sales themselves, even though no 1099-B will flag them, and this gap between what brokers automatically catch and what the law actually requires is one of the most consequential practical traps in tax-loss harvesting.
Wash Sales Across Multiple Accounts and Advisers
The cross-account gap in broker-level reporting has particular significance for clients who work with more than one investment adviser or maintain brokerage relationships at multiple firms. An adviser managing one account for a client has no visibility into trades the client or another adviser executed in a separate account at a different institution, which means a wash sale can be created entirely inadvertently when two advisers, each unaware of the other's activity, independently sell and repurchase the same security in overlapping accounts within the sixty-one day window.
Firms that offer coordinated household-level tax management increasingly build systems specifically designed to monitor wash sale exposure across all of a client's linked accounts for this reason, and advisers who do not have access to such tools should routinely ask clients whether they hold other accounts that might be trading the same securities before executing a tax-loss harvesting transaction.
Wash Sales and Automated Investment Programs
The growth of robo-advisors and automated tax-loss harvesting programmes has introduced a further wrinkle to the wash sale concept. These programmes are generally designed with wash sale avoidance built directly into their trading logic, automatically substituting a similar but not substantially identical security when harvesting a loss and imposing an internal cooling-off period before repurchasing the original holding. However, when a client maintains a self-directed account alongside an automated advisory account, or when a client holds the same or a closely related security through more than one automated programme simultaneously, the automated system managing one account has no visibility into trading activity occurring in the other, and a wash sale can be created across the two despite each individual programme functioning exactly as designed. Advisers who recommend combining self-directed trading with an automated tax-loss harvesting service should make clients aware of this interaction, since the convenience of automation does not eliminate the need for household-level awareness of overlapping positions.
Wash Sales Inside a Straddle
Stock held as part of a straddle meets a version of the wash sale concept with a different consequence. IRS Publication 550 describes a straddle as any set of offsetting positions on personal property and illustrates it with stock bought together with an offsetting put option. Where stock or securities make up a position in a straddle, a loss on disposing of them cannot be deducted if, within the period beginning thirty days before the disposition and ending thirty days after it, substantially identical stock or securities were acquired, or a contract or option to acquire them was entered into; the loss is instead carried over to the following tax year.
The carryover does not release the loss simply because a new year has begun. Publication 550 explains that a loss disallowed in one year under that first rule is not allowed in the following year unless the substantially identical stock or securities that caused the disallowance were disposed of during that following year, and that even then the carried-over loss is not allowed if either of the straddle rules disallows it again.
The second rule reaches positions that are not substantially identical at all. A loss on disposing of less than all the positions of a straddle cannot be deducted to the extent that unrecognised gain at the close of the tax year in a successor position, or in a position offsetting the loss position or a successor position, is more than any loss disallowed under the first rule, a successor position being one entered into within thirty days before or after the sale that offsets a position which was itself offsetting to the loss position. In the Publication 550 illustration, an investor who disposes of the long side of a straddle at a ten dollar loss and a week later enters into a new long position offsetting the retained short side, not substantially identical to the position sold, can deduct none of the loss that year where the new position carries ten dollars of unrecognised gain at year end.
Losses on Sales to Related Persons
A separate rule can disallow a loss with no repurchase at all. Under Section 267 of the Internal Revenue Code, as IRS Publication 550 explains it, no deduction is allowed for a loss on the sale or trade of property, other than a distribution in complete liquidation of a corporation, where the transaction is directly or indirectly between the taxpayer and a related party, a group that for an individual includes members of the family, defined for this purpose as only brothers and sisters, half-brothers and half-sisters, spouse, ancestors and lineal descendants, and a corporation in which the taxpayer directly or indirectly owns more than fifty percent in value of the outstanding stock. A parent who sells depreciated shares to an adult child therefore cannot deduct the loss, whatever the parent does afterwards.
The rule is not confined to sales made face to face. Publication 550 states that a taxpayer cannot deduct a loss on the sale of stock through a broker if, under a prearranged plan, a related party buys the same stock the taxpayer had owned, while a trade between related parties through an exchange that is purely coincidental and not prearranged falls outside that treatment.
The disallowed loss can still matter later, but to the buyer rather than the seller. If the buyer, as the original transferee who acquired the property by purchase or exchange, later sells or trades it at a gain, the buyer recognises the gain only to the extent that it is more than the loss previously disallowed to the seller; if the buyer instead sells at a loss, the loss that was not allowed to the seller cannot be recognised. So where a mother sells her son for fifteen thousand dollars stock that cost her twenty thousand, and he later sells it to an unrelated buyer for twenty-two thousand dollars, only two thousand dollars of his seven thousand dollar gain is reportable. Section 267(d)(2) of the Code withholds that relief where the seller's loss was disallowed by reason of the wash sale rules rather than the related party rule.
Constructive Sales of Appreciated Positions
The wash sale concept reaches only losses, and a separate rule addresses gains on positions that are hedged rather than sold. IRS Publication 550 explains that a taxpayer is treated as having made a constructive sale of an appreciated financial position in stock, a partnership interest or certain debt instruments, a position being appreciated if disposing of it would produce a gain, where the taxpayer enters into a short sale of the same or substantially identical property, enters into an offsetting notional principal contract relating to the same or substantially identical property, or enters into a futures or forward contract to deliver the same or substantially identical property. The taxpayer must then recognise gain as if the position had been disposed of at its fair market value on the date of the constructive sale, and the position takes a new holding period beginning on that date.
The gain recognised on the constructive sale is accounted for when the hedge is unwound. Publication 550 directs that when the taxpayer later closes the transaction, the gain on closing is reduced, or the loss increased, by the gain recognised on the constructive sale. A transaction treated as a constructive sale of one appreciated financial position is not treated as a constructive sale of any other appreciated financial position, so long as the taxpayer continues to hold the original position.
A short-lived hedge can fall outside the rule altogether. Publication 550 provides that a transaction is not treated as a constructive sale if the taxpayer closed it on or before the thirtieth day after the end of the tax year, held the appreciated financial position throughout the sixty-day period beginning on the date the transaction was closed, and did not have the risk of loss reduced at any time during that sixty-day period by holding certain other positions. The rule also looks through to related persons: a taxpayer is treated as having made a constructive sale where a related person enters into one of the listed transactions with a view toward avoiding constructive sale treatment.
Examination Relevance and Key Takeaways
The wash sale is tested on the Series 65 examination as the triggering transaction for the wash sale rule, and candidates must be able to identify when a wash sale has occurred based on the timing and substance of an investor's trades rather than their stated intent. Examination questions frequently test the concept through scenario-based patterns — describing a sequence of trades across dates and asking the candidate to determine whether a wash sale exists, whether it is partial or complete, and whether an unusual triggering mechanism such as a dividend reinvestment plan or an IRA purchase is involved.
The key points to retain are these: a wash sale requires a loss sale and a repurchase of the same or substantially identical security within the sixty-one day window spanning thirty days before the sale, the sale date, and thirty days after; the wash sale is the transaction itself, while the wash sale rule is the tax provision that disallows the loss deduction when a wash sale occurs; a wash sale can be triggered unintentionally, including through dividend reinvestment plans, spousal accounts, individual retirement account purchases, or option exercises, and it applies regardless of the investor's motive for the trades.
A wash sale can also be partial, disallowing only the portion of the loss attributable to the shares actually repurchased within the window, and the concept extends beyond ordinary long-position purchases and sales to closed short sale positions in appropriate circumstances. Finally, broker-reported wash sale tracking on Form 1099-B is narrower than the full legal scope of the concept, catching only same-account, identical-CUSIP repurchases and leaving cross-account, cross-broker, spousal, IRA, and substantially-identical-security wash sales for the taxpayer and their adviser to identify independently.


