Yes, you can borrow from your 401(k), but it works differently than a regular loan
Most 401(k) plans allow you to borrow against your own money that sits in the account. You are borrowing from yourself, not from a bank, and you repay yourself with interest. The money comes out of your retirement savings, which means less is growing for your future. This is legal and fairly common, but it has real costs that many people underestimate.
The rules vary by plan. Your employer's plan document sets the terms — how much you can borrow, how long you have to repay it, and what interest rate applies. Not every plan offers loans at all, so the first step is to contact your plan administrator (usually through your HR or benefits department) and ask whether loans are available to you.
A 401(k) loan is different from a withdrawal. If you withdraw money before age 59½, you typically owe income tax on the amount plus a 10% early withdrawal penalty. A loan avoids both of those penalties, which is why it looks attractive. But you are still removing money from an account designed to grow untouched for decades.
Key Takeaways
- You can borrow up to 50% of your vested balance, or $50,000, whichever is less, though your plan may set a lower limit.
- You must repay the loan within five years for a home purchase, or within a shorter timeframe if you leave your job.
- The interest you pay goes back into your own account, but you lose the growth that money would have earned if it had stayed invested.
- If you cannot repay the loan on schedule, the unpaid balance becomes a taxable withdrawal, triggering income tax and potentially the 10% penalty.
- Some plans allow a first-time homebuyer exception that extends the repayment period beyond five years.
How much you can borrow and the repayment timeline
The IRS sets a ceiling: you can borrow up to 50% of your vested account balance, or $50,000, whichever is smaller. If your account holds $80,000 and you are fully vested, you can borrow up to $40,000. If your account holds $120,000, you can still only borrow $50,000 because that is the federal cap. Your plan may impose a lower limit, so check your plan documents or ask your administrator.
For a home purchase, you typically have five years to repay the loan. Some plans offer longer terms — up to 15 or 30 years — if you are a first-time homebuyer, but this depends entirely on what your employer's plan allows. You repay through payroll deductions, so the money comes out of your paycheck automatically. The interest rate is usually set at the prime rate plus 1%, though again, your plan sets the exact rate.
The repayment period is crucial. If you leave your job — whether you quit, are laid off, or retire — most plans require you to repay the full balance within 60 to 90 days. If you cannot, the unpaid amount becomes a taxable withdrawal. You owe income tax on it, and if you are under 59½, you owe the 10% penalty as well. This is a major risk if your job situation is uncertain.
What you lose by borrowing instead of leaving the money invested
The interest you pay on a 401(k) loan goes back into your account, which sounds good. But that money is no longer invested in the stock market or bond funds where it was growing. Over 20 or 30 years, that difference compounds significantly. A $40,000 loan that you repay over five years at 7% interest costs you roughly $9,000 in interest payments. That $40,000, if left untouched and earning an average 7% annual return, would grow to over $150,000 by retirement. You are trading future growth for current access.
The math is especially painful if you borrow near the bottom of a market downturn. You lock in losses by removing money when prices are low, then miss the recovery when prices rise again. Conversely, if you borrow near a market peak, you avoid some of the decline — but you also give up the gains when the market recovers.
This is why financial advisors often suggest borrowing from a 401(k) only if you have no other source for a down payment and you are confident you can repay on schedule without interruption.
The tax and penalty trap if you cannot repay
The biggest risk is job loss or income disruption. If you leave your job and cannot repay the loan within the grace period (usually 60 to 90 days), the IRS treats the unpaid balance as a distribution. You owe federal income tax on the full amount at your ordinary tax rate. If you are under 59½, you also owe a 10% early withdrawal penalty. On a $40,000 loan, that could mean $12,000 to $16,000 in taxes and penalties.
Some plans allow you to roll the loan into an IRA or a new employer's plan to extend the repayment period, but this requires acting quickly and having a plan in place. It is not automatic. If you are laid off or fired, you are in a vulnerable position.
Disability or death are exceptions. If you become disabled or die, the loan is forgiven and does not trigger a taxable distribution. But for any other reason — job change, job loss, reduced hours — the repayment important date is firm.
When a 401(k) loan makes sense versus other options
A 401(k) loan is most reasonable if you have a stable job, a clear path to repay within five years, and no access to a lower-cost option. A conventional mortgage or a home equity line of credit (if you already own property) usually carries a lower interest rate and does not jeopardize your retirement savings. A down payment information program through your state or county may offer grants or low-interest loans with no repayment penalty if you leave your job.
A 401(k) loan also makes more sense if you are borrowing a smaller amount — say $15,000 to $25,000 — rather than the maximum. The smaller the amount, the less growth you sacrifice, and the faster you can repay.
If you are self-employed or have a Solo 401(k), the rules are slightly different and often more flexible. You may be able to borrow more or for longer periods. Consult a tax professional or your plan administrator for details specific to your situation.
Steps to take if you decide to borrow
First, contact your 401(k) plan administrator — usually through your HR or benefits department — and request the loan documents and plan summary. Read the terms carefully. Ask about the interest rate, repayment period, what happens if you leave your job, and whether a first-time homebuyer exception exists.
Second, calculate the true cost. Use a loan calculator to see how much interest you will pay and how much growth you will sacrifice. Many online calculators let you compare borrowing $40,000 at 7% over five years versus leaving it invested at 7% annual growth. The difference is often eye-opening.
Third, confirm your job stability. If there is any chance you might change jobs in the next five years, think hard about whether you can repay the loan quickly if forced to do so. If you cannot, a 401(k) loan is risky.
Fourth, explore alternatives. Check whether your state or county offers down payment information, whether you may have access to for an FHA loan (which allows down payments as low as 3.5%), or whether a family loan is possible. Compare the cost and risk of each option before committing to the 401(k) loan.
Frequently Asked Questions
What happens to my 401(k) loan if I get fired or laid off?
Most plans require you to repay the full balance within 60 to 90 days. If you cannot, the unpaid amount becomes a taxable withdrawal. You owe income tax on it at your ordinary rate, plus a 10% penalty if you are under 59½. Some plans allow you to roll the loan into an IRA to extend the important date, but you must act quickly and have a plan in place.
Can I borrow from my 401(k) if I am not a first-time homebuyer?
Yes. The five-year repayment rule applies to all home purchases, not just first-time buyers. Some plans offer longer repayment periods for first-time buyers, but standard borrowing is available to anyone whose plan allows loans. Check your plan documents to see what terms explore to you.
Do I pay taxes on the interest I pay back into my 401(k)?
No. The interest goes back into your account and is not taxed as income. However, when you eventually withdraw from the 401(k) in retirement, you will owe taxes on the entire balance, including the interest. The interest is not a tax deduction.
Can I borrow from my spouse's 401(k) for our down payment?
No. You can only borrow from your own 401(k). Your spouse can borrow from theirs if their plan allows it, but you cannot access their account. If you are married and both have 401(k)s, you could each borrow up to your individual limits.
What if I want to repay the loan faster than the five-year term?
Most plans allow early repayment without penalty. Paying it back faster means less interest paid and less time away from growth. Check your plan documents to confirm there are no restrictions on accelerated repayment.