401k to buy a house401k loanfirst time home buyer

401k to Buy a House: Your Actionable 2026 Guide

Thinking of using your 401k to buy a house? Learn the rules for loans vs. withdrawals, understand the tax penalties, and see how it impacts your down payment.

401k to Buy a House: Your Actionable 2026 Guide

You’ve found a house you could picture yourself buying. Then the cash-to-close estimate lands in front of you, and the whole plan starts to wobble. Your savings might cover part of the down payment, but not all of it, and closing costs push the number even higher.

That’s the moment many buyers start looking at retirement money and asking whether using a 401k to buy a house is smart, reckless, or necessary. It can be any of those, depending on how much cash you need, how stable your job is, and what taking money from retirement would cost your future.

Table of Contents

Can You Really Use Your 401k to Buy a House?

Yes, you can. A more important question isn’t whether it’s allowed. The primary question is whether it solves your home purchase without creating a bigger problem later.

That’s why I urge buyers to stop thinking only about the down payment. Focus on cash to close. You may need money for the down payment, lender fees, prepaid items, reserves, and moving-related expenses. If you pull from retirement without sizing the full shortfall first, you can hurt your long-term finances and still come up short at the closing table.

A young person wearing a green beanie looks at a house listing on a computer monitor.

This isn’t a fringe move. A 2024 Zillow survey on using retirement funds for a home purchase found that 24% of home buyers in the United States tapped into their retirement funds, including 401(k)s, 403(b)s, and IRAs, to finance their down payment.

Most buyers who use a 401k for a home end up looking at one of two paths:

  • A loan from the 401k. You borrow from your account and repay it over time.
  • A withdrawal from the 401k. You take money out permanently, and taxes usually follow.

Those two choices may sound similar because both produce cash. In practice, they behave very differently.

Practical rule: If retirement money is going to enter the picture, decide based on the total cash gap, not on the emotional urge to “just get the deal done.”

The two questions that matter first

Before comparing options, answer these:

  1. How much cash are you short? If the gap is modest, a loan might cover it. If the gap is larger, even tapping retirement may not fully solve it.

  2. What’s the actual cost of accessing that money? Some buyers focus on immediate access and ignore taxes, repayment pressure, or lost retirement growth.

A house can be a good financial move. But using retirement funds carelessly is one of the easiest ways to turn a manageable purchase into a strained one.

Option 1 The 401k Loan

A 401k loan can fill a specific cash-to-close gap without creating an immediate tax bill. For a first-time buyer who has enough income for the monthly payment but not quite enough liquid cash for the down payment, lender fees, prepaid taxes, and insurance, that distinction matters.

The basic rule is straightforward. American Action Forum’s analysis of 401(k)-funded down payments notes that 401(k) loans cap at $50,000 or 50% of the vested balance, and that this route avoids immediate taxes and penalties. That makes the loan option easier to model than a withdrawal, because the headline amount you borrow is generally the amount available to use at closing.

That said, the right question is not “Can I borrow from my 401k?” The better question is “How much cash do I need to close, and is borrowing from retirement the least damaging way to cover that gap?” Buyers often underestimate the full number. If you have not mapped out lender fees, escrows, and prepaid items yet, a breakdown of first-time home buyer closing costs helps clarify whether the shortfall is a few thousand dollars or something much larger.

How the loan works in practice

A 401k loan lets you borrow from your own retirement plan and repay the balance through payroll deductions. Your plan has to allow loans, and your available amount depends on your vested balance, not just the account total you see on a statement.

That payroll deduction is where the actual trade-off shows up.

On paper, buyers like the idea of “paying themselves back.” In practice, the repayment still reduces take-home pay at the same time the household is adjusting to a mortgage payment, utilities, maintenance, and the ordinary surprises that come with owning a home. A loan can solve the upfront funding problem while making the first year of ownership tighter than expected.

A practical checklist looks like this:

  • Check whether your plan allows loans. Some employer plans do not.
  • Confirm your vested balance. The legal cap does not matter if your vested amount is lower.
  • Ask about repayment terms for a home purchase. Some plans allow longer repayment for a primary residence.
  • Review the payroll deduction amount. The monthly repayment needs to fit comfortably alongside your new housing costs.
  • Ask what happens if you leave your job. A job change can turn a manageable loan into a rushed repayment problem.

