A 401(k) loan is capped at 50% of your vested balance or $50,000 (IRC §72(p)) and must be repaid within 5 years. If you leave your job and the plan offsets an unpaid loan, you have until your tax filing deadline (including extensions) to roll that amount over, or it becomes a taxable distribution.[1]
Loan Limit Calculation
The maximum 401(k) loan under IRC §72(p)(2)(A) is the lesser of $50,000 or 50% of your vested balance (the statute allows up to $10,000 if your vested balance is under $20,000, if your plan permits):[1]
| Vested Balance | 50% of Balance | Maximum Loan |
|---|---|---|
| $15,000 | $7,500 | $10,000 (if plan permits) |
| $30,000 | $15,000 | $15,000 |
| $60,000 | $30,000 | $30,000 |
| $80,000 | $40,000 | $40,000 |
| $100,000 | $50,000 | $50,000 (cap) |
| $200,000 | $100,000 | $50,000 (cap) |
Key 401(k) Loan Rules
The following rules govern 401(k) loans under IRC §72(p) and plan regulations:[1]
- Repayment period: 5 years maximum (with quarterly level payments); extended to typical mortgage terms for primary home purchase loans.
- Interest rate: Reasonable rate set by the plan — typically prime rate + 1–2%. The interest goes back into your own account (not to a lender).
- No credit check: 401(k) loans do not require credit approval and do not appear on credit reports — the account balance is the collateral.
- Not a taxable event when received: No income tax, no 10% penalty on the loan proceeds as long as repayment terms are met.
- Contributions during repayment: Most plans allow you to continue making 401(k) contributions while repaying the loan — you are not required to stop saving. However, a reduced balance during the loan period means lower investment growth.
- Multiple loans: Plans may permit multiple outstanding loans simultaneously, subject to the combined $50,000 cap.
The Job Separation Risk: The Most Important Loan Risk
The single greatest risk of a 401(k) loan is job separation while the loan is outstanding. Under the TCJA (Pub. L. 115-97) rules effective since 2018:[1]
- If you separate from service (voluntarily or via layoff) with an outstanding 401(k) loan, the plan typically offsets the unpaid balance against your account (a plan loan offset).
- You have until the tax filing due date for the year of the offset (including extensions — typically October 15 of the following year) to roll over an amount equal to the offset.
- If you contribute that amount to an IRA or a new employer's plan by that deadline, no tax or penalty applies.
- If you do not repay by the deadline, the offset amount is a taxable distribution — ordinary income plus the 10% early withdrawal penalty if under 59½ and no exception applies.
Example: You leave your job in March 2026 with a $20,000 outstanding 401(k) loan, and the plan offsets it in 2026. You have until April 15, 2027 — or October 15, 2027 if you extend your 2026 return — to put $20,000 into an IRA. If you don't, your 2026 taxes include $20,000 as ordinary income (plus a $2,000 penalty if under 59½).
The True Cost of a 401(k) Loan: Opportunity Cost
The primary cost of a 401(k) loan is the opportunity cost — the investment returns forgone on the borrowed amount while it is outstanding as a loan rather than invested:[2]
- Borrowed amount: $25,000
- Loan interest rate (paid to yourself): 6.5%
- Expected market return on invested balance: 7.5%
- Opportunity cost: 7.5% − 6.5% = 1.0% annually on $25,000 = $250/year
- Over a 5-year loan with level quarterly repayments that are reinvested: about $700 in forgone growth (about $1,640 if the full $25,000 stayed out for all 5 years)
This cost is real but modest — significantly less damaging than an early withdrawal (which permanently removes the funds from tax-deferred growth and triggers immediate taxes + penalty).
See our guide on early withdrawal exceptions to compare when an exception (rather than a loan) might be available, and our guide on debt vs. emergency fund for how to avoid needing 401(k) loans through better cash flow planning.