If you are selling a losing stock or fund before Dec. 31 to offset gains on your 2026 return, the Internal Revenue Service’s wash-sale rule is the part of that search that actually trips people up. Publication 550, the IRS guide to investment income and expenses, says you cannot deduct losses from sales or trades of stock or securities in a wash sale unless the loss was incurred in the ordinary course of your business as a dealer in stock or securities.
A wash sale occurs, the publication says, when 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. If you sell stock and your spouse, or a corporation you control, buys substantially identical stock, you also have a wash sale, Publication 550 says. The same 30-day-before-or-after test appears in the official 2025 Instructions for Schedule D (Form 1040). Dec. 31, 2026, falls on a Thursday, so the calendar year ends on a weekday; the 30-day window still runs into January if you sell late in December and buy the same security back too soon.
A disallowed loss is not simply erased. Publication 550 says that if your loss was disallowed because of the wash-sale rules, you add the disallowed loss to the cost of the new stock or securities, except when the replacement was acquired for an IRA or Roth IRA. That adjustment postpones the loss deduction until you dispose of the new holding, and your holding period for the new stock or securities includes the holding period of the shares you sold. The publication’s first example is straightforward: you buy 100 shares for $1,000, sell them for $750, and within 30 days buy 100 shares of the same stock for $800; you cannot deduct the $250 loss, and your basis in the new shares is $1,050.
The Schedule D instructions add a few official cautions that are easy to miss at year-end. The wash-sale rules do not apply to a redemption of shares in a floating-NAV money market fund, the instructions say. They generally do apply to transactions involving digital assets that are also stock or securities for tax purposes, described there as tokenized securities. If you received a Form 1099-B, box 1g may show a nondeductible wash-sale loss, but only in the narrower cases the instructions list, including covered securities and a replacement bought in the same account with the same CUSIP. The instructions warn that you still cannot deduct a wash-sale loss even if it is not reported on that form. Investor.gov, the Securities and Exchange Commission’s investor-education site, summarizes the same 30-day test and points readers to Publication 550.
None of this is a recommendation to sell or to wait. It is the IRS’s own definition of when a year-end loss is postponed rather than deducted, and it is the question people run into when they search for tax-loss harvesting in late December.
