Can I Use My 401(k) to Buy a House? Loan vs. Withdrawal in 2026

Can I Use My 401(k) to Buy a House? Loan vs. Withdrawal in 2026

Using a 401(k) to buy a house is possible through a loan or a withdrawal, but each path carries very different costs. Weigh both before touching the account.

Key Takeaways

  • A 401(k) loan is capped at the lesser of $50,000 or 50% of the vested balance, per IRC Section 72(p) (IRS Retirement Topics: Loans).
  • A loan used to buy a primary residence can be repaid over a period longer than the usual five years, at the plan’s discretion (IRS Loans FAQ).
  • A pre-age-59.5 withdrawal generally triggers ordinary income tax plus a 10% additional tax, and 401(k) plans have NO first-home exception (IRS Topic no. 558).
  • The IRA first-time-homebuyer exception waives the 10% additional tax on up to $10,000 of IRA distributions, a break that does not apply to 401(k) money (IRS Topic no. 557).
  • Leaving a job with an outstanding 401(k) loan can turn the balance into a taxable deemed distribution due by the tax-filing deadline (IRS Retirement Topics: Loans).
  • A hardship distribution to buy a principal residence is allowed by many plans, yet it is still taxed and can still carry the 10% additional tax (IRS Hardship Distributions).

401(k) Home-Purchase Numbers That Matter in 2026

$50,000Maximum 401(k) loan (or 50% of vested balance, whichever is less)IRC 72(p) / IRS
50%Share of the vested balance that caps most plan loansIRS Retirement Topics: Loans
10%Additional tax on most early 401(k) withdrawals before age 59.5IRS Topic no. 558
$10,000Lifetime IRA first-time-homebuyer exception (not available for 401(k))IRS Topic no. 557

Figures reflect federal rules in effect for 2026. Plan documents can be more restrictive than the IRS maximums, so confirm terms with the plan administrator.

Can you actually use a 401(k) to buy a house?

Yes. Two mechanisms make it possible: borrowing from the plan (a 401(k) loan) or taking money out (a distribution or hardship withdrawal). Both put retirement dollars toward a down payment, but they are taxed and treated very differently.

The distinction matters because a loan is repaid to the participant’s own account, while a withdrawal permanently removes the money and usually creates a tax bill. Understanding how a 401(k) works before tapping it helps clarify which lever is being pulled.

How does a 401(k) loan for a home purchase work?

A 401(k) loan lets a participant borrow from the vested balance and repay it, with interest, back into the account. Under IRC Section 72(p), the maximum is the lesser of $50,000 or 50% of the vested balance, and the IRS notes plans may permit a minimum loan of up to $10,000 even when that exceeds 50% (IRS Retirement Topics: Loans).

Talk With Craig Wear's Team

Craig has helped IRA millionaires save over $1 million each in unnecessary taxes. Find out if a Roth conversion strategy fits your retirement, with no sales pressure and no product pitch.

Most 401(k) loans must be repaid within five years through level, at-least-quarterly payments. There is an important exception: when the loan is used to buy the participant’s principal residence, the repayment period can run longer, as set by the plan (IRS Loans FAQ).

The interest paid goes back into the participant’s own account rather than to a bank. A deeper side-by-side of the two routes lives in this 401(k) loan vs. withdrawal comparison.

What is the job-loss risk with a 401(k) loan?

The central risk is separation from the employer. If a participant leaves the job (voluntarily or not) with a loan outstanding, the remaining balance can be treated as a distribution. The Tax Cuts and Jobs Act extended the window: the offset amount can generally be rolled over by the due date of that year’s tax return, including extensions, to avoid tax (IRS Retirement Topics: Loans).

If the balance is not repaid or rolled over in time, it becomes a taxable deemed distribution and, for someone under 59.5, can carry the 10% additional tax. What happens to the account after departure is covered further in what happens to your 401(k) when you leave a job.

What happens if you take a 401(k) withdrawal to buy a house?

A withdrawal permanently removes money from the plan. Distributions from a traditional 401(k) are taxed as ordinary income, and taxpayers under age 59.5 generally owe an extra 10% additional tax unless an exception applies (IRS Topic no. 558).

Crucially, there is no first-time-homebuyer exception for 401(k) plans. The IRS chart of exceptions shows the first-home exception applying only to IRAs, not to employer plans (IRS Exceptions Chart, PDF). How the resulting income is taxed is explained in how 401(k) withdrawals are taxed, and the penalty mechanics in the 401(k) early withdrawal penalty guide.

Can you take a 401(k) hardship withdrawal for a home?

Often, yes, but it is still expensive. The IRS lists costs directly related to the purchase of a principal residence (excluding mortgage payments) as a permitted safe-harbor reason for a hardship distribution (IRS Hardship Distributions).

A hardship distribution is not a loan and is not repaid. It is included in taxable income and, for participants under 59.5, can still be hit with the 10% additional tax. The detailed conditions are in the 401(k) hardship withdrawal rules. Note that some workers try to cash out a 401(k) while still employed, which is generally limited to loans, hardships, or in-service events defined by the plan.

How does the IRA first-time-homebuyer exception compare?

The IRA rules are more forgiving for a home purchase. Up to $10,000 (a lifetime cap) of IRA distributions used to buy, build, or rebuild a first home can avoid the 10% additional tax, provided the funds pay qualified acquisition costs within 120 days (IRS Publication 590-B).

