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

The two main paths are a 401(k) loan and an early withdrawal. A loan lets you borrow from your own balance and repay it with interest — you keep the tax-deferred growth on the money you don't touch. An early withdrawal takes money out permanently; you owe income tax on the full amount, plus a 10 percent penalty if you are under 59½, unless you meet a narrow exception. The choice depends on your age, how much you need, and whether you can repay a loan.

Neither option is the same as a mortgage. Your 401(k) is not a bank, and the money does not come with a 30-year payment schedule. You are either borrowing from yourself on a shorter timeline or cashing out early and paying the tax bill upfront.

Key Takeaways

  • A 401(k) loan lets you borrow up to 50 percent of your vested balance (or $50,000, whichever is less) and repay it over five years, with no income tax owed as long as you repay on schedule.
  • An early withdrawal before age 59½ triggers a 10 percent penalty plus income tax on the full amount withdrawn, unless you meet an exception like the first-time homebuyer rule for IRAs (which does not apply to 401(k)s).
  • If you leave your job, any 401(k) loan you have outstanding usually becomes due within 60 to 90 days, or it is treated as a taxable withdrawal.
  • Your employer's plan document controls what you can do — some plans allow loans, some allow withdrawals, and some allow neither; you must check with your plan administrator.
  • Borrowing from your 401(k) reduces the balance earning returns, which can cost you significantly over time if you do not repay quickly.

How a 401(k) loan works for a home purchase

A 401(k) loan is a loan from your plan to you, secured by your own vested balance. You can borrow up to the lesser of 50 percent of your vested account balance or $50,000. If your balance is $100,000, you can borrow up to $50,000. If your balance is $80,000, you can borrow up to $40,000. The IRS sets these limits; your employer cannot raise them, though some plans set lower caps.

You repay the loan through payroll deductions, usually over five years, though some plans allow longer repayment for a loan used to buy a primary residence. The interest rate is set by your plan — often the prime rate plus 1 or 2 percent — and that interest goes back into your own account, not to a bank. You do not owe income tax on the money you borrow, and you do not owe the 10 percent early-withdrawal penalty.

The catch: if you leave your job before the loan is repaid, the outstanding balance is usually due within 60 to 90 days. If you cannot repay it, the IRS treats the unpaid amount as a taxable withdrawal, which means you owe income tax plus the 10 percent penalty on whatever remains.

Early withdrawal rules and the tax cost

If your plan allows it, you can withdraw money before age 59½ without a loan. You will owe income tax on the full amount at your ordinary tax rate. You will also owe a 10 percent early-withdrawal penalty on top of that. If you withdraw $50,000 and your tax bracket is 24 percent, you owe $12,000 in federal income tax plus $5,000 in penalty — a total of $17,000 — leaving you $33,000 to use for the house.

There is a narrow exception for IRAs (not 401(k)s): if you have a traditional or Roth IRA, you can withdraw up to $10,000 lifetime for a first-time home purchase without the 10 percent penalty, though you still owe income tax on traditional IRA withdrawals. This exception does not exist for 401(k)s. Some states have their own rules, but federal law does not give you a penalty waiver for a 401(k) withdrawal to buy a house.

After age 59½, you can withdraw from your 401(k) without the 10 percent penalty, though you still owe income tax. At age 73, you must begin taking required minimum distributions whether you need the money or not.

What your employer's plan actually allows

Not every 401(k) plan permits loans, and not every plan permits withdrawals. Your employer chooses which features to include when they set up the plan. Some plans allow both, some allow only loans, some allow only withdrawals, and some allow neither — in which case you cannot touch the money until you leave the job or reach 59½.

The only way to know what your plan allows is to contact your plan administrator or check your plan document. Your HR department or benefits team can tell you in one call. If your plan does not allow loans, a withdrawal may be your only option. If it allows neither, you cannot use the money for a house purchase without leaving the job first.

Some plans also have a feature called a hardship withdrawal, which lets you withdraw money early for specific reasons — including buying a primary residence — without the 10 percent penalty, though you still owe income tax. Hardship rules vary by plan, so ask your administrator whether your plan offers this and what counts as a hardship.

The long-term cost of borrowing from your 401(k)

A 401(k) loan feels painless because you are repaying yourself, but the real cost is opportunity cost. Money you borrow stops earning investment returns while you repay it. If your 401(k) averages 7 percent annual growth and you borrow $50,000 for five years, that $50,000 would have grown to roughly $70,000 if left alone. By repaying the loan, you give up that $20,000 in growth.

