• Taxes
  • Wash Sale Loss Disallowed - Avoid These Tax Traps!

Wash Sale Loss Disallowed - Avoid These Tax Traps!

Everett Hauck

Everett Hauck

|

20 April 2026

Illustration of the Wash Sale Rule, disallowing a wash sale loss by showing scissors cutting money within a prohibition symbol.

Tax-loss harvesting can work well, but one rule can erase the benefit if you are not careful: a wash sale loss disallowed under Section 1091 is usually not gone, but deferred, and in retirement-account situations it can be worse. The rule is simple in concept and messy in practice because it reaches across accounts, catches automatic reinvestments, and depends on what the IRS considers substantially identical. I’m going to break down how it works, what triggers it, how the loss moves into basis, and how to avoid the common traps without undermining your investing plan.

Key things to know before you sell at a loss

  • The wash-sale rule blocks a loss deduction when you buy back the same or a substantially identical security within 30 days before or after the sale.
  • In a normal taxable account, the disallowed loss is usually added to the basis of the replacement shares, so the tax benefit is delayed rather than erased.
  • The rule can be triggered by purchases in a spouse’s account, a corporation you control, or an IRA/Roth IRA.
  • Your broker’s Form 1099-B may catch some wash sales, but it will not catch every cross-account situation.
  • The safest prevention is boring: wait at least 31 days, or use a clearly different security during the window.

Why this rule exists and what it really denies

I think the easiest way to understand the wash-sale rule is to see it as an anti-abuse timing rule. The IRS does not want investors to sell a position at a loss, keep the same market exposure, and claim a deduction as if their economic position had changed. That is why Internal Revenue Code Section 1091 generally denies the loss when you sell stock or securities at a loss and then repurchase the same or a substantially identical holding inside the window.

For most investors, the rule matters because realized losses are valuable. They can offset gains, and when tax-loss harvesting is done correctly, they can improve after-tax returns without changing the portfolio too much. The wash-sale rule is the catch: if the trade is too close to the repurchase, the deduction is postponed instead of recognized. Dealers in stock or securities have a limited ordinary-course exception, but that does not help most individual investors.

That is the big idea. The next question is where the IRS draws the line on timing, because that is where a lot of otherwise smart trades go sideways.

How the 30-day window catches real trades

Illustration of a dollar bill being cut by scissors within a prohibition sign, symbolizing a wash sale loss disallowed by tax rules.

The rule reaches both sides of the sale date: 30 days before the sale and 30 days after it. In practice, that means a 61-day window centered on the loss sale. If you want to stay on the safe side, the clean habit is to wait at least 31 days after the sale before buying the same security back.

This is where investors often get tripped up. They assume the danger starts only after the sale, but a purchase made before the sale can also taint the loss. I also see people forget about automatic dividend reinvestment, recurring buys, and transfers between accounts. Those “background” transactions are still purchases if they occur inside the window.

Trade pattern Likely tax result Why it matters
Sell a stock at a loss and wait 31+ days before repurchasing it Loss is generally deductible You have clearly exited the position long enough to avoid the wash-sale window
Sell at a loss and buy the same security 10 days later in a taxable account Loss is disallowed for now The repurchase falls squarely inside the 30-day post-sale window
Buy the same security 20 days before a loss sale Loss can still be disallowed The 30-day pre-sale window matters just as much as the post-sale window
Let dividends automatically reinvest during the window Possible wash sale Automatic reinvestment is still a purchase, even when it feels passive
A simple date example helps. If you sell shares on June 10 at a loss, a repurchase on July 11 is outside the post-sale window, but a repurchase on July 10 is not. That kind of one-day difference is exactly why I tell people to build a calendar buffer instead of trying to “count close enough.”

Timing is only part of the story, though. You also need to know what the IRS means by substantially identical, because that phrase is doing a lot of work.

What counts as substantially identical

The IRS uses a facts-and-circumstances test here, so there is no neat universal list that covers every market product. The obvious case is simple: buying back the exact same stock or security is a problem. But the rule also reaches contracts and options to acquire the same security, and it can extend across related accounts and entities.

