Which loss is deferred in wash sale when two shares sold together with different basis adjustments?

Trying to untangle a wash sale situation and my broker's 1099-B is making my head spin. I sold two lots of the same stock on the same day — one lot had a cost basis adjusted upward from a previous wash sale, the other was purchased clean. Both sold at a loss. Within 30 days I bought back the same number of shares. My tax software is flagging both lots as wash sales but the disallowed amounts look completely different from what I'd expect given the different basis figures. I can't tell whether the software is deferring the loss from the adjusted lot first, the clean lot first, or splitting it somehow. The 1099-B box 1g figures don't match either lot's loss. Which lot's loss actually gets deferred, and how does the deferred amount get added to the replacement shares?

29 comments

Each lot is treated separately. The wash sale rule applies lot by lot, not to the combined sale. So if you sold lot A (adjusted basis) and lot B (clean basis) and bought replacement shares, the disallowed loss from each lot is calculated on its own loss, and each disallowed amount is added to the cost of the replacement shares it's matched to. The replacement shares absorb the deferred loss from whichever lot they're matched against, which affects both the basis and the holding period of those replacement shares.

Claire G.

Author

Thanks, that helps frame it. So the question becomes how the software decides which replacement shares absorb which lot's deferred loss when I only bought one block of replacements?

The matching usually goes in the order the lots were sold — first sold, first matched to the replacement purchase. But if both lots sold on the same day, the broker may match them in the order they appear in their system, often by acquisition date, oldest lot first. That's why your 1099-B box 1g might look off: each lot's disallowed loss gets tacked onto a different replacement share sub-lot, and the broker may only be showing you the aggregate.

Claire G.

Author

That explains the aggregate box 1g number. I'll ask the broker for the lot-level detail.

Worth noting that box 1g only gets populated at all when the sold shares are covered securities AND the replacement shares have the same CUSIP and were bought in the same account. If any of those conditions fail, the broker won't report the wash sale in box 1g even though the rule still applies and you still can't deduct the loss. You have to track it yourself in that case.

I ran into almost this exact setup last year. I uploaded my 1099-B and the broker's lot detail report to taxr.ai and it mapped every lot to its matched replacement share, calculated the disallowed loss per lot, and showed me what the adjusted basis of each replacement sub-lot should be. Saved me from entering a combined wash sale amount that would have been wrong. The key thing it surfaced was that the lot with the already-adjusted basis had a larger loss but the replacement shares matched to it had a shorter holding period tacked on, which mattered for long vs. short term when I eventually sold.

Claire G.

Author

The holding period carryover piece is exactly what I was missing. I didn't realize the replacement shares inherit the holding period of the washed lot, not just a basis bump.

To be precise on the holding period: when a wash sale occurs, the holding period of the new shares includes the holding period of the shares you sold. So if lot A had been held 11 months before the wash sale, those 11 months carry into your holding period for the matched replacement shares. This can push replacement shares into long-term territory faster, or keep them short-term longer depending on the lot.

Does that apply even if the replacement shares were bought in a different account? Asking because my spouse bought the same stock in a joint account the week after I sold at a loss.

Responding to the question about a spouse's account: yes. The wash sale rules explicitly cover purchases by your spouse. If your spouse bought substantially identical stock within the 30-day window before or after your sale at a loss, that triggers a wash sale for you. The disallowed loss would be added to the cost of the shares your spouse bought. Same rule applies if a corporation you control bought the shares.

Ugh, didn't realize spousal purchases counted. Thanks for the warning.

Going back to the original question about two lots sold together: when you report on Form 8949 you list each lot on its own row. For each row that's a wash sale you put code W in column (f) and the disallowed loss as a positive number in column (g). The net of column (d) minus column (e) plus or minus column (g) gives you the allowed loss or gain for that row. You don't combine the two lots into one row just because they sold on the same day.

Claire G.

Author

Good — my software is at least doing separate rows. I just need to verify the column (g) amounts match the lot-level detail from the broker.