Where this option fits best

A 401k loan works best for a buyer with a defined cash shortfall and stable income after closing. I usually view it more favorably when the missing amount is the final piece of the transaction, not the main engine holding the deal together.

That distinction matters. If you are short by a modest amount because closing costs came in higher than expected, a loan may be a practical tool. If you need retirement money because you are stretched on the down payment, short on reserves, and worried about the monthly payment, the loan is covering a deeper affordability problem.

The long-term cost is easy to ignore when you are focused on getting the keys. Money borrowed from the plan is money that is no longer fully invested for retirement while the loan is outstanding. Younger buyers feel that opportunity cost more than they expect, because the dollars removed in their 20s or 30s are the dollars that had the most time to compound.

Here’s the short version:

  • Works better: You need help with cash to close, but your post-closing budget remains solid.
  • Works better: Your job is stable and you expect to stay with the same employer.
  • Works poorly: You are using the loan to make an already thin budget barely work.
  • Works poorly: You may change jobs soon or your income is unpredictable.

A 401k loan is usually a liquidity tool, not a fix for an unaffordable purchase.

That is the frame I would use. Start with the exact cash needed to close, then compare that gap against the hit to your paycheck and the retirement growth you are giving up for a period of time. If the numbers still work comfortably, a 401k loan can be the cleaner of the two retirement-funding options.

Option 2 The Hardship Withdrawal

A hardship withdrawal is more final. You’re not borrowing from yourself. You’re taking money out of retirement and giving up the future growth on that money.

A distressed person holding a key while looking at retirement savings, illustrating financial hardship withdrawal concepts.

That’s why I treat a withdrawal as the more serious choice. It can help with immediate cash needs, but it comes with a harder long-term cost and less room to undo the decision later.

What makes a withdrawal expensive

The core problem is simple. The money leaves the account for good, and the tax treatment can shrink what you get to use.

Chase’s explanation of 401(k) withdrawal rules for a home purchase states that IRS rules permit a qualified first-time homebuyer to withdraw up to $10,000 from a 401(k) without the usual 10% early withdrawal penalty, but that the amount is still subject to ordinary income tax, which can reduce net proceeds by 20% to 25% or more.

That means a buyer who says, “I’ll just pull ten grand,” may not end up with ten grand available for closing.

For many first-time buyers, the math often breaks down. You may be solving a cash problem with money that arrives smaller than expected.

If you’re still building your home-buying budget, it helps to understand the full stack of expenses, not just the down payment. This overview of first-time home buyer closing costs is a good reality check before you touch retirement savings.

When the first-time buyer exception matters

The exception matters most when a buyer has a limited, specific gap and no practical loan option through the plan. It’s not broad permission to drain retirement. It’s a narrow tool.

The definition of first-time homebuyer can also be broader than many people expect under the rule described above. Even so, plan approval and documentation matter, and buyers shouldn’t assume access is automatic.

A useful way to think about a withdrawal:

  • Good use case: A small, clearly defined shortfall that keeps the deal viable.
  • Bad use case: Using retirement money as the main funding source for a purchase that already looks too expensive.
  • Good use case: You understand the tax impact before requesting funds.
  • Bad use case: You’re counting every dollar of the gross withdrawal as usable cash.

Here’s a short explainer that can help if you want another plain-English walk-through before making the call.

Don’t judge a withdrawal by the amount leaving the account. Judge it by the amount that actually reaches your closing table and the retirement value you give up to get it.

Loan vs Withdrawal A Side-by-Side Comparison

When buyers compare these two options, they often overfocus on convenience. The cleaner way is to compare them by what matters in a home purchase: how much cash you can access, what happens at tax time, whether repayment creates stress, and which risk would hurt more if life changes.

An infographic comparing 401k loans and hardship withdrawals for financing a home purchase.

Quick comparison table

