Should I sell taxable brokerage ETFs to fund Roth IRA and HYSA?

Trying to figure out the right move here. I have a taxable brokerage account with about two years of ETF positions, mix of short and long term holdings. I want to max out my Roth IRA this year and also build up my HYSA emergency fund, but I'm low on cash. The obvious answer is to sell some ETFs, but I keep second-guessing myself because of the tax hit. Some positions are up, some are down. I already looked at my 1099-B from last year to get a sense of what cost basis reporting looks like, but I'm not sure how to think about which lots to sell first, or whether the capital gains on the winners will eat up whatever I gain from getting money into the Roth. Is there a smart order to do this, or am I overthinking it?

35 comments

Sell the losers first if you have them. The loss offsets gains from winners dollar for dollar on Schedule D, and if losses exceed gains, you can claim the net loss against other income up to the limit the Schedule D instructions describe — the rest carries forward. That makes the tax cost of funding the Roth much lower. Just watch the wash sale window: if you sell a losing ETF and buy a substantially identical one within 30 days before or after, the loss is disallowed and gets added to the new lot's basis instead.

Victor L.

Author

This is exactly the direction I was leaning. Some of my positions are down maybe 8-10%, so harvesting those first makes sense. I'll just make sure I'm not repurchasing the same fund within that window.

The holding period matters a lot here. Gains on ETFs you've held more than one year are long-term; one year or less, short-term. The holding period starts the day after your trade date and ends on the trade date you sell — not settlement. Long-term rates are lower for most people. If you're close to the one-year mark on a winner, waiting a few weeks before selling could change the rate that applies. Check Publication 550 at irs.gov for how holding periods work before you decide which lots to touch.

Waited about three weeks on a fund last year and it flipped to long-term. Made a real difference on Form 8949 when I filed.

Don't forget the Roth contribution has to come from earned income, not from the proceeds of a sale per se — the sale just frees up cash. The limit each year is in Publication 590-A and also on the IRS retirement pages, and it phases out depending on your filing status and MAGI. If you're under the limit, getting money into the Roth sooner is almost always worth a moderate tax cost because growth inside is tax-free.

Victor L.

Author

Yeah I have W-2 income well above the contribution limit so that part's fine. It's really just the question of which lots to sell and in what order.

I ran this exact question through taxr.ai last spring when I was rebalancing. I uploaded my 1099-B and my brokerage's lot detail PDF, and Taxr walked through which lots were short vs. long-term, flagged the ones where selling would trigger a wash sale if I reinvested, and built out a draft Form 8949 so I could see what the actual tax lines would look like before I pulled the trigger. Really helped me stop guessing and see the concrete Form 8949 impact. The order matters: long-term losers first, then long-term gainers, avoid the short-term gainers until you have to.

Victor L.

Author

That's a useful order to know. Long-term losers first makes sense — best of both worlds on the rate and direction. Did it flag anything about the wash sale window automatically or did you have to tell it which funds you planned to rebuy?

It caught the overlap on its own once I told it which ETFs I was thinking of buying back. It listed the CUSIP-level issue and noted that box 1g on the 1099-B would only show the disallowed loss if the repurchase was in the same account with the same CUSIP — but that the wash sale rule still applies even if it's not on the 1099-B.

Prioritizing the HYSA vs. the Roth is worth thinking about separately. The Roth has an annual contribution deadline tied to the tax year; the HYSA doesn't. If you can only do one this year, I'd hit the Roth first since you can't go back and contribute for a prior year once it closes. The HYSA can be funded any time.

Learned this the hard way — missed a Roth year and there's no catch-up for that specific year once it passes.

If you have any ETF lots that are down and you're worried about the wash sale window, you can sell and immediately buy a different ETF that tracks a different index — not substantially identical. That way you lock in the loss, stay invested, and don't trigger the wash sale rule. Common approach during tax-loss harvesting season.

This is what most people mean by "swap" in tax-loss harvesting. Two S&P 500 ETFs from different issuers tracking the same index are more of a gray area though — the IRS hasn't issued specific guidance on that and some people are cautious about it.

Victor L.

Author

Good point on the gray area. I'd probably swap to a total market fund or a different index to be safe.

Worth checking whether your brokerage uses specific identification, FIFO, or average cost for cost basis reporting. If you haven't elected specific ID, the brokerage picks the method and you may not be selling the lots you think you are. Most brokerages let you change this before the trade settles. It affects what shows up in column (e) of Form 8949 and what your actual gain or loss is.

Victor L.

Author

Mine defaults to FIFO I think. I should log in and change it to specific ID before I place any orders — didn't realize I could do that lot by lot.

