401k Loan Calculator – True Cost of Borrowing From Retirement

Loan Details

$1k$100k
1%12%
$5k$500k
3%12%
10%37%
1 yr40 yrs

Your Loan Results

Monthly Payment
$0
over 0 months
Total Repaid
$0
Total Interest Paid
$0
Lost Growth at Retirement
$0
True Total Cost
$0
Max Allowed (IRS)
$0
Est. Penalty if Default
$0
Retirement Impact Severity
LowModerateHigh

Amortization Schedule

Month Payment Principal Interest Balance
Results are estimates for educational purposes only. IRS rules limit 401k loans to the lesser of $50,000 or 50% of your vested balance. Consult your plan administrator and a qualified financial advisor before borrowing from your retirement account.

401k Loan vs. Alternative Funding Sources

Before borrowing from your retirement account, compare the real cost against alternatives. Your 401k loan results are pre-filled from the calculator — adjust on the Loan tab to update.

401k Loan
6.0%
  • Interest paid back to yourself
  • No credit check required
  • Reduces your invested balance immediately
  • Risk of taxes + 10% penalty if you leave your job
  • Double taxation on repaid interest
  • Misses market growth during repayment period
Personal Loan
~9–15%
  • No retirement disruption
  • Credit score required for best rates
  • Fixed payments, predictable schedule
  • Interest is not returned to you
  • Can consolidate or refinance easily
Credit Card
~20–29%
  • Instant access, zero paperwork
  • Very high interest if not paid quickly
  • Minimum payments extend debt for years
  • No retirement account disruption
  • Rewards possible if paid monthly
HELOC / Home Equity
~7–9%
  • Interest may be tax-deductible
  • Lower rates than personal loans
  • Requires home equity and good credit
  • Home at risk if payments missed
  • No retirement account disruption
Emergency Fund / Savings
0% cost
  • No interest, no penalties
  • Doesn’t touch retirement savings
  • Requires existing savings balance
  • Earns no return while held in cash
  • Best first resort for short-term needs
401k Early Withdrawal
~30–40% effective cost
  • Immediate access to full balance
  • 10% early withdrawal penalty (under 59½)
  • Taxed as ordinary income
  • Permanently removes money from compounding
  • Worst option in almost every scenario
Bottom Line: A 401k loan is rarely the cheapest option when you factor in lost investment growth. The interest rate looks low, but the true cost — measured in retirement wealth foregone — is almost always higher than alternatives like a HELOC or personal loan. Use this calculator’s “Lost Growth at Retirement” figure to make an honest comparison.

The Complete Guide to 401k Loans: What the Calculator Reveals That Your Plan Document Won’t

Over the years I’ve reviewed hundreds of retirement plans for individuals in genuine financial binds — unexpected medical bills, bridge-loan needs during a home purchase, sudden job loss — and the conversation about borrowing from a 401k comes up more often than most financial advisors like to admit. My honest take: a 401k loan is sometimes the least-bad option available, but it is almost never the best option. The difference between those two things is enormous, and a 401k loan calculator is the tool that makes that difference visible and undeniable.

This guide will walk you through exactly how 401k loans work, what the IRS allows, how to use the calculator above to understand the real cost, and — critically — the scenarios where borrowing from your retirement account is and isn’t defensible.

What Is a 401k Loan?

A 401k loan is a provision in most employer-sponsored retirement plans that allows participants to borrow from their own vested account balance. Unlike a traditional loan from a bank, you are technically borrowing from yourself — your 401k is the lender, and you pay interest back into your own account.

On the surface, this sounds almost too good: low interest rates, no credit check, repaid to yourself. But the mechanics of how 401k loans actually work reveal a far more complicated picture — one that our calculator helps you quantify with precision.

IRS Rules and Limits on 401k Loans

The IRS governs 401k loan rules under IRC Section 72(p). Here are the key parameters you must understand before borrowing:

  • Maximum Loan Amount: The lesser of $50,000 or 50% of your vested account balance. If you have $60,000 vested, you can borrow up to $30,000. If you have $200,000 vested, you can borrow up to $50,000.
  • Repayment Period: Generally must be repaid within 5 years (except for primary home purchases, which may have longer terms).
  • Repayment Frequency: Payments must be made at least quarterly, though most plans deduct them from payroll automatically.
  • Interest Rate: Plans typically charge Prime Rate + 1–2%, which as of 2024 sits in the 6–8% range. This interest goes back into your own account.
  • Number of Loans: Many plans allow only one outstanding loan at a time, though some allow two.
  • Job Separation Rule: If you leave your employer (voluntarily or involuntarily), the outstanding balance becomes due — typically within 60–90 days. Failure to repay triggers taxes plus the 10% early withdrawal penalty.
