# 401k Loan for a Down Payment: Visa-Holder Guide (2026)

> A 401k loan for a down payment vs a hardship withdrawal: DTI treatment, taxes and the job-loss risk for visa holders. Get a free scenario run.

Canonical: https://www.masalaloans.com/blog/401k-loan-down-payment
Author: Apurva Sanghavi
Published: 2026-10-17T18:04:31.171Z
Tags: mortgage, personal finance, h1b, Down Payment, immigration

**Quick answer (updated October 2026):** A 401(k) loan for a down payment lets you borrow up to the lesser of $50,000 or 50% of your vested balance, tax-free if repaid, and Fannie Mae doesn't require the payment to count in your DTI. A hardship withdrawal is taxed and often penalized under 59½. For visa holders, the key risk is job loss: the loan may come due.

Your 401(k) is probably your biggest liquid asset after a few years at Amazon, Oracle or a Dallas bank. Your Indian savings are tied up, your parents have done enough, and you're $40,000 short of a comfortable down payment. The retirement account starts looking very tempting.

Both routes work for a mortgage. They behave very differently for taxes, DTI and, above all, if your status changes. Here are the agency rules, IRS rules and visa-specific risks, with math.

## How a 401(k) loan for a down payment works

A 401(k) loan is money you borrow from your own account and repay through payroll. Per the IRS:

- **Maximum:** the lesser of 50% of your vested balance or $50,000. (Some plans allow up to $10,000 when 50% of the vested balance is less than that.)

- **Term:** generally five years, with an exception that lets plans offer a longer term when the loan buys your primary residence.

- **Taxes:** none, as long as you repay on schedule.

Not every plan offers loans, and terms (interest rate, maximum term, home-purchase option) are set by your plan. Check your plan's summary or call the administrator before you count on it.

### Why lenders like it: DTI treatment

Fannie Mae allows 401(k) loan proceeds for the down payment, closing costs and reserves. And per Selling Guide B3-4.3-15, the loan's repayment **doesn't need to be counted as a debt** in your debt-to-income ratio. That's a big deal. A $1,000 monthly obligation that doesn't hit DTI can be the difference between qualifying for the house you want and one $60,000 cheaper.

One catch: if you also use the remaining 401(k) balance as reserves, the lender reduces that balance by the loan amount.

## 401(k) withdrawal for a house on an H-1B: the hardship route

A hardship distribution is a withdrawal you don't repay. The IRS lists "costs directly related to the purchase of a principal residence" (not mortgage payments) as a qualifying need, but your plan must offer hardship withdrawals.

The cost is steep:

- The withdrawal is **taxable income**.

- If you're under 59½, you **may owe a 10% additional tax**. The IRS's first-time homebuyer exception ($10,000) applies to IRAs, **not** 401(k) plans.

- Hardship distributions **can't be rolled back** into a plan or IRA. That money is gone from retirement for good.

Fannie Mae treats vested retirement funds as acceptable for the down payment and closing costs, so lenders accept either route. The question is what it costs you.

## The math: loan vs. withdrawal side by side

Hypothetical: Rahul, an H-1B engineer in Austin, has $130,000 vested in his 401(k). He's buying a $500,000 home with 10% down ($50,000). Texas has no state income tax; assume a 24% federal bracket. His plan charges 8.5% on loans (illustrative; your plan sets its own rate).

|  | **401(k) loan** | **Hardship withdrawal** |
| --- | --- | --- |
| Cash needed for down payment | $50,000 | $50,000 |
| Amount taken from 401(k) | $50,000 | ~$75,800 (to net $50,000 after ~24% tax + 10% penalty) |
| Monthly repayment | ~$1,026 (5 yrs) or ~$492 (15 yrs, if plan allows) | None |
| Counts in DTI (Fannie)? | No | No |
| Taxes if all goes to plan | None | ~$25,800 |
| Money back in retirement | Yes, with interest you pay yourself | No |
| Risk if you lose your job | Plan may require repayment; unpaid balance becomes taxable | Already taxed |

Mortgage side: a $450,000 loan at the Freddie Mac weekly average of 7.40% (30-year fixed, Oct 15, 2026; illustration only, not a quote or offer) is about **$3,116 a month** in principal and interest, before taxes and insurance.

The withdrawal burns roughly $25,800 in tax to free up $50,000. The loan costs nothing in tax unless something goes wrong. For most borrowers, the loan wins, provided the job is stable.

**Talk to a loan officer who's seen this before:** We'll run both versions against today's pricing so you see the payment, DTI and cash to close side by side. [Book a free scenario run](https://www.masalaloans.com/contact).

## The visa-holder risk: what happens if you lose the job

Per the IRS, a plan **may require full repayment when your employment ends**. If you can't repay, the unpaid balance is treated as a distribution: taxable, and potentially subject to the 10% additional tax. You can avoid the immediate tax by rolling over the offset amount into an IRA or another plan by your tax return due date, including extensions, for that year. That requires finding cash equal to the unpaid loan.

