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.
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.
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.
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.
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.
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
Lesson · November 12, 2026

