Selling a losing investment before December 31 puts the loss on your 2026 return: for exchange-traded securities the trade date counts, even when the money arrives in January (Publication 550). But the wash sale rule looks 30 days in each direction from the sale, so the loss is not safe when the year ends. The figures below come from the wash sale calculator and the capital gains and loss carryover calculator. The examples use 200 shares bought at $100 and sold at $50, a $10,000 short-term or long-term loss as each table says. Nothing here says whether to sell.
The window crosses New Year
Count 30 days back and 30 days forward from the sale date (26 U.S.C. 1091(a)). A purchase on or before the date in the second column, or on or after the date in the third, is outside the window.
| Sale at a loss | Earlier purchases are clear up to | Later purchases are clear from |
|---|---|---|
| December 4, 2026 | November 3, 2026 | January 4, 2027 |
| December 11, 2026 | November 10, 2026 | January 11, 2027 |
| December 18, 2026 | November 17, 2026 | January 18, 2027 |
| December 31, 2026 | November 30, 2026 | January 31, 2027 |
These are calendar dates; the market is not open on all of them. The rule also catches a contract or option to buy, a fully taxable trade into the same security, a spouse's purchase and a purchase by a corporation you control (Publication 550).
Buying first no longer helps for a 2026 loss
One way people try to stay invested is to buy the new shares first and sell the old ones later. The sale then has to be more than 30 days after the purchase. For a purchase made on December 4, 2026, the first sale date that is clear of it is January 4, 2027, which is a 2027 loss. Selling the old lot sooner is a wash sale: the regulation's first example is a purchase on December 15 followed by a sale of an older lot on January 3, and no loss is allowed (26 CFR 1.1091-1(h)). Selling part of the single purchase you just made is different: by itself that is not a wash sale (Revenue Ruling 56-602, as the calculator page explains).
What is at stake: a $10,000 loss, by income
Federal tax saved on the 2026 return by a single filer taking the standard deduction. “Income” is wages and other ordinary income before the deduction. The first two columns assume you also have a $10,000 gain of that kind for the loss to cancel; the last assumes no gains, so only $3,000 can be deducted this year and $7,000 carries over (26 U.S.C. 1211(b), 1212(b)).
| Income | Against a short-term gain | Against a long-term gain | No gains: this year |
|---|---|---|---|
| $40,000 | $1,200 | $0 | $360 |
| $60,000 | $1,550 | $667.50 | $360 |
| $100,000 | $2,200 | $1,500 | $660 |
| $150,000 | $2,400 | $1,500 | $720 |
| $215,000 | $3,350 | $1,880 | $720 |
| $300,000 | $3,880 | $1,880 | $1,050 |
| $700,000 | $4,080 | $2,380 | $1,110 |
The $0 in the first row is real: with $40,000 of income that long-term gain would have been taxed at 0% anyway, so cancelling it saves nothing this year. The 3.8% tax on investment income is included where it applies. State tax is not.
Three purchases that undo it
Each case starts with the 200 shares sold on December 15, 2026.
- A reinvested dividend. 2.4 shares bought on December 22 replace 2.4 of the 200 sold, so $120 of the $10,000 is disallowed and $9,880 is still deductible. The rule scales with the number of shares; it does not void the whole sale.
- An automatic monthly buy. 10 shares on November 30 and 10 on December 31 are both inside the window (it opens on November 15): $1,000 is disallowed. A purchase made before the sale counts as much as one made after.
- The same shares in an IRA or Roth IRA. 200 shares bought by the IRA on January 14, 2027 disallow all $10,000, and the IRA's basis does not rise (Revenue Ruling 2008-5). At $100,000 of income, that gives up the $2,200 the loss would have saved against a short-term gain, permanently.
Outside an IRA the loss is postponed, not destroyed
If you buy the 200 shares back in your own taxable account on January 14, 2027 at $52, the $10,000 is disallowed for 2026 and added to the new shares: they cost $10,400 and their basis is $20,400. The time you held the old shares is added to the new ones (26 U.S.C. 1223(3)), so they count as held since March 5, 2025. What you lose is the timing: the 2026 return gets nothing, and the deduction returns only when the new shares are sold without another wash sale.
What the rule does not settle
“Substantially identical” is decided on all the facts. Publication 550 says the stock of another corporation ordinarily is not, and it says nothing about two funds that follow the same index, so this guide does not either. Brokers report the wash sales they can see (box 1g of Form 1099-B); purchases at another firm, in your spouse's account or in an IRA are yours to add on Form 8949, with code W and the disallowed amount in column (g).
Sources
- 26 U.S. Code § 1091 — the 30 days before and after the sale, and the basis of the replacement shares
- 26 CFR § 1.1091-1 — which shares are matched, with worked examples (an older lot sold within 30 days of a newer purchase)
- IRS Publication 550 (2025) — Wash Sales, substantially identical securities, trade date, and reporting
- Revenue Ruling 2008-5 — a purchase by your IRA or Roth IRA disallows the loss without adding to the IRA's basis
- IRS Revenue Procedure 2025-32 — 2026 tax brackets, standard deduction and capital gains rate limits