I invested in individual brokerage instead of Roth IRA — should I sell to fund Roth?

So I made a dumb mistake this year. I had money sitting in my checking account that I meant to put into my Roth IRA but I got distracted and ended up just buying a mix of ETFs and individual stocks in my regular taxable brokerage instead. Now I'm looking at this account and wondering if I should just sell everything and move the proceeds into my Roth before the contribution deadline. Some of the positions are up a little, some are basically flat, one is slightly down. I've had most of them less than a year. I know selling means I'll owe tax on any gains, but I feel like the long-run Roth benefit has to outweigh that — right? Is there a clean way to think through whether the tax hit now is worth it, and does the type of gain (short vs long term) change the math here?

35 comments

I made nearly the same mix-up last spring. The short vs. long-term distinction matters a lot here. Anything you've held a year or less gets taxed at your ordinary income rate, which can sting. If a position is up and you've held it under a year, that's the worst case for selling now. Positions that are flat or slightly down are easier calls — losses offset gains, and you get the Roth shelter going forward.

Yeah the short-term rate is what's giving me pause. Most of mine are under a year. The ones that are up aren't up huge but still, paying ordinary income rates on the gains feels bad.

Counting days here is pretty mechanical — for securities on an established market, your clock starts the day after the trade date you bought and stops on the trade date you sell. So if you bought on say March 5 and you sell on March 4 the following year, that's still short-term. The day you sell counts, the day you bought does not.

This tripped me up once. I thought I was at a year but I was one day short. Cost me in ordinary income tax on a decent gain.

Good to know. I need to go back and actually count the days carefully rather than just eyeballing the months.

I was in this same boat and honestly the tax math got complicated fast when I had a mix of gains and a loss in the same account. I uploaded my 1099-B draft to taxr.ai and had it walk through which lots were short-term vs. long-term, which ones would trigger a wash sale if I rebought in the Roth, and what my net capital gain would look like. Saved me from a mistake I nearly made — I almost sold a losing position and bought the same ETF inside the Roth within 30 days, which would have killed the loss deduction.

Wait, the wash sale rule applies if you buy the same thing in a Roth IRA? I had no idea. I was literally about to do that with one of my index funds.

Yes — and what makes it worse is the disallowed loss doesn't even get added back to your basis in the new shares when it's the IRA that buys them. So the loss just disappears entirely. That's the detail that got flagged when I was checking my documents.

The wash sale point is real and brutal. If you sell at a loss in the taxable account and buy substantially identical stock or securities in your Roth IRA within 30 days before or after, the wash sale rules apply — and unlike a wash sale between two taxable accounts, the disallowed loss is not added to the basis of the new shares in the IRA. The loss is gone permanently.

I didn't know the IRA version was worse than a normal wash sale. That's a painful rule.

It is. The usual consolation with a wash sale is that the disallowed loss attaches to your new shares' basis, so you get it eventually. The IRA exception removes that consolation entirely.

Stepping back from the tax mechanics — the broader question of whether selling to fund the Roth is worth it depends on how many years the money has to compound in the Roth, your current vs. expected future tax rate, and how big the tax hit is now. If you're early in your career and the gains are modest, the decades of tax-free growth usually win. If the tax hit is large and you're close to retirement, the math tightens. No single answer fits everyone.

I'm mid-30s so I do have time. I think for the flat and loss positions the sell-and-fund decision is obvious. It's really just the positions with short-term gains where I'm unsure.

Worth noting: you can't just transfer the brokerage shares directly into a Roth IRA. You have to sell, receive the cash, and then make the cash contribution. The contribution counts toward your annual limit the same as any other contribution, so make sure you have enough room left for the year.

Yes — the annual contribution limit applies regardless of where the cash came from. The IRS doesn't care that it was sitting in a taxable account first.

My approach when I did something similar: I sold the losers first, waited more than 30 days before buying anything similar in the Roth to stay clear of wash sale territory, then sold the flat positions. I left the short-term gainers in the taxable account until they crossed into long-term territory. That way I controlled the tax hit in the current year.