Feature 401(k) Loan Hardship Withdrawal
Access to funds Borrow from your vested balance, subject to plan rules Take money out permanently, subject to plan rules
Maximum available Up to $50,000 or 50% of vested balance For a qualified first-time buyer, up to $10,000 may avoid the usual early withdrawal penalty
Immediate taxes Generally avoided at the time of the loan Ordinary income tax applies
Early withdrawal penalty Generally avoided if handled as a loan and repaid under plan rules The usual penalty may be waived on the qualified first-time buyer amount noted above
Repayment Required Not required
Mortgage qualification effect Does not count toward mortgage DTI No loan repayment obligation, but less retirement capital remains
Main risk Job change or job loss can create a serious repayment problem Permanent loss of retirement money and future growth
Best fit Buyers with stable employment and a defined cash gap Buyers with no better option and a limited need they’ve fully priced after taxes

How to read the trade-offs

A loan is usually better when the issue is timing. You need funds now, but your budget can support repayment and your employment outlook is steady.

A withdrawal is usually the last-resort option. It can reduce friction in the short term because there’s no repayment schedule, but it creates a cleaner closing by making your retirement messier.

There’s another practical reason to prefer a structured comparison. The home purchase itself already has enough moving parts. If you’re also trying to sort out lender standards, this guide on debt-to-income ratio for mortgage approval helps frame the bigger affordability picture.

Decision lens: A loan is usually a cash-flow decision. A withdrawal is a wealth-transfer decision from your future self to your present self.

Use that lens carefully. If the home only works because you’re willing to weaken retirement security, slow down. If it works with a contained loan and a healthy post-closing budget, that’s a different conversation.

The Hidden Risks and Long-Term Costs

Most buyers spend far more time estimating the down payment than estimating the cost of interrupting retirement compounding. That’s understandable. The house is immediate. Retirement feels distant.

But here, the biggest mistake happens.

A person walks away from a toy house model with a long shadow cast on pavement

The opportunity cost young buyers underestimate

For younger buyers, the account often isn’t large enough to absorb a big hit without consequences. Marketplace’s reporting on pulling from a 401(k) for a house notes that for buyers under 35, the median 401(k) balance is $13,500, and that withdrawing $10,000 could mean sacrificing over $75,000 in future retirement value.

That single fact should change how a first-time buyer thinks about “just using retirement for the house.” If your balance is modest, the withdrawal isn’t just a funding choice. It’s a major reduction in the growth engine you’ll rely on later.

Here’s the practical takeaway:

  • Small balances are fragile. Taking a large share of a modest account does disproportionate damage.
  • Young buyers lose the most time. The earlier the money leaves, the more compounding years disappear.
  • Home equity doesn’t automatically offset the loss. A house can still be a good purchase, but the trade-off must be measured accurately.

If you’re under 35 and your 401k balance is still early-stage, using it for a house often feels smaller in the moment than it really is.

The job-change risk that can upend the plan

The long-term cost isn’t limited to withdrawals. Loans carry a different risk. They depend on stability.

If your job changes, a manageable 401k loan can become a stressful problem fast. That doesn’t mean every loan is a bad idea. It means the quality of the strategy depends heavily on your employment picture.

Ask yourself a few blunt questions:

  1. Would I still feel comfortable taking this loan if my job changed sooner than expected?
  2. Will my new mortgage payment leave enough room for repayment without squeezing everything else?
  3. Am I using retirement money to bridge a temporary gap, or to make an already-stretched purchase possible?

Buyers who answer those questions thoughtfully usually get clearer quickly. Sometimes the answer is yes, the loan is manageable. Sometimes the better move is waiting, saving longer, or buying less house.

Making Your Final Decision

The right decision starts with one discipline: define the exact cash problem before choosing the funding source. Don’t start with the retirement account. Start with the purchase.

A practical decision framework

Use this sequence.

First, size your total cash-to-close need.
You need to know the full amount required, not just the down payment. If you’re still sorting that out, this guide on how much to save for a down payment helps frame the savings target in a more realistic way.

Next, separate affordability from liquidity.
If your monthly payment will already be uncomfortable, retirement money won’t fix that. It only helps with upfront access.

Then, test whether a loan would fully cover the shortfall.
A loan is usually the first retirement-based option to evaluate because it can avoid immediate taxes and preserve cleaner short-term cash use.

After that, test a withdrawal only on net usable dollars. Don’t think in gross withdrawal numbers. Think in after-tax money that reaches closing.

Finally, pressure-test the decision against your life, not just the transaction.
A stable job, reliable cash flow, and a manageable home payment make retirement access less dangerous. Uncertain job plans and a thin budget make it more dangerous.

