Try it now!
Managing your investments has never been easier!

Learn how IRC Section 1091 disallows a loss, how the basis and holding-period adjustments work, and what to check before tax-loss harvesting.
The short version: The wash-sale rule disallows a capital loss deduction if an investor purchases the same or a substantially identical security within a 61-day window surrounding the sale date. (Year-End Tax Trading: Wash Sales and More | Charles Schwab; Wash Sale Rules: Pitfalls and Planning Strategies | Eshel Aminov and Partners)
The wash-sale rule was enacted by Congress to prevent investors from claiming tax deductions for securities sold at a loss when they immediately repurchase the same or substantially identical securities. This rule ensures that tax-loss harvesting has true economic substance rather than serving as a pure tax arbitrage strategy.
Under Internal Revenue Code Section 1091, a taxpayer cannot claim an immediate deduction for a loss if they acquire, or enter into a contract or option to acquire, substantially identical stock or securities within the restricted window. This rule applies to all retail investors, with an exception only for licensed dealers in stock or securities sustaining losses in the ordinary course of their business. (26 U.S. Code § 1091 - Loss from wash sales of stock or securities | U.S. Code | US Law | LII / Legal Information Institute)
The wash-sale rule operates within a strict 61-day window. This period includes the 30 calendar days immediately preceding the date of the sale, the actual day of the sale itself, and the 30 calendar days immediately following the sale date. The primary purpose of this rule is to disallow the deduction of capital losses on sales of securities if the seller purchases the same, or substantially identical, securities within this 61-day window. This prevents taxpayers from manufacturing artificial tax losses while maintaining an unchanged economic position in the market. Investors must carefully track their trading dates to ensure they do not inadvertently trigger this rule.
To avoid triggering a wash sale, an investor must ensure that no replacement shares are acquired—and no contracts or options to acquire such shares are entered into—at any point during this 61-day timeline. Under section 1091(a), this restriction applies to any loss claimed from a sale or other disposition of stock or securities. If you acquire substantially identical stock or securities, or enter into a contract or option to acquire them, the loss deduction is disallowed under section 165. The only exception is if the taxpayer is a dealer in stock or securities and the loss is sustained in the ordinary course of business. Investors must ask whether any pending orders or options could execute within this restricted timeframe.
| Time Period Relative to Sale | Status under Wash-Sale Rule | Impact of Purchasing Substantially Identical Asset |
|---|---|---|
| 30 Days Before Sale | Restricted Window | Triggers wash sale; loss is disallowed and added to basis |
| Day of Sale | Restricted Window | Triggers wash sale; loss is disallowed and added to basis |
| 30 Days After Sale | Restricted Window | Triggers wash sale; loss is disallowed and added to basis |
| 31+ Days Before or After | Safe Zone | Loss is fully deductible; no basis adjustment required |
When a wash sale occurs, the capital loss is not permanently lost in a taxable brokerage account. Instead, the deduction is disallowed for the current tax year, and the cost basis of the newly purchased replacement shares must be adjusted. Section 1091(d) provides rules for determining the basis of stock or securities the acquisition of which resulted in the nondeductibility of the loss from the sale or other disposition of substantially identical stock or securities. When you have a wash sale, you are not allowed to claim the loss deduction, and an adjustment must be made by adding the loss to the cost basis of the security repurchased. This deferral mechanism preserves the tax benefit for a future taxable sale.
Specifically, the basis of the substantially identical property is calculated as its purchase cost increased by the amount of the disallowed loss. Additionally, the holding period of the repurchased securities is adjusted to include the holding period of the original securities that were sold. According to the instructions for Schedule D, the basis of the substantially identical property (or contract or option to acquire such property) is its cost increased by the disallowed loss. By adding the disallowed loss to the cost basis of the repurchased security, the tax benefit is deferred rather than destroyed, and tacking on the original holding period helps determine whether future gains or losses will be classified as long-term or short-term.
The wash-sale rule applies to transactions involving stock or securities. This definition explicitly encompasses contracts or options to acquire or sell stock or securities. If an investor sells a stock at a loss and purchases an option to buy that same stock within the 61-day window, the loss is disallowed.
While wash sales in taxable accounts merely defer the loss by adjusting the cost basis, executing a wash sale through an individual retirement arrangement (IRA) or Roth IRA is a permanent mistake. Under Revenue Ruling 2008-5, if an individual sells a security at a loss in a taxable account and causes their IRA or Roth IRA to purchase a substantially identical security within the restricted window, the loss is disallowed.
Crucially, the individual's basis in the IRA or Roth IRA is not increased by the disallowed loss. Because tax-advantaged retirement accounts do not track individual security cost basis for capital gains deductions, the tax loss is permanently destroyed. This creates a permanent tax trap, as there is no mechanism to recover the lost tax benefit. Investors must carefully coordinate transactions across all personal and retirement accounts to prevent this irreversible loss of capital.
Investors must also monitor transactions across all of their accounts, including those held at different financial institutions. The wash-sale rule applies globally across all of your accounts and explicitly extends to transactions executed in your spouse's accounts.
Another common pitfall is the automatic Dividend Reinvestment Plan (DRIP). These plans automatically reinvest dividend earnings to purchase shares, which can inadvertently trigger a wash sale if a reinvestment occurs within 30 days before or after a loss-generating sale.
The IRS has established specific regulations for digital assets, providing gain and loss computation rules, basis determination rules, and backup withholding rules applicable to digital asset sale and exchange transactions. Taxpayers must report digital asset transactions regardless of whether they result in a taxable gain or loss. These regulations ensure comprehensive compliance across all digital platforms. Taxpayers must carefully document every transaction, including exchanges and transfers, to satisfy these reporting requirements. Understanding these basis determination and backup withholding rules is essential for accurate tax preparation, as the IRS continues to increase its enforcement and oversight of digital asset transactions to ensure full compliance with federal tax laws. (Digital assets | Internal Revenue Service)
Under current IRS guidance, virtual currency is treated as property. A taxpayer experiences a capital loss if the fair market value of the property received in an exchange is less than the adjusted basis of the virtual currency surrendered. For more information on the tax treatment of digital assets, taxpayers should refer to Notice 2014-21, 2014-16 I.R.B. This guidance establishes that general tax principles applicable to property transactions govern virtual currency. When planning transactions, taxpayers must evaluate the adjusted basis of their digital holdings against the fair market value of the assets received to determine if a deductible loss or a taxable gain has occurred. (Instructions for Form 8949 (2025) | Internal Revenue Service; the IRS)
Taxpayers are responsible for tracking and reporting wash sales to the IRS. While brokerages report transactions on Form 1099-B, their tracking is typically limited to transactions within that specific account. If you have multiple accounts or make adjustments, you must reconcile these on Form 8949. The IRS partners with companies that offer Form 8949 software that can import trades from many brokerage firms and accounting software that can help you keep track of your adjusted basis in securities. If all Forms 1099-B or Forms 1099-DA you received show basis was reported to the IRS and no correction or adjustment is needed, you may not need to file Form 8949. Taxpayers must verify whether their brokerage reports are fully comprehensive.
| Tax Form | Purpose | Reporting Requirement |
|---|---|---|
| Form 8949 | Reconcile adjusted basis and report wash sales | Required if brokerage forms need correction or adjustment |
| Schedule D (Form 1040) | Figure the overall gain or loss from transactions reported on Form 8949 | Complete Form 8949 first, then carry its totals to Schedule D |
Use 8FIGURES to inspect your portfolio inputs and prepare better questions for your own review.
Disclaimer: This guide is for educational purposes only. Tax laws are highly complex and subject to change. Always consult a qualified tax professional, CPA, or financial advisor before executing tax-loss harvesting strategies.
Managing your investments has never been easier!