CrowdfundedWealth

Using a 401(k) to Buy a House in 2026: Loan, Hardship, IRA Rules

ResearchBy Jorge23 min read

Some links pay us a referral fee; each one says so. Disclosure

Quick answer

As of November 21, 2026, a 401(k) can pay for a house in two ways, a plan loan or a hardship withdrawal, and an IRA in a third, and of the two 401(k) routes only the loan avoids both income tax and the 10% additional tax. Under 26 U.S.C. 72(p)(2) a loan is not a distribution up to the lesser of $50,000 and the greater of $10,000 or half the vested balance, and the usual 5-year repayment limit does not apply to a loan used to buy a dwelling that will be your principal residence. A hardship withdrawal is on the regulation's deemed list for “costs directly related to the purchase of a principal residence”, but it is taxed and, under age 59 1/2, carries the 10% additional tax. The $10,000 first-time homebuyer exception in 72(t)(2)(F) is for IRAs only, not 401(k) plans. Fannie Mae accepts vested 401(k) and IRA money for the down payment and says a loan secured by a 401(k) need not be counted in the debt ratio if the lender holds the loan instrument. On a $20,000 down payment (our arithmetic, assumed 29% tax rate), a hardship withdrawal costs $12,786.89 in tax and penalty, a traditional IRA with the $10,000 exception $11,147.54, and the loan $0 in tax and $410.33 a month for 5 years.

Update alert · free

An email when the using 401k to buy a house numbers change

When a rate, rule or filing behind this page changes: what changed, the one number that matters, and the source to check it yourself.

