Sold at a loss in December, bought back in January: is it a wash sale?
By Wash-Sale Guardian (who's behind it) · Published 2026-11-12 · Last updated 2026-11-12 · How the checker works
Yes, if the January purchase falls within 30 days after the December sale, in any of your accounts. The 61-day window doesn't stop on December 31. The loss is disallowed on your 2026 return, the year of the sale, and moves into the cost of the January shares, so it comes back when you sell them (IRS Publication 550), unless they were bought in your own IRA (the IRA case). A purchase in the 30 days before the sale counts too. Thursday, December 31, 2026 is the last trading day of 2026 (the 2026 deadline guide cites the NYSE calendar), and a loss sold that day is washed by a re-buy as late as Saturday, January 30, 2027.
Which year's return the loss touches
The sale belongs to the year of its trade date. Pub 550 says "Do not confuse the trade date with the settlement date," and its example of a stock sold on December 31, 2025 ends: "Report your gain or loss on your 2025 return, even though you received the payment in 2026." The Form 8949 instructions say of the date sold: "Use the trade date for stocks and bonds traded on an exchange or over-the-counter market." So a December 2026 sale goes on your 2026 return, even when the shares that wash it are bought in 2027.
On that 2026 return the wash sale goes on the sale's own row. Pub 550: "Enter “W” in column (f). Enter as a positive number in column (g) the amount of the loss not allowed." (how code W works.) Pub 550 then has you "add the disallowed loss to the cost of the new stock or securities", and says: "This adjustment postpones the loss deduction until the disposition of the new stock or securities." The loss comes back on the return for the year you sell the January shares, 2027 or later, unless that sale is washed too.
Pub 550 has an example that crosses the year: shares sold on December 27, 2024 and identical shares bought on January 10, 2025. "You cannot deduct the loss of $33 per share on the first block because within 30 days after the date of sale, you bought 250 identical shares of X stock."
The window around December 31
IRC §1091(a) sets a period "beginning 30 days before the date of such sale or disposition and ending 30 days after such date". It counts calendar days, straight across January 1. Each December sale has its own window:
| Loss sale | Window, both days included | First clean date | First trading day |
|---|---|---|---|
| Tue, Dec 1, 2026 | Sun, Nov 1, 2026 to Thu, Dec 31, 2026 | Fri, Jan 1, 2027 | Mon, Jan 4, 2027 |
| Mon, Dec 14, 2026 | Sat, Nov 14, 2026 to Wed, Jan 13, 2027 | Thu, Jan 14, 2027 | Thu, Jan 14, 2027 |
| Mon, Dec 21, 2026 | Sat, Nov 21, 2026 to Wed, Jan 20, 2027 | Thu, Jan 21, 2027 | Thu, Jan 21, 2027 |
| Thu, Dec 31, 2026 | Tue, Dec 1, 2026 to Sat, Jan 30, 2027 | Sun, Jan 31, 2027 | Mon, Feb 1, 2027 |
The market is closed on Friday, January 1, 2027, so the first trading day after a December 1 sale's clean date is Monday, January 4. For any other date, the wash sale calculator gives the window, the first clean date and the next trading day. A clean date is only about that one sale: another loss sale has its own window.
A worked example
Made-up trades in a made-up ticker, all in one taxable account:
- Monday, March 2, 2026: you buy 100 shares of ASPENDALE at $50, for $5,000.
- Monday, December 21, 2026: you sell all 100 at $38, for $3,800. That's a $1,200 loss.
- Monday, January 11, 2027: you buy 100 shares at $40, for $4,000, in the same account.
The window for a December 21 sale runs from November 21, 2026 through January 20, 2027, both days included, and the first clean re-buy date is Thursday, January 21, 2027. January 11 is 21 days after the sale, so all $1,200 is disallowed on the 2026 return. On Form 8949 the sale would show code W and $1,200 in column (g), for a $0 loss. The January shares' basis is $4,000 + $1,200 = $5,200.
Say you sell those 100 shares on Tuesday, June 1, 2027 for $4,500. Against the $5,200 basis that's a $700 loss on your 2027 return: the $1,200 came back, less the $500 the shares gained after you bought them. Had you waited until January 21 to buy, the $1,200 loss would have stayed on the 2026 return and the January shares' basis would be $4,000. With this account's trades imported, the checker gives the same $1,200 on the 2026 row, and the $5,200 basis and $700 loss on the 2027 row.
The holding period carries over too
Pub 550: "Your holding period for the new stock or securities includes the holding period of the stock or securities sold." In the example the old shares were held from March 2 to December 21, 2026, and those days count toward the January shares. By the count our holding period calculator uses, a sale of the January shares is long-term from Wednesday, March 24, 2027, where without the carry-over it would be Wednesday, January 12, 2028. So the June 1, 2027 sale above is long-term, and the $700 loss is a long-term loss. The calculator works this out for your own dates.
What your 2026 Form 1099-B likely shows
The 2026 Form 1099-B covers your 2026 sales, including a December sale washed by a January purchase. The Form 1099-B instructions (2026) say: "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." Shares bought for cash in the account in 2026 are covered securities under those instructions. So in the example, your 2026 1099-B likely shows $1,200 in box 1g. The broker is also told to "Increase the adjusted basis of the acquired securities by the amount of the disallowed loss reported in box 1g", so the 1099-B for the year you sell the January shares likely shows the $5,200 basis.
If the January purchase was in another account, at another broker or in an IRA, the broker isn't required to report it: the same instructions say "You are permitted but are not required to report in box 1g all loss disallowed under section 1091." Check what your 1099-B shows. Pub 550 says "you cannot deduct a loss from a wash sale even if it is not reported on Form 1099-B." Where box 1g is incorrect, the Form 8949 instructions have you enter the correct amount in column (g), and attach a statement if your amount is lower than box 1g (what box 1g covers). When you later sell shares whose 1099-B basis leaves out the disallowed loss, compare that basis with your own records: the Form 8949 instructions have code B for a 1099-B where "the basis shown in box 1e" is incorrect, and a CPA or EA can confirm how to apply it (the Form 8949 helper).
A January re-buy in your own traditional or Roth IRA is the costly case. Rev. Rul. 2008-5 disallows the loss and says the IRA's basis "is not increased by virtue of § 1091(d)", which we read as permanent (the IRA guide). A re-buy by your spouse counts too (the spouse guide).
The other direction: a December buy and a January sale
The window looks back 30 days as well, so a purchase in December 2026 can wash a loss you take in January 2027, and that loss belongs to 2027, the year of the sale. Pub 550's example has 100 shares bought on September 20, 2024, 75 more bought on December 13 and December 20, 2024, and the September shares sold on January 3, 2025 at a $1,000 loss: "because you bought 75 shares of substantially identical stock within 30 days before the sale, you cannot deduct the loss ($750) on 75 shares." The loss on the other 25 shares, $250, is deductible.
Before you buy back in January
- Count from each sale's own date. The table above, or the calculator, gives the first clean date.
- Check every account, yours and your spouse's, IRAs included (why every account counts).
- Pause automatic buys and dividend reinvestment in that ticker in every account until that date. A scheduled buy is a purchase, and this site treats a reinvested dividend as one too, though no IRS text we found names reinvestment in the wash-sale rules; ask a CPA or EA if a large amount turns on it (dividend reinvestment and wash sales).
- A call option counts. §1091(a) reaches "a contract or option so to acquire" substantially identical stock.
- To stay invested meanwhile, the ways the IRS text supports are in how to avoid a wash sale.
What the free checker does with a December loss
The free checker reads your brokers' CSV exports in your browser, with nothing uploaded. Import every account's full trade history through the end of January, tag each account taxable or IRA, and it shows the wash sales it finds with their amounts, the year-end rows by tax year, and the open windows with the first clean re-buy date.
- It only knows what your files show. A January purchase made after your latest export, a vest or a 401(k) purchase that isn't in a file isn't seen.
- It compares the same ticker and options on it, not different tickers (where the line is).
- It doesn't model Section 475 mark-to-market accounting. Its methodology lists the rest.
Not tax advice. Sources, read on 2026-11-12: IRS Publication 550 (2025, the current edition) · IRC §1091 · Rev. Rul. 2008-5 · Form 8949 instructions (2025) · Schedule D instructions (2025) · Form 1099-B instructions (2026). The IRS can change the forms for 2026 returns, so confirm your own situation with a CPA or EA.
Frequently asked questions
If I sell at a loss in December and buy back in January, is it a wash sale?
Yes, under the wash-sale rule (IRC §1091), if the January purchase of the same stock is within 30 days after the December sale, in any of your accounts. The window counts calendar days straight across January 1. Pub 550 has this pattern in an example, a sale on December 27, 2024 and a purchase on January 10, 2025: "You cannot deduct the loss of $33 per share on the first block because within 30 days after the date of sale, you bought 250 identical shares of X stock."
Which tax year does the disallowed loss affect?
A wash sale touches the return for the year of the sale. A December 2026 trade belongs to 2026 even if it settles in January: the Form 8949 instructions say to "Use the trade date for stocks and bonds traded on an exchange or over-the-counter market." The loss is disallowed on the 2026 return with code W, and Pub 550 has you add it to the cost of the January shares. It comes back on the return for the year you sell those shares, unless that sale is washed too, or the January shares were bought in your own IRA, where Rev. Rul. 2008-5 allows no basis increase.
Will my 2026 Form 1099-B show the January re-buy?
Your 2026 Form 1099-B likely shows it in box 1g if the January purchase was in the same account as the December sale, of the same security, and the shares you sold were covered securities: the Form 1099-B instructions (2026) require box 1g then. A purchase in another account, at another broker or in an IRA is one a broker is "permitted but not required" to report. Check what your 1099-B shows and add what it leaves out on Form 8949.
When can I buy back after selling at a loss on December 31, 2026?
For a December 31, 2026 loss sale, Sunday, January 31, 2027 is the first day a re-buy no longer washes that loss, so Monday, February 1, 2027 is the first trading day. The wash-sale window (IRC §1091) for that sale runs from December 1, 2026 through January 30, 2027, both days included, so a purchase from December 1 on, in any account of yours or your spouse’s, washes it too. Each sale has its own window, ending 30 days after its own date.
Does a purchase in December wash a loss I take in January?
It can: the wash-sale window (IRC §1091) looks back 30 days as well as forward. Pub 550’s example has shares bought on December 13 and 20, 2024 and older shares sold at a loss on January 3, 2025: "because you bought 75 shares of substantially identical stock within 30 days before the sale, you cannot deduct the loss ($750) on 75 shares." That loss belongs to the year of the January sale.
Does the disallowed loss count toward the $3,000 limit for 2026?
No. A disallowed wash-sale loss goes in column (g) of Form 8949, and Schedule D combines columns (d), (e) and (g), so it isn’t part of 2026’s net capital loss. It stays in the January shares’ cost until they are sold. A December loss that isn’t washed does count: the Schedule D instructions say you can deduct capital losses "up to the amount of your capital gains plus $3,000 ($1,500 if married filing separately)", and the rest can carry over.