I had a similar multi-lot wash sale problem a couple of tax seasons back. I gave Taxr my 1099-B along with my own spreadsheet of acquisition dates and basis adjustments, and it checked whether each lot's column (g) entry was consistent with the disallowed loss rule, flagged one lot where the deferred amount had been added to the wrong replacement sub-lot, and drafted the corrected Form 8949 rows for me to review before I entered them. The broker's box 1g had lumped two lots together and Taxr separated them back out.

That lumping issue is really common with same-day sales. Brokers sometimes net the wash sale amount across lots in box 1g even though the instructions treat each lot separately.

One thing that matters a lot here: are both lots covered securities? If one lot is covered and the other is noncovered, the broker only reports the wash sale in box 1g for the covered lot. The noncovered lot's wash sale still applies but you're on your own to calculate and report it. Use box B or E on Form 8949 for noncovered lots and enter your correct basis in column (e).

Claire G.

Author

Both lots are covered, same CUSIP, same account. So broker should have reported both. I think the issue is they aggregated as mentioned above.

The deferred loss doesn't disappear — it just moves. Each disallowed loss amount is added to the basis of the specific replacement shares matched to that lot. So if you eventually sell the replacement shares, the higher basis reduces your gain or increases your loss at that point. The loss isn't gone forever, it's just waiting in the basis of the new shares.

Something people miss: if you sell the replacement shares in a wash sale too — meaning you buy again within 30 days — the deferred loss from the first wash sale gets deferred again into the next set of replacement shares. This can chain across multiple rounds. Each round the disallowed loss accumulates in the basis of the next lot. It only actually becomes deductible when you sell without triggering another wash sale.

This happened to me in a volatile period where I kept trading the same ETF. By the time I finally stopped, my basis on the last lot was way higher than I expected because of multiple layers of deferred losses stacked up.

For the specific question about which loss is deferred when two lots sell together: the answer is both. Each lot's loss is independently evaluated. If both are wash sales, both losses are disallowed. The replacement shares are matched to each lot's loss separately, and each match increases the basis and extends the holding period of that sub-group of replacement shares. There's no rule that says only one lot gets deferred.

Claire G.

Author

That's the clearest statement of it. Both losses deferred, both added to the replacement share basis, each matched separately. I'll go lot by lot through the 1099-B detail.

When I had a chain of wash sales across multiple lots I brought my full transaction history into Taxr and it traced each deferred loss through to the replacement lot, confirmed which sub-lots were covered vs. noncovered, and produced a summary showing the running adjusted basis for each replacement group. Helped me verify that my Form 8949 column (g) entries were right before filing. The IRS instructions for Form 8949 at irs.gov/instructions/i8949 have the column (g) rules but working through multiple lots manually is tedious.

Claire G.

Author

Thanks — I'll check the instructions page and sort the lot detail from the broker first, then verify the column (g) entries against that.

Don't overlook Publication 550 on wash sales. It's the main source for the rule that the disallowed loss is added to the cost of the new stock. It also covers the holding period carryover. irs.gov/publications/p550 is worth reading alongside the Form 8949 instructions if you have multiple lots with different basis histories.

If the replacement shares end up in an IRA or Roth IRA rather than a taxable account the situation is worse: the disallowed loss is not added to the IRA's basis. It's just gone. That's one of the more painful corners of the wash sale rules.

Correct, and that's exactly why buying back in a retirement account after selling at a loss in a taxable account is a trap. The deferred loss has nowhere to go.

To wrap the reporting side: once you have the correct disallowed amount for each lot from the broker's lot detail, enter each lot as its own row on Form 8949 with code W and the disallowed loss as a positive number in column (g). The net column (h) for that row will be zero or a reduced loss. Then the basis of the matched replacement shares increases by that disallowed amount — that adjustment lives in your records, not on the current year Form 8949.

Claire G.

Author

Perfect. Separate rows, code W, disallowed loss positive in column (g), and track the basis adjustment in my own records for when I eventually sell the replacement shares. That's the whole picture.