Selling an investment at a loss can reduce taxable capital gains. Many investors use this approach during tax loss harvesting, especially near year end. The issue arises when the same or a very similar investment is purchased too close to the sale date.
The IRS wash sale rule generally disallows a loss if you sell stock or securities at a loss and buy substantially identical stock or securities within 30 days before or 30 days after the sale. That creates a 61 day window centered on the sale date. The rule can also apply if you enter into a contract or option to acquire substantially identical stock or securities during that period.
Instead of allowing the loss immediately, the IRS typically requires the loss to be added to the basis of the replacement shares. This changes the timing of the deduction and can affect future gain or loss calculations.
Read on to know how this rule works.
What the Wash Sale Rule Is and When It Applies
A wash sale happens when you sell stock or securities at a loss and then buy the same or substantially identical investment too close to the sale date. The IRS generally does not allow the loss deduction in that situation. Instead, the loss is deferred under the wash sale rules.
The timing rule is strict. The wash sale window covers 61 days:
- 30 days before the sale
- the day of the sale
- 30 days after the sale
If you buy substantially identical stock or securities during that period, the rule may apply. It can also apply if you enter into a contract or option to acquire substantially identical stock or securities within that window.
In most cases, the disallowed loss is added to the basis of the replacement shares. This adjustment can affect the gain or loss when those shares are later sold.
Note: The wash sale rule usually changes the timing of a loss, not whether the loss exists. The deduction is often postponed rather than permanently denied.
What Counts as “Substantially Identical” and What Does Not
The phrase “substantially identical” is not defined by a simple checklist. The IRS rules clearly apply to the same stock or security. They also apply to contracts or options to acquire substantially identical stock or securities. The specific facts of each transaction matter.
Common situations that often trigger the rule:
- Selling shares of a company at a loss and repurchasing the same company’s shares within the 61 day window
- Selling shares at a loss and buying a call option on the same stock within the window
- Selling at a loss and entering into a contract that gives you the right to acquire the same security
Situations that can be less clear:
- Selling one mutual fund or exchange traded fund at a loss and buying another fund with similar investment exposure
- Selling shares in a taxable account and repurchasing substantially identical shares in another account
The IRS guidance focuses on whether the securities are substantially identical, not simply similar. Investors should review the specific structure of the securities involved before assuming the rule does or does not apply.
Note: Automatic dividend reinvestments can create small purchases inside the 61 day window. Even a partial repurchase can affect the portion of the loss tied to those shares.
What Happens if You Trigger a Wash Sale
A wash sale usually means the capital loss from the sale is not allowed in the current year. The IRS generally treats the loss as deferred because you replaced the position too soon.
Here is the typical tax result:
- Current year loss is disallowed. The loss is not deductible at the time of the sale.
- Loss is added to the replacement shares’ basis. This usually increases the cost basis of the replacement shares by the amount of the disallowed loss.
- Holding period may carry over. The holding period of the original shares may be added to the holding period of the replacement shares. This can affect whether a later sale is treated as short term or long term.
A wash sale can be full or partial. Partial wash sales can happen if only some of the shares sold at a loss are replaced during the 61 day window.
Note: A wash sale often comes from small purchases that are easy to miss, such as an automatic dividend reinvestment. The loss may be disallowed only for the number of shares replaced.
Why Wash Sales Change Cost Basis and Timing
The wash sale rule typically does not erase the loss. It shifts when the loss shows up for tax purposes.
That timing shift matters because it can change results across tax years:
- A loss expected this year may move to a future year. The tax benefit may show up only when the replacement shares are later sold in a non wash sale transaction.
- A future gain or loss can change. Higher basis in the replacement shares can reduce a future gain or increase a future loss when those shares are sold.
- Long term or short term treatment could change. Holding period carryover can affect the character of a later gain or loss, which can affect the tax rate applied.
Planning sales and repurchases often involves timing. The 61 day window is the main guardrail. Tracking purchases across all accounts helps reduce accidental wash sales.
Note: Broker reporting can help, but it may not capture every wash sale scenario. This can be more common when trades occur across multiple brokers or accounts.
How to Report a Wash Sale and Reduce Common Mistakes
Wash sale adjustments often show up first on Form 1099-B. Many brokers track wash sales for covered securities inside the same account. When the broker identifies one, the 1099-B may show a disallowed loss amount and an adjusted basis for the replacement shares.
Tax reporting usually follows this path:
- Form 1099-B provides sale proceeds, cost basis, and any wash sale adjustments the broker reports.
- Form 8949 is where each sale is listed and adjusted, when needed. A wash sale adjustment is commonly shown using code W and an adjustment amount in the adjustment column.
- Schedule D (Form 1040) summarizes totals from Form 8949 and calculates net capital gain or loss for the year.
Investors still need to track some wash sale situations themselves. Broker reporting may not cover every case, such as:
- Trades across more than one brokerage account
- A sale in one account and a repurchase in another account
- Automatic dividend reinvestments that create small replacement purchases
- Replacement shares acquired through options or contracts, depending on the facts and what the broker reports
Note: Form 1099-B reporting can reduce manual work, but the taxpayer remains responsible for accurate reporting across all accounts and transactions.
Quick Checklist to Avoid Accidental Wash Sales
Use this checklist before claiming a loss:
- Watch the 61 day window. Avoid buying substantially identical stock or securities 30 days before or 30 days after selling at a loss.
- Review automatic activity. Check dividend reinvestments and recurring purchases. Small buys can trigger partial wash sales.
- Coordinate across accounts. Look at taxable accounts, different brokers, and any account that could buy the same investment.
- Plan lot selection. Confirm which tax lots are being sold. Selling a different lot can change whether the sale is a gain or a loss.
- Confirm the final reporting. Match sales and adjustments between Form 1099-B, Form 8949, and Schedule D before filing.
- Save records. Keep trade confirmations and any broker worksheets that explain wash sale adjustments and basis changes.
Key Takeaways
The wash sale rule often surprises investors because the loss does not disappear. It usually gets pushed into the future. Instead of deducting the loss right away, the IRS generally adds it to the basis of the replacement shares. The tax benefit may show up later when those shares are sold in a non wash sale transaction.
Timing often makes the difference. Buying back the same or substantially identical investment within the 61 day window can delay when the loss is recognized for tax purposes. Looking over trades across all accounts before filing can help catch issues early and reduce unexpected adjustments.
Disclaimer:
The Carry Learning Center is operated by The Vibes Company Inc. (“Vibes”) and contains generalized educational content about personal finance topics. While Vibes provides educational content and technology services, all investment advisory services discussed on this website are provided exclusively through its wholly-owned subsidiary, Carry Advisors LLC (“Carry Advisors”), an SEC registered investment adviser. The information contained on the Carry Learning Center should not be construed as personalized investment advice and should not be considered as a solicitation to buy or sell any security or engage in a particular investment, accounting, tax or legal strategy. Vibes is not providing tax, legal, accounting, or investment advice. You should consult with qualified tax, legal, accounting, and investment professionals regarding your specific situation.
The accounts, strategies and/or investments discussed in this material may not be suitable for all investors. All investments involve the risk of loss, and past performance does not guarantee future results. Investment growth or profit is never a guarantee. All statements and opinions included on the Carry Learning Center are intended to be current as of the date of publication but are subject to change without notice.
To access investment advisory services through Carry Advisors, you must be a client of Vibes on an eligible membership plan. For more information about Carry Advisors’ investment advisory services, please see our Form ADV Part 2A brochure and Form CRS or through the SEC’s website at www.adviserinfo.sec.gov.