Yes, sometimes.
A 401(k) plan may let you borrow money for a home purchase, and some plans may allow a hardship withdrawal for costs directly related to buying your principal residence.
Those two choices are not the same.
A loan is money you are expected to pay back to your 401(k). A hardship withdrawal permanently removes money from the account and can create taxes and, for many people under 59½, an additional 10% early-distribution tax.
Quick answer: If your plan allows loans, a 401(k) loan is usually less destructive to retirement savings than a permanent withdrawal because you repay the account. But it still creates investment opportunity cost and job-change risk. A home-purchase hardship withdrawal may be allowed by the plan, but buying a first home does not** automatically exempt a 401(k) withdrawal from the 10% additional tax.
That last point is important because many people confuse the IRA first-time-homebuyer exception with 401(k) rules.
The IRS specifically shows that the first-time-homebuyer penalty exception applies to IRAs, not qualified plans such as 401(k)s. See the IRS early-distribution exception table ↗.
Your two main 401(k) home-purchase options
If the plan permits them, the two common routes are:
Option 1: 401(k) loan
You borrow from your vested account balance and repay the loan, usually through payroll deductions.
Option 2: hardship withdrawal
You permanently withdraw eligible money because the plan recognizes the home purchase as an immediate and heavy financial need.
Here is the basic comparison.
| 401(k) loan | Hardship withdrawal | |
|---|---|---|
| Must plan allow it? | Yes | Yes |
| Money repaid to account? | Yes | No |
| Immediate income tax if rules followed? | Generally no | Usually yes on taxable amount |
| 10% early-distribution tax? | Not on a compliant loan | May apply if under 59½ and no exception |
| Investment money leaves account? | Yes, until repaid | Yes, permanently |
| Job-change risk | Significant | No loan balance to repay, but money is gone |
| Home purchase can affect terms? | Principal-residence loan may get longer repayment term | Principal-residence purchase can be an eligible hardship need |
The right answer depends on your plan, cash flow and how close you are to retirement.
How much can you borrow from a 401(k) for a house?
Federal tax rules generally cap a plan loan at the lesser of:
- $50,000, or
- 50% of your vested account balance
There is a rule that can permit a loan of up to $10,000 when 50% of the vested balance is below $10,000, but a plan is not required to offer that feature.
Prior outstanding loans can also reduce the amount available under the $50,000 limit.
The IRS explains the current limits in Retirement Topics — Loans ↗.
Example: $80,000 vested balance
50% of $80,000 = $40,000.
Your federal maximum would generally be $40,000, assuming no other loan-balance issue and assuming the plan allows that amount.
Example: $180,000 vested balance
50% = $90,000, but the general federal cap is $50,000.
So the federal maximum would generally be $50,000, again subject to prior-loan calculations and plan rules.
Your plan can be more restrictive than the federal maximum.
A home-purchase loan can have a longer repayment period
Normal 401(k) loans generally must be repaid within five years with substantially level payments made at least quarterly.
A loan used to purchase your principal residence can qualify for an exception to the five-year repayment limit.
That does not mean every plan gives you 10, 15 or 30 years.
The tax rules permit a longer period; the plan decides what loan terms it actually offers.
Ask for the written loan policy and confirm:
- Maximum loan amount
- Interest rate
- Origination fee
- Repayment period for a principal-residence loan
- Payroll payment amount
- What happens if you leave the employer
- Whether you can make extra payments
- Whether a second loan is allowed
Do that before you write a purchase offer that depends on the 401(k) money arriving on time.
The biggest 401(k) loan risk is often your job
When people calculate a 401(k) loan, they usually focus on the interest rate.
The more important question may be:
What happens if I leave this employer before the loan is repaid?
A plan may require repayment or may offset the unpaid loan against your account. If an unpaid amount becomes a taxable distribution or plan-loan offset, tax consequences can follow.
There are rollover rules that can sometimes give a former employee more time to replace an offset amount in another eligible retirement account, but that does not make the cash-flow problem disappear.
Imagine you borrow $40,000 for a down payment and then lose the job one year later with $34,000 still outstanding.
You now have:
- A new mortgage
- A job transition
- A large retirement-plan loan issue
That is the exact moment you would least want another financial deadline.
So before using the loan, ask yourself a blunt question:
How stable is my employment for the next few years?
“I pay the interest to myself” is true but incomplete
You will often hear this as the main argument for a 401(k) loan.
Yes, loan repayments—including interest—generally go back into your account.
But that does not make the loan free.
While the borrowed money is out of the plan, it is not invested in the same way it would otherwise have been. If markets rise sharply during the loan period, you may miss some of that growth.
There is also a cash-flow cost. Loan payments come from your paycheck, which can reduce the money available for:
- Mortgage payments
- Repairs
- Property taxes
- Child care
- Emergency savings
- New retirement contributions
The right comparison is not “401(k) loan interest vs. bank interest.” It is the full effect on your household balance sheet.
Can you take a hardship withdrawal to buy a house?
A plan may allow it.
IRS hardship rules list costs directly related to the purchase of an employee's principal residence, excluding mortgage payments, as a type of expense that can qualify as an immediate and heavy financial need under the safe-harbor framework.
The IRS discusses this in its hardship distribution guidance ↗.
But three words matter:
The plan decides.
A 401(k) is not required to offer hardship distributions, and a plan that offers them must follow its written terms.
A first-home 401(k) withdrawal can still face the 10% tax
This is the misconception worth fixing.
There is a federal early-distribution exception of up to $10,000 for a qualified first-time home purchase from an IRA.
That exception does not generally apply to a 401(k).
So if you are 38 and take a $30,000 taxable hardship withdrawal from a traditional 401(k) to buy your first house, the fact that the money went toward a first home does not by itself remove the 10% additional tax.
You may owe:
- Ordinary income tax on the taxable withdrawal
- A 10% additional tax unless some other exception applies
That can make a $30,000 withdrawal much more expensive than $30,000.
Read our 401(k) early withdrawal penalty guide before assuming the down-payment amount equals the amount you need to withdraw.
Loan vs. hardship withdrawal: a real example
Assume you need $35,000 for a down payment and closing costs.
You have $140,000 vested in your 401(k).
Route A: 401(k) loan
You borrow $35,000.
Potential advantages:
- No immediate income tax if the loan follows the rules
- No 10% early-distribution tax on a compliant loan
- Money is repaid to the account
- Principal-residence loan may have a longer repayment term
Potential drawbacks:
- $35,000 is no longer invested the same way while borrowed
- Payroll cash flow gets tighter
- Leaving the job can create a major problem
- Plan may charge fees
Route B: hardship withdrawal
You withdraw enough to net the cash you need after considering withholding and taxes.
Potential advantages:
- No loan payment
- No outstanding balance if you change jobs
- Can solve a down-payment cash shortage permanently
Potential drawbacks:
- Money permanently leaves retirement savings
- Income tax can apply
- 10% additional tax may apply
- You lose future growth on the amount withdrawn
For many younger workers, the permanent withdrawal is the more expensive long-term choice.
But a loan is not harmless, particularly if job stability is uncertain.
How much future retirement money could you lose?
This is where the cost becomes visible.
Suppose $35,000 leaves your retirement account permanently at age 35.
If that money would otherwise compound at an average 7% annual rate for 30 years, it could grow to roughly $266,000 before taxes and fees.
That is not a forecast. Actual market returns will differ.
The point is that a retirement withdrawal costs more than the tax bill you see today. You also give up decades of possible compounding.
A loan reduces this damage if it is repaid, but time out of the market can still matter.
What if using the 401(k) gets you into the house sooner?
That can be a real benefit.
A home is not merely an investment spreadsheet. It can provide stability, space, school access and control over your living situation.
But “homeownership is good” does not mean “any down payment source is good.”
Before using retirement money, compare at least these alternatives:
- Save for another 6–12 months
- Buy a less expensive home
- Make a smaller down payment if the mortgage economics still work
- Use cash savings while keeping a stronger emergency reserve target
- Explore legitimate down-payment assistance programs
- Adjust the purchase timing
- Use a 401(k) loan rather than a permanent withdrawal, if the loan is manageable
The best option may be the one that preserves retirement savings even if it delays the house.
Do not drain your emergency fund and borrow from the 401(k) at the same time
A new house produces new expenses.
The first year can bring:
- HVAC repairs
- Plumbing surprises
- Moving costs
- Furniture
- Insurance deductibles
- Property-tax changes
- Appliance replacement
If your down payment uses all your cash and creates a 401(k) loan payment, you can become house-rich and cash-poor immediately.
Before using retirement money, build a post-closing budget—not just a closing budget.
Ask your mortgage lender before moving money
A 401(k) loan or retirement-account distribution can affect the documentation your lender asks for.
Do not wait until three days before closing to discover that underwriting needs statements, proof of source of funds or an explanation of a large transfer.
Tell the lender how you plan to fund the down payment and ask what documentation is required.
Also ask whether the new 401(k) loan payment affects any part of the lender's debt analysis under the loan program you are using. Mortgage rules vary by program and lender.
Check the actual plan before relying on an article
Your employer's plan controls whether loans and hardship distributions are available.
Before touching the account:** Look up your employer's 401(k), then open the current Summary Plan Description or call the administrator to verify the loan and hardship rules.
Ask the administrator:
- Does the plan allow participant loans?
- Does it offer a special principal-residence loan term?
- Does it allow hardship withdrawals for a principal-residence purchase?
- Which account balances are available?
- How long does funding take?
- What fees apply?
- What happens to a loan if employment ends?
Get the answers in writing where possible.
A decision checklist before using a 401(k) for a house
- [ ] Confirm the amount of cash actually needed at closing.
- [ ] Keep a separate emergency reserve after closing.
- [ ] Check whether the plan offers loans.
- [ ] Calculate the maximum loan using your vested balance.
- [ ] Ask for the principal-residence loan repayment term.
- [ ] Model the payroll payment in your monthly budget.
- [ ] Stress-test what happens if you leave the job.
- [ ] If considering a withdrawal, estimate both income tax and possible 10% additional tax.
- [ ] Do not assume the IRA first-time-homebuyer exception applies to a 401(k).
- [ ] Compare waiting, buying less, or using a smaller down payment.
Frequently asked questions
Can I borrow $50,000 from my 401(k) for a down payment?
Possibly, but $50,000 is a general federal ceiling, not an automatic entitlement. Your maximum is generally limited by your vested balance, prior outstanding loans and plan terms.
Can a 401(k) home loan last longer than five years?
A plan loan used to purchase your principal residence can qualify for an exception to the normal five-year repayment limit. The plan decides the repayment term it offers.
Can I withdraw from my 401(k) for a first-time home purchase without penalty?
Do not assume so. The specific first-time-homebuyer exception to the 10% additional tax applies to IRAs, not generally to 401(k)s. Another exception could apply depending on your facts.
Is a 401(k) loan better than a hardship withdrawal for a house?
Often it is less damaging because you repay the account and avoid immediate tax if the loan meets the rules. But job-change risk and missed investment growth can make a loan costly too.
Can my employer refuse a 401(k) loan for a house?
A plan is not required to offer participant loans. If loans are offered, the plan's written rules govern eligibility and terms.
Can I use a 401(k) hardship withdrawal for mortgage payments?
The safe-harbor home-purchase category concerns costs directly related to purchasing a principal residence and excludes mortgage payments. Separate hardship categories may apply to preventing eviction or foreclosure in qualifying situations.
Bottom line
A 401(k) can help buy a house, but it should not be the first bucket you empty just because the balance is large.
If you must use retirement money, understand the difference between a loan you repay and a withdrawal that permanently leaves the account.
And remember the rule that catches many first-time buyers: buying your first home does not automatically make an early 401(k) withdrawal penalty-free.