Can You Withdraw From a 401(k) for a First Home Purchase?

You can use a 401(k) withdrawal for a first home purchase, but the rules are stricter and more expensive than most first-time buyers expect. Your plan may let you take a hardship withdrawal or borrow against your balance, and each path has very different tax consequences. The widely repeated idea that a first-time homebuyer gets a penalty-free early withdrawal is true only for IRAs. It does not apply to 401(k) plans, and confusing the two is the single costliest mistake people make when they tap retirement savings for a down payment.

Why the First-Time Homebuyer Exception Doesn’t Help Here

Federal law allows a penalty-free withdrawal of up to $10,000 from an IRA when a first-time homebuyer uses the funds toward a principal residence. That exception sits in 26 U.S.C. § 72(t)(2)(F) and applies exclusively to individual retirement plans.1Office of the Law Revision Counsel. 26 USC 72 – Annuities; Certain Proceeds of Endowment and Life Insurance Contracts It does not extend to 401(k)s, 403(b)s, or other employer-sponsored qualified plans.2Internal Revenue Service. Retirement Topics – Exceptions to Tax on Early Distributions If you pull money from a 401(k) before age 59½ to buy a house, the 10% early distribution penalty still applies on top of ordinary income tax.

The IRS definition of “first-time homebuyer” is looser than the phrase sounds. Under 26 U.S.C. § 72(t)(8)(D), you qualify if neither you nor your spouse had an ownership interest in a principal residence during the two-year period ending on the date you sign a binding purchase contract or begin construction.1Office of the Law Revision Counsel. 26 USC 72 – Annuities; Certain Proceeds of Endowment and Life Insurance Contracts That rule governs the IRA break. For a 401(k), whether you are a first-time buyer changes nothing about the tax you owe.

If you have IRA funds alongside your 401(k), look at the IRA route first. It is the only path that avoids the 10% penalty outright, though a withdrawal from a traditional IRA is still taxed as ordinary income, and the funds must be used within 120 days.

Hardship Withdrawal From a 401(k) for a Home Purchase

IRS safe harbor rules let a 401(k) plan treat costs directly tied to buying a principal residence as a qualifying hardship. That covers a down payment and closing costs, but it explicitly excludes ongoing mortgage payments. The amount cannot exceed the actual financial need, though the regulations do let you gross up the request to cover the federal, state, and local taxes and penalties you expect to owe on the withdrawal itself.3eCFR. 26 CFR 1.401(k)-1 – Certain Cash or Deferred Arrangements

The tax cost is where this gets painful. The entire withdrawal counts as ordinary taxable income in the year you receive it. If you are under 59½, add the 10% early distribution penalty on top.1Office of the Law Revision Counsel. 26 USC 72 – Annuities; Certain Proceeds of Endowment and Life Insurance Contracts Your plan administrator will withhold 10% for federal income tax at distribution unless you file a Form W-4R selecting a different rate, and that withholding is only a prepayment. Your actual bill could be higher depending on your bracket. Most states with an income tax treat the withdrawal as ordinary income too, with rates running from roughly 2% to over 13%.

The math catches people off guard. If you need $30,000 for a down payment, you may have to withdraw $40,000 or more to net that amount after tax and penalty. That extra money never returns to your retirement account. A hardship withdrawal is permanent. You cannot repay it.

Your Plan May Not Offer One

Nothing in federal law forces a 401(k) plan to allow hardship distributions. The IRS says a plan “may, but is not required to, provide for hardship distributions.”4Internal Revenue Service. Retirement Plans FAQs Regarding Hardship Distributions Many plans do, some don’t. Check the Summary Plan Description before you count on this option; the SPD spells out every distribution and loan provision your plan actually allows.5Internal Revenue Service. 401(k) Resource Guide – Plan Participants – Summary Plan Description

Borrowing From a 401(k) Instead

A 401(k) loan is almost always the better route when the plan permits it. You borrow against your own balance, repay yourself with interest, and avoid both income tax and the 10% penalty as long as you stay on schedule. A loan is not treated as a distribution for tax purposes unless you default.1Office of the Law Revision Counsel. 26 USC 72 – Annuities; Certain Proceeds of Endowment and Life Insurance Contracts

Federal law caps a 401(k) loan at the lesser of $50,000 or half your vested account balance, with a $10,000 floor. If you have $15,000 vested, you can borrow up to $10,000 rather than $7,500. The $50,000 ceiling is also reduced by the highest outstanding loan balance you carried in the previous 12 months, which matters if you recently paid off another 401(k) loan.1Office of the Law Revision Counsel. 26 USC 72 – Annuities; Certain Proceeds of Endowment and Life Insurance Contracts

Longer Repayment for a Principal Residence

Standard 401(k) loans must be repaid within five years through substantially equal payments made at least quarterly. When the loan finances a dwelling that will serve as your principal residence, the statute exempts it from the five-year deadline.1Office of the Law Revision Counsel. 26 USC 72 – Annuities; Certain Proceeds of Endowment and Life Insurance Contracts The actual maximum term is set by your plan administrator, not the IRS. Some plans allow 10, 15, or even 25 years.6Internal Revenue Service. Retirement Plans FAQs Regarding Loans Check your SPD for the specific ceiling on your plan.

What a Loan Really Costs

The interest on a 401(k) loan goes back into your own account, which makes the loan look free. It isn’t. The money you borrowed is out of the market while you repay. If investments return 8% over the period you would have held them and your loan rate is 5%, you fall behind every year the loan is outstanding. On a $40,000 loan repaid over 10 years, that gap can cost tens of thousands in lost compounding by the time you retire. This cost never appears on a statement, which is why most borrowers underestimate it.

What Happens If You Leave Your Job

This is where 401(k) loans turn dangerous. Most plans require full repayment of the outstanding balance when you leave the employer, whether you quit, are laid off, or are fired. If you can’t repay, the remaining balance is treated as a distribution. You owe income tax on the full amount, and if you are under 59½, you owe the 10% early distribution penalty on top of that.7Internal Revenue Service. Retirement Topics – Plan Loans

There is an escape hatch. You can roll the outstanding loan balance into an IRA or another eligible retirement plan by your federal tax return due date, including extensions, for the year the loan is treated as a distribution.7Internal Revenue Service. Retirement Topics – Plan Loans That is mid-April of the following year, or mid-October with an extension. But you need enough cash to make that rollover contribution, which most people don’t have just after losing a job. If your job feels shaky, think carefully before taking a 401(k) loan for a home. An involuntary departure can turn a tax-free loan into one of the most expensive ways to fund a down payment.

How the Loan Can Shrink Your Mortgage Approval

Mortgage lenders look at your debt-to-income ratio when they decide how much to lend you. A 401(k) loan does not show up on your credit report, but lenders take a wider view of your finances and may fold the monthly loan payment into your DTI. A $400 monthly repayment reduces the mortgage you can qualify to carry. The loan you took to fund the down payment can shrink the loan you get to buy the house. If you plan to use a 401(k) loan alongside a mortgage, run the DTI math before you borrow, not after.

Choosing Between the Two

If your plan offers both, the loan is usually the smarter path unless you can’t handle the repayment schedule or you have real reason to worry about staying with your employer. The hardship withdrawal belongs at the bottom of the list because the tax and penalty costs are immediate and can’t be undone. And if you own an IRA in addition to your 401(k), pull from the IRA first up to the $10,000 first-time homebuyer limit. It’s the only piece of retirement money you can use for a home before 59½ without paying the 10% penalty.