Critical Warning: The job separation rule is the most dangerous aspect of 401k loans that borrowers consistently underestimate. If you’re laid off, change jobs, or your company is acquired while you have an outstanding 401k loan, the full remaining balance becomes immediately taxable as income, plus a 10% penalty if you’re under 59½. A $30,000 loan could suddenly cost you $10,000–$14,000 in taxes and penalties with 60 days notice.

How to Use the 401k Loan Calculator

  1. Enter Your Loan Amount: Start with the exact amount you need. Remember the IRS cap is the lesser of $50,000 or 50% of vested balance — our calculator shows this limit automatically.
  2. Set Your Interest Rate: Check your plan documents for the current rate. Most plans charge Prime + 1%. If unsure, 6–7% is a reasonable estimate for current rates.
  3. Choose Your Repayment Term: Most loans max at 5 years. Shorter terms mean higher monthly payments but less total interest paid and less time out of the market.
  4. Enter Your Current 401k Balance: This drives the “Lost Growth” calculation — the most important figure most people ignore.
  5. Set Expected Annual Return: The long-term historical average for a diversified portfolio is 7%. Use 5% for conservative and 9% for optimistic modeling.
  6. Enter Your Tax Bracket: Used to calculate the penalty cost if the loan defaults due to job separation.
  7. Years to Retirement: The longer your runway, the more devastating the compound opportunity cost of the loan. A loan at 35 costs dramatically more in retirement wealth than the same loan at 58.

The Hidden Cost Most People Miss: Opportunity Cost

Every financial advisor talks about the “low interest rate” of a 401k loan. What they don’t always emphasize is the opportunity cost — the investment returns your removed principal would have generated had it stayed invested.

When you take a 401k loan, the borrowed dollars leave your investment account immediately. They stop compounding. They miss every market rally. They sit with you — earning the loan interest rate you pay back, not the market rate your portfolio earns. And in retirement, that gap is reflected in a materially smaller nest egg.

The “Lost Growth at Retirement” figure in our calculator represents this compounded opportunity cost projected to your retirement date. For a $20,000 loan over 5 years with 25 years to retirement, this figure typically exceeds $40,000–$60,000 — two to three times the loan itself.

The Double Taxation Problem: There’s a tax subtlety most 401k loan borrowers don’t understand. When you contribute pre-tax dollars to your 401k and later repay a loan with after-tax paycheck dollars, and then withdraw those repaid dollars in retirement (paying taxes again), the loan repayment dollars get taxed twice. The interest portion of your repayment — already modest — is effectively taxed at your marginal rate now AND in retirement. This is unique to 401k loans and doesn’t apply to personal loans.

A Real-World Example: What a $20,000 401k Loan Actually Costs

Borrower Profile: Alex, Age 40

Loan Amount$20,000
Interest Rate6.0%
Repayment Term5 years
Monthly Payment$386.66
Total Repaid$23,199
Interest Paid (back to yourself)$3,199
Years to Retirement (at 65)25 years
Expected Return Rate7% annually
Lost Retirement Wealth (Opportunity Cost)
~$58,000–$72,000
The $20,000 removed from the market for 5 years, projected at 7% over 25 years, represents $58k–$72k of retirement wealth Alex will never accumulate — before even accounting for double taxation.

Alex repaid the loan faithfully, paid $3,199 in interest back to themselves, and felt good about the outcome. But at retirement, their 401k balance is roughly $65,000 lighter than it would have been without the loan. That $65,000 could have funded 1.5 years of retirement income at a sustainable withdrawal rate. This is the calculation that changes minds.

Just as it’s important to understand the value of what you’re leaving on the table with a 401k loan, tools like our gold resale value calculator can help you understand asset values if you’re considering alternative liquidity options — like selling gold jewelry or bullion — before touching your retirement account.

When a 401k Loan Actually Makes Sense