Here are the practical situations I pay attention to first:

  • The same security is the clearest trigger. If you sell shares of a stock and quickly buy that same stock back, you are in the danger zone.
  • Options and contracts can count too. The IRS specifically includes contracts or options to buy substantially identical stock or securities.
  • Spouse and controlled entities matter. If your spouse buys substantially identical stock, or a corporation you control does, the IRS can treat that as your wash sale.
  • Retirement accounts matter. If substantially identical stock is acquired in an IRA or Roth IRA, the rule can still be triggered.
  • Convertible or related securities can be tricky. The IRS says bonds, preferred stock, and common stock are not ordinarily identical, but convertibility and other facts can change the analysis.

I would not rely on “close enough” thinking here. Two securities that look economically similar are not automatically identical, but similarity is not a safe planning rule. If you are trying to preserve a tax loss, the safer approach is to use a replacement that is clearly different rather than merely comparable.

Once the rule is triggered, the loss does not disappear in the ordinary taxable-account case. It usually moves into basis, and that detail matters more than most people realize.

What happens to the loss, basis, and holding period

In a normal taxable account, the disallowed loss is generally added to the cost basis of the replacement shares. That means the tax benefit is postponed until you eventually sell the replacement position in a non-wash transaction. The IRS also says your holding period for the replacement shares includes the period you held the old shares, which can help later when you are trying to qualify for long-term capital gain treatment.

Here is the basic result in plain English: the IRS does not want you to take the loss now and keep essentially the same investment. So it shifts the loss into the basis of what you bought next.

Situation Immediate result Later result
Loss sale followed by repurchase in a taxable brokerage account Loss is disallowed now Disallowed amount is usually added to the replacement shares’ basis
Only part of the sold position is repurchased Only part of the loss is disallowed The disallowed portion is allocated to the repurchased shares
Replacement shares are later sold in a clean transaction No new wash sale, if the window has passed Embedded loss can surface later through the higher basis
Replacement purchase is made in an IRA or Roth IRA Loss is disallowed IRS guidance says the IRA basis is not increased, so the loss can be effectively lost rather than deferred

A simple example makes this easier to see. Suppose you bought 100 shares for $10,000 and later sold them for $8,000, creating a $2,000 loss. If you repurchase the same stock inside the window for $8,100, the $2,000 loss is not currently deductible. Instead, the new basis becomes $10,100. When you eventually sell those replacement shares, that extra basis is what preserves the tax benefit.

The retirement-account version is harsher. IRS Revenue Ruling 2008-5 says that if the replacement purchase lands in an IRA or Roth IRA, the loss is disallowed and the IRA basis is not increased by the wash sale adjustment. In other words, this is one of the few places where the loss can be much closer to permanent than merely deferred.

With the tax mechanics clear, the next issue is reporting. A wash sale that is handled incorrectly on the return can create avoidable cleanup work later.

How to report it correctly on your tax return

If your broker identifies the wash sale on Form 1099-B, box 1g may show the amount of the disallowed loss. That is helpful, but it is not the final word. The IRS is clear that you cannot deduct the loss even if the broker does not report it. I always treat the 1099-B as a starting point, not a guarantee that everything was caught.

For reporting, the usual path is Form 8949. You enter the transaction there, check the appropriate box for the holding period, place code W in column (f), and enter the disallowed loss as a positive number in column (g). That then flows into Schedule D with your other capital transactions.

There are two practical problems I see all the time:

  • The broker reports only the taxable account where the sale occurred, but the repurchase happened in another account.
  • The investor relies on software defaults and never checks whether a dividend reinvestment or automatic buy also fell inside the window.

If you want the filing to match the economic reality, you need your own trade log. I usually recommend keeping the sale date, repurchase date, account name, security identifier, share count, and basis adjustment in one place. That makes year-end reporting and later audits much easier to handle. From there, the real value is in avoiding the rule in the first place when you are still in control of the trade.

Ways to avoid the rule without abandoning tax-loss harvesting

