Ready to Invest? Start with Webull

Ready to Invest? Start with Webull

Put your investing knowledge into action with powerful tools, real-time insights, and a platform built for every investor.

Learn more

Understanding the Wash Sale Rule: A Comprehensive Guide for US Investors

Aug 19, 2026
SHARECopy linkShare on XShare on Facebook

The wash sale rule prevents investors from claiming a tax deduction on a security sold at a loss if a substantially identical asset is repurchased within 30 days before or after the sale. This guide explains the 61-day window, disallowed loss adjustments, common triggers, and IRS reporting steps.

Navigating tax season requires a clear understanding of the wash sale rule, especially when employing a tax-loss harvesting strategy. This IRS regulation prevents investors from claiming a tax deduction on a security sold at a loss if a substantially identical asset is purchased within a specific timeframe. Knowing the mechanics of this rule can help you manage your tax obligations more effectively. Past performance is not indicative of future results. Tax strategies do not constitute tax advice and actual results may vary by individual.

Note:

Webull does not offer tax advice. For any questions about taxes, including how to file, we recommend speaking with a tax professional.

Key Takeaways

  • The wash sale rule is triggered if you sell a security at a loss and buy a substantially identical security within 30 days before or after the sale date.

  • Disallowed losses are added to the cost basis of the newly purchased shares, deferring the tax benefit.

  • The rule applies across all your investment accounts, including IRAs and accounts held by a spouse.

  • Active traders may bypass the rule by making a Mark-to-Market election under Section 475(f).


Horizontal timeline illustrating the wash sale 61-day window, with labeled segments for 30 Days Before, Sale Date, and 30 Days After


Part 1. What is the Wash Sale Rule and How Does it Work?

When investors sell an investment that has lost money in a taxable account, they generally receive a tax benefit by offsetting other capital gains. However, the IRS implemented the wash sale rule to prevent taxpayers from artificially creating a deductible loss while maintaining their position in the asset. Understanding the timeline and the mechanics of cost basis adjustments is essential for compliant portfolio management.

1.1 The Definition and the 61-Day Window

A wash sale occurs when you sell or trade stock or securities at a loss and, within 30 days before or after the sale, you buy substantially identical stock or securities. This creates a 61-day window, consisting of the day of the sale, the 30 days prior, and the 30 days after. If you acquire the same security, acquire a contract or option to buy it, or acquire it for an Individual Retirement Account (IRA) during this window, the loss is disallowed for current tax purposes. The IRS requires you to track these transactions to ensure accurate reporting.

IRS — https://www.irs.gov/publications/p550

Defining "Substantially Identical"
The IRS does not provide a rigid definition of "substantially identical," but generally, stock of one corporation is not considered substantially identical to stock of another corporation. However, buying a call option on a stock you just sold at a loss, or swapping one S&P 500 index fund for another S&P 500 index fund, may trigger the rule. Investors must weigh facts and circumstances to determine if securities overlap too heavily.

1.2 How Cost Basis is Adjusted After a Wash Sale

If your loss is disallowed due to the wash sale rule, that financial loss does not simply disappear. Instead, the disallowed loss is added to the cost basis of the new stock or securities. This adjustment delays the loss deduction until you eventually sell the new holdings in a non-wash-sale transaction. Additionally, the holding period for the new stock includes the holding period of the stock you originally sold.

Step-by-Step Scenario Example:
Consider this example of how a cost basis is adjusted during a wash sale:

  1. You purchase 1,000 shares of ABC stock at $50 per share. The total traded value is $50,000.

  2. You sell the 1,000 shares at $45 per share. The total traded value is $45,000, resulting in a $5,000 loss.

  3. Within 30 days, you buy 1,500 shares of ABC stock at $40 per share, resulting in a traded value of $60,000.

Because the repurchase occurred within the 30-day window, the $5,000 loss is disallowed. This $5,000 is added to the cost basis of 1,000 of the new shares. The adjusted cost basis for those 1,000 shares becomes $45,000 ($40,000 purchase price plus the $5,000 disallowed loss). The remaining 500 shares retain their original $40 per share cost basis.

Webull — https://www.webull.com/help/faq/10955-Understanding-Wash-Sales


Flowchart showing how a disallowed wash sale loss is added to the original cost to produce an adjusted cost basis for replacement shares


Part 2. Common Scenarios That Trigger the Wash Sale Rule

