How to buy a house with cash using retirement accounts with least tax

Trying to figure out the best path here. I have a traditional IRA, a Roth IRA, and an old 401(k) from a previous employer. I want to buy a house outright with cash and I'm wondering how to buy a house with cash using retirement accounts with least tax impact possible. I'm 51, so no 59½ yet. The house would be around the amount sitting in my Roth contributions (not earnings). I've read that Roth contributions come out tax-free but I'm fuzzy on ordering rules and whether my old 401(k) rollover counts separately. Already looked at Publication 590-B but got confused on the basis tracking piece. Is there a smarter sequence here, or is this basically unavoidable ordinary income no matter what I do?

32 comments

What's the split between your Roth contributions vs. earnings, and do you know if you've ever done a rollover into that Roth? That matters a lot for the ordering rules.

Sean R.

Author

Contributions were all direct, no Roth conversions rolled in. Earnings on top of that are probably about 30% of the account. I've had the account open more than 5 years.

Roth IRA ordering rules are the key thing here. Contributions come out first, then conversions, then earnings — and your contributions are always tax and penalty free regardless of age. So if the house price is at or under your total Roth contributions, you could potentially pull that cash with zero tax and zero penalty. I ran a similar situation through taxr.ai last year — uploaded my Roth statements and my Form 8606 and it built out the ordering worksheet so I could see exactly how much was contribution basis before I touched anything. Saved me from accidentally dipping into earnings. The 10% early distribution penalty on earnings is real at 51, but the first-time homebuyer exception does cover Roth earnings, up to a $10,000 lifetime limit — and with the account open 5+ years that amount is even tax-free.

Sean R.

Author

That's the clearest breakdown I've seen. So as long as I stay within the contribution layer I owe nothing? And the 5-year rule on the account itself — does that change anything for contributions specifically?

Are you set on using retirement money, or have you looked at whether a securities account with long-term holdings might be cheaper from a tax standpoint? Depending on your bracket, long-term capital gains rates could be lower than ordinary income from an IRA withdrawal.

Sean R.

Author

Don't have a big taxable brokerage. Most savings ended up in the retirement accounts over the years. So it's pretty much these or nothing.

Understood. Then the Roth contribution layer really is your cleanest option if the numbers line up.

To answer the follow-up about the 5-year rule: for Roth IRA contributions specifically, the 5-year rule does NOT apply. You can always withdraw your own contributions tax-free and penalty-free at any age, any time. The 5-year rule only matters for earnings (and for conversions in certain situations). Since you said your account has been open 5+ years anyway, your earnings would also clear the qualified distribution test once you hit 59½, but that doesn't help you right now at 51.

Sean R.

Author

That clears it up. So contributions out now = fine. Earnings would be taxable income plus the 10% penalty, unless an exception like first-time homebuyer applies. Got it.

What about the old 401(k)? Are you thinking of rolling it to the traditional IRA first or pulling directly from the 401(k)? The plan rules matter — some plans allow in-service or post-separation distributions and some don't, and the 10% penalty still applies under 59½ unless an exception fits.

Sean R.

Author

I left that employer four years ago so it's just sitting there. I was thinking rollover to traditional IRA first, then maybe Roth conversion of some of it over a couple years if I had time, but I need the cash pretty soon.

Rolling the 401(k) to a traditional IRA and then doing a series of Roth conversions is a legitimate strategy but it front-loads ordinary income in the years you convert. If you need the house cash soon, the conversion ladder won't help you because conversions have their own 5-year clock for penalty-free withdrawal (even though the tax was already paid). You'd still owe the 10% penalty on converted amounts withdrawn before 59½ if the conversion is less than 5 years old.

Have you talked to a CPA about whether a 72(t) SEPP arrangement makes sense? It lets you take substantially equal periodic payments from an IRA before 59½ without the 10% penalty. The catch is you're locked into the schedule for the longer of 5 years or until you reach 59½, and modifying it triggers back-penalties. It's a tool but it's a commitment.

This is worth knowing about but it's not really a "buy a house with one lump sum" solution since the payments have to be periodic and roughly equal. It spreads the income and avoids penalty but doesn't get you one big chunk on demand.

Fair point. It's more of a parallel income stream than a housing fund tap.

