Understand the IRS wash sale rule to avoid disallowed losses. Learn how to identify, calculate, and report wash sales to defer tax benefits correctly.

Selling an investment at a loss and then repurchasing the same or a similar one shortly after can lead to a surprise at tax time: the loss you thought you could claim is disallowed. In the U.S. tax code, this is governed by the wash sale rule, a frequent source of confusion for investors and a critical detail for tax preparers to get right. This article provides a clear guide on how to identify a wash sale, calculate its impact on cost basis, and correctly report it on your tax return.
The wash sale rule, found in Internal Revenue Code (IRC) Section 1091, prevents a taxpayer from claiming a capital loss on the sale of a security if they acquire a “substantially identical” security within a 61-day period. The purpose is straightforward: to stop taxpayers from harvesting tax losses on investments they essentially still own, a practice that creates an artificial loss without any real change in their economic position.
This rule is the U.S. equivalent of what is known as the "superficial loss" rule in other countries, such as Canada. While the names differ, the core principle is the same. The key to navigating this rule is understanding its three main components: the 61-day window, the definition of "substantially identical," and the proper reporting procedure.
The period covered by the wash sale rule is a total of 61 days. This isn't just the 30 days after the sale; it also includes the 30 days before the sale. The full window is:
If you purchase a substantially identical security at any point during this 61-day timeframe, any loss from the sale is disallowed for the current tax year. The most common mistake is forgetting that activity before the sale also counts.
Example:
Imagine you sell 100 shares of XYZ Corp. at a loss on October 15th. The wash sale window runs from September 15th (30 days before) to November 14th (30 days after). If you buy more XYZ Corp. shares on any day within this period, the loss on your October 15th sale will be subject to the wash sale rule.
This is where things can get tricky. "Substantially identical" is not strictly defined in the tax code, but IRS guidance and court rulings have established some clear lines.
Start using Feather now and get audit-ready answers in seconds.
The good news is that the disallowed loss isn't gone forever — it's deferred. The disallowed amount is added to the cost basis of the new, replacement shares. This reduces the future capital gain (or increases the capital loss) when you eventually sell the new shares. Here is how to handle a wash sale on a tax return.
Most brokerage firms will track wash sales for you and report them on Form 1099-B, "Proceeds from Broker and Barter Exchange Transactions". You will often see:
While brokers do a decent job tracking this within a single account, they cannot track activity across different financial institutions. The final responsibility for correctly reporting wash sales falls on the taxpayer and their preparer.
Form 8949, "Sales and Other Dispositions of Capital Assets", is where the transaction is officially reported to the IRS. Here's how to fill it out:
First, you report the sale transaction as it occurred:
Then, you apply the wash sale adjustment:
By entering the disallowed loss in column (g), you are effectively canceling out the loss for tax purposes on this specific transaction.
This is the most critical step for ensuring you receive the tax benefit in the future. The disallowed loss is added to the cost basis of the replacement shares.
Example:
Applying the rules:
The totals from Form 8949 will then flow to Schedule D, "Capital Gains and Losses", reflecting the correct net gain or loss.
Software like TurboTax for individual filers or professional-grade tools like Drake Tax can often handle these calculations automatically, especially when importing 1099-B data directly from a brokerage. However, as a practitioner, you must be prepared to verify the software’s work and manually intervene, particularly when trades happen across multiple accounts or brokers.
Several frequent scenarios can catch taxpayers by surprise. As an advisor, knowing these pitfalls is key.
The wash sale rule isn't designed to take away your tax deduction but to defer it until you have truly exited your investment position. The key to handling it correctly lies in vigilant record-keeping, a firm understanding of the 61-day window, and accurately adjusting the cost basis of repurchased shares on Form 8949.
When clients present complex trading histories or you need to clarify a fine point about "substantially identical" securities or multi-account interactions, spending hours digging through tax code isn't efficient. For tax professionals who require instant, reliable answers from authoritative sources, Feather AI becomes an indispensable tool. It provides citation-backed explanations from the IRC and IRS publications in seconds, giving you the confidence to advise your clients accurately and spend more time on strategy, not just research.
Written by Feather Team
Published on November 5, 2025