This cost is invisible — you do not write a check for it — but it is real. The longer you take to repay, the larger the opportunity cost. If you can repay the loan quickly, the cost is smaller. If you leave your job and cannot repay, the cost is the tax bill plus the penalty plus the lost growth.

A mortgage, by contrast, is borrowed from a bank at a fixed rate. You are not giving up your own investment returns; you are paying interest to someone else. For a house purchase, a mortgage is usually cheaper than a 401(k) loan over the long term, even though the interest rate on a mortgage is higher.

Steps to take a 401(k) loan or withdrawal

First, contact your plan administrator — usually your HR or benefits department — and ask whether your plan allows loans, withdrawals, or both. Ask for the plan document or a summary of the loan and withdrawal rules. This takes one phone call and clarifies what you can actually do.

If your plan allows loans, ask for the loan application. You will provide information about the loan amount, the purpose (home purchase), and your repayment timeline. The plan will calculate the maximum you can borrow and the interest rate. Approval usually takes one to two weeks.

If your plan allows withdrawals, ask whether a hardship withdrawal is available for a home purchase and what documents you need to provide. Some plans require proof of the purchase — a purchase agreement or mortgage pre-approval letter. Others do not. Ask what paperwork they need before you submit anything.

Once approved, the money is usually transferred to your bank account within one to two weeks. You do not have to use it for the house immediately; it is your money. But if you took a loan, your repayment schedule starts on the date the loan is issued, not the date you spend the money.

Alternatives if your 401(k) is not available

If your plan does not allow loans or withdrawals, or if the balance is too small, other options exist. A Roth conversion lets you move money from a traditional IRA to a Roth IRA; you owe tax on the conversion, but after five years you can withdraw contributions (not earnings) penalty-free. This is complex and usually requires a tax professional.

If you have a traditional or Roth IRA separate from your 401(k), the $10,000 first-time homebuyer exception applies to the IRA, not the 401(k). You can withdraw up to $10,000 lifetime without the 10 percent penalty if you have never owned a home.

A home equity line of credit (HELOC) or a personal loan from a bank are other sources of down-payment money, though they come with their own interest rates and approval requirements. A mortgage itself is usually the cheapest way to borrow for a house, since mortgage rates are lower than other loan types.

What happens if you change jobs

If you have an outstanding 401(k) loan and you leave your job, the loan becomes due. Your plan will send you a notice saying you have 60 to 90 days to repay the full balance. If you cannot repay it in that window, the unpaid amount is treated as a taxable withdrawal. You owe income tax on it at your ordinary rate, plus the 10 percent early-withdrawal penalty if you are under 59½.

Some plans allow you to roll the loan into an IRA or your new employer's plan, which extends the repayment timeline. Ask your plan administrator whether this is an option before you leave the job. If it is, you can continue repaying on the original schedule without triggering the tax bill.

This is a major risk of 401(k) loans for a house purchase. If your job situation is uncertain, a loan is riskier than a withdrawal or a mortgage. A mortgage stays with the house, not the job, so job changes do not affect the loan.

Frequently Asked Questions

Can I borrow from my 401(k) if I am self-employed?

If you have a solo 401(k) (a plan for self-employed people), you can borrow from it under the same rules as a regular 401(k) — up to 50 percent of your vested balance or $50,000, whichever is less. You repay through personal checks rather than payroll deductions. If you have a SEP IRA or Solo IRA instead, loan rules are different; ask your plan provider what is allowed.

Do I have to pay back a 401(k) loan if I get divorced?

Yes. A 401(k) loan is your personal debt to your plan, not a marital asset. A divorce decree can order your ex to reimburse you for their share of the house down payment, but it does not change your obligation to repay the loan. If you cannot repay, the unpaid balance becomes a taxable withdrawal.

What if I want to borrow more than the $50,000 limit?

You cannot. The IRS caps 401(k) loans at 50 percent of your vested balance or $50,000, whichever is less. If you need more money, you would have to use a withdrawal, a mortgage, a personal loan, or a combination of sources. Some plans allow multiple loans, but the total borrowed still cannot exceed the limit.

Can I use a 401(k) loan to pay off a mortgage I already have?

Technically yes — the money is yours once you borrow it — but this is not a common use. You would be replacing a long-term mortgage with a five-year 401(k) loan repayment, which means much higher monthly payments. A refinance or a home equity loan is usually a better option if you want to change the terms of an existing mortgage.

Will taking a 401(k) loan hurt my credit score?

No. A 401(k) loan does not appear on your credit report because it is not a loan from a lender — it is a loan from your own account. It will not affect your credit score or your debt-to-income ratio for a mortgage application. However, the monthly repayment does reduce your take-home pay, which can affect how much a mortgage lender will approve you for.