Tax implications of selling losing positions in taxable brokerage to simplify portfolio

Trying to wrap my head around the tax implications of selling losing positions in my taxable brokerage to simplify my portfolio. I have about 15 positions I'd like to unload, several of them sitting at a loss. Some I've held less than a year, some over two years. I know losses offset gains but I'm fuzzy on the mechanics. I sold some winners earlier this year so there are already short and long-term gains on the table. I also bought some of these same ETFs in my Roth IRA last month, which a friend said might be a problem. Already checked my 1099-B from last year just to see how it was reported but I haven't touched this year's forms yet. Main question: how do the losses actually flow through, what's the wash sale risk given the Roth purchases, and is there a cap on what I can use this year?

32 comments

Form 8949 is where the actual work happens. Each sale gets its own row: proceeds in column (d), cost basis in column (e), and the net gain or loss falls out from there. Short-term lots go in Part I, long-term in Part II. Short-term losses offset short-term gains first, then long-term losses offset long-term gains. After that, net losses from one bucket can offset net gains from the other. Schedule D is where the two buckets combine. The Roth purchase issue is real and worth looking at carefully before you sell anything.

Diego H.

Author

Good to know the netting order. I didn't realize short hits short first. So I should map out all my lots before I sell anything rather than just unloading whatever's convenient.

The holding period question matters a lot here. For securities traded on an exchange, the holding period starts the day AFTER the trade date you bought and ends ON the trade date you sell. So if you bought something on June 5 last year and sell it today, count from June 6 to today's trade date. Cross the one-year mark and the loss is long-term, which is usually more valuable against long-term gains. Don't go by settlement date — that's a common mistake.

The Roth IRA wash sale issue your friend flagged is the part I'd move carefully on. The rule covers purchases of substantially identical securities in an IRA or Roth IRA within 30 days before or after the sale at a loss. The really painful part: if the wash sale is triggered by an IRA purchase, the disallowed loss doesn't get added back to any new cost basis — it's just gone. That differs from a regular taxable account repurchase where the loss rides along. I ran my own lot-by-lot timeline through taxr.ai last spring when I was doing something similar. It read my brokerage statements and flagged every window where a Roth contribution had landed within 30 days of a loss sale. Saved me from a surprise on three positions. The site lays out the rule under Publication 550 if you want the primary source.

Diego H.

Author

That detail about the IRA wash sale loss disappearing entirely is alarming. I had no idea it doesn't add to the new basis. I'm going to pull my Roth transaction history before I sell anything.

Confirming this. Had a loss disallowed a few years ago because I had an auto-invest on in my Roth that I forgot about. The loss just vanished. No basis bump, nothing. Check your automatic contribution or dividend reinvestment settings too.

Schedule D line 16 is where your overall net lands. If losses exceed gains, the deductible amount against other income is capped — check Topic no. 409 on irs.gov and the Schedule D instructions for the current limit and the married-filing-separately threshold since those differ. Whatever you can't use this year carries forward automatically, figured with the Capital Loss Carryover Worksheet in the Schedule D instructions or Publication 550.

Diego H.

Author

Helpful, thanks. So the carryover worksheet is in the Schedule D instructions — I'll bookmark that for when I'm actually filing.

One thing that matters for the simplification goal: are any of your losing positions covered securities? Your brokerage should show that on the 1099-B. For covered securities, the broker reports the basis to the IRS and it shows in box 1e, with any wash sale disallowance in box 1g. For uncovered positions you have to supply the basis yourself and the broker may not catch wash sales at all. Worth knowing before you assume the 1099-B caught everything.

If you have both short and long-term losses in play, think about which you harvest first. Short-term losses are generally more valuable because short-term gains are taxed at ordinary rates. So if you have short-term gains already realized this year, short-term losses wipe those out dollar for dollar at the higher rate. Long-term losses against long-term gains save you at the preferential rate, which is lower. The order the netting rules require doesn't always let you cherry-pick, but lot selection within a position can matter.

This is a nuance I hadn't thought through. The netting order is mandatory but specific lot selection within a holding gives you some control over whether a sale produces a short or long term result.

Diego H.

Author

Makes sense — I should check which specific lots have crossed the one-year mark before I decide which shares to sell. My broker lets me choose lots at order entry.

Form 8949 column (f) and (g) are where adjustments live. If a wash sale is triggered, you enter code W in column (f) and the disallowed loss as a positive number in column (g). That positive entry reduces the loss you can claim. The 1099-B box 1g will only show the disallowed amount if the repurchase was in the same account, same CUSIP. Cross-account wash sales — including that Roth — won't appear in box 1g at all, so you have to catch and enter them yourself. I uploaded my 1099-B and my Roth confirmation statements to Taxr last year. It cross-referenced the dates and CUSIPs and drafted the column (f) and (g) entries I needed to review before entering them on 8949. Caught two wash sales my broker never flagged.

