Withdraw Roth IRA contributions or sell taxable stocks for house down payment — which costs less in taxes?

Trying to figure out the most tax-efficient way to pull together a house down payment. I have about two years of Roth IRA contributions sitting in there (no conversions, no earnings touched), and I also have a taxable brokerage account with a mix of positions — some with long-term gains, some short-term, and a couple that are actually underwater. I know Roth contributions can come out anytime without tax or penalty since I already paid tax going in. But I'm not sure if selling the taxable stocks triggers something that makes it worse overall, or if the losses in that account could actually help offset the gains. I've been reading Publication 550 but I'm going in circles on how the two interact when you add capital loss offsets into the picture. Which route actually makes sense here, or is it some combination of both? Does my income bracket change the answer significantly?

35 comments

Roth contributions first, no question for most people. You already paid income tax on that money, and since you're only touching contributions (not earnings), there's no additional tax and no penalty regardless of your age or how long the account has been open. The IRS treats it as a return of basis. The taxable account is messier. Short-term gains get taxed as ordinary income. Long-term gains get a preferential rate that depends on your taxable income for the year — check the Schedule D instructions for the brackets. Your losses can offset your gains dollar-for-dollar first, then up to a limit against ordinary income, with any remainder carrying forward. So if you have big unrealized losses in the taxable account, harvesting them alongside gains could reduce what you owe.

Derek W.

Author

That framing helps a lot. So basically I should model out: Roth contribution withdrawal = $0 tax, then separately figure the net gain/loss in the taxable account to see what's left over after offsets?

Modeling it, yes. Net your short-term gains and losses together, net your long-term gains and losses together, then combine as Schedule D instructs. What survives that netting is what gets taxed (or deducted up to the annual limit).

Worth double-checking one thing: you said "contributions only" for the Roth, but make sure your records actually separate contributions from earnings. Brokers don't always track this clearly and the IRS uses Form 8606 to establish basis in a traditional IRA — Roth basis tracking is on you to maintain separately. If you accidentally pull earnings before the account has been open five years and you're under 59½, that portion is taxable and subject to penalty. Contributions are always fine, but confirm the exact dollar amount.

Derek W.

Author

I do have records going back to the first contribution year. Each year's contribution is documented. My concern was more about the interaction with the brokerage side, but this is a good reminder to double-check the exact figures before I move anything.

I ran into this exact decision last year before closing on a place. The piece that surprised me was how much the wash sale rules mattered when I was trying to harvest losses in my taxable account. I sold a position at a loss to offset a gain, then nearly bought back into a similar ETF within 30 days — that would have disallowed the loss under the wash sale rules and added the disallowed amount to the new shares' cost basis instead. I uploaded my 1099-B and my trade history to taxr.ai and it flagged the potential wash sale before I made the repurchase. Saved me from a situation I would have only discovered when the 1099-B arrived the following January with the disallowed loss amount in box 1g (and code W to enter on Form 8949). Worth running your documents through it if you have multiple positions to unwind.

Derek W.

Author

The wash sale angle is something I hadn't even been thinking about. I was planning to sell the losers and immediately reinvest the proceeds into something similar. Glad you flagged this before I did exactly that.

Repurchase step is the one to watch. 30 days before or after the sale — either direction — and buying substantially identical securities triggers it. Different enough funds may be fine, but "substantially identical" is a facts-and-circumstances question the IRS doesn't define with a bright line.

One scenario worth modeling: if your taxable account has positions that are underwater (you mentioned some), selling them at a loss first could wipe out any gains you'd otherwise realize from other positions you sell for the down payment. Net loss beyond your gains can offset ordinary income up to the annual limit on Schedule D line 16 / Form 1040 line 7a, and anything beyond that carries to future years via the Capital Loss Carryover Worksheet. So the losers in that account might actually subsidize pulling the down payment from the winners.

Carryover step is what a lot of people forget. The loss doesn't disappear — it just moves to next year's Schedule D.

Exactly. And unlike the Roth where the money is just gone from the account, the carryover loss keeps working for you in the following tax years.

Your income bracket matters a lot for the taxable account side. Long-term capital gains rates are not the same as your ordinary income rate, but the thresholds depend on taxable income and filing status — the Schedule D instructions have the exact brackets for the current year. If your income is low enough, your long-term gain rate could be zero. If you're in a higher bracket it could be 15% or 20%. Short-term gains are just ordinary income, so those hurt more regardless.

Derek W.

Author

I'm married filing jointly and we're not at the top bracket, but definitely not at the bottom either. So probably 15% on long-term is my assumption, but I'll confirm against the Schedule D instructions.

Something people miss with the Roth: there's no limit on how much of your contributions you can withdraw. You could pull every dollar of contributions you've ever made in a lump sum and owe nothing. The five-year rule and the 10% penalty only apply to earnings, not contributions. So if you have enough contributions to cover the whole down payment, that might be the cleanest path with the least tax paperwork.

Paperwork step is real — I pulled Roth contributions last year and the 1099-R the custodian sent had distribution code J. Had to reconcile it on Form 8606 to show the IRS it was a return of contributions and not taxable. Not complicated but you do have to do it.

Good point. The custodian reports the distribution and you show the basis on Form 8606. It's not automatic — you have to file that form to establish that the amount came from contributions.

