Skip to main content

Using Your 401(k) to Buy a House: What You Can Actually Do

You can take money from your 401(k) for a down payment, but the method matters—and so do the taxes

Yes, you can use your 401(k) to buy a house. The IRS allows three main routes: a loan from your plan, a withdrawal under the "substantially equal periodic payment" rule, or a withdrawal if you meet the conditions for a hardship distribution. Each has different tax consequences, repayment terms, and long-term costs. The route that makes sense depends on your age, how much you need, and whether you plan to stay in the house long enough to recoup the money you're moving out of retirement savings.

The most common method—a 401(k) loan—lets you borrow from your own balance without triggering income tax, as long as you repay it on schedule. A hardship withdrawal lets you take money out penalty-free if you meet IRS criteria, but you'll owe income tax on the amount. A Roth conversion ladder or substantially equal payments route exists but is rarely used for home purchases because it locks you into withdrawals for years. Understanding which one fits your situation requires looking at the actual numbers and the rules that apply to each.

Key Takeaways

  • A 401(k) loan lets you borrow up to $50,000 or half your balance (whichever is less) without paying income tax, but you must repay it within five years unless the loan is for a primary residence.
  • A hardship withdrawal for a home purchase lets you take money out penalty-free if your plan allows it, but you will owe income tax on the full amount withdrawn.
  • If you are under 59½, a regular 401(k) withdrawal triggers both income tax and a 10% early withdrawal penalty unless you meet a narrow exception.
  • Taking money out of your 401(k) now means less money compounding for retirement, which can cost you far more than the down payment amount over decades.
  • Your plan document determines what withdrawal methods your specific employer plan allows, so you must check with your plan administrator before assuming any option is available.

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

A 401(k) loan is a loan from your own account balance to yourself. You borrow the money, and you repay it with interest—but the interest goes back into your own account. The IRS sets the maximum you can borrow at the lesser of $50,000 or 50% of your vested balance. 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 repayment term is typically five years, paid back through payroll deductions. However, if the loan is specifically for a primary residence—the house you live in—many plans allow a longer repayment period. Check your plan document or ask your plan administrator what term applies to home purchase loans at your company. The interest rate is set by your plan and is usually the prime rate plus 1 or 2 percentage points. That rate is fixed for the life of the loan.

The key advantage is that you avoid income tax on the amount borrowed. You also avoid the 10% early withdrawal penalty that normally applies if you're under 59½. The catch: if you leave your job before the loan is repaid, most plans require you to repay the full remaining balance within 60 to 90 days or the unpaid amount is treated as a taxable withdrawal, triggering income tax and potentially the 10% penalty if you're under 59½.

Hardship withdrawals for home purchases

Some 401(k) plans allow "hardship distributions" for specific reasons, including buying a primary residence. The IRS does not require plans to offer this option, so your plan may not allow it—you must check your plan document. If your plan does allow hardship withdrawals for home purchases, you can withdraw money without the 10% early withdrawal penalty, even if you're under 59½.

However, you will owe federal income tax on the full amount withdrawn. If you withdraw $50,000, that $50,000 is added to your taxable income for the year. Depending on your other income and tax bracket, you could owe 22%, 24%, or more in federal tax alone, plus state income tax if your state has one. You do not repay the money—it's gone from your retirement account permanently.

The IRS requires that you have already tried other ways to pay for the home before using a hardship withdrawal. You must also document that the withdrawal is truly necessary. In practice, this means gathering proof of the home purchase, proof that you don't have other savings, and possibly a letter from your lender. Ask your plan administrator what documentation they require before you request the withdrawal.

The tax and penalty cost of an early withdrawal

If you withdraw from your 401(k) before age 59½ and do not meet an exception, you owe income tax on the full amount plus a 10% early withdrawal penalty. On a $50,000 withdrawal, the 10% penalty alone is $5,000. Add federal income tax at your marginal rate, and the cost climbs quickly. If you're in the 24% federal tax bracket, you owe $12,000 in federal tax plus $5,000 in penalty—$17,000 total—leaving you with only $33,000 of the $50,000 you took out.

The hardship withdrawal exception removes the 10% penalty but not the income tax. A 401(k) loan avoids both the penalty and the income tax, but only if you repay it on schedule. If you leave your job and cannot repay the loan, the unpaid balance becomes a taxable withdrawal subject to both tax and penalty.

Some people may have access to for other exceptions to the early withdrawal penalty—for example, if you are separated from service (laid off or quit) in the year you turn 55 or later, you can withdraw without penalty. If you are disabled, you can withdraw without penalty. These are narrow rules with specific conditions. Talk to a tax professional if you think you might may have access to for an exception.

What happens to your retirement savings when you withdraw

The money you take out of your 401(k) stops growing. If you withdraw $50,000 at age 35 and that money would have grown at 7% per year until you turn 65, that $50,000 would have become roughly $760,000 by retirement. By taking it out now, you lose not just the $50,000 but the $710,000 in growth. This is true whether you borrow it, withdraw it as a hardship, or withdraw it as a regular distribution.