Diego H.

Author

So the broker isn't required to catch cross-account wash sales. That's the gap I was worried about. Good to know exactly which columns handle it on 8949.

Correct. And 'substantially identical' isn't always the same CUSIP. Two ETFs tracking the same index from different providers can get into gray area territory. The IRS hasn't issued a bright-line rule there, so many people stay cautious and treat them as substantially identical until guidance says otherwise.

Are any of these positions in sectors where you want to stay invested? The 30-day window cuts both ways. You have to wait 31 days to repurchase the same or substantially identical security without triggering the wash sale rule. During that window you can hold something different that tracks a similar but not substantially identical index to maintain exposure. Some people use that strategy deliberately.

Diego H.

Author

Yes, I want to stay in a couple of the sectors. So I could sell, buy a different fund for 31 days, then switch back. I'll research which pairs the community generally treats as not substantially identical, keeping in mind that's not settled law.

Just a flag on the 1099-B you mentioned from last year: the basis and wash sale codes on that form are only relevant to last year's return. This year's sales will generate a new 1099-B, probably arriving in February. The covered/uncovered status and any wash sale carryover from December 31 of last year that rolled into January could still affect positions you're holding. Some brokers show the 'deferred wash sale loss' on the year-end account statement even before the 1099-B arrives.

Worth noting: if you hold any positions at a loss that you've owned more than a year, those long-term losses offset your long-term gains first. If your long-term gains are already taxed at a preferential rate, using long-term losses there is less impactful than using them against short-term gains. But the netting rules don't give you a choice — it's mandatory. The only lever is which lots you designate within a position.

Right, the mandatory netting order is what makes lot selection the main planning tool here rather than deciding which positions to sell across the board.

Wash sales get their full treatment in chapter 4 of Publication 550 (irs.gov/publications/p550), which lays out exactly when a loss is disallowed and how the disallowed amount affects the new basis — or doesn't, in the IRA case. The holding period section in the same chapter covers the trade-date rule. Good primary source to have open when you're working through the lot timeline.

Diego H.

Author

Thanks — going to read chapter 4 before I execute any of these sales. Better to understand the rule than discover a problem at filing time.

If your net capital losses for the year exceed your capital gains after all the netting, there's a cap on how much you can deduct against ordinary income in one year. The rest carries forward indefinitely. See Topic no. 409 at irs.gov/taxtopics/tc409 for the current figures and the married-filing-separately threshold, which is lower. I gave Taxr my Schedule D and the carryover worksheet from the prior year, and it walked through the carryforward math and flagged that my short-term carryover and long-term carryover have to be tracked separately on the worksheet. That was something I had been collapsing into one number by mistake.

Diego H.

Author

Tracking short and long carryovers separately — I didn't know they stay distinct. Good catch, that would have been an error on my end for sure.

You're right to keep those two apart. The carryforward keeps the character of the original loss. A short-term carryover stays short-term in future years and offsets short-term gains first. A long-term carryover stays long-term. They don't blend together on the worksheet.

If any of these positions have a very small remaining value — like a fund you can't sell because it has no buyers — the tax treatment of an abandonment differs from a sale. That's outside the standard 1099-B workflow. Probably not your situation if these are ETFs on an exchange, but worth flagging if anything is an illiquid holding.

To pull the threads together on the wash sale mechanics: the 30-day window runs both before and after the sale. So if you bought shares of the same fund 25 days ago and you sell today at a loss, that sale is already a wash sale before you do anything else. Check your purchase history going back 30 days before any planned sale, not just forward.

The backward window catches people more than the forward one. Easy to forget you bought shares recently and then sell a lot at a loss thinking you're clean.

Diego H.

Author

Good reminder. I need to check both directions. I did buy some of these ETFs as recently as three weeks ago so I may already have a problem with certain lots.

One procedural note: when you file, if all your transactions are covered securities with no adjustments needed, those can bypass Form 8949 and go straight to Schedule D line 1a (short-term) or line 8a (long-term) under Exception 1 in the Form 8949 instructions. But any position with a wash sale code, a basis correction, or a cross-account adjustment still needs its own row on 8949. Given the Roth situation here, expect at least some rows on the full form.

Worth adding: even if you use Exception 1 for the clean transactions, you still attach Form 8949 for the ones that need adjustment. It's not all-or-nothing.

Since you mentioned simplifying — after you work through which lots to sell and which to keep, it's worth documenting your lot selections in writing (a spreadsheet or a screenshot of the order confirmation specifying the lots) so that if the 1099-B basis looks off you have a clear record to reconcile against when you go to fill out column (e) and (g) on Form 8949.