The 61-day window
A wash sale happens when you sell stock or securities at a loss and, within 30 days before or 30 days 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
- buy them in your IRA or Roth IRA.
That’s a 61-day window: 30 days before, the sale date and 30 days after.
What happens to the loss
The disallowed loss is added to the cost basis of the replacement shares, and your holding period for the new shares includes the time you held the old ones. You get the loss later, when you sell the replacement shares without triggering another wash sale.
The IRA trap
Buying the same stock in your IRA or Roth IRA within the window also triggers a wash sale — and in that case the loss isn’t added to the IRA basis, so it’s effectively lost for good. Watch automatic dividend reinvestment and recurring IRA purchases when you harvest losses in a taxable account.
What is “substantially identical”?
It depends on the facts. Shares of the same company are identical; shares of different companies normally aren’t. Two index funds that track the same index from different fund companies are a gray area the IRS hasn’t settled. Many investors swap into a fund that tracks a different index to stay clearly outside the rule.
How it shows up on your tax forms
Brokers report wash sales on Form 1099-B (box 1g, “wash sale loss disallowed”) for the same security in the same account. On Form 8949 the adjustment uses code W. Brokers don’t track purchases in other accounts — including your spouse’s or your IRA — so those are your responsibility.
Harvesting losses safely
- Wait 31 days before buying back, or buy a similar-but-different investment right away.
- Turn off dividend reinvestment for the position during the window.
- Check purchases made in the 30 days before the sale, too.
- Remember a net capital loss beyond $3,000 a year carries forward — see capital loss carryover.