401(k) Loan Repayment Calculator
Estimate your payroll deduction, total interest paid back to your own retirement account, and the possible opportunity cost of taking a 401(k) loan instead of leaving those funds invested.
Calculate your loan repayment
Enter your loan details and assumptions below. This calculator estimates level payments using standard amortization. Results are educational and should be compared with your specific plan document.
Your results
Visual breakdown
This chart compares your original loan principal, total interest paid to yourself, and an estimate of missed market growth while the borrowed funds are temporarily out of the account.
Important: a 401(k) loan is not free money. If you leave your employer, the outstanding balance may become due on a much faster timeline depending on the plan. If you cannot repay and the balance becomes a deemed distribution, taxes and potential penalties can apply.
How a 401(k) loan repayment calculator helps you borrow more carefully
A 401(k) loan repayment calculator is designed to answer a very practical question before you borrow from your retirement account: how much will each paycheck need to cover, and what could this decision cost your long-term savings? Many workers like the idea of a 401(k) loan because the underwriting is usually simpler than a bank loan, your credit score may not be the deciding factor, and the interest you pay typically goes back into your own account. But those benefits can hide several important tradeoffs. The biggest one is that money removed from your portfolio is no longer fully invested while the loan is outstanding.
This calculator helps you estimate your scheduled payment based on the loan amount, interest rate, term, and payroll frequency. It also shows total repayment and total interest. Just as importantly, it offers an illustrative estimate of opportunity cost. That estimate is not a guaranteed loss, because markets do not rise on a fixed schedule, but it gives you a decision-making framework. If you are considering a 401(k) loan for debt consolidation, home repairs, emergency expenses, or a down payment, seeing the payroll impact and the possible market tradeoff side by side can prevent an expensive mistake.
What a 401(k) loan actually is
A 401(k) loan is a plan-permitted loan taken from your own retirement account. It is not available in every employer plan, and the exact rules can vary by plan document. In general, the Internal Revenue Service allows plans to let participants borrow the lesser of $50,000 or 50% of their vested account balance. Some plans may also allow an exception that lets participants borrow up to $10,000 if 50% of the vested balance is less than that amount, but only if the plan includes that feature and only within the legal framework. For many general purpose loans, the repayment period is five years or less. Loans used to purchase a primary residence can sometimes run longer.
The appeal is obvious. You are borrowing from yourself, so there may be no credit inquiry in the traditional consumer lending sense, and the interest typically gets credited back into your own account. But this often leads people to think there is no real cost. In reality, there can be several costs:
- Missed market growth while the borrowed amount is not fully invested.
- Reduced flexibility in your take-home pay due to automatic payroll deductions.
- Potential tax issues if the loan defaults or becomes a deemed distribution.
- Concentration risk if you reduce retirement savings during a volatile market period.
- The possibility that you stop or reduce new contributions while repaying the loan.
Core IRS and plan rule numbers to know
| Rule or limit | Typical standard | Why it matters |
|---|---|---|
| Maximum loan amount | Lesser of $50,000 or 50% of vested balance | Sets the legal upper boundary for most plans |
| Small balance exception | Up to $10,000 if plan allows and legal conditions are met | Can permit a modest loan even with a lower vested balance |
| General purpose repayment term | Usually 5 years or less | Longer terms reduce each payment but extend opportunity cost |
| Primary residence term | May be longer if plan permits | Can materially lower payroll deduction |
| Repayment method | Substantially level payments, often payroll deduction | Creates a predictable but mandatory cash flow obligation |
These figures come from the broad federal framework, but your employer plan can be more restrictive. That is why any serious calculator should be used as a planning tool, not a substitute for reading your summary plan description or speaking with your HR or benefits team.
How the calculator works
The repayment side of the calculator uses the same amortization math commonly used for installment loans. Your periodic interest rate is the annual rate divided by the number of payments each year. The calculator then solves for a level payment amount over the number of payroll periods in the loan term. For example, a five-year loan paid biweekly has 130 payment periods. If the loan carries interest, each payment is a blend of interest and principal. Early in the schedule, the interest portion is larger. Later in the schedule, more of the payment goes toward principal reduction.
On top of that standard loan math, this calculator estimates opportunity cost. One useful way to think about that is to compare two future values over the same period:
- The future value of the borrowed amount if it had remained invested the entire time.
- The future value of the stream of repayments being placed back into the account over time.
The difference between those two paths is not guaranteed, but it is a practical estimate of what you may give up by removing a lump sum from the market and then rebuilding the balance gradually. In years when markets are strong, that opportunity cost can be meaningful. In weaker markets, it may be smaller or even temporarily negligible. The point is not to predict the market perfectly. The point is to understand the range of tradeoffs before borrowing.
Payment frequency matters more than many people expect
Because 401(k) loan repayments are often tied to payroll, the same loan can feel very different depending on whether your employer pays weekly, biweekly, semimonthly, or monthly. A monthly payment may look larger on paper, while a biweekly deduction may be easier to absorb in household cash flow. The total repayment is similar, but your budgeting experience is not.
| Payroll frequency | Payments per year | Budgeting impact |
|---|---|---|
| Weekly | 52 | Smallest individual deductions, highest number of payment periods |
| Biweekly | 26 | Very common, usually easier to fit into recurring budgets |
| Semimonthly | 24 | Fixed twice-monthly deductions can align well with fixed expenses |
| Monthly | 12 | Largest individual payment amount, simplest schedule to track |
When a 401(k) loan might make sense
A 401(k) loan is rarely the first best option, but it can be reasonable in some situations. For example, if you face a short-term liquidity problem and the alternative is very high-interest revolving debt, a carefully sized 401(k) loan may reduce immediate financial stress. It can also be considered when you have strong job stability, a clear repayment plan, and enough room in your budget to continue regular retirement contributions. Some borrowers also use these loans for urgent home repairs or time-sensitive needs where conventional loan pricing is unattractive.
Even in those cases, the strongest use case is often a smaller, shorter-term loan that solves a defined problem rather than a large, open-ended borrowing decision. The shorter the term, the less time your portfolio spends trying to catch back up.
When a 401(k) loan can become dangerous
The largest risk is employment disruption. If you separate from your employer while a loan is outstanding, the remaining balance may need to be repaid quickly or it may be treated as a distribution depending on plan administration and tax rules. At that point, what looked like a manageable payroll deduction can become a tax event. If you are under the applicable age thresholds and conditions, penalties may also apply. That is why workers in unstable industries or in the middle of a job search should be extremely cautious about borrowing from a 401(k).
Another danger is contribution slowdown. Some employees reduce or stop new 401(k) contributions while repaying the loan, especially if take-home pay is already tight. That can mean missing employer matching contributions, which can be one of the most valuable parts of a retirement plan. If borrowing causes you to lose part of your match, the effective cost of the loan may be much higher than the interest line alone suggests.
Questions to ask before you borrow
- Can I keep contributing enough to get the full employer match?
- How stable is my job over the next 12 to 24 months?
- Do I have a lower-risk alternative, such as a cash reserve or lower-cost personal loan?
- Is the loan amount limited to what I truly need, rather than the maximum available?
- Would a shorter term meaningfully reduce my long-term opportunity cost?
- What exactly does my plan say about repayment after leaving employment?
How to interpret your calculator results like a pro
Start with the periodic payment. If the payment is uncomfortable on an ordinary month, it will likely feel worse when your budget is stressed. Next, look at total interest. In a 401(k) loan, that interest generally goes back into your account, so it is not the same as paying interest to a bank. Still, it is cash you must come up with, and it does not eliminate the cost of time out of the market. Then look at the estimated opportunity cost. This is often the most eye-opening number because it reframes the decision around future retirement value instead of only present-day affordability.
If your payment is manageable but your opportunity cost is high, consider a smaller loan or a shorter term. If your opportunity cost looks modest but your payroll deduction strains your budget, your risk may be cash flow rather than investment drag. Both matter. The best decision is the one that preserves financial stability today without creating a retirement setback tomorrow.
Authoritative resources for 401(k) loans and repayment rules
Before acting on calculator results, review primary sources. The following references are especially useful:
- IRS: Retirement Plans FAQs regarding loans
- U.S. Department of Labor: ERISA and retirement plan oversight
- SEC Investor.gov: Compound interest calculator and investing education
Best practices if you decide to borrow
- Borrow the smallest amount that solves the problem.
- Choose the shortest repayment term you can reasonably sustain.
- Keep contributing enough to capture any employer match.
- Maintain an emergency fund so a second crisis does not create a repayment problem.
- Confirm your plan’s rules for job changes, leaves of absence, and early payoff.
- Revisit the calculator if rates, payroll frequency, or term assumptions change.
Final takeaway
A 401(k) loan repayment calculator is most useful when it does more than produce a payment amount. It should help you evaluate affordability, compare term options, and visualize the tradeoff between short-term liquidity and long-term retirement growth. Used wisely, it can keep you from overborrowing, stretching repayment too long, or underestimating the impact on your future account value. If you are considering a 401(k) loan, use the numbers as a starting point, verify your plan details, and make sure the decision fits both your current budget and your long-term retirement strategy.