You can withdraw or borrow from your 401(k) to buy a house, but the rules are strict and the tax cost is usually high

A 401(k) withdrawal for a home purchase is possible through two main routes: an early withdrawal (if you meet certain conditions) or a loan against your balance. Neither is automatic. The IRS allows early withdrawal without the usual 10% penalty only in specific situations — primarily if you are a first-time homebuyer taking out no more than $10,000 lifetime, or if you meet other narrow exceptions. A 401(k) loan lets you borrow against your own money and repay it, but you must repay it on schedule or it becomes a taxable withdrawal. Most people who use their 401(k) for a home purchase end up paying income tax on the amount they take out, and sometimes the 10% early withdrawal penalty as well.

The decision to use retirement savings for a down payment should account for what that money would have grown into by retirement age. A $50,000 withdrawal at age 40 costs far more than the taxes and penalties you pay upfront — it costs the decades of compound growth you lose. Before you withdraw, explore mortgages, home equity lines of credit, and down payment assistance programs, which often cost less in the long run.

Key Takeaways

  • First-time homebuyers can withdraw up to $10,000 from a traditional or Roth 401(k) without the 10% early withdrawal penalty, but you still owe income tax on the amount unless it comes from a Roth account.
  • A 401(k) loan lets you borrow from your own balance and repay it over time, but if you leave your job or miss payments, the loan becomes a taxable withdrawal subject to the 10% penalty.
  • Withdrawing from a 401(k) before age 59½ for any reason other than a narrow list of exceptions triggers a 10% penalty plus income tax on the full amount withdrawn.
  • The money you withdraw or borrow is no longer growing tax-deferred, which costs you compound growth over the years until retirement.
  • A mortgage, home equity line of credit, or down payment assistance program often costs less in taxes and penalties than raiding your 401(k).

The first-time homebuyer exception: $10,000 lifetime limit

The IRS allows you to withdraw up to $10,000 from your 401(k) without paying the 10% early withdrawal penalty if you are a first-time homebuyer. "First-time" means you have not owned a home in the past two years — you do not have to be buying your literal first house. The $10,000 is a lifetime limit across all your 401(k) accounts, not per account or per purchase.

If your 401(k) is a traditional account, you still owe ordinary income tax on the $10,000 you withdraw. If it is a Roth 401(k), you owe no tax on the withdrawal (though Roth 401(k)s are rare; most people have Roth IRAs instead, which have different rules). You must use the money for "may have access to acquisition costs" — down payment, closing costs, or construction of a primary residence. You cannot use it to renovate, repair, or pay off an existing mortgage.

You do not have to prove you are a first-time buyer when you withdraw; the IRS trusts your self-certification. But keep records of how you spent the money in case of an audit. If you are unsure whether you meet the two-year rule, contact your plan administrator before you withdraw.

Borrowing from your 401(k) instead of withdrawing

A 401(k) loan lets you borrow money from your own account balance and repay it with interest over time — usually three to five years for a home purchase, though some plans allow longer terms. You do not owe income tax on the amount you borrow, and you do not pay the 10% early withdrawal penalty. The interest you pay goes back into your own account, not to a lender.

The catch is that you must repay the loan on schedule. If you leave your job, most plans require you to repay the full balance within 60 days or it becomes a taxable withdrawal. If you cannot repay within that window, you owe income tax on the unpaid balance plus the 10% penalty (if you are under 59½). If you miss payments while still employed, your plan may declare the loan in default, triggering the same tax consequences.

A 401(k) loan also reduces the balance that is growing tax-deferred for retirement. If you borrow $50,000 and the market rises 7% per year, you lose the growth on that $50,000 for however long the loan is outstanding. That lost growth compounds over decades. Before you take a loan, ask your plan administrator for the interest rate, repayment term options, and what happens if you leave your job.

Income tax and penalties on early withdrawals

Any withdrawal from a traditional 401(k) before age 59½ is subject to ordinary income tax, unless it falls under a narrow exception. The exceptions are: disability, death (beneficiary withdrawal), substantially equal periodic payments under IRS rules, medical expenses over 7.5% of adjusted gross income, health insurance premiums while unemployed, and the first-time homebuyer $10,000 (penalty-free only; tax still applies).

On top of income tax, you owe a 10% early withdrawal penalty on the full amount, except for the exceptions listed above. If you withdraw $50,000 at age 45 and you are in the 22% federal tax bracket, you owe $11,000 in federal income tax plus $5,000 in penalty — $16,000 total before state tax. Your actual take-home is $34,000. State income tax can add another 3% to 10% depending on where you live.