A 401(k) loan is slightly different because you're repaying the money, so some of it goes back into the account. But the years you spend repaying the loan are years that money is not invested. If you borrow $50,000 and repay it over five years, you're putting money back in, but you've still lost five years of growth on that $50,000.

This calculation matters most if you're young. The younger you are when you withdraw, the longer the money has to compound, and the larger the opportunity cost. A $50,000 withdrawal at 30 costs far more in lost retirement savings than the same withdrawal at 55.

Comparing a 401(k) loan to other ways to pay for a down payment

Before using your 401(k), consider whether you have other options. A down payment loan from a bank or credit union, a gift from family, or waiting to save more are all worth weighing against the cost of tapping retirement savings.

A personal loan from a bank typically charges 8% to 12% interest, and you pay that interest to the bank, not to yourself. A 401(k) loan charges interest too, but the interest goes back into your account. However, a personal loan does not reduce your retirement savings, and you do not risk losing the loan if you change jobs.

A gift from family avoids debt entirely and does not reduce your retirement savings. Many lenders allow down payments funded by gifts, though they require a signed gift letter stating the money does not need to be repaid. If family help is available, it is usually the lowest-cost option.

Waiting to save more means delaying the home purchase, but it avoids the cost of borrowing or withdrawing from retirement savings. If you can afford to wait a year or two and save the down payment from your paycheck, that is often the best long-term choice.

Rules that change based on your age and employment status

The rules for 401(k) withdrawals shift depending on how old you are and whether you still work for the employer sponsoring the plan. If you are still employed and under 59½, you generally cannot withdraw from your 401(k) without penalty—a loan is your main option. If you leave your job, the rules change.

If you separate from service (quit or are laid off) in the year you turn 55 or later, you can withdraw from your 401(k) without the 10% early withdrawal penalty. You still owe income tax, but not the penalty. This rule does not apply if you're 54 and leave your job; you must be 55 or older in the year of separation. This exception is called the "Rule of 55."

If you are 59½ or older, you can withdraw from your 401(k) without the 10% penalty. You still owe income tax on the withdrawal. At 72, you must begin taking required minimum distributions (RMDs) from your 401(k), whether you need the money or not.

Your plan document may also have its own rules. Some plans do not allow loans. Some plans do not allow hardship withdrawals. Some plans allow withdrawals only after you leave the company. Always check with your plan administrator about what your specific plan allows before making any decisions.

How to request a 401(k) loan or withdrawal

Contact your plan administrator—usually the HR department or a benefits team at your company—and ask for the loan or withdrawal request form. They will give you the form and explain the process, the timeline, and any documentation you need to provide.

For a loan, you will typically fill out a loan application, provide information about the loan amount and repayment term, and sign the agreement. The plan administrator will process the loan and set up payroll deductions to repay it. This usually takes one to two weeks.

For a hardship withdrawal, you will fill out a withdrawal request form and provide documentation of the hardship—in this case, proof of the home purchase and proof that you do not have other funds available. The plan administrator will review your request and either approve or deny it. If approved, the money is usually sent to you within one to two weeks, though some plans may take longer.

Ask your plan administrator whether the withdrawal or loan will be subject to federal income tax withholding. For a loan, withholding does not apply because it is not taxable. For a hardship withdrawal, your plan may withhold 20% for federal taxes, or you may be able to request no withholding and pay the tax when you file your return.

Frequently Asked Questions

Can I borrow from my 401(k) if I'm self-employed or have a Solo 401(k)?

Yes, Solo 401(k) plans allow loans, and the same rules apply: you can borrow up to $50,000 or 50% of your balance, whichever is less. However, if you are the only employee, you cannot borrow from your Solo 401(k) and then leave yourself unemployed—the loan becomes due immediately. Consult a tax professional before borrowing from a Solo 401(k) for a home purchase.

What happens to my 401(k) loan if I get laid off?

Most plans require you to repay the full remaining balance within 60 to 90 days of leaving your job. If you cannot repay it, the unpaid amount is treated as a taxable withdrawal, and you owe income tax plus the 10% early withdrawal penalty if you're under 59½. Some plans allow you to roll the loan into an IRA to avoid this, but you must act quickly. Contact your plan administrator immediately if you are laid off.

Can I use my 401(k) to buy a second home or investment property?

A 401(k) loan can be used for any purpose, including a second home or investment property. However, the longer repayment term (which may extend beyond five years) typically applies only to primary residences. A loan for a second home usually must be repaid within five years. Hardship withdrawals for home purchases usually cover only primary residences, not investment properties. Check your plan document.

Will borrowing from my 401(k) affect my mortgage application?

A 401(k) loan appears as a liability on your credit report and reduces your debt-to-income ratio, which can affect how much a lender will approve you for. The monthly loan payment is counted as a debt obligation. Some lenders view 401(k) loans more favorably than other debts because they are secured by your own assets, but you should disclose the loan to your lender before applying for a mortgage.

Can I pay back a 401(k) loan faster than the required term?

Yes, most plans allow you to repay a 401(k) loan early without penalty. Paying it back faster means you get the money back into your account sooner and it can resume growing. There is no downside to early repayment. Ask your plan administrator whether there are any fees or restrictions on early repayment for your specific plan.