Are you tracking your Form 8606 basis carefully? Every year you have nondeductible traditional IRA contributions, that gets recorded on Form 8606 and it's what protects you from double taxation when you eventually withdraw. I uploaded all my prior 8606s to Taxr along with my IRA statements and it flagged a year where the basis hadn't been carried forward correctly — would have overpaid tax on that distribution without catching it.

Sean R.

Author

My traditional IRA contributions were all deductible so I don't think I have 8606 basis there, but I'll double-check. The Roth basis I'm relying on is the contribution total from my custodian statements.

Custodian statements show total contributions but they don't always break out the ordering correctly for tax purposes. The IRS uses your 8606 history for Roth basis too if there were any conversions. Since yours were all direct contributions no conversions you're probably fine, but keep those statements.

Does your Roth custodian give you a Form 5498 each year? That's where they report contributions and fair market value. It's not filed with your return but it's useful backup if the IRS ever questions your Roth basis.

Sean R.

Author

Yes I have those going back to when I opened the account. Good to know they're useful as documentation.

Worth saying plainly: pulling from a traditional IRA or 401(k) at 51 means the whole amount is ordinary income in that tax year. If the house purchase is large enough that pushes you into a significantly higher bracket, the tax hit could be substantial. The Roth contribution route sidesteps that entirely for the contribution layer. The mismatch between those two paths can be really significant depending on your other income.

Did you think about whether you need the full amount at closing or whether a bridge arrangement could let you stagger withdrawals across two tax years? Splitting the income across years 1 and 2 at least keeps you from a single-year bracket spike on the taxable portion. I gave Taxr my draft withdrawal plan and my prior two returns and it estimated what each bracket layer would look like across the two years — helped me see which piece to pull from which account in which year. Really useful before I committed to anything.

Sean R.

Author

That two-year split hadn't occurred to me. If I can close with the Roth contributions this year and handle any gap next year from the traditional, that might keep the taxable piece smaller. Worth running.

Are there any Roth earnings you might accidentally pull? Roth withdrawals aren't pro-rata — by law they come out of contributions first no matter how your custodian processes them, and you show that on Form 8606. Just keep the withdrawal at or under your contribution total.

Sean R.

Author

Good call. I'll keep the withdrawal under my contribution total and keep my records handy to show the basis on Form 8606.

Penalty exceptions worth knowing about: there's a first-time homebuyer exception for traditional IRA distributions but it has a lifetime cap — see Publication 590-B at irs.gov for the exact amount since it's a specific dollar figure I don't want to misstate here. It waives the 10% penalty but NOT the income tax. And it doesn't apply to 401(k) plans, only IRAs. So for your traditional IRA piece, if you go that route, that exception could reduce the penalty bite at least.

This is a real exception and worth checking but as you said the income tax still applies so it's not a free pass. Just removes the penalty layer.

This situation has a lot of moving parts — the 72(t) option, the Roth ordering rules, the traditional IRA exception, the 401(k) rollover timing, potential Roth conversions. If the house purchase is a significant amount of money, a CPA or enrolled agent who handles retirement distributions regularly is worth the cost before you pull anything. Getting the sequencing wrong is expensive and mostly irreversible.

Sean R.

Author

Agreed. I'm going to map out the Roth contribution number first since that part seems clear, then sit down with an EA before I touch the traditional or 401(k) money.

Publication 590-B on irs.gov walks through the Roth ordering rules and the first-time homebuyer exception in detail. The distribution ordering section lays out exactly the sequence: contributions first, then conversions in the order made, then earnings. That sequence is set by law, not by your custodian's paperwork.

To pull the main points together from this thread: Roth contributions are your cleanest lever — no tax, no penalty, no income inclusion, full stop. Roth earnings at 51 would be taxable plus the 10% penalty unless an exception applies. Traditional IRA and 401(k) money is ordinary income plus 10% penalty with limited exceptions. The first-time homebuyer exception ($10,000 lifetime) applies to IRAs only, Roth included. For traditional IRA money it only waives the penalty, not the tax, but for Roth earnings in an account open 5+ years it makes them tax-free too. And an EA or CPA before you pull anything from the taxable accounts is not optional at this scale.

Sean R.

Author

This is exactly the summary I needed. Roth contributions first, EA before anything else, check the homebuyer exception for the traditional piece if I need it. Thanks everyone.