Skip to main content

What Happens If You Sell an Investment at a Loss and Buy It Back Soon After?

Short answer

Selling stock or securities at a loss and buying substantially identical ones within 30 days before or after the sale is a wash sale. You can’t deduct that loss on your return right away. Instead, the loss is added to the cost basis of your new shares, meaning what they count as basis for tax purposes. That postpones the deduction until you sell the new shares.

See details

What Counts as a Wash Sale

The rule covers more than simply buying the same shares again. It applies if, within 30 days before or after you sell at a loss, you do any of the following:

  • 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
  • Acquire substantially identical stock for your IRA or Roth IRA

It also counts as a wash sale if you sell at a loss and your spouse or a corporation you control buys substantially identical stock. To decide whether two investments are “substantially identical,” the IRS looks at all the facts and circumstances.

A Wash Sale Example

The IRS uses a simple example to show how the numbers work. Here’s how it breaks down:

What happensAmount
You buy 100 shares$1,000
You sell all 100 shares$750
Your loss$250
Within 30 days, you buy 100 shares again$800
Your new basis ($800 + $250)$1,050

You can’t deduct the $250 loss this year. Because your new basis is $1,050 instead of $800, that $250 reduces your taxable gain (or increases your loss) when you sell the new shares. The time you owned the original shares also counts toward how long you’ve held the new ones.

How a Wash Sale Affects Your Tax Return

Your broker reports the nondeductible wash sale loss in box 1g of Form 1099-B, the tax form that lists your investment sales. When you prepare your return, keep that form handy as you enter your sales so the box 1g amount is included.

The sale itself goes on Form 8949, Sales and Other Dispositions of Capital Assets. Here’s how the wash sale is reported:

  1. Report the sale on Form 8949.
  2. Enter code “W” in column (f).
  3. Enter the nondeductible loss as a positive number in column (g).
  4. If the box 1g amount is wrong, enter the correct amount in column (g), and attach an explanation of the difference.

How to Avoid a Wash Sale

If you want to claim a loss this year, the key is what you buy, and when. These approaches keep a sale outside the rule.

Wait at Least 31 Days

The rule only looks at 30 days before and after your sale. Waiting at least 31 days after selling to buy the same investment again keeps the purchase outside that window. Also check that you didn’t buy any in the 30 days before you sold.

Buy a Different Company’s Stock

Ordinarily, stock of one corporation isn’t substantially identical to stock of another corporation. Selling one company’s shares and buying another company’s generally won’t trigger the rule.

Keep IRA Purchases Outside the Window

Buying substantially identical stock in your IRA or Roth IRA has a bigger downside. In that case, the disallowed loss isn’t added to the basis of the new shares. That means you don’t get the postponed deduction a regular wash sale gives you.

What Happens to Losses That Aren’t Wash Sales

Once you avoid a wash sale, your loss counts toward your capital losses for the year. If those losses are more than your capital gains, you can claim the smaller of two amounts. One is the $3,000 limit, or $1,500 if married filing separately. The other is your total net loss.

Your net loss is figured on line 16 of Schedule D (Form 1040), and you claim the allowed amount on line 7a of Form 1040. Any extra loss carries forward to future years.

Sources