A good decision usually has three traits:

  • The cash gap is specific
  • The monthly payment remains comfortable after closing
  • The retirement hit is limited and understood in advance

If one of those is missing, waiting may be the stronger move. Buying later with a stronger balance sheet often beats buying now with a fragile one.

Frequently Asked Questions About Using a 401k for a Home

Can I use 401k money for closing costs, not just the down payment?

Yes, if your plan allows the loan or withdrawal and the amount is available to you.

That matters because many first-time buyers are not short on the down payment alone. They are short on the full cash-to-close number. Appraisal fees, lender charges, prepaid taxes, homeowners insurance, and reserves can make up the gap. I often see buyers who can handle the future mortgage payment but still come up several thousand dollars short at closing.

Before you touch retirement money, pin down the exact shortage. If the gap is $6,000, solving a $6,000 problem with a much larger withdrawal is expensive. Every extra dollar taken from a 401k has a long-term cost. Use retirement funds only for the amount that gets the deal to the finish line.

Will a 401k loan hurt my credit score?

Usually no. A 401k loan generally does not report like a mortgage, auto loan, or credit card.

The bigger issue is underwriting and cash flow. Your mortgage lender may ask about the payroll deduction tied to the loan repayment, because that deduction reduces the income available for your housing payment and other debts. Even if it does not damage your credit score, it can still make your monthly budget tighter right when homeownership adds new costs like repairs, utility changes, and higher insurance.

A practical test helps here. Add the new mortgage payment, property taxes, insurance, expected maintenance, and the 401k loan payment. If that total feels tight before you close, it will feel tighter after a water heater breaks.

What if I leave my job with a 401k loan still outstanding?

This is the question buyers underestimate most.

A 401k loan can look manageable while you have a steady paycheck. Then you switch employers, get laid off, or leave for a better opportunity, and the remaining balance may need quick attention. If you cannot repay it under your plan's rules, the unpaid amount can be treated as a distribution, which means taxes may apply and penalties can apply if you are under the qualifying age.

Run this scenario before you borrow: you take a loan for closing, buy the house, then change jobs six months later. Now you are dealing with a move into homeownership, a possible gap in income, and a retirement account problem at the same time. That is a rough setup for a first-time buyer with limited cash reserves.

Before taking the loan, ask your plan administrator these questions:

  • What happens to repayment if I leave the company?
  • How long do I have to repay the balance after separation?
  • Can I keep making payments after I leave, or is a lump sum required?
  • How is an unpaid balance reported for tax purposes?
  • Are there fees or restrictions I should know about?

If you do not like the answers, the loan is riskier than it first appears.

Is a withdrawal ever better than a loan?

Sometimes. Usually in narrow cases.

A withdrawal can make more sense if your plan does not offer loans, your job situation is unstable, or you do not want a new payroll deduction reducing your monthly flexibility after closing. But the only dollars that matter are the dollars that reach the closing table after taxes and any penalty that applies. Buyers often focus on the gross amount withdrawn and ignore how much disappears before they can use it.

That is why I treat a withdrawal as a last-resort liquidity tool, not a convenient source of down payment cash. It can solve a closing problem today while creating a retirement problem that lasts for decades. For a young buyer, that lost compounding time is often the biggest cost in the entire decision.

Do Roth accounts follow the same rules?

No. Roth money needs a closer look because the rules depend on whether you are dealing with a Roth 401k or a Roth IRA, and the tax treatment is not identical.

For Roth IRAs, contributions can generally be taken out tax-free because you already paid tax on that money. Earnings are different. The 5-year rule matters, and taking out earnings too early can trigger taxes and possibly penalties. For Roth 401ks, plan rules control whether money can be accessed at all, and withdrawals may come out proportionally from contributions and earnings rather than from contributions first.

Do not guess here. Ask exactly which dollars you are withdrawing, contributions or earnings, and ask whether the account satisfies the 5-year requirement. One wrong assumption can turn a tax-free plan into an expensive mistake.

If you’re trying to decide whether using a 401k to buy a house is workable, start with the numbers that matter most: full cash to close, realistic monthly payment, and the long-term trade-off. Home Ready Calculator helps first-time buyers see those numbers clearly so the decision is based on reality, not guesswork.