401K Loan Calculator

Retirement Planning Tool

401k Loan Calculator

Estimate your payment, total interest paid back into your own account, and the potential investing opportunity cost of borrowing from your workplace retirement plan.

Loan Inputs

Adjust the fields below to model a 401(k) loan scenario based on common IRS loan rules and typical plan repayment structures.

Used to estimate the maximum loan permitted under IRS limits.
Most plans cap loans at the lesser of $50,000 or 50% of your vested balance, with a limited small-balance exception.
Many plans use prime plus 1% or a similar internal rate.
General-purpose loans are commonly limited to 5 years.
Used to estimate what the borrowed money might have earned if it stayed invested.
Many payroll-based plans collect loan payments each pay period.
Primary-residence loans may allow longer repayment periods depending on your plan document.

Results

Your summary updates after you click the calculate button.

Enter your numbers and click Calculate 401(k) Loan to see your payment, total repayment, estimated opportunity cost, and a visual comparison chart.

Projected Loan vs. Stay Invested Comparison

How to use a 401k loan calculator the right way

A 401(k) loan calculator helps you answer a deceptively simple question: if you borrow from your retirement account today, what does that decision really cost? Most people focus on the immediate benefit, which is access to cash without a bank application, credit inquiry, or personal loan underwriting. But a smart analysis goes further. You also need to understand the repayment schedule, total interest paid, plan limits, tax consequences if you leave your employer, and the opportunity cost of having part of your retirement balance temporarily out of the market.

This calculator is built for that broader decision. It estimates the periodic loan payment based on your selected rate and term, then compares the future value of the borrowed amount if it had stayed invested versus the future value created by paying yourself back over time. The difference between those two values is a practical estimate of the retirement growth you may give up by taking the loan.

If you are weighing a 401(k) loan against a credit card balance transfer, a home equity line, emergency savings, or simply reducing discretionary spending, this type of model is useful because it converts a fuzzy decision into numbers. That does not mean a calculator makes the decision for you. It means you can make the decision with fewer blind spots.

What a 401(k) loan actually is

A 401(k) loan is not a normal consumer loan from a bank. It is money borrowed from your own retirement plan account, subject to your employer plan’s rules and federal tax law. In many plans, you pay interest back to yourself, which is one reason these loans can appear attractive. However, that benefit can obscure the larger issue: the borrowed funds are usually no longer fully invested while the loan is outstanding. If markets rise during the repayment period, you can miss meaningful growth.

There are also compliance limits. According to the IRS, the maximum amount a participant may borrow is generally the lesser of $50,000 or 50% of the vested account balance, although some plans may permit a small-balance exception allowing up to $10,000 if 50% of the vested balance is less than $10,000. You can review IRS guidance directly at irs.gov.

General-purpose loans are commonly required to be repaid within five years. A longer period may be available if the loan is used to purchase a primary residence and your plan document allows it. Plans can also suspend new contributions or impose administrative fees, so the exact cost of a 401(k) loan varies from employer to employer.

Why this calculator focuses on opportunity cost

The phrase “you pay yourself interest” is technically true, but it can be financially incomplete. Suppose you borrow $20,000 from your 401(k) and repay it over five years. During that time, you are putting money back gradually. If that same $20,000 had remained invested from day one, it would have had the full loan term to potentially compound. Your repayments, by contrast, re-enter the account in installments over time. That timing gap is the heart of the opportunity cost.

This calculator estimates that difference by comparing two paths:

  1. Stay invested: the borrowed amount remains in the plan for the full term and grows at your chosen assumed return.
  2. Take the loan: the original amount leaves the account, then periodic loan payments are added back and allowed to grow for the remainder of the term.

That framework does not capture every real-world variable, but it does show something many borrowers underestimate: even if the loan interest goes back to your account, missing market exposure can still leave you behind.

Key plan rules and official limits you should know

Before using any 401(k) loan calculator, verify your plan document. Not all plans offer loans, and those that do may apply stricter limits than federal law requires. The IRS rules establish a ceiling, not a guarantee. In addition, plans may charge origination fees, annual maintenance fees, or require repayment via payroll deduction.

It also helps to place your loan decision in the wider retirement-plan context. The table below shows current federal contribution limits that often matter when deciding whether borrowing could interfere with your long-term retirement strategy.

IRS Retirement Plan Statistic 2024 2025 Why It Matters for a 401(k) Loan
401(k) elective deferral limit $23,000 $23,500 If loan payments strain cash flow, you may reduce contributions and lose tax-advantaged savings capacity.
Age 50+ catch-up contribution $7,500 $7,500 Older savers have more room to accelerate retirement savings, so borrowing can be more consequential if it interrupts funding.
General IRS 401(k) loan cap Lesser of $50,000 or 50% of vested balance Lesser of $50,000 or 50% of vested balance Your plan may allow less, and prior outstanding loans can reduce the amount available.

The contribution limits above come from official IRS annual guidance. You can confirm current figures and updates at irs.gov retirement contribution limits.

The job-change risk is bigger than many borrowers expect

One of the most overlooked 401(k) loan risks is employment change. If you separate from service, many plans require the remaining balance to be repaid quickly or else the unpaid amount may be treated as a deemed distribution. That can create ordinary income taxes and, in some cases, an additional 10% early-distribution tax if you are under the applicable age threshold.

This matters because employee turnover is not rare. U.S. labor market data show that many workers do not stay with the same employer for a decade or more. The Bureau of Labor Statistics reported a median employee tenure of 3.9 years in January 2024. That is shorter than the full duration of many 401(k) residence loans and close to the maximum length of many general-purpose loans. In other words, a borrower should not assume employment stability without checking the odds. See the BLS source at bls.gov.

