How to enter 1099-B wash sale adjustment if all shares sold same year

Filing my own return this year and I'm stuck on a weird situation. I sold all my shares in a single stock during 2025 — bought in batches over a few months, sold them all by December. My 1099-B shows a wash sale loss disallowed in box 1g on a few of those lots. But I've read that wash sale rules don't apply if you sold everything and didn't rebuy. The problem is I did rebuy within 30 days between some of the earlier lots, then sold all of it later. TurboTax is flagging a wash sale adjustment I don't know how to handle. Do I still have to enter the code W and the disallowed amount on Form 8949, or does something cancel it out since everything is gone by year-end?

40 comments

The wash sale disallowance still stands lot by lot, even if you sold everything by December. What matters is whether you bought substantially identical shares within 30 days before or after the specific sale that triggered the loss — not whether you held any shares on December 31. So for each lot your 1099-B shows a disallowed amount in box 1g, you do have to report it on Form 8949 with code W in column (f) and the disallowed loss as a positive number in column (g). The good news is that the disallowed loss gets added to the cost basis of the replacement shares, so when those replacement shares were also sold in 2025, that higher basis flows into those lots' entries on Form 8949 and you do recover the economic loss — just through basis, not directly.

Eric K.

Author

That makes sense. So the wash sale loss isn't gone forever, it just moved into the cost basis of the replacement lot, and since I sold that replacement lot too, it shows up there?

Exactly. The disallowed loss inflates the basis of the replacement shares. When those shares are sold, that inflated basis reduces your gain (or increases your loss) on that lot. Net result over the whole year should be the same as if there had been no wash sale, as long as every replacement lot was also sold with no new identical purchase within 30 days after.

Check which box you're checking in Part I or Part II on Form 8949 first. If your broker reported the basis to the IRS (covered securities), you check box A for short-term or box D for long-term. Enter exactly what the 1099-B says in columns (d) and (e), even if the basis looks wrong, then put W in column (f) and the box 1g amount as a positive number in column (g). Don't try to net these yourself before entering them — each lot gets its own row.

Eric K.

Author

My broker marked them as covered so it'll be box A or D depending on holding period. I was trying to combine lots to simplify but sounds like that's not allowed.

Right, you can't combine lots that have adjustments. Under Exception 1 in the Form 8949 instructions, you can skip Form 8949 and go straight to Schedule D only for transactions with basis reported to the IRS and no adjustments needed. The wash sale code W is an adjustment, so those rows must appear on Form 8949 individually.

Something that helped me when I had a similar batch-sale situation: I uploaded my 1099-B to taxr.ai and it listed every lot, flagged which ones carried a W code, and showed me how the disallowed amount from each washed lot rolled into the basis of the next purchase. Saved me from manually tracing six different buy dates. It didn't file anything — I took the worksheet it prepared and entered the numbers myself in my tax software. The rule it was working from is Publication 550, which says the disallowed loss is added to the cost of the new stock.

Eric K.

Author

That's useful to know. I have about eight lots and doing it by hand is getting confusing fast.

One detail people get wrong: the holding period of the replacement shares includes the holding period of the shares you sold at a loss. So even if you bought the replacement shares recently, they might be long-term because they tack on the holding period from the washed lot. This can change whether you use Part I or Part II on Form 8949 for the replacement lot's row.

This is real and it bit me a couple years ago. My replacement lot looked short-term by purchase date but was actually long-term because of tacking. The 1099-B from my broker got it wrong and I had to adjust.

Eric K.

Author

So I need to verify my broker's holding period classification on the replacement lots and not just trust what the 1099-B says?

