Yes, but you will pay taxes and penalties unless you use one of three specific routes

You can take money from your 401(k) to buy a house, but the IRS charges you income tax on the withdrawal plus a 10 percent early withdrawal penalty if you are under 59½ — unless you meet an exception. The three main routes are a loan from your plan, a hardship withdrawal, or the first-time homebuyer exception. Each one has different rules about how much you can take, what you pay back, and what paperwork you need. Most people who use their 401(k) for a home purchase choose a loan because it avoids the penalty, but not all plans offer loans.

Before you withdraw or borrow, call your plan administrator — the company that manages your 401(k) — and ask which options your specific plan allows. Some plans do not permit loans or hardship withdrawals. Your plan documents will list what is available to you.

Key Takeaways

  • A 401(k) loan lets you borrow from your own balance and repay it over time, with no tax penalty, but you must repay it or face taxes and a 10 percent penalty on the unpaid amount.
  • The first-time homebuyer exception allows you to withdraw up to $35,000 from a traditional or Roth 401(k) without the 10 percent penalty, though you still owe income tax on traditional 401(k) withdrawals.
  • A hardship withdrawal is available only if your plan permits it and you meet the plan's definition of hardship, which varies by employer but usually includes buying a primary residence.
  • Borrowing from your 401(k) reduces the money growing for retirement, and if you leave your job, you typically must repay the loan within 60 days or it becomes a taxable withdrawal.
  • Your plan administrator is the only source that can tell you what options exist in your specific plan and what the exact rules are.

How a 401(k) loan works and what it costs

A 401(k) loan lets you borrow money from your own account balance and repay it to yourself over time. You do not pay income tax on the withdrawal, and there is no 10 percent early withdrawal penalty. The IRS allows you to borrow up to $50,000 or half your vested balance, whichever is less. If your balance is $80,000, you can borrow up to $40,000. If your balance is $30,000, you can borrow up to $15,000.

You repay the loan through payroll deductions, usually over five years, though some plans allow longer terms for a home purchase. You pay interest to your own account — the rate is typically the prime rate plus one or two percentage points, set by your plan. That interest goes back into your 401(k), not to a bank or lender.

The catch is what happens if you leave your job. Most plans require you to repay the full loan balance within 60 days of separation. If you do not repay it, the unpaid amount becomes a taxable withdrawal, and you owe income tax plus the 10 percent penalty if you are under 59½. If you borrowed $40,000 and cannot repay it, you could owe $10,000 to $15,000 in taxes and penalties depending on your tax bracket.

The first-time homebuyer exception and its limits

The IRS allows you to withdraw up to $35,000 from your 401(k) without the 10 percent early withdrawal penalty if you are a first-time homebuyer. This is a one-time exception per person, and you can use it only once in your lifetime. The $35,000 limit is per person, so a married couple could each withdraw $35,000 for a total of $70,000.

"First-time homebuyer" means you have not owned a primary residence in the past two years. You can use the money to buy, build, or rebuild a home for yourself, your spouse, your child, or your parent. You do not need the seller's approval or a signed contract before you withdraw — you just need to intend to use it for a home purchase within a reasonable time.

On a traditional 401(k), you still owe income tax on the withdrawal. If you withdraw $35,000, you will owe federal income tax on that $35,000 at your regular tax rate, which could be 22 percent to 37 percent depending on your income. On a Roth 401(k), you owe no income tax on the withdrawal because you already paid tax when you contributed. Check with your tax preparer or the IRS before you withdraw to understand your exact tax bill.

Hardship withdrawals and what counts as hardship

Some 401(k) plans allow hardship withdrawals, which let you take money out before age 59½ without the 10 percent penalty. The IRS does not require plans to offer this option, so your plan may not have it. If it does, the plan sets its own definition of hardship, though the IRS provides a list of events that typically may have access to: buying a primary residence, paying medical expenses, preventing eviction or foreclosure, paying for education, or repairing damage to your home from a casualty.

Buying a primary residence usually qualifies as a hardship under most plans, but you will need to document it. You typically must provide a signed purchase agreement or a letter from a lender stating you need the funds for a down payment. You will owe income tax on the withdrawal, but not the 10 percent penalty. The amount you can withdraw varies by plan — some allow you to take only what you need, others set a maximum.