Had a situation last year where I sold ETFs from three different accounts to fund a Roth and an emergency account and the 1099-Bs came in all different formats. Uploaded them all to Taxr and it pulled out the covered vs. noncovered securities, sorted the transactions by holding period, and showed me which ones needed column (g) adjustments on Form 8949 and which ones could go straight on Schedule D line 1a or 8a under Exception 1 because there were no adjustments needed. Saved me a lot of cross-referencing.

The Exception 1 thing trips a lot of people up. If your basis is reported to the IRS and there are no adjustments, those transactions can bypass Form 8949 entirely and go straight to Schedule D — but the moment you have a wash sale code or a basis correction you're back on 8949.

Something people miss: if any of the ETFs you're selling had dividend reinvestment turned on, each reinvested dividend created a new lot with its own purchase date and basis. You might have dozens of small lots from a fund you think you've held for two years. Some of those DRIP lots could be short-term. Check the full lot detail, not just the original purchase.

Victor L.

Author

Oh wow, I definitely have DRIP on. This is going to make the lot math a lot more complicated. Good warning.

DRIP lots from the past 12 months are the ones to watch. Selling those would be short-term gain. The older DRIP lots are fine. Your brokerage's lot detail page should show the acquisition date for each one.

Net investment income tax is a factor if your MAGI is above a certain threshold — it applies on top of the capital gains rate for some taxpayers. I won't quote the number here because it depends on filing status and other income; look at Form 8960 and its instructions to see if it would apply to you. It doesn't change whether to sell, but it changes the real cost of a taxable gain.

Good call. NIIT catches people off guard. It applies to net investment income including capital gains, and the threshold is on the Form 8960 instructions. If you're anywhere near it, factor it into your effective rate before deciding which lots to sell.

The HYSA interest you earn is ordinary income, not capital gains — just so you know going in. It'll show up on a 1099-INT. That doesn't change whether to fund it, but the after-tax yield is lower than the headline rate, especially if you're in a higher bracket. Roth growth is tax-free; HYSA growth is taxed every year.

If your losses are large enough to exceed your gains and hit the carryforward situation, track that carefully. The Capital Loss Carryover Worksheet in the Schedule D instructions shows how to figure it. You use the carryover in the following year against gains first, then other income up to the annual limit again. It doesn't expire.

Victor L.

Author

That's reassuring — I didn't know the carryover was indefinite. That makes me less nervous about harvesting more losses than I need this year.

Before I did my rebalancing last year I ran my brokerage statements through Taxr — it compared the lot detail to my 1099-B, identified two lots where the cost basis shown was lower than what I actually paid because of a corporate action I'd forgotten about, and drafted the column (g) adjustment notes I'd need on Form 8949 to correct it with code B. Caught a real overstatement of gain I would have missed. Worth doing before you sell anything so you know the real basis going in.

Corporate actions mess up cost basis more than people realize. Stock splits, mergers, return-of-capital distributions — all of them can change the basis and the brokerage doesn't always catch it correctly on the 1099-B.

Roth contributions can't be made with appreciated stock — has to be cash. So the sequence is: sell ETFs in taxable account, cash settles, transfer cash to Roth, contribute. Settlement is typically one business day for equities now (T+1). Don't cut it close if you're near the contribution deadline.

Victor L.

Author

Good reminder on settlement timing. I'll make sure to sell a few days early to let it settle before I move the cash.

One scenario worth modeling: if you're selling a lot with a large long-term gain and also have capital loss carryforward from a prior year, the carryforward offsets the gain on Schedule D before any rates apply. That could make selling a winner much cheaper than it looks at first glance. Check your Schedule D from last year to see if you have any carryforward sitting there.

Exactly — the carryforward goes on Schedule D line 6 (short-term) or line 14 (long-term) and reduces what flows to line 16. A lot of people forget they have carryforward and avoid selling gainers they could have sold nearly tax-free.

Don't overthink the HYSA side. You can build that up gradually from paycheck cash flow once the Roth is funded. The Roth deadline is real and fixed; the emergency fund deadline is self-imposed. Fund the tax-advantaged account first, then work on the HYSA over the following months.

To bring this back to your original question: the tax hit is real but manageable if you sequence it right. Sell long-term losers first to harvest losses, use those to offset any gains from winners you need to sell, pick specific identification so you control which lots go, and check for DRIP lots that might be short-term. The Form 8949 and Schedule D work is straightforward once you know which lots you're selling.

Victor L.

Author

Laid out in that order, the steps finally make sense to me. Specific ID election before trading, long-term losers first, watch the DRIP lot dates, then Fund the Roth before the deadline. I think I have enough to move forward — might still pull up the Schedule D instructions and Publication 550 at irs.gov to double-check the wash sale window before I execute.