Risk Management7 min readUpdated Mar 2026

Wash Sale Rule

An IRS rule that disallows claiming a tax loss on a security if you buy a "substantially identical" security within 30 days before or after the sale.

See Wash Sale Rule in real trade signals

Tradewink uses wash sale rule as part of its AI signal pipeline. Get signals with full analysis — free to start.

Start Free

Explained Simply

The wash sale rule prevents traders from harvesting tax losses while maintaining the same market exposure. If you sell a stock at a loss and buy it back within a 61-day window (30 days before to 30 days after the sale), the loss is "disallowed" — you cannot deduct it on your taxes. Instead, the disallowed loss is added to the cost basis of the replacement shares, deferring (not eliminating) the tax benefit. The rule applies to: the same stock or security, options on the same stock, and substantially identical securities (e.g., selling one S&P 500 ETF and buying another). It does NOT currently apply to cryptocurrency in most jurisdictions. For active day traders, wash sales can create significant tax complications because repurchasing the same stock multiple times within 30 days triggers the rule repeatedly. Some traders end the year with large paper "gains" because wash sale adjustments inflated their cost basis throughout the year.

The 61-Day Window Explained

The wash sale rule applies to a 61-day window centered on the sale date:

  • 30 days before the sale: If you bought the same stock within 30 days BEFORE selling at a loss, the loss is disallowed. This catches traders who buy shares first and then sell older shares at a loss.
  • The sale date itself
  • 30 days after the sale: If you buy the same stock within 30 days AFTER selling at a loss, the loss is disallowed. This is the more commonly understood trigger.

The window is based on trade dates, not settlement dates. The 30-day count includes weekends and holidays.

Example: You sell 100 shares of AAPL on March 15 at a $2,000 loss. If you buy ANY shares of AAPL between February 13 and April 14, the $2,000 loss is disallowed. The disallowed loss is added to the cost basis of the new shares. So if you bought those new shares at $150, your adjusted cost basis becomes $150 + $20/share = $170/share.

What Counts as Substantially Identical

The IRS has not provided a clear definition of "substantially identical," which creates gray areas. Here is what is generally accepted:

Clearly triggers wash sale:

  • Same stock (selling and rebuying AAPL)
  • Options on the same stock (selling AAPL stock and buying AAPL call options)
  • Buying in a different account (selling AAPL in your taxable account and buying in your IRA within 30 days)
  • Automatic dividend reinvestment (DRIP) purchases within the window

Generally does NOT trigger wash sale:

  • Selling one stock and buying a different stock in the same sector (selling AAPL and buying MSFT)
  • Selling a broad index ETF and buying a different index (selling SPY and buying VTI, though this is debated)
  • Selling stock and buying bonds of the same company

Gray areas (consult a tax professional):

  • Selling one S&P 500 ETF and buying another (e.g., SPY vs VOO) — both track the same index but are different securities. The IRS has not explicitly ruled on this.
  • Selling stock and buying deep in-the-money options on the same stock
  • Selling a mutual fund and buying an ETF that tracks the same index

Impact on Day Traders and Active Traders

For active day traders, wash sales create significant tax complications:

Repeated disallowances: If you trade the same stock multiple times within 30 days (common for day traders who have favorite tickers), every loss can potentially become a wash sale. You might have $50,000 in gross trading losses but only $20,000 in deductible losses because the rest were disallowed.

Phantom income problem: Disallowed losses increase the cost basis of replacement shares. If you keep trading the same stock, the adjusted cost basis can climb far above the market price, creating a situation where your broker reports large capital gains on your 1099-B even though your actual P&L was break-even or negative.

Year-end trap: The most dangerous scenario: you have a losing position on December 15 and sell for a tax loss. Then on January 5, you buy the same stock back (within 30 days). The December loss is disallowed, and the adjusted cost basis carries over to the new shares — which are now in the next tax year. You lose the tax benefit entirely for the current year.

Section 475(f) election: Active traders can elect mark-to-market tax treatment under Section 475(f). This converts all trading gains and losses to ordinary income/loss and exempts you from wash sale rules entirely. The election must be filed by April 15 of the year BEFORE it takes effect. Consider this if wash sales are significantly impacting your tax situation.

Strategies to Avoid Wash Sale Problems

Wait the full 31 days: The simplest solution — after selling at a loss, wait 31 calendar days before repurchasing. This is straightforward but means you lose exposure to the stock during that period.

Substitute with a correlated but different security: Sell the losing position and immediately buy a similar but not substantially identical security. For example, sell an individual tech stock and buy a tech sector ETF (QQQ). You maintain market exposure while the 30-day window passes. After 31 days, you can swap back.

