Articles · 12 min read

Wash Sale Rule for Day Traders: What the IRS Says

A loss on a stock is disallowed if you buy substantially identical stock within 30 days before or after the sale. Here is what the IRS says, with a same-day example.

Kevin Cabana
Kevin CabanaNovember 30, 2026
All articles

Education only, not investment advice. Trading involves substantial risk of loss.

Wash Sale Rule for Day Traders: What the IRS Says
In this article
  1. What the wash sale rule says
  2. Wash sale example for a long-only day trader
  3. How the IRS matches shares when you buy back fewer or more
  4. What substantially identical means
  5. Where the disallowed loss goes
  6. Options, short sales and commodity futures
  7. IRAs, your spouse and other accounts
  8. What your broker reports and what it does not
  9. Crypto and tokenized securities
  10. Traders who elect mark-to-market
  11. Re-entering the same stock after a loss
  12. Frequently asked questions
  13. Watch a trading day with Kev

Short answer: Under the wash sale rule, a loss on a stock is disallowed if you buy substantially identical stock within 30 days before or after the sale. The loss is generally added to the new shares' basis (what you paid, adjusted), which postpones the deduction.

This page is general education about US federal taxes in 2026. Your own situation needs a tax professional.

What the wash sale rule says

Publication 550 (2025 edition) states the consequence first: "You cannot deduct losses from sales or trades of stock or securities in a wash sale unless the loss was incurred in the ordinary course of your business as a dealer in stock or securities." It then defines the term in one sentence: "A wash sale occurs when you sell or trade stock or securities at a loss and within 30 days before or after the sale you:" and lists four triggers, quoted here from the publication on irs.gov.

  • "Buy substantially identical stock or securities,"
  • "Acquire substantially identical stock or securities in a fully taxable trade,"
  • "Acquire a contract or option to buy substantially identical stock or securities, or"
  • "Acquire substantially identical stock for your individual retirement arrangement (IRA) or Roth IRA."

The statute, 26 U.S.C. 1091(a), uses "within a period beginning 30 days before the date of such sale or disposition and ending 30 days after such date". Count 30 days before, the sale day and 30 days after and you get 61 calendar days. That number is our arithmetic, since the statute page does not print it.

Three things follow for the shares you bought back, and an IRA purchase works differently. The matched part of the loss is disallowed in the year of the sale. It is added to the basis of the new shares, and basis is what you paid for the shares, adjusted. The holding period, which is how long you held the shares, carries over from the shares you sold. Only losses are affected. A sale at a gain is never a wash sale.

Wash sale example for a long-only day trader

If you sell at a loss and buy the same stock back the same day, the matched part of the loss is disallowed and added to the new shares' basis. This example is hypothetical and simplified. Stock A is a made-up stock, the figures are computed for illustration, and none of it is a record of a real trade. Assume one account, no other Stock A trades, no IRA or spouse purchase, fills exactly at the prices shown and no commissions.

Step Trade Shares Price Computed result
1 Buy at the open 1,000 $5.00 Cost $5,000
2 Sell all, same morning 1,000 $4.50 Proceeds $4,500, loss $500
3 Buy back on the next push, same day 400 $4.60 Cost $1,840. Inside the 30 days, so 400 of the 1,000 loss shares are matched to this buy
4 What the rule does 400 of 1,000 Not applicable 400 / 1,000 x $500 = $200 disallowed, so $300 is allowed in the year of the sale
5 New basis of the 400 shares 400 Not applicable $1,840 + $200 = $2,040, which is $5.10 a share ($4.60 + $0.50)
6 Holding period 400 Not applicable Includes the holding period of the 1,000 shares sold

The buy in step 1 is the position being sold, which makes the buy in step 3 the only replacement purchase, and it counts because it falls inside the 30-day window around the sale.

The deduction is postponed. If the 400 shares are later sold, whether that loss is itself a wash sale depends on purchases within 30 days before or after that later sale. For the long chain and year-end timing, see our guide to tax-loss harvesting for day traders.

How the IRS matches shares when you buy back fewer or more

