The idea
Selling an investment at a loss can reduce your tax bill, because the loss offsets gains. But if you sell only to claim the loss and immediately buy the same investment back, your position has not really changed. Tax rules in many countries stop this, so the loss is disallowed or postponed.
The US 30-day rule
In the United States, a wash sale happens when you sell a security at a loss and buy the same or a substantially identical one within 30 days before or after the sale. The loss is not lost forever: it is added to the cost basis of the new shares, so you get the benefit when you eventually sell them.
The UK bed and breakfast rule
The UK has a similar rule for shares. If you sell and buy back the same shares within 30 days, the sale is matched with the repurchase rather than the original holding. In practice the loss is largely neutralised. Buying back inside a tax-free ISA or by a spouse is treated differently, so the details matter.
Comparing approaches
| Country | Window | Effect on the loss |
|---|---|---|
| United States | 30 days before or after | Disallowed, added to new cost basis |
| United Kingdom | 30 days after | Sale matched to repurchase |
| Many others | Varies or none | Check local anti-avoidance rules |
What counts as substantially identical
The same share clearly counts. Options on the same share can too. Two different companies in the same industry generally do not. Funds are a grey area: two index funds tracking the very same index may be treated as substantially identical, while funds tracking different indices usually are not.
Accounts you might forget
A wash sale can be triggered across accounts. Buying the same share in another brokerage account, or in some cases in a retirement account or a spouse’s account, can still count. Automatic dividend reinvestment can also buy a few shares within the window without you noticing.
Tax-loss harvesting the right way
Investors who want to realise losses but stay invested often switch to a similar but not identical investment, for example from one broad index fund to another tracking a different index. After the waiting period they can switch back if they wish. This keeps market exposure while respecting the rules.
The risk of waiting
Sitting in cash for 30 days to avoid a wash sale avoids the rule but exposes you to missing a rebound. Markets can move sharply in a month. That is why many investors prefer the switch-to-similar approach rather than staying out of the market.
Record keeping
Brokers in some countries flag wash sales on tax statements, but only within their own accounts. If you trade in several places, you must track the rule yourself. Keep a log of loss sales and any purchases of the same or related securities within the window.
When it does not matter
If you live somewhere without capital gains tax, such as the UAE for individuals, wash sale rules are irrelevant there, though they may still apply if you are taxed elsewhere as a citizen or former resident.
Why the rule exists
Without a wash sale rule, an investor could sell every losing position on the last day of the year, buy it straight back the next morning and bank a tax loss while keeping exactly the same investments. Tax authorities see that as an artificial loss. The rule distinguishes a genuine change of position from a paper transaction made only for tax.
Losses inside tax-free accounts
Losses inside tax-free or tax-deferred accounts usually cannot be claimed at all, because gains there are not taxed either. In the United States, buying a substantially identical security in an IRA within the window can permanently disallow a loss in a taxable account, a trap that catches many investors who manage several accounts.
A realistic scenario
James in New York sells a fund at a 4,000-dollar loss in December and, a week later, buys the same fund back because it has dropped further. His loss is disallowed for this year and added to the new fund’s cost basis. Had he bought a fund tracking a different index, the loss would have counted.
Questions to ask yourself
- Did I buy the same investment within 30 days?
- Is my replacement substantially identical?
- Did a dividend reinvestment trigger a purchase?
- Do my other accounts hold the same security?
- Is the tax saving worth the switching cost?
The short version
Wash sale rules stop investors claiming losses while keeping the same position. Wait out the window or switch to a genuinely different investment, and watch all your accounts and reinvestments.
Illustration: buy 100 shares at $50, sell at $40 (loss $1,000), rebuy within 30 days at $41. Loss disallowed; new cost basis = $41 + $10 = $51 per share. Hypothetical figures.
If you sell at a loss and buy the same or a substantially identical investment back within a short window, many tax systems disallow or defer the loss.
Primary educational references
IRS · Publication 550 Investment income and expenses ↗
GOV.UK · Capital gains tax on shares ↗
Reviewed November 28, 2026. Examples are hypothetical illustrations. Educational content, not personalised investment, legal or tax advice.




