Start my plan

401(k) Loan Calculator

Calculate the repayment schedule and true cost of borrowing from your 401(k), including the opportunity cost of lost investment growth.

Loan Details

Amount you want to borrow from your 401(k). Limited to 50% of vested balance or $50,000, whichever is less.

401(k) loan interest rate, typically prime rate + 1%

Repayment period — usually 5 years max, up to 15 for a home purchase

Account Details

Your total current 401(k) account balance

Expected average annual return your 401(k) investments would earn

Your results

Manageable Loan Impact on Your Retirement

Borrowing $20,000 from your 401(k) at 5.5% over 5 years. The interest goes back to your account, but you lose market growth on the borrowed amount.

Monthly Payment
$382
60 payments
Interest (to yourself)
$2,921
paid back to your 401(k)
Opportunity Cost
$2,515
lost investment growth
True Cost
$2,590
opp. cost + fees + missed match

True cost excludes interest since it returns to your account. Projection assumes 7% market returns.

Manageable Loan Impact on Your Retirement

See if a bad market changes that

401(k) Balance: With Loan vs Without

How the loan affects your retirement account over time

Loan Amortization Schedule

Monthly breakdown of principal and interest payments

MonthPaymentPrincipalInterestRemaining
1$382$290$92$19,710
2$382$292$90$19,418
3$382$293$89$19,125
4$382$294$88$18,831
5$382$296$86$18,535
6$382$297$85$18,238
7$382$298$84$17,939
8$382$300$82$17,640
9$382$301$81$17,338
10$382$303$79$17,036
11$382$304$78$16,732
12$382$305$77$16,427
13$382$307$75$16,120
14$382$308$74$15,812
15$382$310$72$15,502
16$382$311$71$15,191
17$382$312$70$14,879
18$382$314$68$14,565
19$382$315$67$14,250
20$382$317$65$13,933
21$382$318$64$13,615
22$382$320$62$13,295
23$382$321$61$12,974
24$382$323$59$12,651
25$382$324$58$12,327
26$382$326$57$12,002
27$382$327$55$11,675
28$382$329$54$11,346
29$382$330$52$11,016
30$382$332$50$10,685
31$382$333$49$10,352
32$382$335$47$10,017
33$382$336$46$9,681
34$382$338$44$9,343
35$382$339$43$9,004
36$382$341$41$8,664
37$382$342$40$8,321
38$382$344$38$7,977
39$382$345$37$7,632
40$382$347$35$7,285
41$382$349$33$6,936
42$382$350$32$6,586
43$382$352$30$6,234
44$382$353$29$5,881
45$382$355$27$5,526
46$382$357$25$5,169
47$382$358$24$4,811
48$382$360$22$4,451
49$382$362$20$4,089
50$382$363$19$3,726
51$382$365$17$3,361
52$382$367$15$2,994
53$382$368$14$2,626
54$382$370$12$2,256
55$382$372$10$1,884
56$382$373$9$1,511
57$382$375$7$1,136
58$382$377$5$759
59$382$379$3$380
60$382$380$2$0

Personalized Insights

Actionable recommendations based on your numbers

  • success:

    Manageable Loan Impact

    The total true cost of $2,590 is relatively modest compared to the $20,000 borrowed. The short term and low rate help minimize the impact.

  • info:

    Interest Goes Back to You

    Unlike other loans, the $2,921 in interest is paid back into your own 401(k) account. This is why interest is not counted as a cost — it stays in your retirement savings.

  • warning:

    Job Change Risk

    If you leave your employer, most 401(k) loans must be repaid in full within 60-90 days. Failure to repay triggers income taxes and potentially a 10% early withdrawal penalty.

See what your numbers mean together.

Turn this result into a retirement plan you can test, adjust, and return to as life changes.

Build my retirement plan
Calculator guide

401(k) Loan Calculator: Repayments and Retirement Cost

Use this guide to understand the assumptions, inputs, results, and next steps behind the calculator.

Created by Luis Gonzalez · Last updated July 29, 2026

Overview