When you buy back a different number of shares than you sold, only the matched shares are washed, in the order you bought them. Publication 550 says: "If the number of shares of substantially identical stock or securities you buy within 30 days before or after the sale is either more or less than the number of shares you sold, you must determine the particular shares to which the wash sale rules apply." The method: "You do this by matching the shares bought with an equal number of the shares sold. Match the shares bought in the same order that you bought them, beginning with the first shares bought. The shares or securities so matched are subject to the wash sale rules."

Its example sells 100 shares at a $1,000 loss after buying 75 substantially identical shares in the prior 30 days. The result: "However, because you bought 75 shares of substantially identical stock within 30 days before the sale, you cannot deduct the loss ($750) on 75 shares. You can deduct the loss ($250) on the other 25 shares."

The same-day block rule

If you sell several blocks of the same stock in one session, a wash sale loss on one block cannot reduce the gain on another block sold that day. Under "Loss and gain on same day", Publication 550 says: "Loss from a wash sale of one block of stock or securities cannot be used to reduce any gains on identical blocks sold the same day."

What substantially identical means

The IRS treats this as a facts question: "In determining whether stock or securities are substantially identical, you must consider all the facts and circumstances in your particular case. Ordinarily, stocks or securities of one corporation are not considered substantially identical to stocks or securities of another corporation."

The word is "ordinarily". The publication adds: "However, they may be substantially identical in some cases." So a different small cap in the same sector is ordinarily a different company, but this page cannot say it is safe in any particular case.

Where the disallowed loss goes

Publication 550 sends the loss into the replacement shares: "If your loss was disallowed because of the wash sale rules, add the disallowed loss to the cost of the new stock or securities (except in (4) above). The result is your basis in the new stock or securities." The exception in (4) is the IRA trigger.

The publication describes the effect: "This adjustment postpones the loss deduction until the disposition of the new stock or securities. Your holding period for the new stock or securities includes the holding period of the stock or securities sold."

Options, short sales and commodity futures

Publication 550 extends the rule beyond shares: "The wash sale rules apply to losses from sales or trades of contracts and options to acquire or sell stock or securities. They do not apply to losses from sales or trades of commodity futures contracts and foreign currencies." Publication 550 applies the same 30-day window to a loss on a short sale, and section 1091(e) applies similar rules.

IRAs, your spouse and other accounts

A purchase in a different account can still count. Publication 550 lists the IRA and Roth IRA purchase as a trigger and adds: "If you sell stock and your spouse or a corporation you control buys substantially identical stock, you also have a wash sale."

The IRA case has a harsher result. In Rev. Rul. 2008-5 the IRS held that "if an individual sells stock or securities for a loss and causes his or her IRA or Roth IRA to purchase substantially identical stock or securities within a specified period, the loss on the sale of the stock or securities is disallowed under section 1091 of the Code, and the individual's basis in the IRA or Roth IRA is not increased by virtue of section 1091(d)."

What your broker reports and what it does not

Form 1099-B reports some wash sales and leaves others off, and the loss is nondeductible either way. The Instructions for Form 1099-B (2027 edition) set the broker's duty in box 1g: "You must report any loss disallowed under section 1091 if both the sale and purchase transactions occur in the same account with respect to covered securities with the same CUSIP number." A covered security is one the broker must report basis for, and a CUSIP number is the identifier that marks two securities as the same one. Reporting beyond that is optional, and the instructions list cases where the broker does not have to apply the rule, such as when "The purchased security is transferred to another account before the wash sale,".

Publication 550 (2025) states the same box 1g conditions for the 2025 return, then adds the line that matters most: "However, you cannot deduct a loss from a wash sale even if it is not reported on Form 1099-B."

Form 8949 is the form where you report each sale. To report a wash sale, Publication 550 says to "Report a wash sale transaction in Part I or Part II of Form 8949 with the appropriate box checked." and "Enter as a positive number in column (g) the amount of the loss not allowed." The Instructions for Form 8949 (2025) give code W, which you enter on that form for this case: "You have a nondeductible loss from a wash sale".

Crypto and tokenized securities

