Wash Sales Across Accounts and IRAs: What Your 1099-B Won’t Show
~10 min readQuantRidge Editorial Team
Sell at a loss in one account, buy the same shares in another within 30 days, and the loss is disallowed, whether the second account is yours at another broker, your spouse’s, or your IRA. Your 1099-B will not show it, because brokers only report wash sales they can see inside a single account. This is how the rule actually reaches, why an IRA repurchase is permanent, a worked example in dollars, and how to report it.

- The wash-sale window
- 61 days
- 30 days before the sale, the sale day, 30 days after
- What your broker reports
- Box 1g
- Only wash sales inside one account, in identical securities
- An IRA or Roth IRA repurchase
- Permanent
- Loss disallowed and the IRA’s basis not increased
- How you report a missed one
- Code W
- Form 8949, column (f), with the disallowed loss in (g)
Key takeaways
- The wash sale rule applies to you, not to an account. A purchase in your other brokerage account, your spouse's account or your IRA within 30 days before or after a loss sale disallows the loss.
- Between taxable accounts the loss is deferred into the replacement shares' basis. Bought back in an IRA or Roth IRA, it is lost for good.
- Your broker only has to report wash sales within one account and the same security, so box 1g of your 1099-B can be correct by its own rules and still overstate your deductible loss.
- Report a missed wash sale on Form 8949 with code W, and fix the replacement shares' basis with code B when you sell them.
The wash sale rule in one paragraph
Under section 1091 of the Internal Revenue Code, you cannot deduct a loss on a sale of stock or securities if, within 30 days before or 30 days after the sale, you acquire substantially identical stock or securities, or a contract or option to acquire them. Count the sale day itself and the window is 61 days long. The loss is not destroyed in the ordinary case: it is deferred, by being added to the cost basis of the shares that caused it. That is the whole rule, and most people know it.
What most people do not know is how wide “you acquire” reaches, and how narrow the part your broker checks for you is. The gap between those two is where losses quietly disappear, and it is the subject of this article.
Which purchases count: wash sales across accounts, your spouse and your IRA
The statute is written about the taxpayer, not about an account. A purchase anywhere you are the buyer counts. In practice that means:
- Your other brokerage accounts. Selling at a loss at one broker and buying the same shares at another inside the window is a wash sale. So is selling in an individual account and buying in a joint one.
- Your spouse's accounts. IRS Publication 550 says it plainly: if you sell stock and your spouse, or a corporation you control, buys substantially identical stock, you also have a wash sale.
- Your IRA and Roth IRA. Rev. Rul. 2008-5 holds that a purchase inside your IRA or Roth IRA within the window triggers the rule. More on why this one is worse below.
- Purchases before the sale, not only after. The window runs in both directions. Buying a second lot on November 20 and selling the first lot at a loss on December 10 is caught just as surely as selling first and buying back.
- Purchases you did not place by hand. A reinvested dividend is an acquisition. So is an automatic investment plan, and so is a scheduled contribution into the same fund inside a retirement account. They are usually small, and they only disallow the loss on the number of shares they buy, but they count.
What your 1099-B checks, and what the wash sale rule checks
§ 1091: one test across all of these
You
Your taxable account
Broker A. Taxable: a washed loss moves into the new shares’ basis
Its 1099-B adjusts wash sales inside this account only
Your IRA or Roth IRA
Tax-advantaged: a washed loss is lost for good
Its 1099-B adjusts wash sales inside this account only
Your other taxable account
Broker B. Taxable: a washed loss moves into the new shares’ basis
Its 1099-B adjusts wash sales inside this account only
Your spouse’s account
Your spouse’s purchases count too
Its 1099-B adjusts wash sales inside this account only
- § 1091: the rule looks across all accounts
- 1099-B: the broker’s adjustment, same account only
- Tax-advantaged account
The wash sale IRA trap: a loss that never comes back
In an ordinary wash sale between two taxable accounts, the disallowed loss moves into the basis of the replacement shares (section 1091(d)). You get it back later, when you sell those shares. It is a timing problem, not a permanent one.
When the replacement shares are bought inside an IRA or Roth IRA, there is nowhere for the loss to go. Rev. Rul. 2008-5 holds that the loss is disallowed and that your basis in the IRA is not increased. Inside a traditional IRA, withdrawals are taxed as ordinary income regardless of the basis of any particular holding; inside a Roth, qualified withdrawals are not taxed at all. Either way, the deferred loss is never used. An IRA repurchase turns a deferral into a permanent loss of the deduction.
This is the case most worth checking for, because it is the one the paperwork is least likely to surface and the one that cannot be fixed later.
What your broker reports on Form 1099-B, and what it does not
Brokers have reported cost basis and wash-sale adjustments on Form 1099-B since the basis-reporting rules took effect for stock acquired from 2011. But the obligation is narrow. Under Treas. Reg. §1.6045-1(d)(6)(iii), a broker has to account for a wash sale only when both the sale and the purchase happen in the same account and involve identical securities, which in practice means the same CUSIP.
Everything else is yours to find. Your broker does not see your account at another firm, your spouse's account, or your IRA at a different custodian. It is not required to judge whether two different securities are substantially identical. KPMG's practitioner primer on wash-sale reporting makes the same point: the broker rules and the tax rule are not the same rule, and the difference is the taxpayer's responsibility.
The result is a 1099-B that can be perfectly correct by its own rules and still overstate your deductible loss. Box 1g, “Wash sale loss disallowed”, shows only what the broker was able to see. Basis can disagree for other reasons too; why your cost basis may not match your broker's goes through them.
A worked example, in numbers
On March 2, 2026 you buy 100 shares of a stock at $50 in your taxable account at Broker A, for a basis of $5,000. On November 16, 2026 you sell all 100 at $40, for $4,000. That is a $1,000 short-term loss, and it is what Broker A's 1099-B will show. The window for this sale runs from October 17 to December 16, 2026.
The timeline and table below show what each of five things happening inside that window does to the loss.
The example’s 61-day window: November 16, 2026 is day 0
- Window opens · day −30
- Sale of 100 shares at a loss · day 0
Dec 3: bought 100 at $42
Day +17 · Broker B (taxable)
In the window
Or: the same buy in an IRA
Day +17 · IRA or Roth IRA
In the window · permanent
- Window closes · day +30
Dec 18: bought 100
Day +32 · Broker B (taxable)
Outside the window
- Purchase inside the window
- Inside the window in an IRA or Roth IRA: loss lost for good
- Purchase outside the window
- Sale at a loss, day 0
What five different purchases in the window do to the $1,000 loss
| Inside the window | Split of the loss | Disallowed | Allowed in 2026 | Where the disallowed loss goes |
|---|---|---|---|---|
| Nothing bought in the window | $0 | $1,000 | Deductible in 2026 | |
| 100 shares bought in your other brokerage account, or your spouse’s | $1,000 | $0 | Added to the basis of the replacement shares | |
| 40 shares bought in another taxable account | $400 | $600 | Added to the basis of those 40 shares | |
| A dividend reinvests 2 shares in a taxable account | $20 | $980 | Added to the basis of the 2 new shares | |
| 100 shares bought in your IRA or Roth IRA | $1,000 | $0 | Nowhere. The IRA basis is not increased |
Nothing bought in the window
- Disallowed
- $0
- Allowed in 2026
- $1,000
Deductible in 2026
100 shares bought in your other brokerage account, or your spouse’s
- Disallowed
- $1,000
- Allowed in 2026
- $0
Added to the basis of the replacement shares
40 shares bought in another taxable account
- Disallowed
- $400
- Allowed in 2026
- $600
Added to the basis of those 40 shares
A dividend reinvests 2 shares in a taxable account
- Disallowed
- $20
- Allowed in 2026
- $980
Added to the basis of the 2 new shares
100 shares bought in your IRA or Roth IRA
- Disallowed
- $1,000
- Allowed in 2026
- $0
Nowhere. The IRA basis is not increased
- Allowed in 2026
- Disallowed, added to the replacement shares’ basis
- Disallowed for good
Take the second row, the common one. On December 3 you (or your spouse) buy 100 shares at $42 at Broker B, for $4,200. Three things follow:
- The $1,000 loss is disallowed for 2026. Broker A's 1099-B will still show it as a full loss, because Broker A never saw the purchase.
- The replacement shares' basis becomes $5,200: the $4,200 you paid plus the $1,000 you could not deduct. Broker B will show $4,200, because it does not know about the sale.
- The holding period carries over. Under section 1223(3), the replacement shares include the time you held the shares you sold, about eight and a half months here. They become long-term well before December 2027.
Now suppose you sell the replacement shares in 2027 at $47, for $4,700. Broker B's 1099-B will report a $500 gain. Using the correct basis, the result is a $500 loss. The $1,000 you could not deduct in 2026 comes back in 2027, but only if someone carries it across two brokers and two tax years.
Change the December 3 purchase to your IRA (the last row) and none of that happens. The loss is gone, and nothing on any form will tell you so.
Illustration only, with round numbers chosen for clarity. It is not a recommendation to buy or sell anything. Real cases can involve several lots, several replacement purchases matched in the order they were made, and options; work those through with a tax professional.
Reporting a cross-account wash sale on Form 8949: code W and code B
Sales go on Form 8949, which feeds Schedule D. Two adjustment codes from the Form 8949 instructions do the work for a cross-account wash sale:
- Code W on the loss sale. Report the sale as the 1099-B shows it, enter code W in column (f), and enter the nondeductible loss as a positive number in column (g). In the example that is $1,000, which brings the reported loss to zero. The instructions also say to use code W with the correct amount when the broker's wash-sale figure is wrong, which includes when it is missing.
- Code B on the later sale of the replacement shares. When Broker B reports a basis that leaves out the carried-over loss, enter code B and an adjustment in column (g) that corrects the basis. In the example that is a negative $1,000 adjustment, turning a reported $500 gain into the correct $500 loss.
The worked example on Form 8949, in two tax years
| Sale | (d) Proceeds | (e) Cost basis | (f) Code | (g) Adjustment | (h) Gain or (loss) |
|---|---|---|---|---|---|
| 2026: the loss sale at Broker ABought March 2, 2026 · sold November 16, 2026 · short-termBroker A’s 1099-B shows the full $1,000 loss. Code W and a positive $1,000 adjustment bring it to zero. | $4,000 | $5,000 | W | +$1,000 | $0 |
| 2027: the replacement shares at Broker BBought December 3, 2026 · sold in 2027Broker B’s 1099-B shows a $4,200 basis. Code B and a negative $1,000 adjustment correct it to $5,200. | $4,700 | $4,200 | B | −$1,000 | ($500) loss |
2026: the loss sale at Broker A
Bought March 2, 2026 · sold November 16, 2026 · short-term
- (d) Proceeds
- $4,000
- (e) Cost basis
- $5,000
- (f) Code
- W
- (g) Adjustment
- +$1,000
- (h) Gain or (loss)
- $0
Broker A’s 1099-B shows the full $1,000 loss. Code W and a positive $1,000 adjustment bring it to zero.
2027: the replacement shares at Broker B
Bought December 3, 2026 · sold in 2027
- (d) Proceeds
- $4,700
- (e) Cost basis
- $4,200
- (f) Code
- B
- (g) Adjustment
- −$1,000
- (h) Gain or (loss)
- ($500) loss
Broker B’s 1099-B shows a $4,200 basis. Code B and a negative $1,000 adjustment correct it to $5,200.
Neither adjustment is possible without your own record of the replacement purchase and its adjusted basis. That record is the thing to keep.
What counts as substantially identical
The rule does not define the phrase, and Publication 550 says it depends on all the facts and circumstances. A few points are reasonably settled:
- The same stock, or the same share class of the same fund, is substantially identical.
- Ordinarily, stock of one corporation is not substantially identical to stock of another, even in the same industry.
- An option or contract to buy the same stock counts as an acquisition under the statute itself.
- Bonds and preferred stock of the same issuer are ordinarily not substantially identical to its common stock, but convertible securities can be, depending on their terms.
What is not settled is the case most harvesters care about: two index funds from different sponsors that track the same index. The IRS has not issued guidance on it. Funds that track different indexes are generally treated as the safer swap. If a replacement is close enough that you would not notice the difference in your returns, it is worth asking whether the IRS would notice the difference in the securities.
How to check your own year for wash sales across accounts
- List every loss sale for 2026 with its date, shares and security, across every taxable account.
- For each one, list every acquisition of the same or a substantially identical security from 30 days before to 30 days after, in every account you and your spouse own, including IRAs, Roth IRAs and, conservatively, workplace plans. Include dividend reinvestments.
- Compare against box 1g of each 1099-B. Anything the broker already adjusted is done. Anything it did not is yours to report with code W.
- Carry the adjusted basis and holding period forward on the replacement shares, and keep that record until you sell them, so the code B correction is possible.
- Note any IRA matches separately. Those losses are gone; there is nothing to carry.
For a sale that has not happened yet, the window runs into next year. A loss sale on December 31, 2026 is exposed to purchases from December 1, 2026 through January 30, 2027, so a January rebalance or a new-year IRA contribution can still reach back into this year's return. Our 2026 tax-loss harvesting checklist covers the before-the-trade side; tax-loss harvesting has two seasons covers reconciling it once the 1099-Bs arrive.
If you want a quick first pass, the free harvest check reads a positions CSV exported from your broker and flags possible wash-sale conflicts between the accounts in that file, alongside unrealized losses and concentration. It runs entirely in your browser: the file is not uploaded, and there is no signup. It can only see the accounts you put in the file, so include your spouse's and your IRA if you can. To test one sale and its surrounding purchases, use the wash-sale and loss-harvest calculator, and how we calculate sets out the rules both apply.
Sources
- 26 U.S.C. §1091, Loss from wash sales of stock or securities
- IRS Publication 550, Investment Income and Expenses (wash sales)
- Rev. Rul. 2008-5, 2008-3 I.R.B. (IRA and Roth IRA purchases)
- Treas. Reg. §1.6045-1, broker reporting, including wash sales (paragraph (d)(6)(iii))
- IRS, Instructions for Form 8949 (adjustment codes W and B)
- KPMG, A primer on wash sale reporting in a volatile market (July 2022)
Rules as they stand for the 2026 tax year. Tax law changes; check the current version of each source before relying on it.
Frequently asked questions
Does the wash sale rule apply across different brokerage accounts?
Yes. The rule applies to you as a taxpayer, not to a single account, so buying substantially identical shares at another broker within 30 days before or after a loss sale is a wash sale. Your broker will usually not report it, because it only sees its own account.
Does buying in an IRA trigger a wash sale?
Yes. Rev. Rul. 2008-5 holds that buying substantially identical securities in your IRA or Roth IRA within the window disallows the loss, and the IRA’s basis is not increased, so the deduction is lost permanently.
Do my spouse’s purchases count for the wash sale rule?
Yes. IRS Publication 550 says that if you sell stock at a loss and your spouse buys substantially identical stock within the window, you have a wash sale.
How long is the wash sale window?
61 days: the 30 days before the sale, the sale day itself, and the 30 days after. A purchase anywhere in that window can disallow the loss, including one made before the sale.
Why doesn’t my 1099-B show a wash sale I know happened?
A broker has to report a wash sale only when the sale and the purchase are of identical securities in the same account. Box 1g shows what that broker could see; a wash sale across accounts is yours to report with code W on Form 8949.
How do I report a wash sale my broker missed?
Report the sale on Form 8949 as the 1099-B shows it, enter code W in column (f), and enter the disallowed loss as a positive number in column (g). When you later sell the replacement shares, use code B to correct their basis if the broker left the disallowed loss out.
© 2026 QuantRidge. Educational content; not tax or investment advice.