Wash Sale Rule: The Four Triggers, Basis Adjustment and IRS Examples
Figures checked November 16, 2026 against primary sources
The wash sale rule stops you from claiming a tax loss on a stock or security when you buy it back, or buy something substantially identical, around the same time. IRS Publication 550 sets the window: a wash sale occurs when you sell at a loss "and within 30 days before or after the sale" you acquire substantially identical stock or securities. In most cases the loss is not gone for good. It moves into the basis of the new shares and comes back when you sell them.
This page covers the rule itself in detail. For how to use losses on purpose, and what harvesting really saves, see our guide to tax-loss harvesting.
The Short Answer
- What it blocks: a loss on a sale of stock or securities, when you acquire substantially identical stock or securities within 30 days before or after the sale.
- Who counts: you, your IRA or Roth IRA, your spouse, and a corporation you control.
- What happens to the loss: it is added to the basis of the new shares, and their holding period includes that of the shares you sold. The exception is a purchase in your IRA or Roth IRA, where no basis is added.
- Gains are not affected: the rule disallows losses. It does not stop you from selling at a gain and buying back.
- Your form may not show it: the IRS says you cannot deduct a wash sale loss "even if it is not reported on Form 1099-B."
The Four Triggers
Publication 550: "A wash sale occurs 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 substantially identical stock or securities in a fully taxable trade,"
- "Acquire a contract or option to buy substantially identical stock or securities, or"
- "Acquire substantially identical stock for your individual retirement arrangement (IRA) or Roth IRA."
The window runs in both directions. Buying new shares first and then selling older shares at a loss within 30 days is caught in the same way as selling first and buying back.
Purchases you did not plan as a trade still count. Publication 550's second example is an employee who receives company stock as a bonus award, sells those shares at a loss, and then receives another bonus award of substantially identical stock within 30 days of the sale. The IRS says: "you cannot deduct your loss on the sale."
Your Spouse and a Corporation You Control
The rule looks past your own account. Publication 550: "If you sell stock and your spouse or a corporation you control buys substantially identical stock, you also have a wash sale."
In practice, that means coordinating with your spouse before either of you sells a holding at a loss, and checking any business you control that also invests.
What Happens to the Disallowed Loss
Publication 550: "If your loss was disallowed because of the wash sale rules, add the disallowed loss to the cost of the new stock or securities (except in (4) above). The result is your basis in the new stock or securities. This adjustment postpones the loss deduction until the disposition of the new stock or securities."
Two things carry over to the new shares:
- The loss, through a higher basis. A higher basis means a smaller gain or a bigger loss when you later sell the new shares. Basis is generally what you paid for an investment, adjusted for later events.
- The holding period. "Your holding period for the new stock or securities includes the holding period of the stock or securities sold." That can make a later sale of the new shares long-term sooner than their purchase date suggests.
| Step (IRS Publication 550, Example 1) | Amount |
|---|---|
| Buy 100 shares of X stock | $1,000 |
| Sell those 100 shares | $750 |
| Loss on the sale, disallowed | $250 |
| Buy 100 shares of the same stock within 30 days | $800 |
| Basis of the new shares: $800 + $250 | $1,050 |
The IRA Case: No Basis Adjustment
The phrase "except in (4) above" in the basis rule refers to the fourth trigger: buying substantially identical stock for your IRA or Roth IRA. In that case the loss is disallowed and is not added to the basis of the shares in the IRA. Unlike the other triggers, the loss is not postponed to a later sale.
If you sell a holding at a loss in a taxable account, check what your IRA buys in the 30 days before and after, including automatic purchases.
What Counts as Substantially Identical
There is no single number or list. Publication 550: "In determining whether stock or securities are substantially identical, you must consider all the facts and circumstances in your particular case." The publication gives these guideposts:
- Different companies: "Ordinarily, stocks or securities of one corporation are not considered substantially identical to stocks or securities of another corporation."
- Reorganizations: "in a reorganization, the stocks and securities of the predecessor and successor corporations may be substantially identical."
- Bonds and preferred stock of the same company: not ordinarily substantially identical to its common stock, but they can be when they are convertible into the common stock.
Publication 550 says preferred stock is substantially identical to the common stock if the preferred stock:
- Is convertible into common stock,
- Has the same voting rights as the common stock,
- Is subject to the same dividend restrictions,
- Trades at prices that do not vary significantly from the conversion ratio, and
- Is unrestricted as to convertibility.
Warrants. Selling common stock at a loss and at the same time buying warrants for common stock of the same corporation triggers the rule. The reverse (selling warrants at a loss and buying the common stock) triggers it only if the warrants and stock are substantially identical.
The wash sale section of Publication 550 does not address mutual funds or ETFs that track similar indexes. If you are unsure whether two holdings are substantially identical, a tax professional can review your facts.
When You Buy More or Fewer Shares Than You Sold
If the number of replacement shares differs from the number you sold, only part of the loss may be disallowed. Publication 550 says you match "the shares bought with an equal number of the shares sold," and "Match the shares bought in the same order that you bought them, beginning with the first shares bought."
Fewer shares bought than sold. Publication 550's example, with the dates it uses:
| Date | Trade | Amount |
|---|---|---|
| September 20, 2024 | Buy 100 shares of M stock | $5,000 |
| December 13, 2024 | Buy 50 substantially identical shares | $2,750 |
| December 20, 2024 | Buy 25 substantially identical shares | $1,125 |
| January 3, 2025 | Sell the 100 September shares | $4,000 (loss $1,000) |
The 75 shares bought in December fall within 30 days before the sale, so the loss on 75 shares ($750) is disallowed. The loss on the other 25 shares ($250) is deductible. The $750 is split across the replacement shares:
- The 50 shares bought December 13 get two-thirds of it ($500). New basis: $3,250 ($2,750 + $500).
- The 25 shares bought December 20 get the rest ($250). New basis: $1,375 ($1,125 + $250).
More shares bought than sold. In Publication 550's second example, 100 shares are sold at a $1,000 loss on January 29, 2025, and 50 shares are bought on each of the 4 days from February 3 to February 6, 2025. The whole $1,000 loss is disallowed. Half ($500) goes to the basis of the shares bought on February 3, and the other half ($500) to the shares bought on February 4. The shares bought on February 5 and 6 get no adjustment, because the matching starts with the first shares bought.
Special Cases: Same-Day Gains, Short Sales, Options, Money Market Funds
- Loss and gain on the same day. Publication 550: "Loss from a wash sale of one block of stock or securities cannot be used to reduce any gains on identical blocks sold the same day." In its example, three blocks of 100 shares bought at $158, $100 and $95 a share are sold together at $125. Because 250 identical shares are bought back within 30 days, the $33-a-share loss on the first block is disallowed and cannot reduce the gain on the other two blocks.
- Options and futures. The rule applies to losses from sales or trades of contracts and options to acquire or sell stock or securities. Publication 550 says it does not apply to losses from commodity futures contracts and foreign currencies.
- Short sales. The rule can apply to a loss on a short sale if you sell, or enter into another short sale of, substantially identical stock or securities within 30 days before or after the short sale is complete. Publication 550 has special rules for when a short sale counts as complete.
- Floating-NAV money market funds. The Schedule D instructions say: "These wash sale rules don't apply to a redemption of shares in a floating-NAV (net asset value) money market fund."
- Tokenized securities. The rule "generally appl[ies] to transactions involving digital assets that are also stock or securities for tax purposes (tokenized securities)," per the Schedule D instructions. For crypto more broadly, see our crypto taxes guide.
- Dealers. The rule does not apply to a dealer in stock or securities when the loss comes from a transaction in the ordinary course of business.
Form 1099-B and How to Report a Wash Sale
Your broker's Form 1099-B shows a disallowed wash sale loss in box 1g only in a narrow case. Publication 550 says box 1g will show it if:
- "The stock or securities sold were covered securities, and"
- "The substantially identical stock or securities you bought had the same CUSIP numbers as the stock or securities you sold and were bought in the same account as the stock or securities you sold."
A purchase that does not meet both conditions can still create a wash sale. Publication 550: "However, you cannot deduct a loss from a wash sale even if it is not reported on Form 1099-B." Keep your own record of purchases in your other accounts, your IRA and your spouse's accounts.
On the return. Report the sale on Form 8949, Part I or Part II. Publication 550: "Enter 'W' in column (f). Enter as a positive number in column (g) the amount of the loss not allowed." The totals then flow to Schedule D. For the rates that apply to the rest of your gains, see our capital gains tax guide, and our tax season checklist lists the forms to gather.
Sources & Methodology
- IRS, Publication 550 (2025), Investment Income and Expenses, chapter 4, Wash Sales: the four triggers, spouse and controlled corporation, basis and holding period adjustment, the IRA exception, substantially identical, more or less stock bought than sold, loss and gain on the same day, options, warrants, short sales, dealers, Form 1099-B box 1g and how to report. All worked examples on this page are the IRS's own.
- IRS, Instructions for Schedule D (Form 1040) (2025), Wash Sales: floating-NAV money market funds and tokenized securities.
Method notes. Every rule on this page comes from the IRS documents above, read on November 16, 2026. We quote the IRS wording for the 30-day window rather than restate it as a day count. These rules apply to federal income tax; state treatment can differ.
This article is for general information and is not tax advice. Rules checked against the primary sources on November 16, 2026.
FAQ
What is the wash sale rule in simple terms?
If you sell stock or securities at a loss and buy substantially identical stock or securities within 30 days before or after the sale, you cannot deduct the loss on that sale. In most cases the loss is added to the basis of the new shares instead.
Is a wash sale loss lost forever?
Usually not. The disallowed loss is added to the cost of the new shares, so it reduces your gain or increases your loss when you sell them. The exception is a purchase in your IRA or Roth IRA, where no basis adjustment is made.
Does the wash sale rule apply if my spouse buys the stock?
Yes. Publication 550 says that if you sell stock and your spouse or a corporation you control buys substantially identical stock, you also have a wash sale.
Does the wash sale rule apply to gains?
No. The rule disallows losses. Selling at a gain and buying back the same stock does not trigger it.
Are two different companies' stocks substantially identical?
Ordinarily not, per Publication 550, though the IRS says you must consider all the facts and circumstances, and stock of a predecessor and successor company in a reorganization may be substantially identical.
Will my 1099-B show every wash sale?
No. Box 1g shows a disallowed loss only for covered securities when the replacement shares have the same CUSIP number and were bought in the same account. You cannot deduct a wash sale loss even if the form does not show it.
Do reinvested dividends count as a purchase?
A reinvestment buys new shares, and the first trigger is "Buy substantially identical stock or securities." Publication 550's wash sale section does not name reinvestments separately, so if one lands within 30 days of a loss sale of the same holding, check it with a tax professional.
Money rule changes, once a month
Money rule changes, once a month
Writes practical, plain-English money guides. Educational content only, not individual financial advice.