This is probably the smartest sequencing. I didn't think about just being patient with the short-term gainers and letting time do the work.

Right, there's no rule that says you have to do it all at once. Spread it over two tax years if the gains are meaningful.

I actually had a pretty complicated version of this last year — multiple lots, one partial wash sale, and I wasn't sure how the adjustment in column (g) of Form 8949 worked for the disallowed portion. I pasted the 1099-B into Taxr and it mapped out every lot onto the right Part and box, flagged the wash sale code W entry, and drafted the column (g) adjustment so I could see the numbers before I handed anything to my CPA.

Column (g) is exactly the part I was dreading. Good to know there are ways to check the work before it goes to a preparer.

Report any gains from the sales on Form 8949 — short-term positions go in Part I, long-term in Part II. In Part I check box A if your 1099-B shows basis reported to the IRS, box B if it shows basis not reported; in Part II use box D or box E the same way. The totals flow to Schedule D. If you end up with net capital losses, there's a limit on how much you can deduct against ordinary income in one year — check Topic no. 409 on irs.gov and the Schedule D instructions for the specific figures.

Yes and losses beyond that limit carry forward to future years. You figure the carryover with the Capital Loss Carryover Worksheet in the Schedule D instructions or Publication 550.

Had one position that was showing a loss on paper but the 1099-B from my broker had a higher proceeds figure than I expected because they'd reinvested a dividend and I forgot. Always reconcile your 1099-B cost basis against your own records before you assume a sale is a clean loss.

Oh that's a good catch. Dividend reinvestments would add to my basis I guess, so if I forgot those lots the basis on the 1099-B might actually be higher than what I'm tracking manually.

If any of your taxable positions are significantly underwater, also think about tax-loss harvesting as a standalone move even if you don't immediately fund the Roth. You can lock in the loss now, wait out the wash sale window, and then decide on the Roth contribution separately. The two decisions don't have to happen at the same moment.

The flip side: if you sell short-term gainers now and the tax hit is real, you're using after-tax dollars to fund the Roth and your effective contribution is smaller than the sticker amount. Sometimes it makes more sense to scrape together the Roth contribution from other cash and just leave the taxable positions alone to mature.

This is the underrated option. If you have other savings you could use for the Roth, the taxable account positions don't need to be liquidated at all.

Don't forget your state. Some states tax short-term capital gains at the same rate as ordinary income, some have a flat rate, some have no income tax at all. The federal math is one piece — the state tax on the sale proceeds can change whether liquidating now makes sense.

Good point. My state does have an income tax so I need to factor that in too.

Also worth verifying you're eligible to contribute to a Roth IRA at all before you go through the sell-and-fund exercise. There are income limits — the IRS Roth IRA page has the thresholds — and if you're above them, you'd need to look at a backdoor strategy instead, which has its own considerations.

Yes, please check eligibility first. Finding out you're over the limit after you've already sold and paid capital gains tax would be a rough sequence of events.

Something I'd add from my own experience: once I finally got everything into a Roth, I wished I'd kept better records of what I paid in the taxable account. Having clean cost basis records per lot — especially for positions with dividend reinvestments — made filing Form 8949 much less painful. Start a simple spreadsheet now if you haven't.

Yes, lot-level records are worth their weight. The 1099-B from the broker will have it for covered securities, but the older the position the more likely you're dealing with uncovered securities where the broker doesn't report basis to the IRS.

Coming at this from a slightly different angle — if the amounts involved are large enough that the capital gains tax this year is material, it might be worth talking to a CPA or enrolled agent before you pull the trigger. They can run the actual numbers with your marginal rate, your state tax, and the Roth growth projection to see if the timing makes sense. This thread gives you the right framework but the specifics matter.

That's fair. The amounts aren't massive but they're not trivial either. I might at least do a rough estimate with my actual numbers before I sell anything.