Can You Use Your 401k to Buy a House? Loans vs. Hardship Withdrawals

You can use a 401k to buy a house in two ways: borrow from your account with a 401k loan capped at $50,000, or take a hardship withdrawal that permanently removes money from your retirement balance. A loan avoids taxes and penalties as long as you repay it on schedule. A withdrawal is taxed as ordinary income and, if you are under 59½, carries a 10% early distribution penalty. The first-time homebuyer exception you may have heard about applies to IRAs, not to 401k plans. Whether either option is even available depends on what your employer’s plan document allows.

Borrowing From Your 401k

A 401k loan lets you borrow against your own vested balance and repay yourself, usually through automatic payroll deductions. The interest goes back into your account rather than to a bank. Plans must charge a reasonable rate comparable to what a commercial lender would offer on a similar secured loan, and most set this at the prime rate plus one percent.1Internal Revenue Service. 401k Plan Fix-It Guide – Participant Loans

The standard repayment window is five years, but loans used to buy a primary residence qualify for a longer term.2Internal Revenue Service. Retirement Topics – Loans The IRS does not set a specific maximum for the extended term; your plan document controls the actual limit. Payments must be made at least quarterly, and the loan must be documented with a legally enforceable agreement showing the amount, interest rate, and repayment schedule.

As long as you follow the repayment terms, no taxes or penalties apply. That is the main reason a loan is usually the safer option for a home purchase.

How Much You Can Borrow

The federal cap comes from 26 U.S.C. § 72(p). Your maximum loan is the lesser of two amounts:3Office of the Law Revision Counsel. 26 USC 72(p) – Loans Treated as Distributions

  • $50,000, reduced by the highest outstanding loan balance you carried from the plan during the 12 months before the new loan, minus the balance on the day the new loan is made.
  • The greater of half your vested account balance or $10,000.

That 12-month lookback catches people off guard. If you had a $50,000 loan outstanding any time in the past year, you cannot take a new loan for the full $50,000 even if you paid the old one off completely.4Internal Revenue Service. Issue Snapshot – Borrowing Limits for Participants With Multiple Plan Loans The $10,000 floor works the other way: someone with a $15,000 vested balance can still borrow $10,000 rather than being capped at $7,500.

Plans can allow multiple loans at the same time as long as the combined outstanding balance stays within the statutory limits. Your plan document may impose tighter restrictions than federal law requires, so check your Summary Plan Description before counting on the full amount.

Hardship Withdrawals for a Home Purchase

A hardship withdrawal permanently removes money from your 401k. The money is not paid back and your retirement balance shrinks for good. The IRS recognizes the purchase of a principal residence, excluding ongoing mortgage payments, as a qualifying immediate and heavy financial need under its safe harbor rules.5Internal Revenue Service. Retirement Topics – Hardship Distributions

The amount cannot exceed what you actually need for the purchase. That includes the down payment, closing costs directly related to buying the home, and the taxes and penalties that the distribution itself will generate.6Internal Revenue Service. Retirement Plans FAQs Regarding Hardship Distributions You no longer need to prove you exhausted every other funding source first, though individual plans may still ask for documentation of your financial need.

Because the money leaves the plan permanently, the entire distribution (except any Roth contributions) is taxed as ordinary income in the year you receive it. If you are younger than 59½, you also owe a 10% early distribution penalty unless a narrow exception applies. Roth 401k contributions come out free of income tax since you already paid tax on them, but earnings on those Roth contributions are taxed as ordinary income if the distribution does not meet the qualified distribution requirements (generally age 59½ and a five-year holding period).5Internal Revenue Service. Retirement Topics – Hardship Distributions

Hardship withdrawals have no $50,000 cap, but they are limited by your documented need and the elective deferrals available in your account. The distribution is reported on Form 1099-R, and if the early penalty applies, you report it on Form 5329 with your federal return.7Internal Revenue Service. About Form 5329 – Additional Taxes on Qualified Plans and Other Tax-Favored Accounts Most administrators withhold 20% for federal taxes automatically, but your actual bill may be higher depending on your income.

The First-Time Homebuyer Exception Does Not Cover 401k Plans