Key takeaways

  • The $10,000 first-time homebuyer exception does not reach a 401(k). Section 72(t)(2)(F) covers “distributions to an individual from an individual retirement plan”. A 401(k) distribution for a home purchase gets no such exception: it is a hardship distribution, taxed as income, with the 10% additional tax unless another exception fits.
  • The loan ceiling is the lesser of $50,000 (reduced by the excess of your highest loan balance in the past year over today's balance) and the greater of $10,000 or half of the vested benefit. The IRS example is a $40,000 balance and a $20,000 maximum. The Code text we saved has no inflation indexing for either dollar figure.
  • A home loan can run longer than 5 years, but the Code names no maximum. Section 72(p)(2)(B)(ii) only lifts the 5-year limit for a loan used to acquire a dwelling that “within a reasonable time is to be used” as your principal residence, and the plan document sets the term. The regulation's own example is a $50,000 loan repaid over 15 years.
  • A plan loan that repays a bank loan can still qualify. Treasury Regulation 1.72(p)-1 Q&A-8 says a refinancing cannot qualify “in general”, but a plan loan that pays off a third-party loan used to buy the home qualifies if the plan loan would have qualified without it. Q&A-6 says the loan need not be secured by the home.
  • The regulation paragraph for the hardship rule is (d)(3)(ii)(B)(2), not (iii): “Costs directly related to the purchase of a principal residence for the employee (excluding mortgage payments)”. The amount may include the taxes and penalties reasonably anticipated, which is why a $20,000 need becomes a $32,786.89 withdrawal at our assumed rates.
  • Fannie Mae treats the two kinds of money differently. Section B3-4.3-03 accepts vested 401(k) and IRA funds for the down payment, closing costs and reserves. Section B3-6-05 (dated August 5, 2026) says a loan secured by a 401(k) is a contingent liability that the lender “is not required to include” in recurring monthly debt if it holds the loan instrument showing the asset as collateral.
  • Vanguard's 2026 data show 13% of participants with a loan outstanding at year-end 2025 and 6% starting a hardship withdrawal in 2025, up from 5% in 2024. Vanguard says higher-income participants are more likely to use withdrawals for home purchases or tuition, but the pages we could save give no percentage for home purchases.

CSV · 72 rows

Using a 401(k) or IRA to buy a house: rules, lender treatment and a $20,000 example, 2026

72 rows: the loan limits and the home exception from 72(p) and Treasury Regulation 1.72(p)-1, the hardship rules from 1.401(k)-1(d)(3), the IRA first-home exception from 72(t)(8) and Publication 590-B, four Fannie Mae Selling Guide sections, Vanguard's 2025 loan and hardship rates, and the arithmetic for a $20,000 down payment.

The three routes at a glance

Every cell is from a document we saved on November 21, 2026. The two IRS FAQ pages were last reviewed February 26, 2026; the IRS says elsewhere that FAQs are not legal authority, so each rule below is tied to the Code or regulation they cite.

Question401(k) plan loan401(k) hardship withdrawalIRA first-time homebuyer withdrawal
Rule26 U.S.C. 72(p)(2); Treas. Reg. 1.72(p)-1Treas. Reg. 1.401(k)-1(d)(3)26 U.S.C. 72(t)(2)(F) and (t)(8)
Where the money comes fromYour 401(k) account, as a loan you repay to itYour 401(k) account, permanentlyA traditional or Roth IRA, not a 401(k)
Income taxNone while the loan stays within the Code limitsYes, unless it comes from designated Roth moneyYes on a traditional IRA; a Roth return of regular contributions is not included in income
10% additional tax under 59 1/2None while it stays a loanYes, unless another exception fitsNo on up to $10,000, lifetime
Dollar ceilingLesser of $50,000 and the greater of $10,000 or half the vested benefitNot above the amount of the need, which may include the taxes and penalties$10,000 lifetime per individual
RepaymentRequired; the 5-year limit is lifted for a principal-residence loanNoneNone; a delayed or canceled purchase can be recontributed within 120 days
Home coveredDwelling that will be your principal residenceYour principal residenceA first home for you, your spouse, or a child, grandchild or ancestor of either
Plan must offer it?No: a plan “may, but is not required to” offer loansNo: the plan sets its own criteria and may exclude home purchasesNot a plan feature: it is a tax rule for IRA owners

Source: 26 U.S.C. 72(p) and 72(t); Treasury Regulations 1.72(p)-1 and 1.401(k)-1(d)(3); IRS retirement plans FAQs regarding loans and hardship distributions (reviewed February 26, 2026); IRS Publication 590-B (2025).

The loan: what 72(p) allows when the money buys a home

The loan is the only route here that is not a distribution. Four rules from the Code and the regulation decide how it works for a home.

  • The ceiling. The loan, added to the outstanding balance of your other loans from the plan, may not exceed the lesser of $50,000 (reduced by the excess of the highest outstanding balance in the 1 year before the loan over the balance on the day of the loan) and the greater of one-half of the vested benefit or $10,000. The reduction rule matters if you have borrowed before: the IRS example is a participant with a $40,000 loan now at $33,322, who may borrow only another $10,000.
  • The term. A loan generally must be repaid within 5 years, in substantially level payments at least quarterly. Section 72(p)(2)(B)(ii) removes the 5-year limit for a loan “used to acquire any dwelling unit which within a reasonable time is to be used (determined at the time the loan is made) as the principal residence of the participant”. The Code names no longer maximum; the IRS says such a loan “may be able to be paid back over a period of more than 5 years”, and the plan document decides.
  • What counts as a home. Regulation 1.72(p)-1 Q&A-5 gives “principal residence” the meaning it has under section 121. A second home or a rental does not qualify for the longer term (our reading). For tracing, Q&A-7 applies the section 163(h)(3)(B) rules, so what matters is that the money is used to acquire the home.
  • Security and refinancing. Q&A-6 says the loan does not have to be secured by the home. Q&A-8 says a refinancing generally cannot qualify, with one exception that matters to buyers who closed first: in the regulation's example a participant acquires a home on August 1 with a $50,000 bank loan, and on September 1 the plan loans $50,000, which pays off the bank loan, and the plan loan qualifies for the longer term.

How big can the loan be at different balances? Our arithmetic from the Code limit, with no earlier loans:

Vested balanceHalf of the balanceCeiling (lesser of $50,000 and the greater of $10,000 or half)
$40,000$20,000$20,000
$80,000$40,000$40,000
$100,000$50,000$50,000
$400,000$200,000$50,000

Source: 26 U.S.C. 72(p)(2)(A); the $40,000 row matches the IRS example. Our arithmetic.

The risks of a loan, in particular what happens if you leave the job before it is repaid, are in our guide to the 401(k) loan, hardship and $1,000 emergency withdrawal. They matter more for a house than for most uses because the loan can run for many years.

The hardship withdrawal: what the regulation requires

A 401(k) plan may allow in-service withdrawals “on account of” hardship only if the need is immediate and heavy and the amount is necessary to satisfy it. The current regulation, which applies to distributions made on or after January 1, 2020, lists the purchase of a primary home among the needs that are deemed to qualify: paragraph (d)(3)(ii)(B)(2) reads “Costs directly related to the purchase of a principal residence for the employee (excluding mortgage payments)”. Three conditions follow.

  • The amount. The distribution may not exceed the amount required to meet the need, “including any amounts necessary to pay any federal, state, or local income taxes or penalties reasonably anticipated to result from the distribution” (paragraph (d)(3)(iii)(A)). That is why the tax bill can be built into the withdrawal.
  • No other means. The employee must have taken all other currently available distributions under the employer's plans (hardship distributions aside) and must give the plan administrator a written representation that he or she “has insufficient cash or other liquid assets reasonably available to satisfy the need”. The administrator may not have actual knowledge to the contrary.
  • Plan terms. A plan may require that you take all nontaxable plan loans first, but may not suspend your contributions as a condition of the withdrawal. The IRS says a plan must state the criteria it uses and may allow hardship withdrawals for medical or funeral expenses but not for “the purchase of a principal residence or for payment of tuition and education expenses”.

The deemed list is a permission, not an entitlement: the plan can say no, and the withdrawal is not a loan. It is not repaid to the plan.

The IRA: the $10,000 rule in 72(t)(8)

The first-home exception is in the part of the Code that governs the 10% additional tax, and it is written for IRAs. Section 72(t)(2)(F) exempts “distributions to an individual from an individual retirement plan which are qualified first-time homebuyer distributions”. There is no equivalent paragraph for a 401(k): sites that tell a 401(k) saver to withdraw $10,000 penalty-free for a first home are describing the IRA rule (our reading of the Code).

ConditionWhat the Code and Publication 590-B say
Dollar limit$10,000 in total over your lifetime, counting earlier first-home distributions (72(t)(8)(B)); each spouse who is a first-time homebuyer can use $10,000 (Pub. 590-B)
Time to use the moneyBefore the close of the 120th day after you receive it, to pay qualified acquisition costs (72(t)(8)(A))
What it can pay forCosts of acquiring, constructing or reconstructing a residence, including usual or reasonable settlement, financing and other closing costs (72(t)(8)(C))
Whose homeYours, your spouse's, or a child, grandchild or ancestor of you or your spouse (72(t)(8)(A))
First-time homebuyer testNo present ownership interest in a principal residence during the 2-year period ending on the date of acquisition, for you and, if married, your spouse (72(t)(8)(D)(i))
What the exception removesThe 10% additional tax only. A traditional IRA distribution is still income; Form 5329 exception code 09
If the purchase falls throughThe distribution can generally go back into an IRA within 120 days, treated as a rollover (72(t)(8)(E); Pub. 590-B)

Source: 26 U.S.C. 72(t)(2)(F) and (t)(8); IRS Publication 590-B (2025), “First home” and the Roth IRA example.

Two practical points follow from the same texts. First, a Roth IRA is different: a return of your regular contributions is not included in gross income, and the ordering rules in Publication 590-B treat regular contributions as the first money out of a Roth IRA, so the $10,000 exception matters mainly for Roth earnings and for traditional IRAs (our reading). Second, the $10,000 is small against a down payment. On a $400,000 house, 3.5% down is $14,000 and 20% is $80,000 (our arithmetic), so the exception covers part of the first and an eighth of the second.

What the lender does with the money

A borrower's question is not only what the tax code allows but what the underwriter will accept and how it counts the debt. We read the Fannie Mae Selling Guide published November 4, 2026. Other investors and the FHA and VA handbooks have their own rules and lenders add their own overlays; we did not read them.

QuestionFannie Mae Selling Guide sectionWhat it says
Can vested 401(k) or IRA money be the down payment?B3-4.3-03 Retirement Accounts (06/30/2015)Vested funds “are acceptable sources of funds for the down payment, closing costs, and reserves”; the lender must confirm ownership, that the account is vested and that it “allows withdrawals regardless of current employment status”
Must retirement assets used as reserves be withdrawn?B3-4.3-03No: “Fannie Mae does not require the funds to be withdrawn from the account(s)”
Does the lender need proof the cash arrived?B3-4.3-01 (06/30/2015), which B3-4.3-03 points to for stocks, bonds and mutual funds in a retirement accountIf the asset's value is at least 20% more than the down payment and closing costs, no documentation of actual receipt; otherwise evidence of receipt is needed
Is money borrowed against a 401(k) acceptable?B3-4.3-15 Borrowed Funds Secured by an Asset (10/30/2009)Yes, for the down payment, closing costs and reserves, “since borrowed funds secured by an asset represent a return of equity”; 401(k) accounts are named
Does the loan payment count in the debt ratio?B3-4.3-15 and B3-6-05 Monthly Debt Obligations (08/05/2026)General rule: secured-loan payments count. But “when loans are secured by the borrower’s financial assets, monthly payments for the loan do not have to be considered as long-term debt”, and B3-6-05 says the lender is not required to count the contingent liability if it holds the loan instrument showing the asset as collateral
Is the same account counted twice?B3-4.3-15 and B3-6-05If the borrower uses the same asset for reserves, the lender must reduce its value by the loan proceeds and related fees
What must be documented?B3-4.3-15The loan terms, evidence that the lender of the secured loan is not a party to the sale, and evidence that the funds were transferred to the borrower

Source: Fannie Mae Selling Guide, published November 4, 2026, sections B3-4.3-01, B3-4.3-03, B3-4.3-15 and B3-6-05, as dated in each section header.

The result is a distinction that most explainers blur. A 401(k) withdrawal is your own money, but it is taxed and the tax comes out of the cash you bring. A 401(k) loan is money borrowed against your account: on Fannie Mae's rules the monthly payments “do not have to be considered as long-term debt”, but it still comes out of your paycheck. The lender being “not required” to count it is not a ban: a lender may count it, and an automated underwriting result can differ. For an assumed $8,000 gross monthly income, a $410.33 payment is 5.13% of income and $196.95 is 2.46% (our arithmetic), which is the size of the swing between the two treatments. Our debt-to-income calculator shows how the ratio is built.

What Vanguard's data show

We use two Vanguard documents saved on November 21, 2026: the March 2026 preview of How America Saves 2026 and a March 11, 2026 Vanguard note on hardship withdrawals. We could not retrieve the full report, so the figures below are the ones in those two documents.

MeasureFigureSource
Participants with a loan outstanding, year-end 202513%, in line with 2024Previewing How America Saves 2026
Participants starting a hardship withdrawal, 20256%, up from 5% in 2024Previewing How America Saves 2026
Participants earning under $100,000 vs others: hardship withdrawalAbout 3.5 times more likelyVanguard, March 11, 2026
Who uses withdrawals for home purchasesHigher-income participants are “more likely to use withdrawals for home purchases or tuition”Vanguard, March 11, 2026
Loan-first requirementRemoved by the Bipartisan Budget Act of 2018Vanguard, March 11, 2026

Source: Vanguard, Previewing How America Saves 2026 (March 2026); Vanguard, How America uses hardship withdrawals (March 11, 2026).

Neither document gives the share of hardship withdrawals taken for a home purchase, so we do not give one. What they do show is that a loan outstanding is common (about 1 in 8 participants) and that a withdrawal is still the less common route (1 in 17 started one in 2025, our arithmetic from the 6% rate).

What $20,000 for a down payment costs on each route

The example uses assumed facts, not a plan: a buyer under 59 1/2 needs $20,000 net in cash, with a combined income tax rate of 29% (an assumed 24% federal bracket and 5% state) held flat across the withdrawal. A larger withdrawal could reach a higher bracket. The loan rate is an assumed 8.5%, and the 15-year row assumes the plan allows a 15-year term for a home loan.

RouteTaken from the accountIncome tax at 29%10% additional taxCost
401(k) loan, 5 years at 8.5%$20,000 borrowed$0$0$410.33 a month, $24,619.84 repaid, of which $4,619.84 is interest paid into your own account
401(k) loan, 15 years at 8.5%$20,000 borrowed$0$0$196.95 a month, $35,450.62 repaid, of which $15,450.62 is interest paid into your own account
401(k) hardship withdrawal$32,786.89$9,508.20$3,278.69$12,786.89 of tax and penalty, not repaid
Traditional IRA with the $10,000 exception$31,147.54$9,032.79$2,114.75 (on $21,147.54)$11,147.54 of tax and penalty, not repaid
Roth IRA, regular contributions only (assuming at least $20,000 of them)$20,000$0$0$0 of tax today; the money leaves the account

Source: our arithmetic from 26 U.S.C. 72(p)(2) and 72(t)(1) and (t)(8) and Treasury Regulation 1.401(k)-1(d)(3)(iii)(A). Withdrawal W solves W x (1 - 0.29 - 0.10) = $20,000 for the hardship case; for the IRA, 0.61 W + $1,000 = $20,000 because the first $10,000 carries no 10%.

Three readings follow, all our arithmetic.

  • The penalty is the difference between the two withdrawals. The IRA exception saves $1,639.35 against the hardship case ($12,786.89 less $11,147.54). Both lose about $11,000 to $13,000 in tax and penalty on a $20,000 need.
  • The withdrawal also costs the growth. At an assumed 7% a year for 20 years, $32,786.89 left in the account would reach about $126,874.90, before any tax at retirement. The loan keeps $20,000 working at the 8.5% you pay yourself, and the cost is the payment, not lost growth.
  • The loan is the cheapest only while it stays a loan. If you leave the employer before repaying it, the unpaid balance can become a taxable distribution; the earlier guide prices that case.

Where the rules are easy to misread

  • A loan is not a withdrawal for Fannie Mae's down payment rules. Section B3-4.3-15 treats borrowed money secured by a 401(k) as a return of equity, but the lender must document the loan terms and the transfer of funds; allow time for the plan to issue the loan before closing.
  • The 2-year test counts your spouse. The first-time homebuyer definition applies the no-ownership test to you and, if married, your spouse. A buyer who sold a home 3 years ago may qualify; one who owned until last year may not (our reading).
  • The first-home exception does not make the money tax-free. It removes the 10% additional tax only. Income tax on a traditional IRA still applies, and the withdrawal can push you into a higher bracket in the year of purchase.
  • A hardship withdrawal needs a statement from you. The written representation that you lack other liquid assets is part of the regulation, and the administrator may not rely on it if it knows otherwise. A buyer with a large brokerage account is not the buyer the rule describes (our reading).

What a reader can do with this

  • Ask the plan three things in writing. Does it offer loans and hardship withdrawals; does it allow a term longer than 5 years for a home loan, and how long; and how does it treat an unpaid loan at separation?
  • Ask the lender two things before you borrow. How does it treat the loan payment in the debt ratio, and what documents does it want for borrowed funds and for retirement-account withdrawals? Fannie Mae's section says the lender “is not required” to count it, and the answer can differ by lender.
  • Price the exit before the entry. Write down the balance you would owe at the end of each of the next two years and what you could find in cash if you changed jobs.
  • Check the 2-year test before you rely on the IRA exception. The date of acquisition is the date of a binding contract, so count back 2 years from the contract, not from closing.
  • Compare with other ways to reduce the check. Our pages on down payment assistance and second liens in HMDA 2025, on gift letters and on the average down payment show what other buyers used.

This is analysis of public documents, not investment, legal or tax advice. Retirement-plan and tax rules are fact-specific; confirm the details with your plan administrator and a tax professional.

FAQ

Sources, read and saved on November 21, 2026: 26 U.S.C. 72 (Cornell Legal Information Institute); Treasury Regulations 1.401(k)-1 and 1.72(p)-1 (Cornell); IRS “Retirement plans FAQs regarding loans” and “regarding hardship distributions” (both reviewed February 26, 2026); IRS Publication 590-B (2025); Fannie Mae Selling Guide sections B3-4.3-01, B3-4.3-03, B3-4.3-15 and B3-6-05 (guide published November 4, 2026); Vanguard, “Previewing How America Saves 2026” (March 2026) and “How America uses hardship withdrawals” (March 11, 2026).

Affiliate Disclosure: Some links are affiliate links. We may earn a commission at no extra cost to you. This does not affect our ratings. Learn more.