I don’t want to be dogmatic about this. After years of working through real financial situations, I’ve seen scenarios where a 401k loan was genuinely the most pragmatic choice. Here they are:

Scenario 1: Avoiding High-Interest Debt

If you’re staring at 22–29% credit card debt, a 6% 401k loan to pay it off could be rational — if and only if you’re confident in your job security, you won’t need to borrow again, and you have strong discipline to avoid re-accumulating the credit card debt. The math is clear: 6% beats 25%. The behavioral risk is the variable.

Scenario 2: A Bridge During a Home Purchase

Some buyers use a 401k loan as a short-term bridge to reach 20% down payment and avoid PMI. If the PMI savings exceed the opportunity cost over the loan’s short term, and you’re confident in employment stability, the numbers can support this. Many plans also allow extended repayment terms for primary home loans.

Scenario 3: Short-Term Emergency With No Alternatives

If you’re facing a medical bill, emergency home repair, or financial crisis with zero credit availability and no emergency fund, a 401k loan — compared to an early withdrawal — will always be the better option. The loan preserves your account’s tax-advantaged status and avoids the 10% penalty on a withdrawal.

When a 401k Loan Is a Terrible Idea

  • If your job security is uncertain: Layoffs, company struggles, or a job change in the pipeline make the default-and-penalty scenario very real.
  • If you’ll stop contributing during repayment: Some people reduce or halt 401k contributions to manage cash flow during loan repayment, compounding the opportunity cost.
  • For discretionary spending: Vacations, consumer goods, or lifestyle purchases that don’t create lasting value.
  • If you have 20+ years to retirement: The opportunity cost at longer time horizons is devastating. Compounding doesn’t forgive early interruptions.
  • If you’re close to retirement: The disruption to your investment sequence matters more as you approach the withdrawal phase.
💡 Expert Tip: Before committing to a 401k loan, calculate the “Lost Growth at Retirement” in our tool above, then compare it to what you could save by pursuing alternatives — a personal loan, a HELOC, a side income stream, or asset liquidation. Only proceed with the 401k loan if that number is genuinely lower than your alternatives after honest accounting.

What Happens If You Default on a 401k Loan?

Default occurs when you miss a loan payment (or leave your job with a balance outstanding and can’t repay within the plan’s deadline, typically 60–90 days). Upon default, the IRS treats the outstanding balance as a taxable distribution:

  • The full remaining balance is added to your ordinary income for that tax year
  • You owe federal and state income taxes on the full amount
  • If under age 59½, you owe an additional 10% early withdrawal penalty
  • In a 22% federal + 5% state tax bracket, a $20,000 default costs ~$7,400 in taxes and penalties — on money you already spent

This is exactly why our calculator includes the “Estimated Penalty if Default” figure — it’s a risk-weighted cost you should factor in when your employment situation is anything less than certain.

If you’re thinking creatively about your overall financial picture, the character headcanon generator is a reminder that even in the world of financial planning, building a clear character — your financial identity and habits — determines outcomes more than any single decision. And if you’re working on your health to maximize quality of life in retirement, tracking strength with the one rep max calculator is a great companion goal — retirement is only valuable if you’re fit enough to enjoy it.

Strategies to Minimize the Impact of a 401k Loan

If you’ve decided a 401k loan is your best option, here’s how to minimize the damage:

  1. Borrow the minimum necessary. Every extra dollar borrowed has a compounded opportunity cost. Need $15,000? Don’t round up to $20,000.
  2. Choose the shortest repayment term you can afford. Less time out of the market means less compounding lost. A 3-year repayment dramatically outperforms a 5-year repayment in terms of retirement impact.
  3. Never reduce your contribution rate. Many people drop contributions during loan repayment. Don’t. At minimum, continue contributing enough to capture your full employer match — losing that is throwing money away on top of the opportunity cost.
  4. Pay it off early if possible. Most plans allow early repayment without penalty. If you receive a bonus or windfall, retire the loan immediately.
  5. Maintain an emergency fund after repayment. The goal is to never need another 401k loan. Build 3–6 months of expenses in liquid savings so this is a one-time event.
  6. Review your investment allocation: While the loan is outstanding, your effective allocation has shifted (less invested in equities). Consider this in your remaining balance’s allocation to avoid overconcentration.

