Last updated: 31 October 2026

Retirement & Investing

Can I Borrow From My 401k? Rules, Limits, Repayment

Yes, if your plan allows loans, you can usually borrow from your 401k, but a loan is not free money and it is not the same as a withdrawal. This guide explains the IRS limits, the repayment rules, what happens if you leave your job, and when borrowing is likely to do more harm than good.

A flat illustration of a desk with a simple retirement account folder, a calendar, and a small plant, with no words on any document, in teal and muted gold on pale cream.
A worker reviewing a 401k loan statement and repayment schedule at a desk.

Key takeaways

  • A 401k loan is not a withdrawal if it is repaid on schedule, so no income tax or early penalty applies while it performs.
  • The IRS limit is the lesser of $50,000 or 50% of your vested balance, with a $10,000 floor rule for smaller balances.
  • Most loans must be repaid within five years, in level payments at least quarterly, with longer terms for a principal residence.
  • If you leave your job with a balance unpaid, the unpaid amount can become a taxable distribution, plus a 10% penalty if you are under 59 and a half.
  • Interest is paid back into your own account, but it is repaid with after-tax pay and can be taxed again on withdrawal.

401k loan vs hardship withdrawal: the key difference

A 401k loan is borrowing from your own account with a promise to repay it. As long as the loan meets IRS amount and repayment rules, it is not treated as a taxable distribution, so no income tax and no 10% early-distribution penalty apply to the borrowed amount while the loan performs. A hardship withdrawal is different: it permanently removes money from the account, it cannot be repaid, and it is generally taxable, with a possible 10% penalty if you are under 59 and a half.

That distinction matters most when the need is temporary. A loan that is repaid leaves the account whole, apart from lost growth while the money is out. A hardship withdrawal leaves a permanent gap, even if the immediate need is met. Check first whether your plan offers loans at all, because the IRS permits loans but does not require every plan to offer them.

How much can you borrow? IRS limits explained

The general IRS limit is the lesser of $50,000 or 50% of your vested balance. Your vested balance is the portion you own outright; your own contributions are fully vested, while employer contributions may vest over time. For example, a $80,000 vested balance gives a $40,000 limit, because 50% is lower than $50,000, while a $200,000 vested balance is capped at $50,000.

The $10,000 floor rule helps smaller balances: if 50% of your vested balance is below $10,000, the rules allow a loan of up to $10,000, subject to your plan terms. There is also a lookback rule: the $50,000 cap is reduced by your highest outstanding loan balance during the 12 months before the new loan, so a recent large loan can shrink the amount available now.

Vested balanceMaximum loan
$15,000$10,000 under the floor rule
$80,000$40,000 (50% of balance)
$200,000$50,000 (IRS cap applies)

Repayment, interest, and the home-purchase exception

Most 401k loans must be repaid within five years, in substantially level payments made at least quarterly, usually through payroll deductions. A loan used to buy a principal residence may have a longer repayment period under plan terms, so always confirm the exact term in writing before borrowing. Interest is set by your plan and is paid back into your own account, not to a bank. Ask your plan administrator how the rate is set and whether any loan fee applies.

Interest paid to yourself still has a tax cost in a traditional 401k. Repayments come from after-tax pay, and when that money is later withdrawn in retirement it is taxed again as ordinary income, so the interest portion is effectively taxed twice. The principal is different: it was pre-tax when contributed, so its later taxation is not a second tax on the same dollars in the same way. The effect is usually modest on a small loan, but it is not zero.

Borrowing rules sit inside a wider retirement picture. A Roth vs 401k comparison explains how tax timing changes what a withdrawal is worth, and a solo 401k guide covers the version used by self-employed workers, where plan terms can differ.

What happens if you leave your job or default?

While you are employed, repayments usually come from payroll deductions. After separation, those deductions stop, and the plan may require repayment within a short window, often 60 to 90 days under plan terms. Federal law gives a longer safety net for a qualified plan loan offset: you may roll the offset amount into an IRA or another eligible plan by your tax filing deadline, including extensions, for the year of separation.

If the amount is not repaid or rolled over, the unpaid balance becomes a taxable distribution, reported as income for that year, and a 10% early-distribution penalty can apply if you are under 59 and a half. That is the largest single risk of a 401k loan: job loss and a loan default can arrive in the same difficult year.

A flat illustration of a briefcase beside a calendar with one date circled, suggesting a job change interrupting a repayment plan, in teal and muted gold on pale cream.
Leaving a job can turn an unpaid loan balance into taxable income.

When borrowing is a bad idea, and alternatives to check first

Borrowing is a bad idea when repayment depends on a job you may leave, when the loan payment would force you to pause contributions and miss matching, or when the money would cover spending that could wait. It is also risky for a short-term need if the loan payment would strain each paycheck for five years. Before borrowing, compare a smaller emergency fund draw, a lower-cost personal loan, a payment plan with the creditor, or delaying the purchase, and price the lost investment growth, not just the interest rate, before you sign anything.

Bottom line: A 401k loan can work for a short, clearly repayable need when your job and cash flow are stable, but it should not be the first option for everyday spending. Confirm that your plan allows loans, confirm the limit and repayment term in writing, and have a plan for repayment if you change jobs, and keep a cash buffer for the payments.

Sources & further reading

This article is general information only, not financial advice.

Frequently asked questions

Can I borrow from my 401k while still employed?

Yes, if your plan allows loans. The IRS permits 401k loans but does not require every plan to offer them, so check your plan documents or ask your plan administrator first. You generally cannot take a new loan from a former employer's plan after you have left that job.

How much can I borrow from my 401k?

The general limit is the lesser of $50,000 or 50% of your vested balance. If 50% of your vested balance is below $10,000, the floor rule allows a loan of up to $10,000, subject to your plan terms. Your plan may set a lower limit, and a recent loan balance can reduce the amount available under the lookback rule.

Do I pay tax on a 401k loan?

No, not while the loan performs to its terms. A qualifying loan is not treated as a taxable distribution, so no income tax and no 10% early-distribution penalty apply to the borrowed amount. Tax applies only if the loan defaults or an unpaid balance becomes a distribution after separation.

What happens to my 401k loan if I lose my job?

Payroll deductions stop, and your plan may require repayment within a short window, often 60 to 90 days. If the unpaid balance is offset from your account, it is a qualified plan loan offset, and you may roll that amount into an IRA or another eligible plan by your tax filing deadline, including extensions, for the year of separation.

Is a 401k loan better than a hardship withdrawal?

Usually, yes, if you can repay it, because a loan is not a permanent withdrawal and carries no immediate tax while it performs. A hardship withdrawal permanently removes money, is generally taxable, and can carry a 10% penalty if you are under 59 and a half. A loan is worse only if it defaults, because the unpaid balance then becomes taxable anyway.

Where our numbers come from