A 401(k) loan lets you borrow from your workplace retirement account and repay the balance, usually through payroll deductions. The loan may avoid the income tax and early-withdrawal penalty that can apply to a withdrawal, but it removes money from investments while the loan is outstanding. Use this calculator to estimate payments and compare the repayment cost with possible lost investment growth.

The calculator uses your loan amount, interest rate, loan term, account balance, expected market return, origination fee, and any employer match you might miss while repaying. Its estimates are projections, not guarantees: investment returns vary, and your plan’s loan rules determine what you can borrow and how repayment works.

1

Start With the Loan Terms

Enter the amount you plan to borrow, the loan’s annual interest rate, and the repayment term. Add your current 401(k) balance to help evaluate the size of the loan relative to your account. The expected market return estimates the growth the borrowed money might otherwise have earned. Include the origination fee and any employer match you expect to forgo.

The calculator’s payment schedule shows each month’s payment divided into principal and interest, plus the remaining balance. If you want to focus on the payment timeline, use the 401(k) Loan Repayment Calculator. For a 403(b) or federal Thrift Savings Plan loan, compare the 403(b) Loan Calculator and TSP Loan Calculator.

2

How a 401(k) Loan Can Cost More Than Its Interest

Loan interest is generally credited back to your account, but that does not make borrowing cost-free. The borrowed amount may miss investment growth, and repayments may not restore the investments at the same pace or price they would have had without the loan. The loan also adds a fixed payroll deduction that can make it harder to keep contributing enough to receive the full employer match.

Consider a $20,000 loan at 5.5% repaid monthly over five years. The monthly rate is 5.5% ÷ 12 = 0.4583%, and the number of payments is 5 × 12 = 60. The amortizing payment formula gives an approximate payment of $382 per month. Total scheduled payments are about $382 × 60 = $22,920, or approximately $2,920 in interest, before any origination fee. Actual figures may differ because plans can use different payment conventions and round each installment.

Now compare the loan rate with an assumed 7% annual market return. If $20,000 remained invested for five years at a steady 7%, its projected growth would be:

$20,000 × (1.07^5 − 1) = about $8,051

That is a hypothetical comparison, not a guaranteed loss. It assumes the money would earn 7% every year and does not model the timing of repayments back into the account. The calculator’s opportunity-cost estimate should therefore be read as a scenario, not a bill you will owe.

A loan can also affect saving behavior. If payroll deductions cause you to reduce contributions, you may lose some or all of an employer match. Check whether you can keep contributing while repaying. A 401(k) Contribution Calculator can help assess contribution levels, while the 401(k) Paycheck Impact Calculator estimates how a contribution change affects take-home pay.

3

Federal Loan Rules and Plan Terms

Federal tax law generally limits a plan loan to the lesser of $50,000 or 50% of your vested account balance, with special rules that may allow a small loan when 50% of the vested balance is less than $10,000. A plan can impose stricter limits or offer no loans at all. The IRS explains plan loan limits and repayment rules.

Most plan loans must be repaid within five years, with payments made at least quarterly. A loan used to buy a primary residence may qualify for a longer repayment period if the plan permits it. Interest rates and fees are set under the plan’s terms; ask the plan administrator for the actual rate, repayment schedule, and fees before borrowing. The U.S. Department of Labor describes participant rights and plan information.

Leaving your job can create a repayment deadline or a risk that the outstanding balance will be treated as a distribution. Read the loan agreement for the rules that apply after separation from service. If a loan is not repaid and becomes a taxable distribution, the 401(k) Loan Default Penalty Calculator estimates possible taxes and penalties. For the tax treatment of ordinary withdrawals, see how 401(k) withdrawals are taxed in retirement.

4

Formula: Monthly Payment and Growth Comparison

The standard fixed-payment formula spreads principal and interest over equal payment periods.

Periodic interest rate = annual interest rate ÷ payments per year

Monthly payment =
loan amount × periodic interest rate × (1 + periodic interest rate)^number of payments
÷ [(1 + periodic interest rate)^number of payments − 1]

For the example, the periodic rate is 5.5% ÷ 12 = 0.004583, and the number of payments is 60. Substituting those values and $20,000 into the formula gives approximately $382 per month.