Hardship withdrawals are not loans. You do not repay the money. Once you withdraw it, it is gone from your retirement account and will not grow. If you are under 59½ and you leave your job, you cannot take another hardship withdrawal from that plan.

What happens to your retirement if you withdraw now

Taking money from your 401(k) before retirement means that money stops growing. If you withdraw $50,000 at age 35 and that money would have grown at 7 percent per year, it would be worth roughly $600,000 by age 65. By withdrawing it now, you lose that growth. This is true whether you take a loan, a hardship withdrawal, or use the first-time homebuyer exception.

A 401(k) loan is slightly better in this regard because you are repaying it, so the money goes back into your account and can resume growing. But while you are repaying the loan, that money is not invested — it sits in your account as a loan receivable. Hardship withdrawals and first-time homebuyer withdrawals are permanent losses to your retirement savings.

Run the numbers with a retirement calculator before you decide. Many employers offer free financial planning resources to 401(k) participants. Your plan administrator can tell you whether your employer offers this service.

Steps to take before you withdraw or borrow

Call your plan administrator and ask three questions: Does my plan allow 401(k) loans? Does my plan allow hardship withdrawals? What is the process and timeline for each? Write down the answers and ask for the plan documents in writing. Your plan administrator is usually listed on your 401(k) statement or in your employee benefits portal.

If your plan allows a loan, ask for the loan application and the interest rate. Ask how long you have to repay it and whether you can extend the term if you buy a home. Ask what happens if you leave your job — do you have 60 days to repay, or does your plan allow a longer period?

If your plan allows hardship withdrawals, ask what documentation you need to provide. Ask whether buying a primary residence qualifies under your plan's definition. Ask how long the approval process takes — it is usually two to four weeks.

Talk to a tax preparer or accountant before you withdraw. They can tell you exactly how much income tax you will owe and whether the withdrawal makes sense for your situation. If you are married and both have 401(k)s, they can help you decide which account to withdraw from.

Alternatives if your 401(k) does not allow loans or withdrawals

If your plan does not allow loans or hardship withdrawals, you have other options. You can open an IRA and roll over money from your 401(k) into it, then use the IRA first-time homebuyer exception to withdraw up to $10,000 without penalty. This is less than the 401(k) exception, but it is available even if your 401(k) plan does not permit withdrawals.

You can also borrow from a family member, take out a personal loan from a bank, or explore down payment assistance programs offered by your state or local government. Some employers offer down payment assistance as an employee benefit — ask your HR department whether yours does.

If you have a Roth IRA (not a Roth 401(k)), you can withdraw your contributions at any time without tax or penalty. You can withdraw only the money you put in, not the earnings, but this can be a source of down payment funds if you have been contributing for several years.

Frequently Asked Questions

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

Only if you have a solo 401(k) that permits loans. Many solo 401(k) plans do allow loans, but you must check your plan documents. If your plan does not allow loans, you cannot borrow from it. Self-employed people with SEP IRAs or SIMPLE IRAs cannot take loans from those accounts at all.

What if I leave my job before I repay the 401(k) loan?

Most plans require you to repay the full loan balance within 60 days of your last day of work. If you do not repay it, the unpaid amount becomes a taxable withdrawal, and you owe income tax plus a 10 percent penalty if you are under 59½. Some plans allow you to continue making payments after you leave, but this is rare — ask your plan administrator before you borrow.

Do I owe taxes on a 401(k) loan?

No, not while you are repaying it. You repay the loan with after-tax money, and the interest goes back into your account. You owe taxes only if you fail to repay the loan and it becomes a taxable withdrawal.

Can I use the first-time homebuyer exception more than once?

No, it is a one-time exception per person in your lifetime. Once you use it, you cannot use it again, even if you sell the home and buy another one later. If you are married, each spouse can use the exception once, for a combined total of $70,000.

Is a 401(k) withdrawal better than a down payment assistance program?

Usually no. Down payment assistance programs often do not require repayment and do not reduce your retirement savings. Check whether your state or local government offers down payment help before you withdraw from your 401(k). Your lender can also tell you about programs you may be able to use.