You can take money from your 401(k) to buy a house, but the rules depend on your age and whether you've left your job
The short answer: yes, but with significant costs. If you're under 59½, you'll pay income tax plus a 10% early withdrawal penalty on most withdrawals — meaning a $50,000 withdrawal might cost you $15,000 to $20,000 in taxes and penalties combined. If you're 59½ or older, you can withdraw without the penalty, though you still owe income tax. Some plans offer loans instead of withdrawals, which avoids the penalty but requires repayment.
The method you use matters. A 401(k) loan lets you borrow from your own balance and repay it over time. A hardship withdrawal is a one-time pull of money that you don't repay, but it triggers taxes and penalties unless you meet specific conditions. A Roth conversion is a workaround that some people use, but it's complex and creates its own tax bill. Which one makes sense depends on your age, how much you need, and whether you still work at the company that holds your plan.
Key Takeaways
- A 401(k) loan lets you borrow up to 50% of your balance (usually capped at $50,000) and repay it over five years, with no tax penalty if you repay on time.
- A hardship withdrawal for a home purchase is allowed by some plans but triggers income tax and a 10% penalty if you're under 59½, costing roughly 30% to 40% of the amount withdrawn.
- If you're 59½ or older and have left your job, you can withdraw any amount without the 10% penalty, though you still owe income tax on the full withdrawal.
- The IRS does not allow you to put money back into a 401(k) after a withdrawal, so the money you take out is gone from retirement savings permanently.
- Your plan document sets the actual rules — not all plans allow loans, and not all allow hardship withdrawals for home purchases, so you must check with your plan administrator first.
401(k) loans: how they work and what happens if you leave your job
A 401(k) loan is the least costly way to use your retirement money for a house, because you're borrowing from yourself and repaying with interest that goes back into your own account. The IRS lets you borrow up to 50% of your vested balance, with a $50,000 cap. If your balance is $100,000, you can borrow $50,000. If it's $80,000, you can borrow $40,000.
You repay the loan over five years (or longer if the money is for your primary residence — some plans allow up to 15 years). You make payments from your paycheck, and the interest rate is typically the prime rate plus 1% to 2%, set by your plan administrator. Because you're repaying yourself, that interest goes back into your 401(k) balance.
The catch: if you leave your job while the loan is outstanding, most plans require you to repay the full remaining balance within 60 to 90 days. If you don't, the IRS treats the unpaid balance as a withdrawal, which means you owe income tax plus the 10% early withdrawal penalty (if you're under 59½). A $30,000 loan balance left unpaid could cost you $9,000 to $12,000 in taxes and penalties. This risk makes a 401(k) loan risky if you're thinking about changing jobs soon.
Hardship withdrawals for home purchases
Some 401(k) plans allow hardship withdrawals for a home purchase, but the rules are strict and vary by plan. The IRS permits plans to allow withdrawals for buying a primary residence (not a second home or investment property), but your plan document must explicitly allow it. Many plans don't. You must contact your plan administrator to find out whether your plan permits this.
If your plan does allow it, you typically must show that you don't have other resources to buy the home — the plan may ask for proof that you've been denied a mortgage or that you can't borrow from family. The withdrawal amount is limited to what you actually need for the purchase, down payment, and closing costs. You cannot withdraw more than that.
The tax cost is steep. You owe federal income tax on the full amount withdrawn, at your ordinary income tax rate (which could be 22%, 24%, or higher depending on your income). You also owe the 10% early withdrawal penalty if you're under 59½. On a $50,000 withdrawal at a 24% tax rate, you'd owe $12,000 in income tax plus $5,000 in penalty — $17,000 total, leaving you $33,000 to use for the house. Some states also tax 401(k) withdrawals, adding another 3% to 10%.
Age 59½ and older: withdrawals without the early penalty
If you're 59½ or older, you can withdraw any amount from your 401(k) without the 10% early withdrawal penalty. You still owe federal income tax on the withdrawal, but the penalty disappears. This is the most tax-efficient way to use retirement money for a house if you're at or near retirement age.
The tax bill is still real. A $100,000 withdrawal at a 24% federal tax rate costs $24,000 in federal tax alone, plus state tax if your state taxes retirement income. But there's no penalty on top of that. If you're 59½ and have $200,000 in your 401(k), you could withdraw $100,000 for a down payment, pay roughly $24,000 in federal tax, and have $76,000 left for the house.
One detail: if you're still working at the company that holds your 401(k), some plans don't allow withdrawals until you actually leave the job. Check your plan document or ask your administrator whether you can withdraw while still employed.
The Roth conversion workaround and why it's complicated
Some people use a Roth conversion as an indirect way to access 401(k) money for a house. The idea is to convert part of your traditional 401(k) to a Roth IRA, then withdraw the contribution portion (not the earnings) from the Roth IRA penalty-free after five years. This is legal but creates immediate tax consequences and only works if you can wait five years.
Here's the catch: when you convert $50,000 from a traditional 401(k) to a Roth IRA, you owe income tax on that $50,000 in the year you convert it. If you're in the 24% tax bracket, that's $12,000 in tax due immediately, even though you haven't touched the money yet. You'd need to pay that tax from other savings. Then you wait five years, and only then can you withdraw the $50,000 contribution penalty-free. This only makes sense if you're buying a house five years from now, not soon.
This strategy also triggers the "pro-rata rule" if you have any traditional IRAs. The IRS taxes conversions based on your total traditional and SEP IRA balances, which can increase your tax bill significantly. Most people should not attempt this without talking to a tax professional first.
What you lose by taking money out now
The IRS does not allow you to put money back into a 401(k) after you've withdrawn it. If you withdraw $50,000 at age 40, that $50,000 is gone from retirement savings forever. You cannot "catch up" by contributing it back later. The contribution limits for 401(k)s are annual caps ($23,500 in 2024 for people under 50), and they don't increase to let you replace withdrawn money.
Over 25 years until retirement, that $50,000 could grow to $150,000 or more, depending on investment returns. Taking it out now costs you not just the $50,000, but all the growth it would have earned. A $50,000 withdrawal at age 40 might actually cost you $100,000 or more in retirement purchasing power by age 65.
This is why a 401(k) loan is preferable to a withdrawal when possible — you're borrowing the growth potential, not losing it. And it's why using a mortgage or home equity line of credit (if you already own a home) is often cheaper than raiding your retirement account.
Comparing your options: loan vs. withdrawal vs. staying put
| Method | Immediate Cost | Repayment Required | Risk if You Leave Job |
|---|---|---|---|
| 401(k) Loan | Interest only (goes back to you) | Yes, over 5 years (or longer for home) | Full balance due in 60–90 days or treated as taxable withdrawal |
| Hardship Withdrawal (under 59½) | Income tax + 10% penalty (30–40% of amount) | No | None — money is already out |
| Withdrawal (age 59½+) | Income tax only (22–37% of amount) | No | None — money is already out |
| Roth Conversion | Income tax on converted amount (immediate) | No, but 5-year wait to withdraw penalty-free | None, but tax bill is due now |
| Mortgage or HELOC | Interest on borrowed amount (tax-deductible if HELOC) | Yes, over loan term | None — retirement account untouched |
Steps to take before you withdraw or borrow
First, contact your plan administrator or check your plan document to find out what options are actually available to you. Not all plans allow loans. Not all allow hardship withdrawals. Some allow loans but not withdrawals, or vice versa. Your plan document is the rule book, and it overrides general IRS rules. You can usually find it on your employer's benefits website or by calling the benefits department.
Second, calculate the actual cost. If you're under 59½ and considering a hardship withdrawal, add up the income tax and 10% penalty. Talk to a tax professional or use a tax calculator to estimate what you'll actually owe. A $50,000 withdrawal might net you only $30,000 after taxes and penalties.
Third, explore other options first. A conventional mortgage, FHA loan, or home equity line of credit (if you own a home) will almost always cost less than raiding your 401(k). Even a higher interest rate on a mortgage is usually cheaper than the tax and penalty hit on an early withdrawal.
Fourth, if you do take a loan, understand the job-change risk. If you're thinking about leaving your job in the next five years, a 401(k) loan is risky because you'll have to repay it quickly or face a large tax bill.
Frequently Asked Questions
Can I withdraw from my 401(k) if I'm under 59½ without paying the 10% penalty?
Only if your plan allows a hardship withdrawal for a home purchase and you meet your plan's requirements. A 401(k) loan also avoids the penalty as long as you repay it on time. Otherwise, withdrawals before 59½ trigger the 10% penalty plus income tax. Some narrow exceptions exist (like the CARES Act during COVID), but they're temporary and specific to certain situations.
What happens to my 401(k) loan if I get fired or laid off?
Most plans require you to repay the full remaining balance within 60 to 90 days. If you don't, the unpaid balance is treated as a taxable withdrawal, and you owe income tax plus the 10% early withdrawal penalty (if you're under 59½). This can create a large unexpected tax bill. Some plans allow you to roll the loan into an IRA to avoid this, but you must act quickly.
Can I borrow from my 401(k) if I'm self-employed or have a Solo 401(k)?
Yes, Solo 401(k)s allow loans under the same rules as employer plans — up to 50% of your balance, capped at $50,000. However, if you're the only employee, you must be careful about the repayment terms and what happens if your business changes. Consult a tax professional before borrowing from a Solo 401(k).
If I withdraw $50,000 from my 401(k), how much will I actually have to spend on the house?
It depends on your age and tax bracket. Under 59½: expect to keep 60–70% after taxes and the 10% penalty. At 59½ or older: expect to keep 63–78% depending on your tax bracket. A $50,000 withdrawal at age 40 in the 24% bracket nets roughly $33,000. Use a tax calculator or ask a tax professional for your specific situation.
Is it better to take a 401(k) loan or get a mortgage?
Usually a mortgage is better because it doesn't reduce your retirement savings and the interest is tax-deductible. A 401(k) loan costs less upfront but carries the risk that you'll owe the full balance if you leave your job. Compare the interest rate on a 401(k) loan to current mortgage rates, then factor in the job-change risk before deciding.