If the taxable account has short-term positions with gains, I'd exhaust the Roth contribution withdrawal first before touching those. Short-term gains taxed as ordinary income can easily cost more than you'd expect once you factor in your marginal rate. Long-term gainers with an offset from your underwater positions are a different story — net them carefully and the tax hit might be manageable.

The order I'd think about it: first figure out how much you actually need. Then see if Roth contributions alone cover it. If not, in the taxable account, sell the losers first to bank the losses, then sell whichever gainers you need — preferably long-term ones — using the losses as an offset. Avoid selling anything you'd want to rebuy within 30 days or the wash sale rules kill the loss.

Derek W.

Author

This sequencing makes sense. The piece I keep getting stuck on is whether to rebuy the same positions after the 30-day window or just leave that money deployed into the new house.

Rebuying step depends on your investment goals, not really a tax question. But if you want to stay in those positions, waiting out the 30 days preserves the loss. Just calendar it.

Had a similar situation when I was buying last spring. My taxable account had a mix of lots with different holding periods and I wasn't sure which ones were long-term vs. short-term — my broker's interface grouped them weirdly. I uploaded the 1099-B from the prior year and the current account statement to Taxr and it sorted the lots by holding period, flagged which gains were short vs. long, and listed which pairs of gains and losses would offset cleanly without triggering a wash sale. That breakdown made the actual decision a lot simpler.

Derek W.

Author

The lot-level sorting is exactly what I need. My broker shows me positions but not individual lots clearly. I'll try running the documents through it before I make any sales.

Don't overlook the interaction with your overall income for the year. Capital gains, even long-term ones, stack on top of ordinary income when determining which rate bracket you fall into. If you have a high-income year for other reasons — bonus, freelance work, whatever — the gains from selling taxable stock could push into a higher rate. The Roth contribution withdrawal has zero effect on your AGI, which is another reason it's often the cleaner first move.

AGI impact is real. And unlike a traditional IRA withdrawal, the Roth contribution amount doesn't even show up as income. It just doesn't exist for tax purposes.

The wash sale rule that was mentioned earlier has one more wrinkle worth knowing: it also applies if your spouse buys substantially identical securities in the 30-day window, or if a corporation you control does. It's not just your own account to watch. I ran into this because my spouse and I both had accounts at the same broker — she bought back into something I had just harvested a loss on and the loss got disallowed. I fed both account statements to Taxr and it cross-referenced the trades and flagged the wash sale. I would have missed it completely otherwise because we file jointly but managed the accounts separately.

Derek W.

Author

Spouse account step — that's one I genuinely would not have thought to check. We do have separate brokerage accounts. I'll make sure to coordinate any repurchases.

For the tax forms side once you've made the sales: each sale in the taxable account goes on Form 8949. Short-term lots in Part I (box A if your broker reported basis to the IRS, box B if not), long-term in Part II (box D or E). The totals flow to Schedule D. Any wash sale disallowance shows up in column (f) with code W and the disallowed amount as a positive number in column (g). I used Taxr last year when I had a bunch of partial lot sales and wasn't sure which box to check or how to enter the adjustments. It walked through each line of my 8949 and flagged where the adjustment columns needed entries. Saved me from leaving column (g) blank when it shouldn't have been.

Column (g) step is where I've made mistakes before. Easy to skip if the 1099-B doesn't explicitly spell out the adjustment amount.

Box 1g on the 1099-B shows the wash sale loss disallowed, but only when both the sold and repurchased securities are covered securities with the same CUSIP bought in the same account. If the repurchase was in a different account — or your spouse's account — the broker won't catch it and you have to enter it yourself.

To summarize where this thread has landed: Roth contributions come out first because there's no tax and no effect on your AGI. For the taxable account, harvest losses first to offset gains, watch the 30-day window on both sides for wash sales (and check your spouse's account too), prefer long-term gainers over short-term when you do have to sell, and remember the net loss beyond your gains can offset ordinary income up to the annual limit with the rest carrying forward.

One thing I haven't seen mentioned: if any of those taxable positions have been held for one year or less and have unrealized losses, selling before they pass the one-year mark would make the loss short-term (anything held more than a year gives a long-term loss). Short-term losses offset short-term gains first (which is good, since short-term gains are taxed as ordinary income), but the character of the loss matters for the netting order on Schedule D.

Netting order step is spelled out in the Schedule D instructions. Short-term nets against short-term first, long-term against long-term, then the survivors combine. Getting the character right before you sell matters.

If the down payment amount you need is large relative to what you have in Roth contributions, you may end up needing both sources anyway. In that case the sequencing is: Roth contributions first (zero tax), then the most tax-efficient sales from the taxable account — losses to offset gains, long-term preferred over short-term for anything remaining. Run the numbers both ways before you sell anything because once the trades are executed the character and timing are locked in.

Derek W.

Author

Running both scenarios before executing — that's the actual takeaway. I've been trying to pick one or the other but it's probably a mix, and the mix ratio depends on modeling the numbers first. Thank you all, this gave me a real framework to work from.

Publication 550 on investment income and expenses and Publication 551 on basis of assets are both worth reading for the cost basis and wash sale rules in detail. The IRS pages for Form 8949 and its instructions cover the column entries. Those are the primary sources if you want to verify anything discussed here before you act.