BLS Employee Tenure Statistic January 2024 Figure Why It Matters
Median tenure for wage and salary workers 3.9 years A five-year 401(k) loan can outlast the median employment tenure, raising repayment-default risk after a job change.
Median tenure ages 25 to 34 2.7 years Younger workers taking a loan may face a higher chance of changing jobs before the loan is fully repaid.
Median tenure ages 55 to 64 9.6 years Older workers may have more job stability, but they also have less time to recover missed market growth.

When a 401(k) loan might make sense

A 401(k) loan is not automatically a bad idea. In limited situations, it can be the least harmful option. For example, borrowing from a 401(k) may be worth considering if the alternative is a very high-interest credit card balance, a predatory short-term loan, or an urgent need that would otherwise trigger expensive late fees, collections, or foreclosure risk. A calculator is especially useful here because it helps compare the internal cost of borrowing from retirement savings to the external cost of borrowing from a lender.

  • You have a temporary, short-duration cash need and a stable job.
  • Your plan allows straightforward payroll deductions with no major administrative burden.
  • You can keep contributing to your 401(k) while repaying the loan.
  • You have already exhausted your emergency fund or the emergency fund would fall below a comfortable level.
  • The loan helps you avoid higher-interest debt that would erode your finances faster.

When a 401(k) loan may be a poor choice

There are also many cases in which a 401(k) loan can weaken your long-term finances. If your income is unstable, your job situation is uncertain, or the borrowed funds are going toward discretionary spending rather than a true need, the trade-off is often unfavorable. The same is true if the loan payments would force you to reduce retirement contributions, especially if that means giving up employer matching contributions.

  • You might leave your job soon or work in a volatile industry.
  • You would have to cut or stop contributions to manage the loan payment.
  • The loan is for lifestyle spending, vacations, or non-essential purchases.
  • You already have multiple debts and need structural budget changes, not another payment.
  • You are close to retirement and have less time for your account to recover.

How to interpret the calculator results

After you run the calculator, focus on five outputs. First, review the maximum estimated loan allowed. This gives you a reality check against IRS-based limits. Second, examine the periodic payment, because affordability matters more than theoretical eligibility. Third, look at the total interest paid. Even though that interest generally goes back into your account, it still affects your take-home pay.

Fourth, review the future value if funds stayed invested. That figure shows the growth potential of leaving the borrowed amount untouched for the full term. Fifth, compare it to the future value under the repayment path. The difference is the opportunity cost estimate. A small opportunity cost may be manageable if the loan solves a meaningful financial problem. A large one may indicate that another funding source deserves a closer look.

The chart adds another layer by showing how these paths diverge over time. The “stay invested” line typically rises steadily, while the “loan repayment” line starts lower and gradually catches up as repayments are made. The remaining-loan-balance line declines to zero as the debt is repaid. Seeing the timing visually often makes the trade-off easier to understand than a single lump-sum figure.

Questions to ask before borrowing

  1. Will I still get the full employer match? If loan payments force you to lower contributions, the lost match can be a hidden cost.
  2. What fees does my plan charge? Origination and maintenance fees reduce the advantage of borrowing from yourself.
  3. What happens if I leave my employer? The answer can materially change the risk level of the loan.
  4. Could I use emergency savings instead? Sometimes preserving retirement compounding is worth drawing down cash reserves.
  5. Am I solving a short-term issue or funding a long-term spending habit? A loan should not mask a budget problem that will return later.

401(k) loan vs. withdrawal

Borrowers sometimes compare a 401(k) loan to an early withdrawal, but they are very different. A loan is intended to be repaid. An early withdrawal permanently removes money from the account, usually creating immediate taxes and potentially a 10% additional tax if you do not qualify for an exception. The Department of Labor provides a useful overview of workplace retirement plan basics, distributions, and participant rights at dol.gov.

From a long-term planning perspective, a loan is usually less damaging than a taxable withdrawal, but “less damaging” does not necessarily mean “good.” Both choices interrupt compounding. That is why serious retirement planning should treat 401(k) borrowing as a strategic last-resort tool, not an easy source of spending money.

Best practices if you decide to take the loan

  • Borrow the smallest amount that solves the problem.
  • Choose the shortest repayment term you can comfortably afford.
  • Keep retirement contributions going if at all possible.
  • Rebuild your emergency fund so you are less likely to borrow again.
  • Review your plan’s repayment rules before changing jobs or reducing hours.
  • Track the total cost, including missed growth, not just the stated interest rate.

Final takeaway

A 401(k) loan calculator is most valuable when it helps you look past the headline feature that “you pay yourself back.” Yes, that can be better than paying a high rate to a lender in some situations. But retirement math is driven by time in the market, contribution discipline, and avoidance of unnecessary disruptions. The true question is not simply whether you can borrow from your 401(k). It is whether borrowing improves your overall financial position after accounting for payment strain, job risk, taxes, fees, and missed compounding.

Use the calculator above as a decision framework. Run a conservative scenario, then run a more optimistic one. If the payment is uncomfortable or the opportunity cost is larger than expected, that is valuable information. If the loan still appears reasonable after those stress tests, you can move forward more confidently and with a clearer understanding of the trade-offs.

This calculator provides educational estimates only and is not tax, legal, or investment advice. Actual 401(k) loan availability, fees, repayment terms, and default consequences depend on your employer’s plan document and individual circumstances.

Leave a Reply

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