The IRS sources cited here do not say whether the wash sale rule covers ordinary crypto. The Instructions for Form 1099-DA (2026) address one narrower case: "Losses from wash sales of tokenized securities must be reported." A tokenized security is, in the instructions' wording, a dual classification asset that provides the holder with an interest in another asset that is a security. The instructions apply section 1091 reporting to tokenized securities treated as stock or securities under section 1091. Whether the rule reaches your digital assets is a question for a tax professional.

Traders who elect mark-to-market

IRS Topic no. 429 says: "Traders can choose to use the mark-to-market method of accounting, investors can't." Without a valid election, "When reporting on Schedule D, both the limitations on capital losses and the wash sales rules continue to apply." The election has its own rules and deadlines, covered in the 475(f) section of our tax-loss harvesting guide and in our day trading taxes guide. Nothing here says whether anyone should elect.

Re-entering the same stock after a loss

A disciplined re-entry after a loss is still a purchase inside the 30-day window.

As a trading rule, Kev lays out the break-back-above idea on his stop hunt and pullback page: "The rule from there: price has to break back above, pull back, and retest to confirm before I touch it again." That is a chart rule about the trade, and it is not a way around section 1091.

His revenge trading guide names the pull to go back in too early: "You re-enter the same ticker that just stopped you out, with no new reason." Whatever the reason for the re-entry, the wash sale test looks at the dates, the shares and the accounts.

Frequently asked questions

Does the wash sale rule apply to day trading?

Yes, unless the trader has a valid mark-to-market election. A day trade at a loss followed by a purchase of substantially identical stock inside the 30-day window is a wash sale. IRS Topic no. 429 says that without that election, the wash sale rules continue to apply when a trader reports on Schedule D.

Does the IRS track wash sales?

Your broker must report a disallowed loss in box 1g of Form 1099-B when the sale and purchase are in the same account, for covered securities (ones the broker reports basis for) with the same CUSIP number (the identifier that marks two securities as the same one), and it may report more. Publication 550 adds that you cannot deduct a wash sale loss even if the 1099-B omits it.

Can I sell a stock for a gain and buy it back?

The wash sale rule is about losses. The statute applies to a loss claimed from a sale, so a sale at a gain is not a wash sale, and buying the same stock back afterward does not disallow the gain.

Does a wash sale ever go away?

Usually the loss is postponed. Publication 550 says to add the disallowed loss to the basis of the new shares, which delays the deduction until you dispose of them. The exception is an IRA or Roth IRA purchase, where Rev. Rul. 2008-5 says the loss is disallowed and the IRA basis is not increased.

How long is the wash sale window?

The window runs 30 days before the sale, the sale day and 30 days after, which is 61 calendar days by arithmetic from the statute. For year-end dates, see our tax-loss harvesting guide, and confirm your own dates with a tax professional.

Does the wash sale rule apply to crypto?

The IRS sources cited here do not say whether it covers ordinary crypto. The Form 1099-DA instructions require reporting of wash sale losses on tokenized securities treated as stock or securities under section 1091. Ask a tax professional how the rule applies to your assets.

Watch a trading day with Kev

In the Momentum day trading room, Kev streams from 8 to 11 AM ET every weekday, and every session is recorded. Start your 7-day free trial. Cancel anytime.

This page is general education about US federal taxes. It is not tax advice. Talk to a tax professional about your situation.

This content is for educational purposes only and is not financial advice. Trading involves significant risk and may not be suitable for all traders.

Kevin Cabana
Written by

Kevin Cabana

Founder and lead trader, Momentum

Kevin Cabana started trading 9 years ago and has coached traders for 7 years. He trades small-cap momentum stocks, long only, live on stream from 8 to 11 AM ET every morning, and has taught 15,000+ traders in 35+ countries.

15,000+traders taught
7 yearscoaching
4.8average on Google, Trustpilot and Whop
More about Kev

Your first week
in the room is free

The live stream, the watchlists, the scanner and the journal, with Kev at the open every morning.

Free for 7 days, then $197 a month. Cancel anytime.

An example morning in the room. Illustrative, not a record of a real trade.