For an H-1B worker, a layoff is also a status event. You may be facing a job search under a deadline, legal fees and possibly a move, at the exact moment the loan becomes due. Our guide for those who are [laid off on an H-1B with a mortgage](https://www.masalaloans.com/blog/laid-off-h1b-mortgage-options) covers the housing side.

### 401(k) loan when leaving the US

If you eventually leave the US, an outstanding loan will typically need to be repaid or it becomes a distribution under your plan's terms. Withdrawals while living abroad raise separate tax questions (US withholding on nonresidents, treaty treatment, Indian tax on return). Talk to a CPA. And for what happens to the house itself, see [what happens to your mortgage if you leave the US](https://www.masalaloans.com/blog/what-happens-to-mortgage-if-you-leave-the-us).

## A quick decision checklist

| **Question** | **Leans toward loan** | **Leans toward withdrawal or neither** |
| --- | --- | --- |
| Is your job stable for the next 1–5 years? | Yes | Unsure or in a layoff-prone team |
| Can you handle the payroll deduction alongside the mortgage? | Yes | Cash flow already tight |
| Do you have other liquid assets (RSUs, savings)? | Loan as a top-up | Consider selling RSUs instead |
| Does your plan offer a 15-year home loan term? | Lower payment | n/a |
| Are you over 59½? | n/a | Withdrawal penalty may not apply |

If you hold vested RSUs, compare first. Selling shares you already own may cost less in tax than a hardship withdrawal. Our guide to [selling RSUs for a down payment](https://www.masalaloans.com/blog/sell-rsu-down-payment) covers the trail lenders want.

## Documentation your lender will ask for

- Your most recent 401(k) statement showing the vested balance.

- The plan's loan terms or approval showing amount, rate and repayment.

- Proof the funds hit your bank account (or went to escrow).

- For a withdrawal: the distribution confirmation and net amount received.

If you're on an H-1B, your lender will review your status documents as for any loan. Our [mortgage on an H-1B visa in 2026](https://www.masalaloans.com/blog/mortgage-on-an-h1b-visa-in-2026) guide covers the rest of the file.

## What the rules actually say

- **Fannie Mae Selling Guide B3-4.3-15, Borrowed Funds Secured by an Asset:** 401(k) loans are acceptable; repayment need not be counted as a debt; if the account is also used for reserves, reduce by the loan amount.

- **Fannie Mae Selling Guide B3-4.3-03, Retirement Accounts:** vested 401(k)/IRA funds may be used for down payment, closing costs and reserves.

- **IRS, Retirement Topics: Loans:** maximum the lesser of 50% of vested balance or $50,000; five-year term with a principal-residence exception; plan may require repayment at separation, with rollover of the offset allowed by the tax return due date including extensions (as of October 2026).

- **IRS, 401(k) Resource Guide and Tax on Early Distributions:** principal residence purchase is a hardship need; hardship distributions can't be rolled over; the $10,000 first-time homebuyer exception applies to IRAs, not 401(k)s.

## Frequently Asked Questions

**Q: Does a 401(k) loan count against my debt-to-income ratio?**<br />A: Not on a Fannie Mae conventional loan. Selling Guide B3-4.3-15 says repayment of a loan secured by your 401(k) doesn't need to be counted as a debt. Some lenders and other loan programs may treat it differently, so confirm with your loan officer.

**Q: Can I use a 401(k) loan for a down payment on an H-1B visa?**<br />A: Yes. Lenders don't restrict 401(k) loans by visa status. The risk is personal: if you lose your job, your plan may require repayment, and any unpaid balance becomes a taxable distribution unless you roll over that amount by your tax filing deadline.

**Q: Is there a penalty-free 401(k) withdrawal for first-time homebuyers?**<br />A: No. The IRS's $10,000 first-time homebuyer exception applies only to IRAs. A 401(k) hardship withdrawal for a home purchase is generally taxable and may face the 10% additional tax if you're under 59½.

**Q: How long can I take to repay a 401(k) loan used to buy a house?**<br />A: Generally five years, but the law allows plans to offer a longer term when the loan buys your primary residence. Your plan decides whether it offers the extended term and how long it is.

**Q: What happens to my 401(k) loan if I move back to India?**<br />A: Typically, leaving your employer triggers repayment under the plan's terms. If you can't repay, the balance becomes a distribution, taxable in the US and potentially penalized. Cross-border tax questions follow, so talk to a CPA before you leave.

## Get a rate-and-payment scenario run at today's pricing

Send us your vested balance, the price range you're shopping and what else you have in savings or RSUs. We'll run the 401(k) loan version, the no-retirement version and anything in between, showing payment, DTI and cash to close at current pricing. We shop 150+ wholesale lenders and work with visa holders every week. Book a free 15-minute call at /contact, start your application at /apply, or call 713-366-4668.

*Masala Loans is a brand of Matador Lending, LLC (NMLS #2072896). Written by Apurva Sanghavi, President, NMLS #227127. Equal Housing Opportunity. This article is general education, not tax, legal or immigration advice — consult a qualified CPA, attorney or immigration lawyer for your situation. Program availability, rates and terms vary by lender and borrower and are subject to change; not a commitment to lend.*
