You can take money from your 401(k) to buy a house, but the rules depend on whether you borrow against it or withdraw it outright
A 401(k) loan lets you borrow from your own balance and repay it to yourself over time, with no tax penalty. A 401(k) withdrawal means taking the money out permanently — you'll owe income tax on it, and if you're under 59½, you'll also owe a 10% early withdrawal penalty unless you meet a narrow exception. Some plans offer a Substantially Equal Periodic Payment (SEPP) option that lets you avoid the early withdrawal penalty by taking regular distributions, but this locks you into a specific payment schedule for at least five years or until you turn 59½, whichever is longer.
The path that makes sense depends on your age, how much you need, whether your plan allows loans, and whether you can afford to repay a loan while still saving for retirement. None of these options are risk-free — borrowing from your 401(k) reduces the money that grows for retirement, and withdrawals shrink your balance permanently.
Key Takeaways
- A 401(k) loan does not trigger income tax or the 10% early withdrawal penalty, but you must repay it within five years (or longer if the loan is for a home purchase, depending on your plan) or it becomes a taxable withdrawal.
- A direct 401(k) withdrawal before age 59½ costs you income tax plus a 10% penalty on the full amount withdrawn, unless you meet specific exceptions like the first-time homebuyer rule in some plans.
- Not all 401(k) plans allow loans or withdrawals for home purchases, so you must check your plan documents or contact your plan administrator to see what your specific plan permits.
- Taking money out of your 401(k) now means less money compounding for retirement, which can cost you significantly more in lost growth over decades.
- If you leave your job, any outstanding 401(k) loan typically must be repaid within 60 to 90 days or it becomes a taxable withdrawal.
How a 401(k) loan works for a home purchase
A 401(k) loan lets you borrow against your vested balance — the money that legally belongs to you. You repay the loan to your own account with interest, and that interest goes back into your 401(k) as well. The interest rate is typically the prime rate plus 1%, set by your plan administrator, and rates vary by plan and lender.
The IRS allows 401(k) loans for up to five years in most cases, but loans used to buy a primary residence may have a longer repayment period — your plan documents will specify the exact term. You repay through payroll deductions, which means the money comes directly from your paycheck before taxes. If you leave your job, most plans require you to repay the full remaining balance within 60 to 90 days. If you cannot repay it by that important date, the loan is treated as a withdrawal, and you owe income tax plus the 10% early withdrawal penalty on the unpaid balance.
The main advantage of a loan is that you avoid the 10% penalty and income tax that come with a withdrawal. The main risk is that if you cannot repay it — whether because you lose your job, face a financial emergency, or straightforward cannot afford the payments — you end up owing taxes and penalties on money you thought you were borrowing.
How a 401(k) withdrawal works and what it costs
A direct withdrawal takes money out of your 401(k) permanently. You owe federal income tax on the full amount withdrawn in the year you take it out. If you are under 59½, you also owe a 10% early withdrawal penalty on top of the income tax, unless you meet a narrow exception.
Some 401(k) plans allow a first-time homebuyer withdrawal, which waives the 10% penalty (but not the income tax) if you meet the plan's definition of first-time homebuyer. The IRS definition is someone who has not owned a home in the past two years, but your plan may have different rules. Even with this exception, you still owe income tax on the full amount, which can be substantial. If you withdraw $50,000 and you are in the 24% federal tax bracket, you owe $12,000 in federal income tax alone, plus any state income tax your state charges.
The long-term cost of a withdrawal is the lost growth. Money you take out today cannot compound for the next 20 or 30 years until retirement. A $50,000 withdrawal at age 35, growing at 7% annually, would be worth roughly $600,000 by age 65. That is the real cost of the withdrawal, not just the taxes you pay now.
The Substantially Equal Periodic Payment option
If your plan offers it, a Substantially Equal Periodic Payment (SEPP) plan lets you take regular distributions from your 401(k) before age 59½ without the 10% early withdrawal penalty. You still owe income tax on the distributions, but the penalty is waived. The catch is that you must follow a strict schedule: you take the same amount every year for at least five years or until you turn 59½, whichever is longer. If you break the schedule, you owe the 10% penalty retroactively on all distributions you took.
SEPP is rarely used for home purchases because the payment schedule is rigid and long. If you need $100,000 for a down payment, SEPP would require you to take distributions over five years or more, which does not match the timing of a home purchase. It is more useful if you need ongoing income before retirement, not a lump sum for a specific goal.
What happens if you leave your job
If you have an outstanding 401(k) loan and you leave your employer, your plan typically requires you to repay the full remaining balance within 60 to 90 days. Some plans give you longer, but 60 days is standard. If you cannot repay it by the important date, the loan is treated as a taxable withdrawal. You owe income tax on the unpaid balance, and if you are under 59½, you also owe the 10% early withdrawal penalty.
This is a major risk if you are planning to change jobs or if your employment is unstable. A job loss or planned career move can turn a 401(k) loan into an unexpected tax bill. Before taking a loan, think about whether you might leave your job in the next few years and whether you could repay the loan if you did.
Comparing a 401(k) loan to other ways to fund a home purchase
A 401(k) loan is not the only way to pay for a down payment. A conventional mortgage with a smaller down payment and mortgage insurance may cost less in the long run than borrowing from your 401(k), because you keep your retirement savings growing. A FHA loan requires only 3.5% down and allows lower credit scores. A VA loan (if you are may be able to access) requires no down payment at all. A gift from a family member avoids debt entirely, though some mortgage programs have rules about gift funds.
Borrowing from a family member or friend is another option, though it comes with relationship risks and may affect your debt-to-income ratio when you explore for a mortgage. Saving longer and buying later is the safest option for your retirement, but it delays homeownership.
The table below shows how these options compare on key points:
| Option | Down Payment Required | Impact on Retirement Savings | Tax Consequences | Risk if You Lose Your Job |
|---|---|---|---|---|
| 401(k) loan | You set the amount (up to your balance) | Reduces balance; repayment goes back in | None, if repaid on time | Loan becomes taxable withdrawal if not repaid within 60–90 days |
| 401(k) withdrawal | You set the amount (up to your balance) | Permanently reduces balance | Income tax + 10% penalty (unless first-time homebuyer exception applies) | No additional risk; taxes already owed |
| Conventional mortgage (smaller down payment) | 3–5% typical | None; retirement savings stay intact | Mortgage interest may be tax-deductible | Mortgage obligation continues; may face foreclosure |
| FHA loan | 3.5% minimum | None; retirement savings stay intact | Mortgage interest may be tax-deductible | Mortgage obligation continues; may face foreclosure |
| Family gift | Depends on gift amount | None; retirement savings stay intact | No tax on gift (giver may file gift tax form if over $18,000 per year) | No debt obligation; relationship risk |
Questions to ask your 401(k) plan before you borrow or withdraw
Before you take any money from your 401(k), contact your plan administrator or check your plan documents to find out exactly what is allowed. Ask these specific questions: Does the plan allow loans? If yes, what is the maximum loan amount, the interest rate, and the repayment term for a home purchase? Does the plan allow withdrawals? If yes, does it allow a first-time homebuyer exception, and what is the plan's definition of first-time homebuyer? Does the plan offer SEPP? If you leave your job, how long do you have to repay an outstanding loan?
Your employer's HR or benefits department can direct you to the plan administrator, or you can find contact information in your plan documents or on the plan's website. Getting these answers in writing before you commit to borrowing or withdrawing protects you from surprises later.
Frequently Asked Questions
Can I borrow from my 401(k) if I am self-employed or have a Solo 401(k)?
Yes, Solo 401(k) plans typically allow loans, but the rules are stricter than employer plans. You can borrow up to 50% of your vested balance or $50,000, whichever is less. Repayment terms and interest rates depend on your plan documents. Consult a tax professional or your plan administrator for the exact rules that explore to your Solo 401(k).
What is the first-time homebuyer exception, and does it explore to me?
The IRS first-time homebuyer exception waives the 10% early withdrawal penalty (but not income tax) if you have not owned a home in the past two years. However, not all 401(k) plans offer this exception — it is optional for plans to include it. Check your plan documents or ask your plan administrator whether your plan allows it and what definition of first-time homebuyer it uses.
If I take a 401(k) loan and then get laid off, what happens?
Most plans require you to repay the full loan balance within 60 to 90 days after you leave your job. If you cannot repay it by the important date, the unpaid balance becomes a taxable withdrawal. You owe income tax on it, and if you are under 59½, you also owe the 10% early withdrawal penalty. Some plans may offer a longer repayment window — check your plan documents or ask your administrator.
Can I take a 401(k) withdrawal to pay off a mortgage instead of using it for a down payment?
Technically yes, but the first-time homebuyer exception only applies to buying a home, not paying off an existing mortgage. If you are not a first-time homebuyer, you would owe income tax plus the 10% early withdrawal penalty. If you are a first-time homebuyer, some plans may allow the withdrawal for home purchase expenses, which could include paying off a mortgage on a newly purchased home — but this varies by plan.
How much will I owe in taxes if I withdraw $50,000 from my 401(k)?
The tax you owe depends on your federal tax bracket, your state income tax rate, and whether you may have access to for the first-time homebuyer exception. If you are in the 24% federal bracket and your state charges 5% income tax, you would owe roughly $14,500 in taxes on a $50,000 withdrawal (29% total). If you are under 59½ and do not may have access to for an exception, add another $5,000 for the 10% penalty. Your actual tax will depend on your specific situation — consult a tax professional for an estimate.