Year-End Tax-Loss Selling: Trade Date, Settlement and Wash Sales
A stock sold at a loss counts for the year of the trade date, even if it settles in January. How the wash-sale rule and the $3,000 loss limit apply.

For year-end tax-loss selling, the date that counts is the trade date, the day your sell order is executed, not the settlement date. A stock sold at a loss on Dec. 31 is reported on that year’s tax return even though the trade settles in early January. The loss can be disallowed, though, if you buy the same or a substantially identical security within 30 days before or after the sale, which is the wash-sale rule.
This article explains general rules for US individual investors and is not tax advice. Check details with a tax professional or with IRS guidance before acting.
What is tax-loss selling?
Tax-loss selling means selling an investment that is worth less than you paid for it so the loss can offset capital gains on your tax return. Investors often do it in December, after they know roughly how much in gains they have realized during the year.
Capital losses first offset capital gains of the same type (short-term against short-term, long-term against long-term), and then any remaining net loss offsets gains of the other type. If losses exceed gains, up to $3,000 of net capital loss a year ($1,500 if married filing separately) can be deducted against ordinary income such as wages. Any loss beyond that carries forward to future years with no expiration for individuals.
Why does the trade date decide the tax year?
For stocks and other securities sold on an exchange, the IRS treats a gain or loss as occurring on the trade date. Settlement is the later step when cash and shares actually change hands. Since May 2024, most US stock trades settle one business day after the trade date (known as T+1); before that the standard was two business days.
In practice this means:
- A sale executed during regular trading hours on the last trading day of December counts for that year, even if settlement happens in January.
- An order placed after the market closes on Dec. 31 will normally execute on the next trading day in January and count for the new year.
- Your broker’s Form 1099-B lists the trade date as the date sold, and that date is what goes on Form 8949 and Schedule D.
The calendar adds a wrinkle: if Dec. 31 falls on a weekend or a market holiday, the last chance to sell is the final trading day before it. Check the exchange holiday calendar early in December.
How does the wash-sale rule work?
A wash sale happens when you sell a security at a loss and, within 30 days before or after the sale, you buy the same or a substantially identical security, or acquire a contract or option to buy it. Together with the sale date, that makes a 61-day window. If the rule applies, you cannot deduct the loss on that year’s return.
The loss is usually deferred rather than lost. The disallowed amount is added to the cost basis of the replacement shares, and the holding period of the shares you sold carries over to the new ones. When you eventually sell the replacement shares without triggering another wash sale, the deferred loss shows up in that later year.
The window reaches back as well as forward. Buying more shares on Dec. 15 and then selling your older, higher-cost shares at a loss on Dec. 30 can trigger the rule just as a repurchase on Jan. 10 would.
Which purchases can trigger a wash sale?
The rule looks beyond the account where you sold. Purchases that can count include:
- Buying the same stock in any of your taxable brokerage accounts.
- Buying it in your IRA or Roth IRA. In that case the IRS position is that the basis adjustment is not available, so the loss can be lost for good.
- Purchases by your spouse, or by a corporation you control.
- Automatic dividend reinvestment in the same stock within the window.
- Shares received from employer stock plans, such as restricted stock units that vest within 30 days of a loss sale. Our explainer on how an RSU vest can disallow a loss covers that case.
Brokers report wash sales they can see within a single account, marked with code W on Form 1099-B. They do not track your other accounts or your spouse’s, so the taxpayer is responsible for catching those.
What counts as substantially identical?
Shares of the same company’s common stock are substantially identical. Options to buy that stock also count. The IRS has not published a bright-line test for funds, so the question is less settled when an investor swaps one fund for another. Many investors who want to stay invested buy a fund or stock that is similar in exposure but not the same security, though whether two index funds tracking the same index are substantially identical has never been clearly decided. If staying out of the position is acceptable, waiting 31 days before buying back avoids the issue.
What mistakes are common in December?
- Placing the sell order on the evening of Dec. 31, after the market has closed.
- Forgetting that dividend reinvestment is switched on, which creates a small repurchase inside the window.
- Selling in a taxable account and buying the same stock in a retirement account the same week.
- Assuming the 1099-B will flag every wash sale, when it covers only that one account.
- Selling a position that is about to pay a large distribution without checking the dates. Our guide to ex-dividend dates for special dividends explains how those dates are set.
Where are the official rules?
The IRS explains capital losses, the trade-date rule and wash sales in IRS Publication 550. The Securities and Exchange Commission sets the settlement cycle for US securities trades.
Quick answers
Does the wash-sale rule apply to gains?
No. It applies only to sales at a loss. If you sell a stock at a gain and buy it back the next day, the gain is taxable and your new shares get a new cost basis.
Can I sell at a loss on Dec. 31 and buy back on Jan. 2?
The sale still counts for December, but a repurchase that soon falls inside the 30-day window, so the loss would be disallowed for that year and added to the basis of the new shares.
Do short sales follow the same trade-date rule?
Short sales have their own timing rules, and a gain or loss on a short sale is generally tied to when the position is closed. Publication 550 covers the details.
Is there a limit on how much loss I can carry forward?
For individuals there is no dollar cap and no time limit on carrying forward a net capital loss. Each year you can still use only up to $3,000 of it against ordinary income after offsetting that year’s gains.



