Skip to main content
This article is for educational purposes only and does not constitute financial advice. Trading involves risk of loss. Past performance does not guarantee future results. Consult a licensed financial advisor before making investment decisions.
Getting Started7 min readUpdated September 17, 2026
TW

Wash Sale Rule Explained: Avoid This Costly Tax Mistake

The wash sale rule disallows tax losses when you repurchase the same security within 30 days. Learn what counts as a wash sale, how it affects active traders, and how to avoid unintentional violations.

Put this into practice with a watchlist

Build a watchlist, then review each signal’s entry, stop, target, and reasoning. Broker access is optional.

Build a Watchlist

What Is the Wash Sale Rule?

The wash sale rule is an IRS tax regulation that prevents traders from claiming a tax loss on a security if they buy a "substantially identical" security within 30 days before or after the sale at a loss.

In plain terms: if you sell a stock at a loss and then rebuy the same stock within 30 days on either side of that sale, the IRS disallows the tax deduction. The disallowed loss is not gone forever — it is added to the cost basis of the repurchased shares — but it cannot be used to offset gains in the current tax year.

Why the Wash Sale Rule Exists

The rule was designed to prevent artificial tax losses. Without it, traders could sell a losing position to capture the tax deduction, immediately rebuy the same position to maintain market exposure, and pocket the tax benefit with no genuine economic change in their portfolio. The IRS determined this constitutes tax avoidance rather than a real realization of a loss.

Higher trading frequency means higher wash sale risk: Active traders who re-enter the same tickers can trigger wash sales without realizing it — especially across multiple strategies or accounts. Wash sale tracking software is no longer optional for frequent traders.

The 61-Day Window

The wash sale rule applies across a 61-day window:

  • 30 days before the sale at a loss
  • The day of the sale
  • 30 days after the sale at a loss

If you buy shares of ABC, sell them at a loss, and then buy ABC again within 30 days after the sale, the loss is disallowed. If you bought additional shares of ABC 15 days before selling at a loss, those earlier purchases can also trigger the rule.

What Counts as "Substantially Identical"?

This is where the rule becomes complicated for active traders. The IRS considers the following substantially identical:

  • The same stock — rebuying shares of the exact same company
  • Options on the same stock — a call option can trigger a wash sale on the underlying shares
  • Convertible bonds for the same company

What is generally not considered substantially identical:

  • A different company in the same sector (e.g., selling JPM at a loss and buying GS)
  • An ETF that holds the stock as one component among many (e.g., SPY is generally not a wash sale substitute for an individual S&P 500 stock)
  • Futures contracts on different underlying assets

Important: The IRS has not issued definitive guidance on all edge cases — particularly ETFs and options combinations. Consult a tax professional for complex situations.

How Wash Sales Affect Day Traders

For active traders who trade the same tickers repeatedly, wash sales are a constant concern. A trader who day-trades NVDA daily — buying and selling multiple times — will continuously trigger the wash sale rule on any losing trades if they rebuy within 30 days.

The wash sale rule does not prevent you from trading the security. It only disallows the tax loss. The disallowed loss is added to the cost basis of your new position, meaning you will eventually realize the tax benefit when you close the final position without rebuying within 31+ days.

Year-end trap: A common mistake is selling losing positions in December to harvest tax losses, then rebuying in January. If the repurchase happens within 30 days of the December sale, the year-end loss is disallowed — and the deferred loss gets pushed to the new year.

Put the setup on a watchlist first

Use the rules in this guide to evaluate a signal’s entry, stop, target, and reasoning before deciding what, if anything, to do.

Build a Watchlist

Cryptocurrency and the Wash Sale Rule

As of September 16, 2026, directly held crypto is still not subject to IRC §1091. The IRS treats crypto as property, and no enacted statute has extended wash-sale treatment to digital assets. Crypto ETF shares (for example IBIT or ETHA) and crypto-related stocks are securities, so wash sale applies to those.

Congress is moving. The House Ways & Means Committee reported H.R. 10357 (the Digital Asset Tax Certainty Act) favorably 38–5 on September 16, 2026. As amended it would apply wash-sale and constructive-sale rules to "traded digital assets" for dispositions after September 14, 2026 if enacted. It has not passed the House or Senate. If a bill with that effective date became law, late-2026 crypto loss harvesting could be disallowed retroactively — do not rely on the current exemption without checking whether it has been signed.

Wash Sale Examples

Example 1 — Simple violation:

  • Day 1: Buy 100 shares of XYZ at $50
  • Day 10: Sell 100 shares of XYZ at $45 (–$500 loss)
  • Day 20: Buy 100 shares of XYZ at $44
  • Result: The –$500 loss is disallowed. The $500 is added to the cost basis of the new shares, making the adjusted cost basis $49 per share (not $44).

Example 2 — Year-end trap:

  • Dec 20: Sell stock at a $3,000 loss (to harvest the tax deduction)
  • Jan 8 (next year): Buy the same stock
  • Result: The $3,000 loss cannot be claimed on this year's taxes because the repurchase falls within 30 days after the sale. The deferred loss pushes into the new tax year.

How to Avoid Accidental Wash Sales

  1. Wait 31 days: After selling at a loss, wait at least 31 days before rebuying the same security
  2. Use substantially different substitutes: After selling for a loss, buy a related but non-identical security to maintain sector exposure (e.g., sell one semiconductor stock, buy a different one)
  3. Track trades proactively: Most brokers report wash sales on your 1099-B, but by then it's too late to fix them. Use trade-tracking software or maintain a spreadsheet to flag potential violations in real time
  4. Mark-to-market election (Section 475(f)): Qualifying traders can elect to treat trading gains and losses as ordinary income, which eliminates wash sale rules for those positions. For an existing individual, the election for tax year 2026 was due by April 15, 2026 (the unextended due date of the 2025 return); late elections are generally not allowed. This is a significant election with broad tax consequences — consult a CPA before electing