The best avoidance strategy is not sophisticated. It is disciplined. If you want the deduction, you need to stay out of the window or replace the position with something clearly different.

  1. Wait at least 31 days before buying the same security back.
  2. Pause automatic reinvestment on the security you sold if dividends or distributions would repurchase shares inside the window.
  3. Check every account, not just the one where you placed the original trade. That includes taxable accounts, IRAs, Roth IRAs, spouse accounts, and controlled entities.
  4. Use a different exposure if you need to stay invested. The safest substitute is one that is clearly not substantially identical, not just “close enough.”
  5. Watch partial repurchases. If you sell 100 shares and buy back 40, only part of the loss is generally deferred, but the allocation still needs to be tracked correctly.

That last point matters because people often think wash sales are all-or-nothing. They are not. If the repurchase covers only part of what you sold, the disallowed loss is allocated to the replacement shares, and the rest may still be deductible. The IRS even gives examples where the loss is split across multiple replacement purchases. For an investor, that means share counts matter as much as share prices.

My practical rule is this: if the position is important enough that you might want to buy it back soon, decide before you sell whether the tax loss is worth the waiting period. That small decision prevents most of the mistakes I see in real portfolios.

The traps that hurt most at year end and in retirement accounts

The messiest wash-sale problems usually show up in November and December, when people rush to harvest losses before year-end and then reflexively rebuy in January. That is exactly when the calendar feels harmless and the tax rule is most unforgiving. A “good trade” on December 20 can turn into a disallowed loss if you buy the same holding back too soon after New Year’s.

Retirement accounts are the other place where this rule causes outsized damage. Investors often assume an IRA is separate enough to ignore, but the IRS does not treat it that way for wash-sale purposes. If the repurchase lands in an IRA or Roth IRA, the tax result can be much worse than a simple deferral. That is why I am especially careful when I see automated contribution schedules, dividend reinvestment, or model portfolios that buy the same fund inside retirement and taxable accounts at the same time.

If I were setting up a simple internal checklist, I would keep it to three questions: Did I sell at a loss, did I buy the same or a substantially identical security inside 30 days on either side, and did any of those buys happen in another account I still control? If the answer to any of those is yes, I slow down and check the basis math before I file anything.

That habit is usually enough to keep a useful tax-loss strategy from turning into a paperwork problem, and it is the most reliable way to protect the deduction when market volatility gives you one.

Frequently asked questions

A wash sale occurs when you sell a security at a loss and then buy substantially identical securities within 30 days before or after the sale. This rule prevents investors from claiming an immediate tax deduction while maintaining market exposure.

The 30-day window extends 30 days before and 30 days after the loss sale date, creating a 61-day period. Any repurchase of a substantially identical security within this window will trigger the wash sale rule.

In a taxable account, the disallowed loss is typically added to the cost basis of the replacement shares, deferring the tax benefit. In an IRA or Roth IRA, the loss is disallowed and generally not recoverable, making it effectively lost.

The IRS uses a facts-and-circumstances test. It includes the exact same security, options/contracts to acquire it, and can extend to purchases in a spouse's account or controlled entities. Be cautious with similar-looking securities.

Wait at least 31 days before repurchasing the same security. Alternatively, buy a clearly different security if you need to maintain market exposure. Also, check all accounts, including IRAs, for repurchases.
Rate the article

Average: 0.0 / 5 · 0 ratings

Tags

wash sale loss disallowed wash sale rule explained understanding wash sale rules how to avoid wash sale wash sale rule ira wash sale substantially identical

Share post

Autor Everett Hauck
Everett Hauck
My name is Everett Hauck, and I have 14 years of experience in the fields of investing, planning, and risk management. My journey into this world began with a fascination for how financial strategies can empower individuals and businesses to achieve their goals. I enjoy demystifying complex concepts and making them accessible, so my readers can make informed decisions about their financial futures. Throughout my career, I have focused on analyzing market trends, comparing various investment options, and simplifying difficult topics to help others navigate the often overwhelming landscape of finance. I am committed to providing accurate, understandable, and up-to-date information, ensuring that my insights are not only useful but also relevant to the ever-changing economic environment. My goal is to empower my audience with the knowledge they need to manage their financial risks effectively and plan for a secure future.
Comments (0)
Add a comment