Stampede Trading Try It Free for 7 Days
Home › Learn › What is the wash sale rule?
PLAY #29 · LESSON · NOVEMBER 12, 2026

What is the wash sale rule?

The wash sale rule says you cannot deduct a loss on a stock if you buy substantially identical stock within 30 days before or after the sale. The IRS adds the disallowed loss to the cost of the new shares, so the deduction is postponed. Confirm your own case with a tax professional.

The short version

  1. A wash sale is selling at a loss, then buying the same stock within 30 days.
  2. The window runs 30 days before and 30 days after the loss sale.
  3. The IRS does not let you deduct that loss yet; it adds to the new shares.
THE PLAYCheck the 30 days before and after a loss saleENTRY PRICEBUYSTOPRISKTARGETREWARD123= where you buy= your stop: where you sell to cut the loss
  1. Sell at your stop (X) and note the date of the loss.
  2. Count 30 days before and 30 days after that sale.
  3. If you buy the same stock (O) inside that window, ask a tax professional about the loss.
A sketch of the rule, not a real trade.
1

What is a wash sale?

It is a loss sale followed too closely by a purchase of the same stock.

IRS Publication 550 says a wash sale happens 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. The same goes for a contract or option to buy them.

The name comes from the idea that the sale and rebuy wash each other out, so you are back in the same position. This page is general education, not tax advice.

2

How long is the wash sale window?

It is 30 days before and 30 days after the date you sell at a loss.

That means a purchase made up to 30 days before the loss sale can count, and so can one made up to 30 days after it.

Day traders feel this most. If you stop out of a stock in the morning and buy it again that afternoon, you are inside the window.

3

What happens to the loss in a wash sale?

You cannot deduct it right away, and it is added to the cost of the new shares.

Publication 550 says you add the disallowed loss to the cost of the new stock or securities. It also says your holding period for the new shares includes the holding period of the shares you sold.

In short, the loss is postponed, not erased. It can come back when you sell the new shares.

4

Can buying in an IRA trigger a wash sale?

Yes, it can, according to the IRS.

Publication 550 lists buying substantially identical stock for your IRA or Roth IRA as one way to trigger the rule. It also says the basis adjustment described above does not apply in that case.

This is a detail where a tax professional is worth the call.

5

What counts as substantially identical stock?

The IRS decides this on the facts of each case, so there is no simple ticker list.

A rebuy of the very same ticker is the clear case. Do not assume a similar company or fund is safe either way; ask a tax professional.

Our free position size calculator helps you plan each trade, and a trade log helps you spot rebuys.

6

How is a wash sale reported?

It goes on Form 8949 with a code W.

Publication 550 says you enter W in column (f) and the disallowed loss as a positive number in column (g). Your broker may also flag wash sales on your statement, but check it against your own log.

Always confirm the details with a tax professional. Nothing here is personal advice.

Your move

In a practice account, write down the date of your next losing trade and mark the 30 days on each side before you place the same stock again.

Terms used

Plan a trade with our free position size calculator or gap and risk/reward calculator.

Sources

  1. IRS: Publication 550, Investment Income and Expenses (wash sales)

Lesson · November 12, 2026

Common questions

Does the wash sale rule apply to gains?

No. It applies to losses. The rule stops you from deducting a loss when you buy the same stock again within the window.

Is a wash sale loss gone forever?

No. The IRS says you add the disallowed loss to the cost of the new shares, so it is postponed.

Does the wash sale rule apply in a paper trading account?

No. Paper trading uses pretend money, so there is nothing to deduct or report.

Can a day trader trigger a wash sale?

Yes. Selling at a loss and buying the same stock again the same day falls inside the 30 day window.

Who should I ask about wash sales?

A tax professional who knows your full situation. This page covers general IRS rules and is not personal advice.

General education only, not financial or investment advice. Trading involves risk, and you can lose money.

Know when to buy. Know when to sell.

Stampede finds the stocks already on the move before the open and alerts your phone, so you do not have to stare at charts. Card needed to start your trial. Cancel anytime before day 7 and you pay nothing.

Try It Free for 7 Days