Retirement funds · Buyer’s guide

How to Use Your 401(k) to Buy a House

There are two ways to tap a 401(k) for a home — a loan and a withdrawal — and they could hardly be more different. One avoids taxes, penalties, and your mortgage lender’s debt math entirely. The other can cost you nearly 40 cents on the dollar. And the “$10,000 penalty-free for first-time buyers” rule you’ve read about everywhere? It doesn’t apply to 401(k)s at all.

Up to $50,000 as a loanZero impact on your DTI10–15 years to repay for a home

Last updated July 2026

Start here

Using your 401(k) for a house, the short version

Roughly a quarter of first-time buyers tap financial assets like a 401(k) or IRA for their down payment. It can work — but only if you use the right door. A 401(k) loan lets you borrow up to $50,000 or half your vested balance, repay yourself with interest, owe no taxes or penalties, and — the fact almost nobody knows — the payment doesn’t count against your mortgage qualification.

A withdrawal is the other door, and it’s brutal: income tax plus a 10% penalty if you’re under 59½, an effective loss of 35–40% before the money even reaches escrow. The famous first-time-homebuyer penalty exception is IRA-only — it has never applied to 401(k)s, no matter how many articles say otherwise.

And here’s the bigger truth this guide keeps coming back to: with 3%-down conventional loans, FHA at 3.5%, VA and USDA at 0%, and thousands of down payment assistance programs, most buyers don’t need to touch retirement money at all. Below: both mechanisms, the IRA back door, the lender rules, the honest math, and the order to try things in.

The right way

The 401(k) loan: borrowing from yourself

No taxes, no penalty, no credit check — and the interest goes back into your own account.

Federal law lets you borrow the lesser of $50,000 or 50% of your vested balance (plans may allow up to $10,000 even on small balances). There’s no credit check and the loan never appears on your credit report. The rate is typically prime plus 1–2% — but unlike any bank loan, you pay that interest to yourself: it lands back in your own account. Repayment runs through payroll deduction. One trap: the $50,000 cap is reduced by your highest loan balance in the previous 12 months — pay off a $50,000 loan in June and you can’t take a new one in July. Note that about 8 in 10 plans offer loans, but the details — including whether you can keep contributing while repaying (most allow it) — live in your plan document.

The primary-residence extension almost nobody uses

Standard 401(k) loans must be repaid in 5 years. But the law carves out an exception for loans used to buy your primary residence: the 5-year rule doesn’t apply, and the plan sets the term — most allow 10 to 15 years, and some go longer. The difference is enormous in monthly cash flow: $30,000 at 8% costs about $610/month over 5 years but only ~$285/month over 15. Three fine-print points: it applies only to purchasing (not refinancing or renovating), only a primary residence (no vacation homes), and your plan must actually offer it — ask your administrator for the residential loan terms before you write an offer, because the paperwork often requires the purchase contract.

“What if I lose my job?” — the rule most websites get wrong

The old rule was cruel: leave your employer with a loan outstanding and you had 60 days to repay in full or eat taxes and penalties. That rule died in 2018 — and much of the internet hasn’t noticed. Today, if your loan is “offset” because you separate from your employer, you have until your federal tax filing deadline for that year, including extensions, to roll the offset amount into an IRA or your new employer’s plan and owe nothing. Depending on timing, that’s up to ~21 months of runway, not 60 days. Better still, roughly 4 in 10 plans now let former employees simply keep making payments after leaving. If you don’t repay or roll over, the balance becomes a “deemed distribution” — taxed as income plus the 10% penalty if you’re under 59½. Job stability still matters; it just isn’t the cliff it used to be.

The wrong way (usually)

The hardship withdrawal: what it really costs

Yes, buying a home qualifies as a “hardship.” No, that doesn’t waive the penalty.

IRS rules do list “costs directly related to the purchase of a principal residence” as a qualifying hardship — covering the down payment and closing costs (never ongoing mortgage payments). Access has gotten easier: you can now self-certify the hardship at most plans, you’re no longer forced to take a loan first, and the old 6-month contribution suspension is gone. But easier access changed nothing about the cost — and the data shows almost nobody actually uses hardship withdrawals to buy homes: of the record share of savers taking them recently, only about 5% were for a home purchase. Most people, sensibly, find another way.