Correct. If the broker got the holding period wrong, you report the lot in the Part that matches the correct holding period, still checking box A or D when the basis was reported to the IRS (B or E only if it wasn't), and you put code T in column (f) to show the short-term/long-term type on the 1099-B is incorrect. The Form 8949 instructions cover the adjustment codes in detail.

To be clear about the "all sold same year" question: the wash sale rules don't care about year-end position. They look at a 61-day window — 30 days before and 30 days after each specific sale. If you sold lot A at a loss on March 10 and bought the same stock on March 25, that's a wash sale regardless of whether you sold those March 25 shares in June. The IRS rule in Publication 550 is explicit that it's the sale date and the surrounding 30-day windows that matter.

Eric K.

Author

This clears up my main confusion. I kept reading that "if you sell everything the wash sale goes away" but that only applies when you hold nothing at year-end AND didn't rebuy within the window, right?

Pretty much. The "everything gone by year-end" idea is shorthand for: no open position to carry the disallowance into next year. But if the wash sale already happened mid-year and the replacement shares were bought and sold before December 31, the wash sale event is still real — the disallowed loss just found its way into the replacement lot's basis, which you got back when you sold it.

Are you sure your broker rolled the disallowed loss into the replacement lot's cost basis correctly on the 1099-B? Some brokers do it right, some don't, especially for lots bought in different accounts or if you have both a taxable and an IRA account holding the same ticker.

Eric K.

Author

All trades were in the same taxable brokerage account, so hopefully the broker tracked it correctly. But I'll double-check the basis on the replacement lots against my own records.

Worth doing. And note that if you or your spouse bought the same stock in an IRA within that 30-day window, that's also a wash sale but the disallowed loss is permanently lost — it does NOT get added to the IRA's basis. That's a different and worse outcome than the regular wash sale treatment.

Each row on Form 8949 for a washed lot: column (d) is proceeds from the 1099-B, column (e) is the cost basis from the 1099-B, column (f) gets W, column (g) gets the box 1g amount as a positive number. That positive number in column (g) reduces your loss. Then the replacement lot's row will have a higher basis in column (e) reflecting the rolled-over disallowed amount, which works in your favor on that row.

Eric K.

Author

So on the replacement lot I should see the basis is higher than what I actually paid because the wash sale amount was added. If my broker got it right, that number should already be in column (e) on the 1099-B for that lot.

The IRS instructions for Form 8949 say the box 1g amount goes in column (g) as a positive number when you have a wash sale. A lot of people put it in as a negative and then wonder why their loss is doubling instead of being disallowed. Positive in column (g) reduces the loss.

Confirming this — I made that exact mistake my first year with wash sales. The positive entry in column (g) effectively adds back to your proceeds mathematically, shrinking the loss to zero or to whatever is allowed.

When I had a big batch of washed lots last year I pasted the 1099-B into Taxr and had it cross-reference which sale triggered which wash sale and which replacement lot absorbed the basis adjustment. It laid it all out in a table I could check against my broker's records line by line. Found one lot where the broker had the basis adjustment on the wrong replacement lot. Corrected it before filing.

Eric K.

Author

Did you have to do anything special to fix the broker error? Like file with the correct basis and attach something?

For a covered security where the basis reported to the IRS is wrong, you check box A or D, enter the basis as the 1099-B shows it in column (e), then put code B in column (f) alongside code W (you can list multiple codes), and put the net adjustment in column (g). The Form 8949 instructions explain using multiple codes in the same column (f) entry.

If none of the replacement lots were reacquired within 30 days after your final sale in December, you're clean going into 2026 — no open wash sale position to carry forward. The wash sale only carries into the next year when you still hold the replacement shares on December 31 and have not sold them.

Eric K.

Author

I sold everything before December 15 and didn't rebuy. So I think I'm fine on that front — no carryforward situation.

Had a messy version of this with eight or nine lots last year. I dropped the 1099-B PDF into Taxr and asked it to draft a summary showing each lot's adjusted basis after the wash sale rollover. It put together a clear table and I used it to check each line before entering in my software. Caught a lot where the disallowed amount hadn't been rolled over at all — broker just left it out. Ended up reporting that lot with code B and W both in column (f) and adjusting column (g) accordingly.

Eric K.

Author

Two codes in the same column (f) box — I didn't know you could do that. Good to know before I start entering.

The Form 8949 instructions say you can enter more than one code in column (f). Just list them without spaces. The column (g) amount is whatever net adjustment results from all the codes combined.

Schedule D pulls the totals from Form 8949 — you don't enter individual lots on Schedule D itself (unless you qualify for Exception 1, which you don't here because of the W adjustments). Short-term totals from Part I of Form 8949 flow to Schedule D line 1b, 2, or 3 depending on which box you checked. Long-term totals from Part II flow to lines 8b, 9, or 10.

Worth double-checking your holding periods before you sort lots into Part I vs Part II. Especially with the tacking rule someone mentioned above. I had Taxr read through my 1099-B and my trade confirmations together and it flagged two lots where the holding period on the 1099-B didn't match what tacking would produce given the wash sale chain. Gave me a list of which lots needed a holding period correction and what the correct Part I vs Part II assignment should be.

Eric K.

Author

I hadn't thought about verifying tacking on every lot individually. I'll check my trade confirms against the 1099-B before I finalize.

The rule from Publication 550 is that the holding period of the new shares includes the holding period of the shares sold. So if the washed shares were held 8 months and you bought the replacement on the sale date, the replacement's holding period starts 8 months ago, not on the purchase date. That can flip a lot from short-term to long-term.

If your situation ends up with a net capital loss after all this, the deduction against ordinary income in one year is limited. The cap and carryforward rules are on Topic 409 on irs.gov. Any unused loss carries to the next year — it doesn't disappear.

Procedurally: once you have all your Form 8949 rows entered with the right boxes, codes, and column (g) adjustments, the totals carry automatically to Schedule D. From there your net capital gain or loss flows to Form 1040. Nothing extra to attach for a wash sale — the W code on Form 8949 is the reporting. No separate statement needed.

Eric K.

Author

Good to confirm. I was worried I needed to write a statement explaining the wash sales but sounds like the codes on Form 8949 do that job.

The codes are the disclosure. As long as column (f) has W and column (g) has the correct positive adjustment for each disallowed lot, you've reported it correctly. The IRS can match it against the box 1g amounts on your 1099-B.

To answer the original question directly: yes, you still report the wash sale adjustment even when all shares are sold in the same year. The disallowance happened when it happened. The form mechanics are: W in column (f), box 1g amount as a positive in column (g), basis on the 1099-B in column (e) as-is. The economic wash sale loss comes back to you through the replacement lot's higher basis, which you've already realized by selling those shares. Net outcome over the full year is correct if the broker got the basis rollover right.

Eric K.

Author

This is exactly what I needed laid out in one place. Thank you. I'll go through each lot, verify the replacement basis, check holding periods for tacking, and enter each row separately on Form 8949 with the W code.