Can I Use My 401(k) to Buy a House?
By Personal Finance DeskUpdated Nov 10, 2026
Key takeaways
- A 401(k) loan avoids taxes and the 10% penalty, but it is capped at the lesser of 50% of your vested balance or $50,000, and it must be repaid with interest.
- Loans used to buy a principal residence, including a condo you will live in, can have a repayment term longer than the usual five-year maximum.
- A withdrawal before 59½ from a traditional 401(k) is taxed and usually penalized, even when it is a hardship distribution for a home purchase.
- Roth 401(k) money is not fully tax-free before retirement: a nonqualified distribution includes a share of earnings that can be taxed and penalized.
- IRAs, not 401(k)s, have the $10,000 first-time homebuyer exception, and low-down-payment mortgage programs can reduce how much cash you need in the first place.
Yes, you can use your 401(k) to buy a house or a condo, but how you take the money determines what it costs. The two main routes are a 401(k) loan and a withdrawal. A loan, if your plan offers one, lets you borrow up to 50% of your vested balance or $50,000, whichever is less, with no income tax or early withdrawal penalty as long as you repay it on schedule. A withdrawal before age 59½ from a traditional 401(k) is generally taxed as ordinary income and hit with a 10% additional tax, and buying a first home does not exempt you from that penalty in a 401(k). Condos follow the same rules as single-family houses. What matters to the plan and the IRS is how the money is taken and whether the property will be your principal residence, not the type of home.
How 401(k) Rules Apply to a Home Purchase
A 401(k) is an employer-sponsored retirement account that trades tax advantages for restricted access. The tax treatment depends on which version you hold.
Traditional 401(k). Contributions go in before tax, and the account grows tax-deferred. Every dollar you take out is taxed as ordinary income in the year you receive it. If you are under 59½, the IRS adds a 10% additional tax on early distributions unless a specific exception applies. One exception that matters for some buyers is the separation-from-service rule: if you leave your job in or after the year you turn 55, distributions from that employer’s plan are not subject to the 10% penalty, though they are still taxed.
Roth 401(k). Contributions are made with after-tax money, so there is no deduction when you contribute. Qualified distributions, generally those taken after age 59½ once the account has been open at least five years, are tax-free. Before that, a distribution is nonqualified, and the IRS treats it as a proportional mix of your contributions and earnings. The contribution portion comes out tax-free; the earnings portion is taxable and can be subject to the 10% penalty. You cannot choose to withdraw only contributions from a Roth 401(k) the way you can with a Roth IRA.
Access is also a plan-level question. Federal law sets the outer limits, but your employer’s plan decides whether loans are offered at all and whether you can take hardship or other in-service withdrawals while you still work there. The first practical step is reading your plan’s summary plan description or calling the plan administrator.
Borrowing From Your 401(k) to Buy a House
A 401(k) loan is usually the less expensive way to use retirement money for a down payment, because the money is not treated as a distribution.
How much you can borrow
The legal maximum is the lesser of:
- 50% of your vested account balance, or
- $50,000.
Only the vested balance counts. If your employer’s matching contributions vest over several years, the unvested portion does not raise your borrowing limit. The $50,000 cap holds no matter how large the account is: someone with $2 million in a 401(k) can still borrow no more than $50,000 through a plan loan. Larger amounts would have to come from a withdrawal, which brings the tax consequences described below. Plan money also cannot be lent to someone else; a 401(k) loan is a loan to you as the participant.
Interest and repayment
The plan sets the interest rate and repayment terms. You repay through payroll deductions, and the interest goes back into your own account rather than to a bank. That is often described as paying interest to yourself, which is accurate as far as it goes, but the repayments are made with after-tax dollars, and they are not new contributions. You get no tax deduction and no employer match on them. Some plans also restrict new contributions while a loan is outstanding, which can cost you match dollars.
The standard maximum term is five years. When the loan is used to buy your principal residence, the plan can allow a longer repayment period. Plans that offer this extended term typically ask for documentation showing the loan is for a home purchase, such as a purchase contract. A condo you will live in as your main home qualifies the same way a house does. A vacation condo or a rental unit does not count as a principal residence, so a loan for one of those would be limited to the ordinary term.
What happens if you leave your job
This is the biggest risk in a 401(k) loan. If you leave or lose your job, many plans require the outstanding balance to be repaid, and any unpaid amount is treated as a distribution through what is called a loan offset. Under current law you have until your tax return due date, including extensions, for that year to deposit the offset amount into an IRA or another eligible plan and avoid taxes. If you can’t, the unpaid balance is taxed as income and, if you are under 59½ and no exception applies, also penalized. Missing payments while still employed can trigger the same result.
Withdrawing From Your 401(k) for a House
If your plan has no loan option, or you need more than the loan cap allows, a withdrawal is the alternative. While you still work for the employer, this usually means a hardship distribution, and buying a principal residence is one of the IRS’s recognized reasons for one. A hardship distribution is limited to the amount you actually need, which can include amounts to cover the taxes it creates, and your plan will ask you to document the need.
A hardship distribution is not a penalty exception. From a traditional 401(k), the money is taxed as ordinary income and, before 59½, also hit with the 10% additional tax. Nor can it be repaid to the account later; you can only rebuild the balance through future contributions. From a Roth 401(k), the pro-rata rule applies: the contribution share is tax-free, and the earnings share can be taxed and penalized.
After you have left the employer, you can generally withdraw any amount from that plan, with the same tax treatment, minus the penalty if the age-55 separation rule applies to you.
Example: What Each Route Costs
Assume, hypothetically, a 35-year-old buyer with $60,000 vested in a traditional 401(k) who wants $25,000 toward a condo down payment and closing costs. Assume a combined 24% federal rate and no state income tax, to keep the arithmetic simple.
Loan. The limit is the lesser of 50% of $60,000 ($30,000) or $50,000, so $30,000 is available. Borrowing $25,000 creates no tax or penalty. The buyer repays it, with plan-set interest, through payroll deductions over the term the plan allows for a principal residence.
Withdrawal. Taking $25,000 out triggers $6,000 in income tax (24%) and a $2,500 penalty (10%), leaving $16,500 to spend. To net the full $25,000, the buyer would need to withdraw roughly $37,900, because 34% of each withdrawn dollar goes to taxes and penalties. That money is gone from the account permanently.
Both routes also cost future growth. Suppose a balance of $20,000 is cut to $10,000 to fund a purchase. At a hypothetical 7% annual return, $10,000 grows to about $54,274 over 25 years, while $20,000 would have grown to about $108,548. A loan reduces this cost because the money returns to the account as you repay it, but the borrowed amount still misses whatever the market earns while it is out. The effect compounds, which is why small amounts taken early in a career cost more than the same amounts taken near retirement. For the math behind this, see how compound interest works.
Special Considerations When Buying a Condo
The 401(k) rules themselves are the same for a condo and a house. Other parts of the purchase are not.
- Monthly costs. Condo owners pay homeowners association dues on top of the mortgage, taxes and insurance. If a 401(k) loan repayment is also coming out of each paycheck, the combined monthly obligation can be higher than a house with a similar price.
- Lender review of the project. Some loan programs, including FHA financing, require the condo project itself to meet program standards. A down payment from your 401(k) does not change those requirements.
- Documenting the funds. Mortgage lenders generally want to see where your down payment came from, so keep the loan or distribution paperwork from your plan.
- Primary residence vs. investment. Using a condo as your own home is what qualifies a 401(k) loan for the longer repayment term. A condo bought as a rental or second home can still be funded with a standard loan or a withdrawal, but with the shorter term or full tax cost.
Alternatives to Tapping Your 401(k)
IRA first-time homebuyer withdrawals
IRAs have a provision 401(k)s lack. You can withdraw up to $10,000 over your lifetime from a traditional or Roth IRA before 59½ without the 10% penalty if the money goes toward buying, building or rebuilding a first home. “First-time” has a specific meaning: you qualify if you have not owned a principal residence in the previous two years. From a traditional IRA, that $10,000 is still taxed as income, and anything above it is both taxed and penalized.
Roth IRAs are more flexible. Your contributions can be withdrawn at any time with no tax or penalty, because ordering rules treat contributions as coming out first. Earnings are different: to take up to $10,000 of earnings tax-free for a first home, the account must have met the five-year holding requirement. The details are in Roth IRA withdrawal rules and the 5-year rule.
If you have left an employer, rolling an old 401(k) into an IRA is a separate decision, but it would put that money under IRA rules, including the first-time homebuyer exception.
Low-down-payment mortgage programs
The less cash a loan program requires, the less pressure to touch retirement savings. Government-backed programs are built for this:
- FHA loans allow down payments as low as 3.5% and have less stringent credit standards than many conventional loans.
- VA loans for eligible service members and veterans can require no down payment.
- USDA loans for eligible properties and borrowers can also require no down payment.
Conventional loans can require up to 20% down to avoid private mortgage insurance. A common reason buyers reach for 401(k) money is to close that gap, so comparing the cost of mortgage insurance with the cost of a 401(k) withdrawal or loan is a practical way to decide.
Waiting and saving
Delaying the purchase to build cash savings avoids both the tax cost and the lost growth. Whether that is worth it depends on how quickly you can save and how long you plan to stay in the home.
FAQs
Can I use my 401(k) to buy a second home or investment property?
Yes, but without the advantages available for a principal residence. You can take a 401(k) loan within the standard limits, though it does not qualify for the extended repayment term, or you can take a withdrawal, which is taxed and, before 59½, penalized. A hardship distribution is tied to a principal residence, so it is not available for a vacation or rental property.
What interest rate do you get on a 401(k) loan?
Your plan sets it, not a mortgage lender, and the rate is listed in your loan documents. The interest is paid back into your own account. A 401(k) loan is not a mortgage; it supplies cash for a down payment or closing costs, and you would still need a mortgage for the rest of the price unless you pay cash.
Can I combine a 401(k) loan with other funds?
Yes. Many buyers combine a 401(k) loan with savings, an IRA first-time homebuyer withdrawal, or gift funds, as long as the mortgage lender can verify each source. Combining them can keep the amount taken from any single account smaller, which limits both the tax cost and the repayment burden.
The Bottom Line
Buyers weighing retirement money for a house or condo should check their plan first, since the employer decides whether loans and hardship withdrawals are available. A loan is usually the cheaper route because it avoids taxes and the 10% penalty, but leaving your job can turn the balance into a taxable distribution. Before tapping either option, compare IRA homebuyer rules and low-down-payment mortgages, which can reduce or remove the need to touch your 401(k).