The IRS allows a penalty-free withdrawal of up to $10,000 from an IRA for a first-time home purchase under 26 U.S.C. § 72(t)(2)(F). That exception applies only to individual retirement accounts. It does not apply to 401k plans, 403(b) plans, or other employer-sponsored accounts.8Internal Revenue Service. Retirement Topics – Exceptions to Tax on Early Distributions

If you take a hardship withdrawal from your 401k before age 59½ to buy a home, the 10% penalty applies regardless of whether it is your first home. The only way to avoid penalties on 401k money used for a home purchase is to take a loan instead of a withdrawal, or to qualify for a separate exception such as separation from service after age 55.

What Happens to Your Loan If You Leave the Job

This is where 401k loans turn dangerous for homebuyers. If you leave your employer voluntarily or otherwise, most plans require you to repay the entire outstanding balance. If you cannot, the remaining balance becomes a plan loan offset, which the IRS treats as a distribution subject to income tax and potentially the 10% early withdrawal penalty.2Internal Revenue Service. Retirement Topics – Loans

There is a safety valve. If the offset happens because you left your job or the plan terminated, you can roll the outstanding balance into an IRA or another eligible retirement plan by the due date for your federal tax return that year, including extensions.9Internal Revenue Service. Plan Loan Offsets Filing a six-month extension effectively pushes the rollover deadline from mid-April to mid-October, which can buy time to gather the cash. Complete the rollover and no taxes or penalties are due on the offset amount.

Requesting the Funds

Start with your plan’s Summary Plan Description, which spells out whether loans or hardship withdrawals are available and any plan-specific restrictions beyond the federal minimums. Your HR department or plan administrator (often Fidelity, Vanguard, or Empower) can provide the document and direct you to the application portal.

For a loan, you complete a request form specifying the amount and purpose. To get the extended repayment term for a home purchase, most plans require a signed purchase agreement or similar proof that the funds are going toward a primary residence.

For a hardship withdrawal, the documentation bar is higher. Plan administrators typically require a signed purchase agreement showing the property address, sale price, and closing date; a mortgage commitment letter or loan estimate showing how much the lender is financing and what you need to bring to closing; and a calculation demonstrating that the requested amount does not exceed your down payment, closing costs, and estimated taxes and penalties on the distribution.

Processing typically takes anywhere from a few business days to two weeks depending on the administrator. Do not wait until the last week before closing to request funds. Disbursement usually arrives by direct deposit, though physical checks (sometimes mailed directly to an escrow agent) are an option. Expedited delivery for a tight closing runs roughly $25 to $50.

How Mortgage Lenders Treat 401k Money

A 401k loan generally does not count against your debt-to-income ratio in most underwriting models, which is a meaningful advantage over a personal loan for the same amount. The lender will still want to see documentation of the loan terms.

A hardship withdrawal requires more paperwork. The lender needs to verify the funds have arrived in your bank account and are available for closing. For FHA loans, the lender may count up to 60% of the value of retirement account assets, less existing loans, as available funds, unless you provide documentation showing a higher percentage can actually be withdrawn after subtracting taxes and penalties.10HUD. FHA Single Family Housing Policy Handbook Any deposit into your bank account that exceeds 50% of your monthly income may trigger additional documentation requests verifying the source.

The Long-Term Cost

Money removed from a 401k stops compounding. A $30,000 hardship withdrawal at age 35, assuming a 7% average annual return, would have grown to roughly $228,000 by age 65. After taxes, the 10% penalty, and lost growth, you are not spending $30,000 on a down payment. You are spending something closer to six figures in future retirement income.

A loan is less destructive because the money goes back into the account, but you still lose the investment returns on the borrowed amount during the repayment period. If your plan invests the loaned portion conservatively, the drag on long-term growth can be significant over a 10- or 15-year repayment term.

Tapping a 401k is not always the wrong move. If the alternative is paying private mortgage insurance for years or renting indefinitely in a rising market, the calculation shifts. Run the actual cost of the withdrawal (taxes plus penalty plus lost compounding) against the cost of the alternative, whether that is PMI, a smaller down payment, or waiting another year to save. The homebuyers who regret this decision are usually the ones who treated their retirement account like a savings account without running those numbers first.