Harvest losses in December, do not rebuy until February: Plan your tax-loss harvesting for early-to-mid December and avoid repurchasing until after the 31-day window closes in January.

Use separate accounts carefully: Remember that the wash sale rule applies across ALL your accounts, including IRAs and 401(k)s. Selling a stock at a loss in your taxable account and buying it in your IRA within 30 days triggers a wash sale — and the loss is permanently disallowed (not just deferred) because you cannot adjust the cost basis in a retirement account.

Track wash sales systematically: Use trading journal software that flags potential wash sales automatically. Do not rely on your broker's 1099-B wash sale reporting alone — brokers are only required to report wash sales within the same account, not across accounts.

How to Use Wash Sale Rule

  1. 1

    Understand the Rule

    The IRS wash sale rule disallows a tax loss if you buy a 'substantially identical' security within 30 days before or after selling at a loss. This creates a 61-day window (30 days before + sale day + 30 days after). The disallowed loss gets added to the cost basis of the new purchase.

  2. 2

    Track Your 61-Day Windows

    For every tax-loss sale, mark the calendar: 30 days before and 30 days after. If you repurchase the same stock within this window, the loss is disallowed. This applies across ALL your accounts — brokerage, IRA, spouse's accounts.

  3. 3

    Avoid Triggering Accidentally

    Common triggers: automatic dividend reinvestment (DRIP) buying shares within the window, buying the same ETF in another account, or selling at a loss and immediately buying a very similar fund. Turn off DRIP before tax-loss selling.

  4. 4

    Use Substitutes to Stay Invested

    Sell SPY at a loss → buy VTI (different fund, similar exposure) to avoid the wash sale while maintaining market exposure. Sell AAPL → buy QQQ (different security but maintains tech exposure). The substitute must not be 'substantially identical.'

  5. 5

    Wait the Full 31 Days if Needed

    The safest approach: sell the position at a loss and wait 31 calendar days before repurchasing the same security. Set a calendar reminder. After 31 days, buy back the original position. Your loss deduction is preserved.

Frequently Asked Questions

What is the wash sale rule?

The wash sale rule is an IRS regulation that prevents you from claiming a tax deduction on a loss if you buy the same or a substantially identical security within 30 days before or after the sale. The disallowed loss is added to the cost basis of the replacement shares, deferring the tax benefit until you eventually sell those replacement shares. The rule exists to prevent traders from generating artificial tax losses while maintaining the same market position.

Does the wash sale rule apply to cryptocurrency?

As of 2025, the wash sale rule does not apply to cryptocurrency in the United States because the IRS classifies crypto as property, not securities. This means you can sell Bitcoin at a loss and immediately repurchase it, claiming the full tax deduction. However, this may change — proposed legislation has been introduced to extend wash sale rules to digital assets. Check current IRS guidance as the regulatory landscape is evolving.

Does the wash sale rule apply across different accounts?

Yes. The wash sale rule applies across all of your accounts, including taxable brokerage accounts, IRAs, 401(k)s, and accounts held at different brokers. Selling a stock at a loss in your taxable account and buying it in your IRA within 30 days triggers a wash sale. Critically, when this involves a retirement account, the disallowed loss is permanently lost — not deferred — because you cannot adjust the cost basis in an IRA or 401(k).

How do I report wash sales on my taxes?

Your broker reports wash sales on Form 1099-B using code W. When filing your taxes, adjust the cost basis of the replacement shares by adding the disallowed loss amount. Use Form 8949 and Schedule D to report the transactions. If you have wash sales across different broker accounts, you must calculate and report these manually — brokers only track wash sales within their own accounts. Consider using tax software designed for active traders or consulting a tax professional if you have complex wash sale situations.

How Tradewink Uses Wash Sale Rule

Tradewink's trade journal tracks wash sale events by monitoring repurchases of recently sold positions within the 30-day window. The system flags potential wash sales in the trade log so traders can make informed decisions about tax implications. For year-end tax planning, the analytics dashboard highlights positions where wash sale rules may affect tax-loss harvesting strategies.

Trading Insights Newsletter

Weekly deep-dives on strategy, signals, and market structure — written for active traders. No spam, unsubscribe anytime.

Related Terms

Learn More

See Wash Sale Rule in real trade signals

Tradewink uses wash sale rule as part of its AI signal pipeline. Get daily trade ideas with full analysis — free to start.

Enter the email address where you want to receive free AI trading signals.