Wash Sales and Trading Discipline

The wash sale rule is one reason systematic exit discipline matters in risk management. Getting out of a losing trade cleanly — and staying out if you want the tax benefit — requires the discipline to not impulsively re-enter the same position. Trailing stops help enforce clean exits and prevent the emotional re-entry that often triggers wash sales.

Tradewink records trades its own loops close; it does not journal trades you place elsewhere. Wash-sale tracking still depends on your 1099-B (and Form 8949) plus a tax professional — do not treat the product journal as a complete wash-sale ledger.

Frequently Asked Questions

What is the wash sale rule in simple terms?

The wash sale rule says you cannot claim a tax loss on a stock if you rebuy the same (or substantially identical) security within 30 days before or after the sale at a loss. If you do, the IRS disallows the tax deduction. The disallowed loss is not erased — it gets added to the cost basis of your new shares, so you will eventually get the tax benefit when you sell the replacement shares. The rule exists to prevent traders from selling just to claim a paper tax loss while maintaining the same market position.

Does the wash sale rule apply to day traders?

Yes, the wash sale rule applies to all U.S. taxpayers trading securities, including day traders. Active traders who trade the same ticker repeatedly are especially vulnerable because they may sell at a loss one day and automatically rebuy the same stock the next day, triggering wash sales across dozens of positions. The solution is either to wait 31+ days before rebuying the same security after a loss, use substantially different alternative securities to maintain exposure, or elect Section 475(f) mark-to-market accounting which exempts trading positions from wash sale rules.

Does the wash sale rule apply to crypto?

As of September 16, 2026, directly held crypto is still not subject to the wash sale rule. Crypto ETFs and crypto stocks are securities and are covered. H.R. 10357 cleared House Ways & Means on September 16, 2026 and would apply wash-sale rules to traded digital assets for dispositions after September 14, 2026 if enacted — it is not law yet, but the proposed effective date could reach back into late 2026. Always verify current law before harvesting crypto losses.

What happens to a disallowed wash sale loss?

A disallowed wash sale loss is not permanently lost. Instead, the loss amount is added to the cost basis of the replacement shares you purchased. This means when you eventually sell those replacement shares, your cost basis will be higher — effectively deferring the tax benefit rather than eliminating it. For example, if you bought shares at $50, sold at $45 (–$5 loss, disallowed), and rebought at $44, your adjusted cost basis on the new shares is $49. When you sell those new shares, you will realize a larger loss or smaller gain than the raw purchase price suggests.

Should beginners paper-trade while learning wash Sale Rule Explained?

Yes. Paper trading lets beginners practice order entry, stops, sizing, and review without risking capital. Paper results measure execution practice; they do not prove profitability because simulated fills and hypothetical results can differ from live trading.

Keep learning with a related guide before putting an idea on your watchlist.

Day Trading Taxes: Capital Gains, Wash Sale Rule, and Mark-to-Market Explained

A complete guide to day trading taxes. Understand short-term vs. long-term capital gains, the wash sale rule, mark-to-market accounting, deductible trading expenses, and how to track your trading activity for tax season.

Risk Management for Day Traders: The Complete Guide (2026)

Learn the essential risk management techniques that separate profitable day traders from those who blow up. Covers position sizing, stop placement, daily loss limits, and portfolio heat management.

Trailing Stops: The Complete Guide to Protecting Profits While Staying in Winners

Learn how trailing stops work, the difference between fixed-percentage and ATR-based trailing stops, how to set them correctly, and how Tradewink's Paper Autopilot trails them automatically in paper trading.

How to Use a Trade Journal to Improve Your Trading (With MFE/MAE Analysis)

Learn how to build a trade journal that captures MFE and MAE data, how to analyze trade quality systematically, and how to use post-trade insights to improve entry timing, stop placement, and exit strategy.

Day Trading for Beginners: Everything You Need to Know in 2026

A practical day trading guide for beginners. Learn what day trading is, how to build a starter workflow, the PDT rule, essential strategies, risk management, and how AI can help you practice before risking real capital.

Paper Trading App Workflow: Review Stock Signals

Learn to paper trade stock signals by reviewing entry, stop, target, and rationale, then recording and revisiting each decision.

Ready to evaluate a signal?

Start free with a watchlist and inspect the context before you consider a broker connection.

Try AI signals on your watchlist

Send yourself a signal preview, then add tickers to see ranked entries, exits, and risk notes in Tradewink.

Enter the email address where you want to receive a Tradewink AI signal preview.

TW

Tradewink builds explainable market research for self-directed traders. Build a watchlist, inspect signal reasoning and risk context, and paper-track ideas before you decide. Public subscriptions are paper-only; separately approved private beta accounts may submit live broker orders.

How this guide is reviewed

Tradewink reviews educational content against its documented market-data sources, risk controls, and product methodology. See our data sources and evaluation methodology for the evidence and limitations behind the platform.

Important disclosures

Informational purposes only

Tradewink is published by Tradewink LLC, which is not a registered investment adviser, broker-dealer, commodity trading advisor, or financial planner. All data, signals, and analytics on this page are general, impersonal, and for informational purposes only. They do not constitute investment advice, financial advice, or a recommendation to buy or sell any security or other instrument.

Trading risk

Past performance does not guarantee future results. Trading involves substantial risk of loss, including the possibility of losing more than your initial investment. You are solely responsible for your own trading decisions.