“First-time” is defined loosely: it generally means neither the buyer nor spouse owned a main home in the two years before the purchase. The distribution can also help a child, grandchild, or parent buy a first home. This exception does not exist for 401(k) money, which is one reason some buyers roll eligible funds to an IRA first. Related withdrawal timing sits in Roth IRA withdrawal rules.

Loan vs. withdrawal for a home purchase: side by side

The table summarizes the core tradeoffs. Plan terms vary, so treat these as the federal defaults rather than guarantees.

Factor 401(k) loan 401(k) withdrawal / hardship
Amount available Lesser of $50,000 or 50% of vested balance Up to the amount the plan allows for the hardship need
Income tax on the money No, if repaid on schedule Yes, taxed as ordinary income (traditional dollars)
10% additional tax (under 59.5) No, unless it defaults Generally yes; no first-home exception for 401(k)
Repaid to your account Yes, with interest to yourself No, money leaves permanently
Repayment period 5 years, longer if buying a principal residence Not applicable
Job-loss risk Balance can become a taxable distribution if not rolled over by the tax deadline None (already distributed)
Lost growth On the borrowed balance while it is out On the full amount, permanently

What is the long-term retirement cost of tapping a 401(k)?

Every dollar pulled out early is a dollar that stops compounding. A withdrawal removes the money permanently, so the account loses both the principal and decades of potential growth. A loan is gentler, yet the borrowed balance is out of the market until repaid, and contributions sometimes pause during repayment.

There is also a strategic tax angle. Retirees in lower-income years sometimes use those same 401(k) dollars for a Roth conversion instead, gradually shifting pre-tax money into tax-free accounts. Draining the balance for a down payment can shrink the base available for that kind of long-range tax planning. A financial professional can model whether a home purchase, a loan, or leaving the account intact fits a household’s broader retirement picture.

Are there other ways to reach retirement money for a home?

Depending on age and situation, other doors exist. Separating from service in the year of turning 55 or later can allow penalty-free 401(k) distributions under the rule of 55 (rule of 55). Substantially equal periodic payments under Section 72(t) are another route for younger savers, though they lock in a schedule.

Many buyers ultimately compare the true cost of tapping retirement funds against a slightly smaller down payment or a different mortgage product. The math depends on interest rates, the plan’s loan terms, and the buyer’s timeline.

Frequently asked questions

How much can I borrow from my 401(k) to buy a house?

The federal maximum is the lesser of $50,000 or 50% of the vested account balance under IRC Section 72(p). Some plans allow a minimum loan of up to $10,000 even when that is more than half the balance. The plan document can set a lower cap.

Does a 401(k) have a first-time-homebuyer exception like an IRA?

No. The $10,000 first-time-homebuyer exception applies only to IRAs. A 401(k) withdrawal before age 59.5 generally owes the 10% additional tax on top of ordinary income tax, with no home-purchase carve-out.

Do I pay taxes on a 401(k) loan used for a down payment?

No income tax is due on a loan that is repaid on schedule, because the money is borrowed rather than distributed. Taxes and the 10% additional tax can apply only if the loan defaults or is treated as a deemed distribution.

What happens to my 401(k) loan if I lose my job?

The outstanding balance can be treated as a distribution. Under current rules, the offset amount can generally be rolled into an IRA or another plan by the due date of that year’s tax return, including extensions, to avoid tax and any additional tax.

How long do I have to repay a 401(k) loan for a home?

Standard 401(k) loans must be repaid within five years. When the loan is used to buy the participant’s principal residence, the plan may allow a longer repayment period.

Is a hardship withdrawal for a home purchase penalty-free?

Not necessarily. A hardship distribution to buy a principal residence is permitted by many plans, but it is taxed as income and can still carry the 10% additional tax for participants under age 59.5.

Can I roll my 401(k) to an IRA to use the $10,000 home exception?

Eligible funds rolled to an IRA can then access the IRA first-time-homebuyer exception, subject to IRA distribution rules. Rollovers have their own timing and tax considerations, so professional guidance is prudent before moving money.

Which is usually cheaper, a 401(k) loan or a withdrawal?

For most buyers under 59.5, a loan avoids the immediate tax and 10% additional tax that a withdrawal triggers, so it is often the lower-cost option, provided the loan is repaid and the job is stable.

Reviewed by Craig Wear, CFP®

Craig Wear is a CERTIFIED FINANCIAL PLANNER professional with decades of experience helping retirement savers with tax-focused planning, including Roth conversion strategy at Q3 Advisors.

Last reviewed: October 7, 2026

Methodology: This article relies on primary federal sources, including IRS Retirement Topics pages, IRS Tax Topics 557 and 558, IRS Publication 590-B, IRS hardship-distribution guidance, and IRC Section 72(p) and 72(t). Because this is a Your Money or Your Life topic, anonymous forum anecdotes and unverified third-party summaries were excluded. Figures reflect rules in effect for 2026 and were checked against IRS.gov.

This article is for educational purposes only and is not individualized investment, tax, or legal advice. Consult a qualified professional about your specific situation.

Craig Wear Craig Wear
Helping IRA Millionaires save $1 million (or more) in unnecessary taxes

Is a Roth Conversion Right for You?

Get a personalized strategy from the firm that’s saved clients $9 billion in projected taxes

  • 2,400+ families guided through conversions
  • $9B in tax avoidance
  • Built for $1M+ IRAs

no obligation. 45-minute consultation