PART X · Chapter 85 · 498 / 660

Lesson 498. The wash-sale rule and holding periods for US persons

Chapter 85. Capital Gains, Dividend & ETF Taxation + HomeTax Filing Practice

Item Value
As of November 3, 2026
Last checked November 3, 2026
Next scheduled quarterly check December 5, 2026

A US person sells a stock at a loss and buys it back two weeks later. Can the loss be deducted? This lesson explains the US wash-sale rule: which purchases inside the 30 days before or after a loss sale disallow the loss. It also shows what happens to the disallowed loss and to the holding period, and how the broker and Form 8949 report it.

The wash-sale rule is part of US federal income tax for US persons. A nonresident alien whose capital gains are exempt from US tax (Lesson 495) does not need it for US purposes, but the rules of their own country may contain something similar.

1. At a glance: a loss postponed, not erased

This lesson is general information about US rules as of November 3, 2026. It is not tax, legal or investment advice, and the rules of your country may also apply.

  • A wash sale occurs when you sell stock or securities at a loss and, within 30 days before or after the sale, buy substantially identical stock or securities. The window covers 30 + 1 + 30 = 61 days.
  • The loss is not deductible then. It is added to the cost of the new shares, and the holding period of the old shares carries over to the new ones.
  • If the substantially identical stock is bought for your IRA or Roth IRA, the loss is disallowed and is not added to the basis of anything.
  • Form 1099-B, box 1g, shows a disallowed wash sale loss only in some cases; the rule applies even when the box is blank.
  • Within the scope of this lesson, no change is pending.

2. Rules in force now: what triggers the rule and what follows

Rule Current rule Applies to Basis
Wash sale 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, acquire them in a fully taxable trade, acquire a contract or option to buy them, or acquire substantially identical stock for your IRA or Roth IRA IRS edition for 2025 returns IRS Publication 550, chapter 4, Wash Sales
Related buyers A purchase by your spouse or by a corporation you control also makes a wash sale IRS edition for 2025 returns IRS Publication 550, chapter 4
Basis of the new shares Add the disallowed loss to the cost of the new stock or securities, except when the purchase was for an IRA or Roth IRA IRS edition for 2025 returns IRS Publication 550, chapter 4
Holding period The holding period of the new stock or securities includes the period you held the old ones IRS edition for 2025 returns IRS Publication 550, chapter 4
Substantially identical Decided on all the facts and circumstances; ordinarily, stock of one corporation is not substantially identical to stock of another corporation IRS edition for 2025 returns IRS Publication 550, chapter 4
Partial repurchase If you buy more or fewer shares than you sold, match the shares bought with an equal number of shares sold, in the order bought IRS edition for 2025 returns IRS Publication 550, chapter 4
Broker reporting Box 1g of Form 1099-B shows the disallowed loss when the shares sold were covered securities and the new shares had the same CUSIP number and were bought in the same account; a wash sale loss is not deductible even if it is not reported IRS edition for 2025 returns IRS Publication 550, chapter 4; Instructions for Form 1099-B
Your return Report the sale on Form 8949 with code W in column (f) and the disallowed loss as a positive number in column (g) Instructions for 2025 returns IRS Publication 550; Instructions for Form 8949

Publication 550 gives a short example. You buy 100 shares for $1,000, sell them for $750, and within 30 days buy 100 shares of the same stock for $800. The $250 loss is not deductible; your basis in the new shares is 800 + 250 = $1,050.

The rule works with the holding-period rules of Lesson 495. Because the old holding period carries over, a loss that is later deducted on the new shares can be long-term even if the new shares were held only a few months.

3. Pending changes

As of November 3, 2026, no change within the scope of this page is pending.

4. Worked example: sell, buy back, sell again

Assumptions: Morgan, a hypothetical US person, buys 100 shares of a stock for $50 a share on January 5, 2026, a cost of $5,000. On June 10, 2026, Morgan sells all 100 shares at $40, for $4,000. On June 25, 2026, 15 days later and in the same account, Morgan buys 100 shares of the same stock at $42, for $4,200.

The window for the June 10 sale runs from May 11 to July 10, 2026, so the June 25 purchase is inside it. The loss on the first sale, 4,000 − 5,000 = −$1,000, is disallowed. The new shares get a basis of 4,200 + 1,000 = $5,200, and their holding period includes the time the first shares were held.

Flow chart of a hypothetical wash sale in 2026. Step 1: on June 10 the investor sells 100 shares bought for $5,000 at $4,000, a $1,000 loss. Step 2: on June 25, within 30 days, the investor buys 100 shares of the same stock for $4,200; the loss is disallowed and the new basis is $5,200. Step 3: on October 15 the investor sells the new shares for $4,800, a deductible loss of $400.

On October 15, 2026, Morgan sells the new shares at $48, for $4,800. The loss is 4,800 − 5,200 = −$400, which is deductible, provided no new wash sale arises. Over both trades, Morgan's cash result is (4,000 − 5,000) + (4,800 − 4,200) = −$400, the same as the deducted loss. The rule moved the loss to the later sale; it did not remove it.

Had Morgan bought the 100 shares back on June 25 inside an IRA instead, the $1,000 loss would still be disallowed. The IRA purchase does not get the basis adjustment, so that loss would never be deducted.

5. Common mistakes

  • Looking only at the 30 days after the sale. A purchase in the 30 days before a loss sale also makes a wash sale.
  • Assuming the loss is gone for good. In a taxable account it is added to the basis of the new shares and is deducted when those shares are sold, unless another wash sale follows.
  • Buying back in an IRA or Roth IRA to keep the position. The loss is then disallowed without a basis adjustment.
  • Relying on box 1g of Form 1099-B. It covers only covered securities with the same CUSIP number bought in the same account; purchases in another account or by your spouse still count.
  • Forgetting the holding period. The new shares take over the holding period of the old ones, which changes whether a later gain or loss is long-term.

6. Official sources to check

  • Publication 550 (2025), Investment Income and Expenses (IRS, chapter 4, Wash Sales and Holding Period, checked November 3, 2026)
  • Instructions for Form 1099-B (2026) (IRS, box 1g and covered securities, checked November 3, 2026)
  • Instructions for Form 8949 (2025) (IRS, column (f) codes and column (g), checked November 3, 2026)

7. Change log

Date Change Basis
November 3, 2026 First written (English edition, US rules) Section 6 sources

Related lessons