How to Use Your 401(k) to Buy a House
Last updated: October 2026 · Editorial standards
Tapping your 401(k) for a home purchase is possible — but it comes with real costs and long-term consequences. Here’s when it makes sense and how to do it correctly.
The Two Ways to Access Your 401(k)
1. 401(k) Loan
You borrow from yourself and repay over time. No taxes or penalty if done correctly.
How it works:
- Borrow up to 50% of your vested account balance, maximum $50,000
- Repayment period typically 5 years (longer if for a primary home purchase — some plans allow 10–15 years)
- Repaid through payroll deductions with interest (interest goes back to your account)
The costs:
- You miss out on investment growth on the borrowed amount (opportunity cost)
- If you leave your job, the loan may be due in full within 60–90 days
- If you can’t repay after leaving, the outstanding balance becomes a taxable distribution with a 10% penalty if under 59½
Advantages:
- No taxes or immediate penalties
- Interest goes back to you
- Credit check not required
2. 401(k) Early Withdrawal (Hardship Distribution)
Taking money out before age 59½ is expensive:
Costs:
- 10% early withdrawal penalty on the amount withdrawn
- Federal income tax on the amount (at your marginal rate)
- State income tax (in most states)
Example: Withdraw $30,000 in the 22% tax bracket:
- 10% penalty: $3,000
- Federal tax: $6,600
- State tax (varies, assume 5%): $1,500
- You keep: ~$18,900 out of $30,000 withdrawn
To get $30,000 net, you’d need to withdraw nearly $50,000.
Home purchase hardship exception: The IRS does not exempt first-time home purchases from the 10% penalty for 401(k) withdrawals (unlike IRAs). The exception only applies to IRAs.
IRA Withdrawal for First-Time Home Purchase
If you have a traditional or Roth IRA (not 401k), the rules are different:
- First-time homebuyers can withdraw up to $10,000 lifetime without the 10% penalty
- «First-time buyer» means not owning a primary residence in the past 2 years
- Traditional IRA: still owe income tax on the amount (just no penalty)
- Roth IRA contributions (not earnings): can always be withdrawn tax and penalty free
The IRA $10,000 exception is available per person — a married couple can each withdraw $10,000 (both must be first-time buyers).
When a 401(k) Loan Makes Sense
A 401(k) loan can be a reasonable choice when:
- You have a large balance and only need a small amount
- You have stable employment (low risk of job change in the next 5 years)
- The alternative is a high-cost loan or missing out on homeownership entirely
- You’ll be in a lower tax bracket when repaying
When to Avoid the 401(k)
- You’re close to retirement (every dollar matters more)
- Your employment is uncertain (loan could become taxable if you leave)
- You’re considering an early withdrawal (costs are too high)
- down payment assistance or other programs can provide the funds instead
Alternatives to Tapping Your 401(k)
- Down payment assistance programs: Often free money, especially for first-time buyers
- Gift funds: From family members with proper documentation
- FHA loan: Low 3.5% down payment requirement reduces how much you need
- Extra saving time: A few more months of aggressive saving may be better than the 401(k) penalty
- Low down payment conventional loans: 3–5% down without touching retirement accounts
Key Takeaways
A 401(k) loan can be a low-cost way to access funds for a home purchase — if you maintain employment and repay promptly. An early withdrawal is almost always a bad idea — the taxes and penalties consume a third or more of your money. Exhaust other options before touching retirement savings.
Frequently Asked Questions
Does a 401(k) loan affect my mortgage qualification? Yes. The repayment on the 401(k) loan counts in your debt-to-income ratio — which may reduce how much mortgage you qualify for.
Can I take a loan from a previous employer’s 401(k)? No. 401(k) loans are only available from your current employer’s plan. You can roll an old 401(k) into an IRA and then use the IRA first-home exception.
Will my employer know I’m taking a 401(k) loan for a home? You may need to specify the purpose. Some plans require documentation for longer repayment terms on home purchase loans.
What happens to the loan if I’m laid off? The outstanding balance becomes due. If you can’t repay, it becomes a taxable distribution with a 10% penalty. Check your plan’s specific terms before borrowing.
