A wash sale occurs when an investor sells a security at a loss and then repurchases the same or a substantially identical security within a short time window surrounding that sale. Under U.S. tax law, this sequence prevents the investor from claiming the capital loss for current tax purposes. The rule applies regardless of whether the repurchase happens before or after the loss sale, as long as it falls within the defined period.
Plain‑English definition
In practical terms, a wash sale means selling an investment to generate a tax loss while effectively keeping the same economic position. The Internal Revenue Service (IRS) treats this as an attempt to obtain a tax benefit without materially changing investment exposure. Because the investor is considered not to have truly exited the position, the loss is temporarily disallowed.
How the IRS wash sale rule operates
The wash sale rule is triggered when a loss sale occurs and the investor buys the same or a substantially identical security within 30 days before or 30 days after the sale date. This creates a 61‑day window in total. If the rule applies, the loss is not deductible in the year of the sale, even though the trade itself is otherwise valid and executed at market prices.
What “substantially identical” means
The term “substantially identical” is not exhaustively defined in the tax code, which makes it a frequent source of confusion. It clearly includes the same stock, bond, or option, but can also apply to contracts or securities that are economically equivalent, such as certain options or convertible instruments. The key question is whether the replacement investment replicates the same underlying economic risk and return.
Why wash sales exist
The purpose of the wash sale rule is to protect the integrity of the tax system by preventing artificial loss harvesting. Without this rule, investors could repeatedly sell and immediately repurchase the same asset solely to reduce taxable income, while maintaining the same investment position. The rule ensures that tax losses reflect genuine changes in ownership, not temporary transactions designed only for tax reporting.
Disallowed does not mean lost forever
When a loss is disallowed under the wash sale rule, it is deferred rather than eliminated. The disallowed loss is added to the cost basis of the newly purchased security, which increases the amount of loss or reduces the amount of gain when that replacement security is eventually sold. This deferral mechanism preserves the economic loss but delays when it can be recognized for tax purposes.
Why this matters for retail investors
Retail investors using taxable brokerage accounts frequently trigger wash sales unintentionally, especially when rebalancing portfolios or reinvesting after short‑term price declines. Because brokers may not always detect wash sales across different accounts or spouses, the responsibility for accurate reporting ultimately falls on the taxpayer. Understanding what a wash sale is and why it exists is essential for correctly tracking cost basis, reporting capital losses, and avoiding unexpected tax adjustments.
The IRS Wash Sale Rule: Core Mechanics and the 61‑Day Window
The wash sale rule is activated by the timing and substance of related transactions, not by investor intent. Once a sale produces a realized capital loss, the Internal Revenue Code requires a review of purchases made around that sale to determine whether the loss is currently deductible. This review centers on a defined 61‑day window and the acquisition of substantially identical securities.
The 61‑day measurement period
The wash sale window spans 61 calendar days: 30 days before the loss sale, the day of the sale itself, and 30 days after the sale. If substantially identical securities are purchased at any point during this window, the loss is subject to disallowance. The inclusion of days before the sale means that a purchase can retroactively convert an otherwise deductible loss into a wash sale.
This structure prevents investors from claiming losses while maintaining or promptly restoring the same economic position. The rule applies regardless of whether the replacement purchase occurs before or after the loss sale. Timing, not sequence, governs the analysis.
What transactions trigger the rule
A wash sale occurs when three elements are present: a sale or disposition at a loss, a purchase of substantially identical securities within the 61‑day window, and ownership or control of the replacement security. The purchase can occur in any taxable brokerage account owned by the taxpayer. It is not limited to the same account in which the loss was realized.
Both purchases and acquisitions through reinvestment programs, such as automatic dividend reinvestment plans, count as replacement purchases. Options to buy substantially identical securities may also trigger the rule, even if the option is not exercised.
Partial wash sales and multiple tax lots
When the number of replacement shares is fewer than the number of shares sold at a loss, the wash sale is partial. Only the portion of the loss attributable to the replacement shares is disallowed, while the remaining loss may still be deductible. This requires matching sold shares to replacement shares on a share‑by‑share basis.
In accounts with multiple tax lots, each lot is analyzed separately. Different acquisition dates and cost bases can lead to a mix of allowed and disallowed losses from a single series of trades. Accurate lot tracking is therefore essential for correct reporting.
How the disallowed loss is deferred
A disallowed wash sale loss is added to the cost basis of the replacement security. Cost basis is the amount used to calculate gain or loss upon a future sale. Increasing the basis preserves the economic loss by shifting it forward in time.
In addition to the basis adjustment, the holding period of the original shares is carried over to the replacement shares. This holding period determines whether a future gain or loss is classified as short‑term or long‑term, which affects the applicable tax rate.
Scope across accounts and taxpayers
The wash sale rule applies across all accounts owned by the taxpayer, including multiple brokerage accounts. Losses can be disallowed even if the sale and replacement purchase occur in different firms, since brokers generally do not coordinate wash sale tracking. The taxpayer is responsible for aggregating this activity when filing a return.
Transactions involving a spouse’s account may also implicate the rule under related‑party principles, depending on the facts. Because the tax return reflects household‑level reporting in many cases, coordination between accounts is critical to avoid inadvertent disallowance.
Wash sales involving tax‑advantaged accounts
If a loss sale in a taxable account is followed by a purchase of substantially identical securities in a tax‑advantaged account, such as an individual retirement account (IRA), the loss is disallowed. Unlike taxable replacement purchases, the disallowed loss is not added to the basis of the IRA assets. As a result, the loss is permanently lost for tax purposes.
This outcome reflects the rule’s emphasis on preventing loss recognition when the investor retains economic exposure, even indirectly. It also illustrates why understanding the mechanics of the 61‑day window is essential for accurate tax reporting and loss tracking.
How a Wash Sale Is Triggered: Substantially Identical Securities Explained
A wash sale is not triggered solely by timing. It is triggered when a loss sale is paired with the acquisition of substantially identical securities within the 61‑day window. Understanding what qualifies as substantially identical is therefore central to determining whether a loss must be deferred.
The Internal Revenue Code does not provide a single exhaustive definition. Instead, the determination relies on facts and circumstances, guided by IRS rulings, court cases, and long‑standing administrative interpretation.
Meaning of “substantially identical”
Substantially identical securities are investments that provide the same or nearly the same economic exposure to the taxpayer. The focus is on whether the replacement security replicates the rights, risks, and return profile of the security sold at a loss.
Exact identity is the clearest case. Selling shares of a company and repurchasing the same company’s common stock within the wash sale window automatically triggers the rule. The same result applies when the purchase occurs in a different account or brokerage.
Common stock, preferred stock, and bonds
Shares of common stock in the same corporation are substantially identical to one another regardless of when or where they are purchased. By contrast, common stock and preferred stock of the same company are generally not substantially identical, because they carry different rights to dividends, liquidation, and voting.
Bonds require closer analysis. Bonds issued by the same issuer may be substantially identical if they have the same maturity date, interest rate, and terms. If the maturities, coupons, or conversion features differ meaningfully, the bonds are typically treated as distinct securities.
Mutual funds and exchange‑traded funds (ETFs)
Mutual funds and ETFs can create confusion because they often track similar benchmarks. Two funds that track the same index using the same methodology are more likely to be viewed as substantially identical than funds tracking different indexes, even if the indexes overlap significantly.
However, similarity alone is not enough. Funds that track different indexes, use different weighting schemes, or follow different investment strategies are generally not considered substantially identical, even if their holdings appear comparable. The analysis centers on whether the funds are effectively interchangeable.
Options, contracts, and derivative exposure
Options and other derivatives can also trigger a wash sale. Acquiring a call option to purchase the same security sold at a loss may be treated as acquiring substantially identical property, because the option preserves economic exposure to price movements.
Convertible securities raise similar issues. A convertible bond that can be readily exchanged for the same stock sold at a loss may be considered substantially identical, depending on how closely the conversion feature mirrors direct ownership.
What does not typically trigger a wash sale
Purchasing securities in a different company, even within the same industry, does not create a wash sale. Selling one technology stock at a loss and buying a competitor’s stock generally avoids the rule because the securities do not represent the same ownership interest.
Likewise, buying a diversified fund after selling an individual stock at a loss usually does not trigger a wash sale. The diversified fund does not replicate the specific economic exposure of a single issuer, even if that issuer is a significant holding.
Why the distinction matters for tax reporting
The substantially identical standard determines whether a loss is currently deductible or must be deferred through a basis adjustment. Because brokers may apply differing interpretations or fail to detect cross‑account activity, the taxpayer must independently evaluate whether replacement purchases fall within the rule.
Misidentifying a substantially identical security can lead to understated income, incorrect basis reporting, or IRS correspondence. Accurate classification ensures that losses are deferred when required and preserved correctly for future recognition, consistent with the wash sale rule’s purpose.
What Actually Happens to Your Loss: Disallowed vs. Deferred Losses
Once a transaction is identified as a wash sale, the critical question becomes how the loss is treated for tax purposes. The wash sale rule does not erase the loss in most cases; instead, it changes the timing of when the loss can be recognized. Understanding the distinction between a disallowed loss and a deferred loss is essential for accurate reporting.
Disallowed loss versus deferred loss
A disallowed loss is a capital loss that cannot be deducted in the year of sale because a substantially identical security was acquired within the wash sale window. The wash sale window spans 61 days: 30 days before the sale, the day of the sale, and 30 days after.
In a taxable brokerage account, a disallowed loss is typically deferred rather than permanently lost. Deferred means the loss is postponed and preserved through an adjustment to the replacement security, allowing it to affect taxable income in a future transaction.
How the deferred loss is preserved through basis adjustment
The deferred loss is added to the cost basis of the replacement security. Cost basis is the amount used to determine gain or loss when an asset is sold, generally equal to purchase price plus certain adjustments.
By increasing the basis of the replacement shares, the deferred loss reduces a future capital gain or increases a future capital loss when those shares are eventually sold in a non-wash sale transaction. This mechanism ensures the economic loss is recognized, but only after the investor exits the position without immediately reestablishing it.
Holding period adjustments and long-term versus short-term impact
In addition to the basis adjustment, the holding period of the replacement security is also adjusted. The holding period of the original, loss-generating shares is carried over to the replacement shares.
This holding period tacking affects whether a future gain or loss is classified as short-term or long-term. Since long-term capital gains and losses receive different tax treatment than short-term ones, this adjustment can materially influence the tax outcome of a later sale.
Partial wash sales and uneven share quantities
Wash sales do not have to involve identical quantities of shares. If fewer replacement shares are purchased than were sold at a loss, only the portion of the loss attributable to the replacement shares is disallowed and deferred.
For example, selling 100 shares at a loss and repurchasing 40 substantially identical shares results in 40 percent of the loss being deferred, while the remaining 60 percent is currently deductible. The allocation is performed on a share-by-share basis, which adds complexity when multiple tax lots are involved.
Multiple accounts and broker reporting limitations
Deferred losses apply regardless of whether the replacement purchase occurs in the same brokerage account or a different taxable account owned by the same taxpayer. Brokers typically track wash sales only within a single account, which means cross-account wash sales may not be reflected on Form 1099-B.
As a result, the taxpayer is responsible for identifying wash sales across accounts and making the necessary basis and loss adjustments on the tax return. Failure to do so can result in overstated losses and incorrect capital gain reporting.
When a loss may be permanently disallowed
An important exception arises when the replacement security is acquired in a tax-advantaged account, such as an individual retirement account (IRA). In that situation, the loss is disallowed and not added to the basis of the IRA investment.
Because basis adjustments do not apply within IRAs in the same way they do in taxable accounts, the loss is effectively eliminated for tax purposes. This outcome reflects a permanent disallowance rather than a deferral, making the account in which the replacement purchase occurs a critical factor in wash sale analysis.
Step‑by‑Step Wash Sale Examples (Stocks, ETFs, and Partial Replacements)
Building on the mechanics described above, concrete examples help illustrate how the wash sale rule applies in real trading scenarios. Each example below traces the transaction sequence, identifies when the rule is triggered, and explains the resulting tax adjustments. The focus is on taxable brokerage accounts, where wash sale reporting most commonly affects retail investors.
Example 1: Simple wash sale with a single stock
Assume an investor purchases 100 shares of Company A stock for $50 per share, establishing a $5,000 cost basis. Several months later, the shares are sold for $40 per share, producing a realized capital loss of $1,000.
Within 30 days after the sale, the investor repurchases 100 shares of Company A at $42 per share. Because the same stock is repurchased within the 61‑day wash sale window, the $1,000 loss is disallowed under the wash sale rule.
Instead of being deducted currently, the $1,000 loss is added to the basis of the replacement shares. The new cost basis becomes $5,200 rather than the $4,200 purchase price, and the holding period of the original shares carries over to the replacement shares.
Example 2: Wash sale involving an ETF
Consider an investor who sells shares of a broad market exchange‑traded fund (ETF) at a loss, such as an ETF tracking a major U.S. equity index. Ten days later, the investor repurchases the same ETF in the same taxable account.
Although ETFs are pooled investment vehicles, they are treated as securities for wash sale purposes. Repurchasing the same ETF within the wash sale window triggers the rule in the same manner as an individual stock.
The loss from the sale is disallowed and added to the basis of the newly acquired ETF shares. The tax benefit of the loss is deferred until the replacement shares are eventually sold in a non‑wash sale transaction.
Example 3: Partial replacement and partial loss deferral
Assume an investor sells 200 shares of Company B stock at a total loss of $2,000. Within 30 days, the investor repurchases only 80 shares of the same stock.
Because the replacement shares represent 40 percent of the original position, only 40 percent of the loss, or $800, is disallowed. The remaining $1,200 loss is currently deductible, subject to normal capital loss limitations.
The disallowed $800 is added to the basis of the 80 replacement shares. This proportional allocation reflects the share‑by‑share application of the wash sale rule and highlights why uneven quantities increase record‑keeping complexity.
Example 4: Wash sale created by purchases before a loss sale
A wash sale can also be triggered when replacement shares are purchased before the loss sale occurs. For example, an investor buys 50 additional shares of Company C stock and then sells 50 older shares at a loss 20 days later.
Even though the purchase precedes the sale, it still falls within the 61‑day wash sale window. As a result, the loss on the sold shares is disallowed and deferred.
The disallowed loss is added to the basis of the recently purchased shares, not the shares that were sold. This ordering often surprises investors and underscores the importance of tracking both purchases and sales when managing tax outcomes.
Key implications across all examples
In each scenario, the defining feature of a wash sale is the acquisition of substantially identical securities within the specified time window. The tax result is not the elimination of the loss, but its deferral through a basis adjustment to the replacement shares.
Accurate application of these rules requires attention to timing, share quantities, and account type. Misunderstanding any of these elements can lead to incorrect loss reporting and unintended discrepancies between broker statements and the taxpayer’s final return.
Advanced Scenarios Investors Commonly Miss (Multiple Lots, Automatic Reinvestments, and Spouses)
Building on the mechanics illustrated in the prior examples, wash sale errors most often arise not from a single transaction, but from interactions across multiple trades, accounts, or family members. These scenarios complicate the otherwise straightforward loss deferral framework and frequently lead to incorrect tax reporting.
Multiple Lots and Overlapping Holding Periods
A “lot” refers to a group of shares acquired in the same transaction at the same price. When an investor holds multiple lots of the same security and sells only some of them at a loss, the wash sale rule applies on a lot-by-lot and share-by-share basis.
If replacement shares are acquired within the wash sale window, the disallowed loss is matched to the specific shares replaced, not necessarily to the earliest or most recent lot sold. This requires precise identification of which shares were sold, which is governed by the investor’s accounting method, such as first-in, first-out (FIFO) or specific identification.
Failure to align the sold lot with the replacement shares can result in incorrect basis adjustments and holding periods. Brokerage statements may not always reflect the correct tax treatment when trades span multiple lots, placing the burden of accuracy on the taxpayer.
Automatic Reinvestments and Dividend Reinvestment Plans
Automatic dividend reinvestments, commonly known as DRIPs, are a frequent and overlooked cause of wash sales. A DRIP automatically uses cash dividends to purchase additional shares of the same security, often without the investor’s active involvement.
If an investor sells shares at a loss and a dividend reinvestment occurs within 30 days before or after the sale, the reinvested shares are considered replacement shares. Even a small reinvestment can partially trigger the wash sale rule and defer a portion of the loss.
Because DRIP purchases often involve fractional shares and occur on preset schedules, investors may not associate them with wash sale exposure. Nonetheless, the tax impact is identical to a voluntary purchase, and the disallowed loss must be added to the basis of the reinvested shares.
Wash Sales Involving Spouses
The wash sale rule extends beyond an individual taxpayer’s own accounts. Under IRS rules, transactions by a spouse can trigger a wash sale when the couple files a joint return.
If one spouse sells a security at a loss and the other spouse purchases substantially identical securities within the wash sale window, the loss is disallowed. This applies even if the transactions occur in separate brokerage accounts and are executed independently.
Unlike standard wash sales, losses disallowed due to a spouse’s purchase may not be recoverable through a basis adjustment if the replacement shares are held in the other spouse’s account. This creates a permanent loss disallowance in certain circumstances, making spousal coordination particularly important for accurate tax reporting.
Why These Scenarios Matter for Accurate Reporting
In each of these situations, the wash sale rule operates mechanically, without regard to investor intent. The common thread is that replacement shares can arise from sources investors do not actively monitor, including older lots, automated purchases, or related taxpayers.
Because brokers may not aggregate activity across lots, accounts, or spouses, discrepancies often surface only when preparing the tax return. Understanding these advanced scenarios is essential to correctly applying loss deferrals, adjusting basis, and avoiding inadvertent reporting errors that conflict with IRS rules.
How Wash Sales Affect Your Tax Reporting and Cost Basis Tracking
Once a wash sale is triggered, its consequences are reflected not at the time of the trade, but in how gains and losses are reported on the tax return and how the remaining shares are tracked going forward. The rule does not cancel the economic loss; instead, it alters the timing and mechanics of when that loss can be recognized.
Understanding this interaction is critical because wash sales primarily affect cost basis, holding periods, and the reconciliation between brokerage statements and tax forms.
Disallowed Losses and Their Treatment on the Tax Return
When a wash sale occurs, the realized capital loss on the sale is disallowed for current tax purposes. A capital loss is the excess of the adjusted basis over the sale proceeds, and “disallowed” means it cannot be deducted in the year of sale.
Instead of appearing as a deductible loss on Schedule D, the disallowed amount is deferred. This deferral prevents the loss from reducing current-year taxable income, even though the sale itself is reported.
How Disallowed Losses Are Added to Replacement Shares
The disallowed loss is added to the cost basis of the replacement shares. Cost basis is the amount used to determine gain or loss when a security is later sold, typically the purchase price adjusted for certain tax events.
By increasing the basis of the replacement shares, the tax system preserves the loss for future recognition. When those replacement shares are eventually sold in a non-wash sale transaction, the previously deferred loss is incorporated into the final gain or loss calculation.
Impact on Holding Period Calculations
In addition to adjusting cost basis, wash sales affect the holding period of the replacement shares. The holding period of the original, sold shares is carried over and tacked onto the replacement shares.
This matters because the holding period determines whether a future gain or loss is classified as short-term or long-term. Short-term results apply to assets held one year or less, while long-term treatment applies to assets held more than one year and may be taxed at different rates.
Partial Wash Sales and Fractional Basis Adjustments
Wash sales do not always disallow the entire loss. If only part of the position is replaced within the wash sale window, the loss is disallowed proportionally.
For example, if 100 shares are sold at a loss but only 40 substantially identical shares are repurchased within the window, only 40 percent of the loss is deferred. This results in multiple lots with different adjusted bases, increasing the complexity of accurate cost basis tracking.
Broker Reporting Limitations and Common Mismatches
Brokerage firms are required to report wash sales on Form 1099-B, but only within the same account and for identical securities as defined by their systems. They generally do not track wash sales across multiple accounts, different brokers, IRAs, or between spouses.
As a result, the Form 1099-B may underreport wash sales, even though the taxpayer is still legally responsible for applying the rule. This often leads to discrepancies between broker-reported data and the correct tax treatment required on the return.
Reconciliation Between Trading Records and Tax Forms
Because wash sale adjustments affect basis and holding periods, investors must reconcile trade confirmations, cost basis reports, and tax forms to ensure consistency. Failure to make manual adjustments when required can result in overstated losses or incorrect gain calculations.
Accurate reporting requires viewing transactions as a continuous sequence rather than isolated trades. Wash sales operate across time, accounts, and related parties, making comprehensive recordkeeping essential for compliant and precise tax reporting.
Practical Strategies to Avoid or Manage Wash Sales Without Violating the Rules
Given the complexity of wash sale mechanics and broker reporting limitations, effective management depends on deliberate transaction sequencing and accurate recordkeeping. The goal is not to circumvent the rule, but to prevent unintended loss deferrals and reporting errors. Each strategy below operates within existing regulations and focuses on minimizing administrative and tax complications.
Observe the Full 61-Day Wash Sale Window
The wash sale window spans 61 days: 30 days before the sale at a loss, the sale date itself, and 30 days after. Any acquisition of substantially identical securities during this period can trigger a wash sale. Monitoring both past and planned trades is therefore essential, not just future purchases.
Waiting until day 31 after a loss sale before repurchasing the same or substantially identical security avoids triggering the rule. This timing discipline is the most straightforward method to preserve loss recognition without altering portfolio structure long term.
Use Non-Substantially Identical Replacement Securities
The wash sale rule applies only to substantially identical securities, a term that generally includes the same stock, option, or closely related instruments. Securities that track different indexes, represent different issuers, or have materially different risk profiles are typically not considered substantially identical.
For example, selling one company’s stock at a loss and purchasing another company in the same industry generally does not trigger a wash sale. Similarly, replacing an index fund with a fund tracking a different index may avoid the rule, provided the holdings and objectives are not effectively the same.
Coordinate Trades Across All Accounts and Related Parties
Wash sales are determined at the taxpayer level, not the account level. Transactions across multiple brokerage accounts, including taxable accounts at different firms, can combine to trigger a wash sale even if no single broker reports it.
In addition, purchases made by a spouse or through an IRA can create wash sale consequences. When replacement shares are acquired in an IRA, the loss is permanently disallowed rather than deferred, making cross-account coordination particularly important for accurate tax outcomes.
Control Replacement Timing Through Lot Selection and Order Management
Specific lot identification allows investors to choose which shares are sold, potentially limiting the portion of a position that generates a wash sale. By selling lots with longer holding periods or higher bases, the impact of partial wash sales may be reduced.
Order sequencing also matters. Purchasing shares shortly before a loss sale can trigger a wash sale even if no repurchase occurs afterward. Viewing trades as an integrated sequence, rather than isolated events, helps prevent inadvertent triggers.
Account for Exchange-Traded Funds and Options Carefully
Exchange-traded funds and options introduce additional complexity because substantially identical determinations are more nuanced. Options to buy a security, such as call options, are explicitly included in the wash sale rule and can trigger loss deferrals even without owning the underlying stock.
Similarly, funds with nearly identical holdings and objectives may be treated as substantially identical despite different ticker symbols. Conservative classification and thorough documentation reduce the risk of misapplication.
Maintain Independent Records Beyond Broker Statements
Because brokers may not detect wash sales across accounts or related parties, reliance on Form 1099-B alone is insufficient. Independent tracking of trade dates, quantities, and adjusted bases ensures correct loss deferral and holding period calculations.
Tax preparation software and spreadsheets can assist, but they require complete and accurate inputs. The responsibility for correct wash sale reporting ultimately rests with the taxpayer, regardless of broker disclosures.
Integrate Wash Sale Awareness Into Year-End Tax Planning
Wash sales frequently arise during year-end loss harvesting, when trading activity is concentrated. Integrating wash sale considerations into this process helps prevent losses from being deferred unintentionally into future years.
Understanding that disallowed losses are deferred, not eliminated, reframes the issue as one of timing and accuracy rather than absolute tax cost. Proper planning ensures losses are recognized when intended and reported in compliance with IRS rules.
In practice, wash sales are best managed through deliberate timing, security selection, and comprehensive recordkeeping. When investors understand how losses are deferred and how basis and holding periods are adjusted, wash sales become a predictable accounting outcome rather than an unexpected tax error. This clarity allows taxable brokerage activity to be reported accurately while remaining fully aligned with regulatory requirements.