⚠️ The penalty myth that costs buyers thousands

The most repeated error in this entire topic: “the IRS lets you take $10,000 penalty-free from your 401(k) for a first home.” False. That exception exists only for IRAs — it has never applied to 401(k)s. A home-purchase hardship withdrawal from a 401(k) is taxed as ordinary income and hit with the 10% early-withdrawal penalty if you’re under 59½. Countless articles, and even some HR departments, get this wrong. If you want that $10,000 exception, there’s a legitimate back door — see the IRA section below — but it runs through an IRA, never directly through your 401(k).

The real math on a $50,000 withdrawal

Say you’re 35, in the 22% federal bracket, with a 5% state income tax, and you withdraw $50,000 for a down payment. Federal tax: $11,000. State tax: $2,500. Early-withdrawal penalty: $5,000. Total lost: $18,500 — you keep just $31,500 of your own money. That’s a 37% haircut, and higher earners in high-tax states can lose well over 40%. And it’s only the visible cost: that $50,000 left invested at 7% would have grown to roughly $380,000 by age 65. You’d be trading nearly four hundred thousand retirement dollars for thirty-one thousand at the closing table. If those numbers don’t work — and they almost never do — the withdrawal is the wrong door.

★ Free expert help

Thinking about tapping retirement funds?

Before you touch the 401(k), let’s check the cheaper doors — assistance programs, low-down loans, the IRA route — and if a 401(k) loan really is the right move, structure it so it doesn’t cost you your retirement. Free, with no obligation.

Down payment strategyLoan vs. withdrawal mathAssistance programsLender rulesTax questions

The back door

The IRA route: where the real exceptions live

The $10,000 first-home break belongs to IRAs — and there’s a legal way to bring your old 401(k) money to it.

IRAs get the homebuyer treatment 401(k)s don’t. A traditional IRA waives the 10% penalty on up to $10,000 (lifetime, per person) for a first home — you still owe income tax, but the penalty vanishes, and a couple can combine for $20,000. The definition of “first-time buyer” is generously broad: anyone who hasn’t owned a principal residence in the past two years qualifies — you could have owned three houses before. Funds must be used within 120 days, and the exception even covers helping a child, grandchild, or parent buy their first home. A Roth IRA is better still: your contributions come out anytime, at any age, tax- and penalty-free — plus up to $10,000 of earnings tax-free for a first home if the account is 5+ years old.

The rollover play most articles miss

Here’s how to legally get the IRA exception with 401(k) money: if you have a 401(k) sitting at a former employer, roll it into an IRA — a standard, tax-free rollover — and the money is now governed by IRA rules, including the $10,000 first-home penalty exception your 401(k) could never give you. The sequence: roll over the old 401(k), then withdraw up to $10,000 under the exception (income tax still applies on traditional money, but no penalty). It doesn’t work with your current employer’s plan unless it allows in-service rollovers, and it’s worth a conversation with a CPA on timing — but for anyone with an old 401(k) gathering dust, it turns the internet’s favorite myth into an actual, legal strategy.

The lender’s view

How mortgage lenders treat your 401(k)

Two rules that quietly work in your favor — if you know to invoke them.

First: a 401(k) loan is an approved source of down payment funds under the major loan programs — you’ll just document the loan terms and the money trail. Second, and far less known: your account counts as reserves even if you never touch it. Lenders credit about 60% of your vested balance (the discount accounts for taxes and penalties), which can be the difference between an approval and a decline on a tight file — you prove the account exists and that withdrawals are permitted, nothing more.

The DTI exemption: the payment lenders must ignore

Debt-to-income ratio decides how much house you can buy, and every car payment and student loan counts against it. A 401(k) loan payment does not. Agency guidelines are explicit: loans secured by your own financial assets — your 401(k) chief among them — are excluded from the DTI calculation, and the loan never appears on your credit report either. A $490/month 401(k) loan payment that would otherwise erase tens of thousands of dollars of borrowing power simply doesn’t exist in the lender’s math. The treatment holds across conventional, FHA, VA, and USDA lending. One caution: individual lenders can layer on stricter “overlays,” so have your loan officer confirm in writing that the payment won’t be counted — and if they say it will, shop for another lender, because the guidelines are on your side.

The honest math

