401k Loan Calculator
See your monthly payment, total interest cost, and the retirement wealth you silently sacrifice when borrowing from yourself.
Loan Details
Your Loan Results
Amortization Schedule
| Month | Payment | Principal | Interest | Balance |
|---|
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.
- 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
- No retirement disruption
- Credit score required for best rates
- Fixed payments, predictable schedule
- Interest is not returned to you
- Can consolidate or refinance easily
- 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
- 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
- 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
- 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
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.
How to Use the 401k Loan Calculator
- 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.
- 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.
- 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.
- Enter Your Current 401k Balance: This drives the “Lost Growth” calculation — the most important figure most people ignore.
- Set Expected Annual Return: The long-term historical average for a diversified portfolio is 7%. Use 5% for conservative and 9% for optimistic modeling.
- Enter Your Tax Bracket: Used to calculate the penalty cost if the loan defaults due to job separation.
- 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.
A Real-World Example: What a $20,000 401k Loan Actually Costs
Borrower Profile: Alex, Age 40
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.
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:
- Borrow the minimum necessary. Every extra dollar borrowed has a compounded opportunity cost. Need $15,000? Don’t round up to $20,000.
- 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.
- 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.
- Pay it off early if possible. Most plans allow early repayment without penalty. If you receive a bonus or windfall, retire the loan immediately.
- 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.
- 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
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.