401k Loan vs. 401k Early Withdrawal: The Critical Comparison

These are often confused but they are fundamentally different instruments with radically different cost structures:

An early withdrawal permanently removes money from your 401k. It’s subject to income tax immediately plus a 10% penalty if under 59½. A $30,000 withdrawal in a 22% bracket costs $9,600 in taxes and penalties before you see a dollar — and that $30,000 is gone from compounding forever.

A 401k loan temporarily removes money from your account. No immediate taxes. No penalty (unless you default). The money returns to your account with interest. The cost is opportunity cost — growth foregone — not cash-out taxation.

For almost every scenario, a 401k loan is substantially better than an early withdrawal. The only time this reverses is if default is nearly certain — in which case the loan’s immediate interest rate advantage evaporates under the weight of taxes and penalties.

Frequently Asked Questions

How much can I borrow from my 401k?
The IRS limits 401k loans to the lesser of $50,000 or 50% of your vested account balance. So if you have $60,000 vested, you can borrow up to $30,000. If you have $200,000 vested, the cap is $50,000. Some plans impose lower limits than the IRS maximum — always check your plan document or call your plan administrator for the exact figure applicable to your account.
Do I pay taxes on a 401k loan?
No — not immediately, and not as long as you repay the loan on schedule. Because you’re borrowing your own money and repaying it with interest, the IRS does not treat the loan proceeds as taxable income. However, the interest you repay is done with after-tax dollars, and those dollars will be taxed again upon withdrawal in retirement — this is the “double taxation” problem unique to 401k loans. If you default, the outstanding balance becomes immediately taxable as ordinary income plus a 10% early withdrawal penalty if under 59½.
What happens to my 401k loan if I lose my job?
This is the biggest risk of 401k loans. If you leave your employer — voluntarily or through layoff — your outstanding loan balance typically becomes due within 60–90 days. If you cannot repay it in full by that deadline, the IRS treats the balance as a taxable distribution, adding it to your gross income for that year and imposing a 10% penalty if you’re under 59½. Under the Tax Cuts and Jobs Act of 2017, you actually have until your tax filing deadline (including extensions) to repay the loan or roll it into an IRA to avoid the distribution — a significant improvement from prior rules.
Can I still contribute to my 401k while repaying a loan?
Yes — and you absolutely should. There is no rule that prohibits ongoing contributions while repaying a 401k loan. In fact, continuing to contribute is critical to minimizing the loan’s long-term damage. At minimum, contribute enough to capture your full employer match — failing to do so doubles the cost of the loan by adding foregone free money on top of the opportunity cost. Some participants reduce contributions to manage cash flow during repayment; this is a costly mistake.
Is a 401k loan better than a personal loan?
Not always, despite the lower stated interest rate. A personal loan’s interest goes to a lender and is gone. A 401k loan’s interest goes back to you — but the investment returns your borrowed principal would have earned also go missing. When you add up the opportunity cost at retirement (visible in our calculator), a 6% 401k loan often has a higher “true cost” than a 9–10% personal loan. Personal loans also don’t carry job-loss default risk. The calculation depends heavily on your specific numbers, time to retirement, and employment security.
Can I take multiple loans from my 401k?
It depends on your plan. Many plans allow only one outstanding loan at a time. Some allow two. All loans combined are still subject to the IRS aggregate limit of the lesser of $50,000 or 50% of vested balance. If you have a $15,000 outstanding loan, you can borrow up to $35,000 more (if your vested balance permits). Consult your plan document or administrator for your specific plan’s rules — they vary considerably between employers.
What is the interest rate on a 401k loan?
Most plans set the interest rate at the Prime Rate plus 1–2 percentage points. As of 2024, with Prime Rate around 8.5%, many 401k loans charge 9–10%. Some plans have historically used fixed rates or lower margins — always check your specific plan. The rate is set when the loan is originated and typically remains fixed for the life of the loan. Remember, this interest is paid back to your own account — it’s not a cost in the traditional sense, but it is subject to double taxation upon eventual withdrawal.

This article is intended for educational and informational purposes only. It does not constitute financial, tax, investment, or legal advice. 401k loan rules vary by plan — always consult your plan documents and a qualified financial professional before borrowing from your retirement account. Calculator results are estimates based on inputs provided and do not guarantee actual outcomes.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top