Total scheduled payments = monthly payment × number of payments

Total interest = total scheduled payments − loan amount

Using the rounded payment: $382 × 60 = $22,920, then $22,920 − $20,000 = about $2,920 in interest. A schedule calculated with unrounded payments will produce a slightly different total.

Projected growth missed =
loan amount × [(1 + expected annual return)^loan term − 1]

At 7% for five years: $20,000 × (1.07^5 − 1) ≈ $8,051. The estimate does not model market volatility, repayment reinvestment, or taxes.

5

Compare Different Loan Scenarios

These examples vary the loan size, rate, and term. Payments are approximate monthly amortizing payments and exclude fees.

Loan amountAnnual rateTermApproximate monthly paymentApproximate interest over term
$10,0005%3 years$299.71$789
$15,0006%4 years$352.27$1,909
$30,0007%5 years$594.02$5,641

A longer term generally lowers the required payment but increases total interest and keeps the money out of its original investments longer. A larger loan raises both the payment and the amount exposed to missed growth. Test the smallest amount and shortest affordable term that meet the need rather than borrowing the maximum.

6

When a Loan May Be a Poor Fit

A 401(k) loan can be risky if your income is unstable, you may change jobs, or the repayment deduction would cause you to stop contributing. Compare its total costs with alternatives such as a lower-cost personal loan, negotiating a payment plan, or using available savings while preserving an emergency reserve. A 401(k) Withdrawal Calculator can help compare a loan with a withdrawal, but withdrawals have different tax consequences.

Do not treat the loan as an investment strategy. Repaying interest to your own account does not guarantee that the borrowed funds would have earned less in the market. To see how contributions and compounding affect a retirement balance, use the 401(k) Compound Interest Calculator or 401(k) Future Value Calculator. If you are reviewing your overall savings plan, compare your results with the 401(k) Calculator and retirement calculator.

7

Next Steps Before Borrowing

Request the plan’s loan policy and confirm the maximum, interest rate, fees, payment method, and rules if you leave your job. Then test a lower loan amount, a shorter term, and the effect of maintaining your regular contributions. Compare the payment schedule with your monthly budget and review how your balance may grow using the 401(k) Max Contribution Calculator and 401(k) Contribution Calculator.

Frequently Asked Questions

Quick answers to the questions people usually have after running the retirement calculator.

1Does interest on a 401(k) loan go back into my account?

Usually, loan payments—including interest—are credited to your plan account, but this does not eliminate the opportunity cost. The borrowed money may miss market gains or losses, and repayments return over time rather than all at once.

2Is a 401(k) loan better than an early withdrawal?

A loan avoids an immediate taxable distribution if it follows plan and tax rules, but it must be repaid and can become taxable if it defaults. A withdrawal may be taxable and may face a 10% additional tax if you are under 59½, unless an exception applies. Compare both paths with the 401(k) Early Withdrawal Penalty Calculator.

3Can I borrow from a 401(k) if I have another plan loan?

Possibly, but the plan may limit the number of outstanding loans or apply federal limits that account for recent loan balances. Ask the plan administrator how it calculates your available loan amount.

4What happens if I leave my employer with a loan outstanding?

The plan may require repayment or apply its plan-specific procedures. An unpaid balance can become a taxable distribution or loan offset. The 401(k) Loan Default Penalty Calculator can estimate potential consequences, but the administrator must confirm your actual deadline.

5Should I borrow for an emergency or preserve my 401(k)?

That is a tradeoff between immediate liquidity and retirement investment risk. Compare the loan payment with your budget, likely job stability, fees, alternative borrowing costs, and the effect on employer matching. A loan that prevents a costly debt or missed housing payment may be preferable to a high-interest alternative, but it still reduces investment exposure.

6Does repaying the loan count as a 401(k) contribution?

No. Loan repayments are not elective salary deferrals and generally do not count toward the annual employee contribution limit or earn an employer match. Keep regular contributions separate from loan payments.

KEEP EXPLORING

Explore another question connected to this topic.

Browse all calculators