Roth 401(k) withdrawals work differently: you can withdraw your contributions (the money you put in) tax-free and penalty-free at any age. Earnings (the growth) are subject to tax and penalty unless you meet an exception. Roth IRAs have more lenient rules, but a 401(k) is not an IRA, so do not assume the same rules apply.

When a 401(k) loan makes more sense than a withdrawal

A loan is usually better than a withdrawal if you are confident you will stay in your job long enough to repay it. You avoid the 10% penalty and the immediate income tax hit. You also keep the borrowed amount in the account (as a loan balance) so it continues to accrue some tax-deferred growth, even though you are not invested in the market during the loan term.

A loan is worse if you are likely to change jobs, because most plans force repayment within 60 days of leaving. If you cannot repay, the loan becomes a taxable withdrawal and you face the 10% penalty retroactively. A loan is also worse if interest rates are high or the loan term is short, because you are paying yourself interest that could have gone into a mortgage at a lower rate.

Run the math: compare the interest you would pay on a 401(k) loan to the interest rate on a mortgage or home equity line of credit. In most cases, a mortgage is cheaper. A 401(k) loan makes sense only if you cannot get a mortgage or HELOC, or if the loan term is very short and you are certain you will stay employed.

Alternatives that cost less than raiding your 401(k)

A conventional mortgage, even with a smaller down payment and mortgage insurance, often costs less in total dollars than withdrawing from a 401(k). Mortgage rates are usually lower than the opportunity cost of losing 401(k) growth, and mortgage interest is partially tax-deductible (if you itemize). A 401(k) withdrawal is not deductible.

A home equity line of credit (HELOC) or home equity loan lets you borrow against equity you already have in a home, usually at a rate lower than a personal loan and sometimes lower than a 401(k) loan. If you own a home, this is often cheaper than a 401(k) withdrawal.

Down payment assistance programs, offered by state housing agencies and nonprofits, provide grants or low-interest loans specifically for down payments. These do not require you to raid retirement savings. The money is often forgivable if you stay in the home for a set period. Search your state housing finance agency website or call 211 to find programs in your area.

An FHA loan requires only a 3.5% down payment and allows gift funds from family members, so you may not need to withdraw from your 401(k) at all. A VA loan (if you are military) requires zero down payment.

The long-term cost of withdrawing now

The most hidden cost of a 401(k) withdrawal is the lost compound growth over decades. If you withdraw $50,000 at age 40 and the market averages 7% annual growth, that $50,000 would grow to roughly $680,000 by age 65. Withdrawing it now means you lose that $630,000 in growth, even after you account for taxes and penalties paid upfront.

This is why financial advisors usually recommend borrowing or finding another source of down payment money rather than withdrawing. The tax cost is immediate and visible, but the growth cost is invisible and much larger.

If you have already decided to withdraw, at least use the first-time homebuyer exception if you may have access to, because it saves you the 10% penalty. And do not withdraw more than you need for the down payment and closing costs — every dollar you leave in the account keeps working for retirement.

Frequently Asked Questions

Can I withdraw from my 401(k) if I am not a first-time homebuyer?

Yes, but you will owe the 10% early withdrawal penalty plus income tax on the full amount (unless you meet another exception like disability or substantially equal periodic payments). The first-time homebuyer exception is the only one designed for home purchases. If you do not may have access to, a loan or mortgage is usually cheaper.

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

Most plans require you to repay the full loan balance within 60 days of leaving your job. If you cannot repay, the unpaid balance becomes a taxable withdrawal and you owe income tax plus the 10% early withdrawal penalty (if you are under 59½). Check your plan documents to see if your employer offers an exception or extended repayment period.

Do I owe taxes on a 401(k) loan while I am repaying it?

No. You repay the loan with after-tax dollars, and the interest goes back into your account tax-free. You only owe taxes if the loan goes into default and becomes a withdrawal, or when you eventually withdraw the money in retirement.

Can I borrow from my 401(k) if my employer does not offer loans?

No. Whether your plan allows loans is up to your employer. If your plan does not offer loans, your only option is a withdrawal (which triggers tax and penalty unless you meet an exception). Check with your plan administrator or HR department to see if loans are available.

Is a Roth IRA withdrawal better than a 401(k) withdrawal for buying a house?

Yes, if you have a Roth IRA. You can withdraw your contributions (the money you deposited) at any age tax-free and penalty-free. You cannot withdraw earnings without tax and penalty unless you meet an exception. A 401(k) does not have this contribution withdrawal option, so a Roth IRA is more flexible for home purchases — but do not raid it if you can avoid it, because you cannot put the money back.