Investors often accidentally trigger a wash sale by failing to monitor automated account features or by trading across multiple portfolios. Recognizing these common situations can help you preserve your expected tax deductions.

2.1 Trading Across Multiple Accounts and Spousal Portfolios

The wash sale rule applies to the investor, not just a single individual brokerage account. If you sell a losing stock in your taxable brokerage account and then repurchase the identical stock in another account—even at a different institution—it counts as a wash sale. The rule also extends to accounts held by your spouse or a corporation you control.

Furthermore, if you sell a stock at a loss in a taxable account and repurchase it within 30 days in a Traditional or Roth IRA, the wash sale rule applies. In this specific IRA scenario, the disallowed loss does not increase the basis in the IRA. This means the disallowed loss is effectively forfeited, not deferred, making it a critical scenario to avoid.

H&R Block — https://www.hrblock.com/tax-center/income/investments/wash-sales/

2.2 Dividend Reinvestment Plans (DRIPs)

Automatic dividend reinvestment can inadvertently trigger the wash sale rule. If you sell a portion of a stock position at a loss, and a few days later a scheduled dividend is automatically reinvested to purchase fractional shares of that same stock, those fractional shares constitute a repurchase within the 30-day window. This will disallow the loss proportionally to the number of shares automatically purchased. To avoid this, investors may choose to turn off DRIPs on securities they plan to sell for tax-loss harvesting.

2.3 Options, Warrants, and ETFs

The wash sale rule applies to losses from the sale or trade of options and contracts to acquire or sell stock. If you sell a stock at a loss and buy a call option on that identical stock within 30 days, the loss is disallowed. Similarly, selling common stock at a loss and buying warrants for the same corporation's common stock triggers the rule. Exchange-traded funds (ETFs) and mutual funds are also fully subject to the wash sale rule.


Two-column comparison table listing investor actions that trigger the wash sale rule under a cross mark and actions that avoid it under a checkmark


Part 3. How to Avoid a Wash Sale When Tax-Loss Harvesting

Tax-loss harvesting is a strategy where investors intentionally sell securities at a loss to offset capital gains realized elsewhere in their portfolio. To maintain market exposure without running afoul of the IRS, specific strategies must be employed.

3.1 Portfolio Management Strategies

The most straightforward way to avoid a wash sale is to simply wait 31 days after selling a security at a loss before repurchasing it. However, if you do not want to be out of the market for a month, you can reinvest the proceeds into a similar, but not "substantially identical," asset.

For example, if you sell an ETF tracking a specific sector at a loss, you might consider purchasing a different ETF that targets the same general industry but tracks a different underlying index or holds a distinctly different basket of stocks.

Pros and Cons of ETF Substitution

  • Pros: Maintains exposure to the desired market sector; allows realization of tax losses for the current year.

  • Cons: The alternative ETF may have different expense ratios, liquidity, or tracking error; there is no definitive IRS list defining "substantially identical," so investors must exercise judgment.

Fidelity — https://www.fidelity.com/learning-center/personal-finance/wash-sales-rules-tax

3.2 Mark-to-Market Election Under Section 475(f)

For highly active traders, the IRS offers the Section 475(f) Mark-to-Market election. Under this tax accounting method, qualifying traders treat all unrealized year-end gains and losses as if they were realized. The securities are marked to their fair market value at the end of the year.

Because gains and losses are reported as ordinary income rather than capital gains, the wash sale rule no longer applies to trades made under this election. This allows for the full deduction of trading losses. However, this election must be filed before the end of the first tax year it is intended to apply to, and it is required to consult a tax professional before proceeding.


Brokerage dashboard mockup with a portfolio cost basis column highlighted and a Tax Documents download button prominently displayed


Part 4. Webull Platform Review: Managing Trades and Cost Basis

When navigating complex tax rules, utilizing a transparent brokerage platform is essential. Webull offers tools and reporting features designed to help investors monitor their cost basis and tax lots.

4.1 Platform Features for Tax Reporting

Webull provides tax lot accounting methods including First In, First Out (FIFO) and Last In, First Out (LIFO). The platform generates 1099-B tax forms that flag wash sales involving the same CUSIP number within the same account. The total proceeds and the total cost basis reported on the 1099 tax form are adjusted for these documented wash sales.

Users can access their Webull Account Management interface to download transaction records, which include all purchases and sales. This data assists investors and their tax advisors in verifying whether a wash sale has occurred within the account.

