How Much Will a 401(k) Loan Actually Cost You Over 5 Years?
The interest rate on a 401(k) loan looks attractive — usually prime + 1% (around 9.5% in 2026), with the interest paid back into your own account. But that headline number ignores the largest hidden cost: opportunity cost on the borrowed balance while it sits outside the market. To put real numbers behind it, we modeled a typical scenario using this calculator's engine.
Assumptions for the table below: $20,000 loan, 5-year repayment, 9.5% loan APR (interest paid to your own account), and 7% market return on what would have stayed invested. We compare the "if you had not borrowed" trajectory against "after borrowing and full repayment" trajectory at the 5-year mark.
Best401kCalculator.com modeling, 2026 — $20,000 loan, 5-year term at 9.5% APR, 7% assumed market return
| Scenario |
Year 1 |
Year 3 |
Year 5 |
| If you never borrowed (counterfactual) |
$21,400 |
$24,500 |
$28,051 |
| Borrowed + repaid in full (5-year loan) |
$4,164 (only repayments invested) |
$13,170 |
$23,330 |
| Net 5-year cost (in lost balance) |
−$4,721 (about 24% of the original loan amount) |
What this tells you: Even when you "pay yourself back" the interest, a 5-year $20K loan still costs roughly $4,700 in lost retirement growth — equivalent to about 24% of the original loan. Stretch the loan to 10 years (mortgage-style for a primary residence loan), and the gap doubles. If you can keep contributing to your 401(k) on top of loan repayments, the gap shrinks; if you reduce or pause contributions during the loan, the gap widens dramatically.
Methodology: Loan repayments calculated with standard amortization formula at 9.5% APR. Counterfactual scenario assumes the original $20K stayed invested and grew at 7% annually compounded monthly. Repayment scenario assumes monthly repayments are reinvested at the same 7% return. Excludes fees, taxes, and salary-deferral disruption. Source: Best401kCalculator.com Editorial Team modeling, May 2026.
When Does a 401(k) Loan Make Sense (And When Doesn't It)?
Despite the opportunity cost, 401(k) loans can still be the right call in specific situations. They beat almost every alternative when used for a short-term liquidity bridge with high confidence of stable employment. They are almost always wrong when used to fund consumption or to bail out a deeper financial problem.
When a 401(k) loan can make sense
- Avoiding a payday or high-APR personal loan. If your only alternatives charge 18%+ APR, a 9.5% plan loan saves real money even after opportunity cost.
- Bridge financing for a primary residence purchase. Many plans offer a special 10-15 year loan term for primary home purchases — useful when down-payment timing is tight.
- Short-term cash-flow gap with confirmed payback source. Bonus arriving in 6 months, real estate sale closing, or vested RSU release within the loan term.
- Avoiding withdrawal penalties. Compared to a hardship withdrawal triggering 10% penalty + ordinary income tax, a loan is almost always the cheaper route.
When a 401(k) loan is usually a mistake
- Your employment is unstable. If you lose or change jobs while the loan is outstanding, the unpaid balance typically becomes a deemed distribution — full taxes plus the 10% penalty if you are under 59½.
- You cannot keep contributing during repayment. Pausing contributions to afford repayments doubles the opportunity cost and forfeits employer match dollars.
- The loan funds consumption, not investment. Borrowing $25K to pay for a wedding, vacation, or vehicle gives no asset growth to offset the lost retirement compounding.
- You have other higher-interest debt to consolidate. A balance transfer or 0% APR consumer credit may be cheaper than a 9.5% loan that also costs you market growth.
What Happens to Your 401(k) Loan If You Quit or Get Laid Off?
This is the single most underestimated risk of a 401(k) loan. Before SECURE Act (2017), you typically had only 60-90 days after separation to repay the entire outstanding balance. The 2017 changes extended the deadline to "the due date of your federal tax return for the year of separation, including extensions" — which can be up to October 15 of the following year.
That extra time helps, but it does not eliminate the risk. Most laid-off workers cannot suddenly produce $20,000+ in cash, especially when they have just lost their income. If you cannot repay by the deadline:
- The unpaid balance is treated as a distribution in the year of separation.
- The full unpaid amount is added to your taxable income that year — potentially pushing you into a higher bracket.
- If you are under age 59½, an additional 10% early-withdrawal penalty applies on top.
- You lose the future tax-deferred growth on what was effectively forced out of the plan.
For a typical $20K balance held by someone in the 22% federal bracket and the 5% state bracket, an unrepaid loan after separation can trigger roughly $7,400 in combined federal tax + state tax + 10% penalty — on top of losing the retirement balance itself. Run your specific scenario through the Early Withdrawal Calculator to see your exact tax impact.
401(k) Loan vs HELOC vs Personal Loan: Which Is Cheapest in 2026?
Most "401(k) loan" articles compare it only to credit cards or hardship withdrawals. We modeled the four most realistic alternatives a homeowner with stable employment would actually consider, using $25,000 borrowed for 5 years with 2026 published average rates.
Best401kCalculator.com analysis, 2026 — $25K borrowed, 5-year term, average published rates as of Q2 2026
| Borrowing Option |
Typical APR |
Total 5-Yr Interest Paid |
Tax Treatment |
Hidden Cost |
| 401(k) loan | ~9.5% (prime + 1%) | $6,470 (paid to yourself) | Not tax-deductible | ~$5,900 lost market growth |
| HELOC (variable) | ~9.0% | $6,140 (paid to lender) | Interest may be deductible if used for home improvement | Home as collateral; rate can rise |
| Personal loan (good credit) | ~12.5% | $8,580 (paid to lender) | Not deductible | Lower limits; may impact credit utilization |
| Credit card balance transfer | ~21% (after 0% promo) | $15,000+ if not paid in promo period | Not deductible | 3-5% transfer fee; credit score impact |
What this tells you: The "interest cost" of a 401(k) loan is misleading because the interest goes to your own account — but the opportunity cost on the principal (~$5,900 in lost growth on a $25K loan over 5 years) is the real expense. For a homeowner with strong equity and stable income, a HELOC for home-related borrowing often beats a 401(k) loan because the interest may be tax-deductible. For everything else, the choice usually depends on job stability: stable employment favors the 401(k) loan, anything else favors the personal loan or HELOC.
Editorial Verdict: Should You Take a 401(k) Loan in 2026?
Our recommendation framework
After modeling dozens of borrowing scenarios with this calculator, our editorial team's working framework is simple: a 401(k) loan is the right answer about 15% of the time — and almost always for one of three specific reasons.
Take the loan if
All three of these are true:
(1) Your employment is rock solid (12+ months expected tenure).
(2) The loan funds an investment or unavoidable expense, not consumption.
(3) You can keep contributing the full employer-match amount during repayment.
Try it: Project the 30-year impact · Confirm match capture
Pick a HELOC instead if
You own a home with 20%+ equity and the funds are for home improvement or other tax-deductible use.
A HELOC keeps your retirement compounding intact and often has tax-deductible interest for qualifying uses. The trade-off is putting your home up as collateral.
Pick a personal loan instead if
Your job is anything less than completely stable, or the loan is for consumption.
A higher APR on a personal loan is usually cheaper than a deemed distribution after job loss. The personal loan also keeps your retirement balance fully invested.
Bottom line: If you find yourself "needing" to borrow from retirement to fund regular spending, that is a signal a budget reset is more valuable than the loan. The single biggest predictor of future retirement success is not borrowing against the future.