Does borrowing from your 401(k) beat paying PMI?

The classic use case, worked out — and it’s closer than the gurus admit.

The textbook argument for a 401(k) loan: you’re just short of 20% down, so borrow the gap and skip private mortgage insurance. Take a ~$445,000 home where you’re $30,000 short of 20%. Option A: put 10% down and pay PMI — at a typical ~0.5% of the loan, roughly $165–$170/month, cancellable once you hit 20% equity, often within a few years. Option B: take a $30,000 401(k) loan at ~8% — about $285/month over 15 years — and skip PMI entirely. The surprise: Option A often wins, because PMI is temporary while the lost compounding on $30,000 is permanent. The loan pulls ahead when PMI is expensive for your credit profile (it can reach 1–1.5% of the loan), when your job is rock-solid, and when you’ll repay fast while still capturing your full employer match.

What a loan really costs your retirement

A 401(k) loan isn’t free money — it’s just the cheapest version of this mistake. While the money is out, it misses market growth (partly offset by the interest you pay yourself). The real damage comes from the side effects: pausing contributions and losing the employer match. One analysis found a $50,000 loan taken at age 50 left the borrower roughly $100,000 poorer at 65 — about $40,000 in lost compounding, and about $60,000 in forfeited match and its growth. The defenses are simple: borrow the minimum, never the maximum; keep contributing at least enough to capture the full match — this is non-negotiable; use the long residential term for a low required payment, then prepay aggressively (there’s no prepayment penalty on yourself); and keep a separate emergency fund, because a layoff with a loan outstanding is exactly the wrong moment to have no cash.

The cheaper doors

The alternatives that make the question moot

Most people asking about their 401(k) are solving a problem that low-down loans already solved.

The instinct to raid retirement usually comes from believing you need 20% down. You don’t. Conventional loans go to 3% down (HomeReady and Home Possible for moderate incomes, Conventional 97 for everyone else) with PMI that cancels at 20% equity. FHA takes 3.5% down with credit scores from 580. VA and USDA lend at 0% down for those who qualify — VA with no mortgage insurance at all. Beyond the loans: more than 2,000 down payment assistance programs offer grants and forgivable loans commonly worth $5,000–$25,000+, and most eligible buyers never apply. Gift funds from family are accepted by every major program with a simple gift letter. Run this list first; the 401(k) conversation usually ends before it starts. And one rule with no exceptions: taking money out is a decision about your oldest, most protected asset — exhaust every option above before touching it.

Setting the record straight

What does everyone get wrong about 401(k)s and houses?

This topic may hold the record for confidently repeated errors — including one that appears in thousands of articles and has cost real buyers five-figure tax bills. Here’s the record, straightened.

The five myths worth demolishing

“You can take $10,000 penalty-free from your 401(k) for a first home.” The single biggest error online. That exception is IRA-only; a 401(k) withdrawal for a home is taxed and penalized under 59½. “Hardship withdrawals avoid the penalty.” No — “hardship” gets you access to the money, not out of the 10%. “If you leave your job, the loan is due in 60 days.” Dead since 2018: you have until your tax deadline (with extensions) to roll over the balance, and many plans let you keep paying after you leave. “A 401(k) loan hurts your mortgage approval.” Backwards — the payment is excluded from DTI and invisible to your credit report. “401(k) loan interest is double-taxed.” Overblown: the principal is never double-taxed, only the interest arguably is, and it’s interest you paid to yourself. And the real mistakes: withdrawing when you could borrow, borrowing the maximum, and stopping contributions mid-loan — walking away from free employer match to slightly speed up a house.

★ Ready to run your numbers?

Get matched with pros who’ve done this math before.

Tell us where you are — weighing a 401(k) loan against PMI, checking what assistance you qualify for, planning the IRA rollover route, or just short of a down payment — and we’ll connect you with people who can actually help. Free, with no obligation.

Loan vs. PMI analysisDPA program searchIRA strategiesLender matchingCPA referrals

Quick answers

401(k)s and home buying: common questions

Can I use my 401(k) to buy a house?

Yes, two ways: a 401(k) loan (up to $50,000 or half your vested balance, repaid to yourself with interest — no taxes, no penalty) or a hardship withdrawal (permanent, taxed as income plus a 10% penalty under age 59½). The loan is almost always the better tool; the withdrawal typically costs 35–40% of the money before it ever reaches your closing.

