Can You Use Your 401(k) to Buy a House? Rules, Tradeoffs, and Alternatives
Yes — you can use your 401(k) to buy a house through either a 401(k) loan (up to $50,000 or 50% of your vested balance, whichever is less) or a hardship withdrawal for a primary-residence purchase (IRS Retirement Topics — Plan Loans). The mechanisms are legal and most employer plans permit them, but each carries a different cost. A withdrawal before age 59½ triggers ordinary income tax plus a 10% early-withdrawal penalty (IRS Topic No. 558). A loan avoids taxes and penalties as long as you repay on schedule — but a job separation can convert the unpaid balance into a taxed and penalized distribution (Fidelity). This guide walks through both mechanisms, the exact rules, and the alternatives most financial planners suggest exploring first.
Key Takeaways
- A 401(k) loan lets you borrow up to $50,000 or 50% of your vested balance, whichever is less, and pay yourself back with interest — usually over five years, with no tax or penalty as long as you repay on schedule (IRS).
- A 401(k) hardship withdrawal for a primary-residence purchase is a permitted "safe harbor" reason under IRS rules, but it's subject to ordinary income tax plus a 10% early-withdrawal penalty if you're under 59½ (IRS Publication 575).
- The $10,000 first-time homebuyer penalty exception applies to IRAs, not 401(k)s — a commonly confused rule that costs first-time buyers real money (IRS Publication 590-B).
- If you leave your job with a 401(k) loan outstanding, the balance is typically due by the tax-filing deadline of the following year; unpaid balances become taxable distributions with the 10% penalty attached if you're under 59½ (Fidelity).
- The opportunity cost is the biggest hidden expense: $30,000 pulled from a 401(k) at age 35 that would have grown at 7% annually forgoes roughly $228,000 by age 65 (Vanguard investor education).
- Alternatives worth exhausting first: down payment assistance programs, gift funds, a HELOC on a current home, or a low-down-payment mortgage (FHA at 3.5%, conventional at 3%, VA/USDA at 0% for eligible buyers) (CFPB Loan Options).
The Short Answer — Yes, But With Two Very Different Paths
You can access 401(k) money to buy a home through a loan or a withdrawal. A loan is repaid on schedule and, in most cases, avoids taxes and penalties while you stay employed. A withdrawal is taxed, penalized (under 59½), and permanently reduces what's in the account for retirement. Which mechanism you use — and whether either is the right move — depends on your job stability, tax bracket, timeline, and what alternatives you have available.
Before either path makes sense, it helps to know what you actually need. Down payment size varies by loan type: FHA loans require 3.5% down, conventional loans can go as low as 3%, and VA/USDA loans allow 0% down for eligible buyers (CFPB Loan Options). Many buyers assume they need 20% because that avoids private mortgage insurance — but on a $400,000 home, 20% is $80,000 while 3.5% is $14,000. See how much money you actually need to buy a house for a full breakdown before deciding what — if anything — to pull from your 401(k).
Two Ways to Tap Your 401(k) — Loan vs. Withdrawal at a Glance
The 401(k) loan and 401(k) hardship withdrawal are different mechanisms with different tax, repayment, and risk profiles. Here's how they compare:
| Feature | 401(k) loan | 401(k) hardship withdrawal | | Maximum amount | $50,000 or 50% of vested balance (lesser) | Amount needed for the qualifying expense | | Income tax | None if repaid on schedule | Yes — taxed as ordinary income at marginal rate | | 10% early-withdrawal penalty | None if repaid | Yes, if under 59½ | | Repayment required | Yes — typically 5 years (longer allowed for primary-residence purchase per plan document) | None — permanent distribution | | Interest | Paid back to yourself | N/A | | Employer plan requirement | Plan must offer loans | Plan must permit hardship distributions | | Credit-score impact | None — no credit check | None | | DTI impact on mortgage | Usually none in underwriting | None | | Effect on retirement balance | Temporary — funds return to account | Permanent — reduces balance forever | | Risk if you leave your job | Balance often due by next tax-filing deadline | N/A |
How a 401(k) Loan Works
Under IRS rules, you can borrow up to $50,000 or 50% of your vested account balance — whichever is less (IRS). If your vested balance is $80,000, your loan cap is $40,000. If it's $200,000, the cap is $50,000 (the flat limit).
Repayment is typically over five years, though plan documents commonly allow a longer term for a primary-residence purchase. You pay yourself back — principal and interest — through payroll deductions. The rate is usually prime plus one or two percentage points, and the interest returns to your own account rather than going to a bank (Fidelity).
Two features matter for a home purchase: no credit check (you're borrowing your own money), and no DTI hit in most mortgage underwriting — the loan is secured by your retirement balance and paid via payroll, so most underwriters don't count it toward debt-to-income. That's meaningful if DTI is holding back your approval — see what credit score you need to buy a house for the broader lender view.
How a 401(k) Hardship Withdrawal Works
A hardship withdrawal is a permanent distribution taken for an "immediate and heavy financial need." The IRS lists safe-harbor reasons that automatically qualify, and costs of purchasing a principal residence for the employee are on that list (IRS Publication 575).
A hardship withdrawal is taxed as ordinary income at your marginal federal rate (plus state income tax in most states), subject to a 10% additional tax if you're under 59½ (IRS Topic No. 558), and subject to 20% mandatory federal withholding at distribution.
A worked example: a buyer in the 22% federal bracket takes a $30,000 hardship withdrawal. Federal tax at 22% is $6,600. The 10% penalty is $3,000. Combined federal cost: ~$9,600. Net cash for the purchase: ~$20,400. State income tax adds more (California, for example, adds ~9% plus a 2.5% state early-distribution penalty). A hardship withdrawal costs you roughly one-third of the gross amount before you ever get to closing.
The First-Time Homebuyer Exception — And the 401(k)/IRA Confusion
This is the most misunderstood point in the entire topic, and it costs first-time buyers real money.
The $10,000 first-time homebuyer penalty exception applies to IRAs, not 401(k)s. IRS Publication 590-B spells it out: an IRA owner can withdraw up to $10,000 (lifetime cap) to pay qualified first-time-homebuyer costs without the 10% early-distribution penalty (IRS Publication 590-B). That exception has no parallel in the 401(k) rulebook — a hardship withdrawal from a 401(k) is still penalized if you're under 59½, even if you're a first-time buyer.
Two nuances to know:
- The IRA exception waives the penalty, not the income tax. You still owe ordinary income tax on a Traditional IRA withdrawal — the exception only removes the 10% add-on.
- Rolling a 401(k) into an IRA to access the exception is possible but conditional. You typically must have separated from the employer sponsoring the 401(k), or your plan must allow in-service rollovers. If you're still employed at that company and the plan doesn't permit in-service rollovers, you can't move the money to unlock the IRA exception.
The practical takeaway: if you're a first-time buyer with money in both an IRA and a 401(k), the IRA withdrawal is materially cheaper on a small down-payment slice. Do the math with an advisor before you touch either account.
The Repayment Risk If You Leave Your Job
Before the Tax Cuts and Jobs Act, a 401(k) loan often became due within 60 days of leaving your employer. Miss that window and the outstanding balance became a "loan offset distribution" — taxed as income plus the 10% penalty under 59½.
Post-TCJA, the cure period is longer. If you separate from your employer with a 401(k) loan outstanding, the balance is typically due by the tax-filing deadline (including extensions) of the year following separation (Fidelity). That's a meaningful extension — but it's still a hard deadline.
A worked example: a buyer takes a $40,000 loan in April, gets laid off in November with $38,000 outstanding, and can't repay by the extended deadline. Federal income tax at 22% (~$8,360) plus the 10% penalty ($3,800) means ~$12,160 in combined federal cost — on top of losing the money to retirement growth. The risk isn't hypothetical. Job separations happen for reasons outside your control, and the loan doesn't care why you left.
The Real Cost — Opportunity Cost Over 20–30 Years
The tax and penalty are the visible cost. The invisible cost is the compound growth you never get back. This is what most competitor articles under-quantify.
The table below uses a 7% average annual return assumption — consistent with long-run diversified equity index returns cited by Vanguard investor education (Vanguard). It's illustration, not projection.
| Amount withdrawn | Age at withdrawal | Value at age 65 (7% annual) | Foregone growth | | $10,000 | 30 | ~$106,800 | ~$96,800 | | $10,000 | 40 | ~$54,300 | ~$44,300 | | $30,000 | 35 | ~$228,100 | ~$198,100 | | $50,000 | 40 | ~$271,400 | ~$221,400 | | $50,000 | 50 | ~$137,900 | ~$87,900 |
Two patterns matter: the younger you are, the higher the opportunity cost — a 30-year-old taking $10,000 loses roughly twice as much lifetime growth as a 40-year-old. And loans reduce this cost but don't eliminate it — the balance grows again once repaid, but the funds weren't invested during the loan term.
When It Might Make Sense — And When It Doesn't
This is a decision to make with a financial advisor, not from an article. The goal here is to name the tradeoffs cleanly.
It might make sense when: you have a stable, long-tenure job with low separation risk; you're a repeat buyer and the home purchase closes a short gap rather than funding an entire down payment; you're already meeting your employer match and other tax-advantaged savings; and the loan (not withdrawal) mechanism is available with a repayment schedule you can meet.
It usually doesn't when: you're early in your career with a long compounding runway; your employment is at-risk or in a probationary period; you're already behind on retirement savings for your age; the mechanism would be a hardship withdrawal, not a loan; or alternative funding sources — DPA, gift funds, a HELOC, low-down-payment mortgage programs — remain unexplored.
The right decision often depends on numbers a general article can't see: your marginal tax bracket, plan-specific loan terms, spouse's income, and whether you're buying a home you plan to hold for 3 years or 30. Talk to a fiduciary financial planner or a CPA before pulling the trigger.
Alternatives Before You Touch Your 401(k)
Most of the top-ranking pages on this topic skim past alternatives. Several of these are dramatically cheaper than a 401(k) withdrawal or loan.
- Down Payment Assistance (DPA) programs. HUD tracks state and local homebuyer assistance programs, with more than 2,000 active nationwide (HUD Buying a Home). Many offer grants (no repayment) or forgivable second mortgages that disappear after 5–10 years of owner-occupancy. Eligibility is often income-based, not credit-based.
- Gift funds from family. Conventional (Fannie/Freddie) and FHA loans accept gift funds from immediate family for down payment and closing costs. You'll need a signed gift letter and a paper trail — but no interest, no repayment, no tax.
- Low-down-payment mortgage programs. FHA permits 3.5% down with a 580+ credit score. Conventional 97 allows 3% down. VA and USDA permit 0% down for eligible buyers (CFPB Loan Options). See how to buy a house with no money down for the full breakdown.
- HELOC or home equity loan on a current home. If you're a repeat buyer with equity, a HELOC can bridge a down payment without touching retirement funds. The rate is typically lower than the 10% penalty + tax cost of a 401(k) withdrawal.
- Roth IRA contributions. You can withdraw your own Roth IRA contributions (not earnings) at any age, tax-free and penalty-free (IRS Publication 590-B) — a materially cheaper source than a 401(k) hardship withdrawal.
- Delay 6–12 months and save aggressively. Cutting expenses and redirecting cash flow to a high-yield savings account for a year often nets more than a $30,000 401(k) withdrawal after taxes and penalties.
- Buy a less expensive home. Sizing down the price by 10–15% often eliminates the funding gap the 401(k) was supposed to fill.
How Opendoor Fits the Down-Payment Picture
Opendoor isn't a lender and doesn't advise on retirement accounts. If you're a current homeowner trying to figure out how much down payment you can bring to your next home, an Opendoor cash offer gives you a firm, contingency-free number on your existing home in a matter of days. That number becomes the anchor for whether you actually need to touch your 401(k) at all.
Sellers who close with Opendoor pick their move-out date (up to 60 days after close), which removes the "am I going to be homeless" pressure that often pushes buyers into hasty retirement-fund decisions. See how to buy a house for the full end-to-end process, or mortgage payment on a $300k house if you're still sizing what monthly cost your budget can absorb.
Opendoor isn't the right tool if you're a first-time buyer with no home to sell — the alternatives above (DPA, gift funds, low-down programs) do more work than any iBuyer product would.