4.2 Understanding Fees and Pricing

When executing trades for tax purposes, investors should review the fee structures of their brokerage. Webull offers pricing schedules for equity and options trades. Rates vary by service provider; please refer to the latest pricings. Before initiating a high volume of transactions, review the full fee schedule to understand any applicable regulatory fees or margin interest costs.

4.3 Platform Security and Regulation

Trust and security are fundamental when managing financial assets. Webull Financial LLC is a registered broker-dealer and a member of the Securities Investor Protection Corporation (SIPC), which protects securities customers of its members up to $500,000 (including $250,000 for claims for cash). Furthermore, Webull is regulated by the Securities and Exchange Commission (SEC) and the Financial Industry Regulatory Authority (FINRA), ensuring compliance with U.S. financial regulations.


Stylized IRS Form 8949 and Schedule D documents with a magnifying glass focused on the wash sale adjustment column marked with the letter W


Part 5. Reporting Wash Sales to the IRS

Even if your brokerage tracks a wash sale, you are ultimately responsible for reporting it accurately to the IRS. Here is a general outline of how these transactions are documented during tax season.

5.1 Step-by-Step Reporting Guide

  1. Gather Required Information: Collect your 1099-B forms. The form will show your proceeds, original cost basis, and any disallowed wash sale loss, typically found in Box 1g.

  2. Identify the Disallowed Loss: Confirm the amount of the wash sale loss that is nondeductible for the current year. Ensure you have adjusted the cost basis of your replacement shares accordingly.

  3. Complete Form 8949: Report the transaction on Form 8949 (Sales and Other Dispositions of Capital Assets). You will enter the details of the sale, input code "W" in column (f) to indicate a wash sale, and enter the disallowed loss amount as a positive number in column (g).

  4. Transfer to Schedule D: After listing all transactions and adjustments on Form 8949, transfer the final calculated totals to Schedule D of your Form 1040 to determine your net capital gain or deductible capital loss for the year.

As always, tax strategies do not constitute tax advice and actual results may vary by individual. Consult a licensed tax advisor to ensure accurate reporting.

FAQs

Q1: How long do I have to wait to avoid the wash sale rule?
To safely avoid triggering the wash sale rule, you must wait at least 31 days after selling a security at a loss before purchasing the same or a substantially identical security.

Q2: What happens if a wash sale occurs across different brokerage accounts?
The IRS applies the rule to the individual investor, not the specific account. If you sell for a loss at one brokerage and buy the same stock at another brokerage within 30 days, it is a wash sale. You must manually calculate and report this adjustment, as brokerages typically only track activity within their own platforms.

Q3: Do dividend reinvestments trigger a wash sale?
Yes. If you sell shares at a loss and an automatic dividend reinvestment purchases fractional shares of that same company within the 30-day window, those newly purchased shares will trigger the wash sale rule.

Q4: Are exchange-traded funds (ETFs) subject to wash sale rules?
Yes, ETFs and mutual funds are subject to the wash sale rule. Selling an ETF at a loss and repurchasing the identical ETF within 30 days triggers the rule.

Q5: Can I claim a wash sale loss in my IRA?
If you sell a stock at a loss in a taxable account and repurchase it within 30 days in an IRA, the loss is disallowed. Furthermore, the basis in the IRA is not increased, meaning the disallowed loss is effectively forfeited.

The Bottom Line

The wash sale rule is a critical IRS regulation that impacts how investors claim tax deductions on capital losses. By understanding the 61-day restriction window and managing repurchases across all accounts, you can optimize your tax-loss harvesting strategies. Utilizing robust tracking platforms like Webull helps streamline reporting. Rates vary by service provider; please refer to the latest pricings. Past performance is not indicative of future results. Tax strategies do not constitute tax advice and actual results may vary by individual.

Disclaimer:

Webull does not offer tax advice. For any questions about taxes, including how to file, we recommend speaking with a tax professional.

Webull Financial LLC (member SIPC, FINRA) offers self-directed securities trading. All investments involve risk. More info: https://www.webull.com/policy

The information provided does not constitute investment advice and it should not be relied on as such. It should not be considered a solicitation to buy or an offer to sell a security. It does not take into account any investor's particular investment objectives, strategies, tax status or investment horizon. Investing involves risk, including the risk of loss of principal.

Back to top