How much can I borrow from my 401(k)?

The lesser of $50,000 or 50% of your vested balance — a plan may allow up to $10,000 even if that exceeds half of a small balance. One catch: the $50,000 cap is reduced by your highest outstanding loan balance in the previous 12 months, so recently repaid loans still count against you. The exact rules, including whether loans are offered at all, live in your plan document.

How long do I get to repay a 401(k) loan for a house?

Normal 401(k) loans must be repaid in 5 years — but loans used to purchase your primary residence are exempt from that rule, and most plans allow 10 to 15 years. That cuts the required payment dramatically (about $285/month instead of $610 on a $30,000 loan at 8%). It applies only to buying a primary home — not refinancing, renovations, or second homes — and your plan sets the actual maximum.

Will a 401(k) loan hurt my mortgage approval?

Generally no — and this surprises people. Agency guidelines exclude payments on loans secured by your own assets (like a 401(k)) from your debt-to-income ratio, and the loan never appears on your credit report. Your 401(k) balance even helps you: lenders count about 60% of it as reserves. Ask your loan officer to confirm in writing that the payment won’t be counted; if they insist otherwise, shop lenders.

Is there a penalty-free first-time homebuyer withdrawal from a 401(k)?

No — this is the most repeated myth on the topic. The $10,000 first-time homebuyer penalty exception applies only to IRAs. A 401(k) withdrawal for a home purchase is taxed as ordinary income plus the 10% penalty if you’re under 59½, even as a “hardship.” The legal workaround: roll an old employer’s 401(k) into an IRA first, then use the IRA exception.

What happens to my 401(k) loan if I change jobs?

Far less than the internet claims. The 60-day repayment rule died in 2018: today you have until your federal tax filing deadline for that year — including extensions — to roll the outstanding balance into an IRA or new employer’s plan and owe nothing. Roughly 4 in 10 plans also let former employees simply continue making payments. Only if you do neither does the balance become taxable, plus the 10% penalty under 59½.

Should I use my Roth IRA instead of my 401(k)?

Usually, yes — it’s the cleanest retirement money for a home. Roth IRA contributions can be withdrawn anytime, at any age, with zero tax and zero penalty, and up to $10,000 of earnings comes out tax-free for a first home once the account is 5 years old. No repayment, no payroll deduction, no job-change risk. The tradeoff is the same as always: money out of a Roth loses tax-free compounding forever.

Is it ever smart to borrow from a 401(k) to avoid PMI?

Sometimes — but less often than advertised. PMI is temporary (it cancels at 20% equity, often within a few years) while lost compounding is permanent, so cheap PMI usually beats the loan. The loan wins when your PMI quote is expensive (1%+ of the loan for lower credit profiles), your job is stable, you’ll repay quickly, and you keep contributing enough to capture your full employer match throughout.

Do I need 20% down in the first place?

No — and this dissolves most of the 401(k) question. Conventional loans go to 3% down, FHA to 3.5%, and VA/USDA to 0% for eligible buyers; the typical first-time buyer puts down around 10%, not 20%. Add 2,000+ down payment assistance programs and family gift funds, and most buyers can close without touching retirement money. Exhaust those options first — your 401(k) should be the last resort, not the first idea.

This guide draws on primary sources — the IRS (plan loan rules under IRC §72(p), hardship distribution safe harbors, the first-time homebuyer exception under §72(t), and the post-2018 loan offset rollover rules), Fannie Mae’s Selling Guide (treatment of borrowed funds secured by assets and retirement accounts as reserves), the Department of Labor, SECURE 2.0 Act provisions, and plan data from Vanguard’s How America Saves and Fidelity’s participant research, plus down payment data from the National Association of Realtors. A caution: an enormous amount of online content on this topic repeats rules that changed years ago — especially the 60-day loan repayment rule (extended in 2018) and the nonexistent 401(k) first-time-homebuyer penalty exception — and your own plan document controls the details of loans and withdrawals, while tax brackets, interest rates, and contribution limits change regularly. Confirm specifics with your plan administrator and a tax professional before acting. This is general educational information, not legal, tax, or financial advice.

Revisado por el Equipo Editorial de Polaris Nexus.