Home Calculators Finance401k Loan Calculator

401k Loan Calculator

Understand the true cost of borrowing from your 401k — monthly payments, lost investment growth, tax impact, and the full opportunity cost comparison.

401k Loan Details

IRS limit: lesser of $50,000 or 50% of your vested balance

Monthly Payment
--
per month
Total Repaid
--
principal + interest
Lost Investment Growth
--
at retirement
Retirement Balance Without Loan
--
With loan: --
True Total Cost
--
interest + opp. cost

401k Loan Key Facts

IRS Limit

$50k or 50% vested

Max Term

5 years (home: longer)

Double Taxation

Repaid with after-tax $

Default Risk

10% penalty + income tax

Guide Articles

Learn more about this calculator and how to use it

401k Loan Calculator: The Complete Guide to Borrowing From Your Retirement Savings Safely

Nearly 30% of Americans with a 401k plan have taken a loan against it  yet most do it without fully understanding the true cost. If you are thinking about tapping your retirement account, the smartest first step is to run the numbers. thecalculators.net offers free, accurate tools to help you make confident financial decisions  starting with the 401k Loan Calculator built specifically for this purpose.

What Is a 401k Loan?

A 401k loan is a provision that allows you to borrow money directly from your own retirement savings account. Unlike a traditional bank loan, you are essentially borrowing from yourself and paying yourself back — with interest. The loan is not treated as a taxable withdrawal as long as you repay it according to the plan terms.

The IRS sets clear limits on how much you can borrow. You can take up to 50% of your vested 401k balance or ,000 — whichever is lower. Repayment is typically required within five years, except when the loan is used to purchase a primary home.

This option is available through most employer-sponsored 401k plans, though not all employers are required to offer it. Before borrowing, always confirm your plan's specific rules with your HR department or plan administrator.

The Formula and How It Is Calculated

The core calculation behind a 401k loan is a standard amortized loan formula. Each monthly payment covers both interest and a portion of the principal. Here is the formula:

Monthly Payment = P × [r(1 + r)^n] ÷ [(1 + r)^n − 1]

Where:

· P = Principal loan amount (the amount borrowed)

· r = Monthly interest rate (annual rate ÷ 12)

· n = Total number of monthly payments (loan term in months)

The interest rate on a 401k loan is typically set at the prime rate plus 1% or 2%, depending on your plan. As of 2024 the prime rate was around 8.5%, so many plans charged 9.5% to 10.5% on 401k loans.

A critical secondary calculation involves the opportunity cost — the investment growth you miss by having that money pulled out of the market during the loan period. A thorough 401k loan calculator factors this in so you see the full picture.

Step by Step Calculation Example with Real Numbers

Let's walk through a real example so you can see exactly how the math works.

Scenario: You borrow ,000 from your 401k at an interest rate of 6.5% per year, to be repaid over 5 years (60 months).

Step 1 — Find the monthly interest rate: r = 6.5% ÷ 12 = 0.5417% = 0.005417

Step 2 — Apply the amortization formula: Monthly Payment = 20,000 × [0.005417 × (1.005417)^60] ÷ [(1.005417)^60 − 1]

(1.005417)^60 ≈ 1.3827

Monthly Payment = 20,000 × [0.005417 × 1.3827] ÷ [1.3827 − 1] = 20,000 × 0.007490 ÷ 0.3827 = 20,000 × 0.019573 = 1.46 per month

Step 3 — Calculate total repaid: 1.46 × 60 = ,487.60

Step 4 — Total interest paid: ,487.60 − ,000 = ,487.60

Step 5 — Opportunity cost estimate: If that ,000 had remained invested and earned an average of 7% annually, it would have grown to approximately ,071 over 5 years. The difference is your opportunity cost: roughly ,071 in foregone growth — a number the calculator surfaces for you automatically.

This is precisely why using a 401k loan calculator matters. The monthly payment alone does not tell the full story.

How to Use the 401k Loan Calculator

The 401k Loan Calculator at thecalculators.net is designed to be fast, intuitive, and genuinely informative. You do not need a finance degree to use it correctly.

Input Fields Explained

Field

What to Enter

Notes

Loan Amount

Dollar amount you plan to borrow

Cannot exceed 50% of vested balance or ,000

Annual Interest Rate

Your plan's stated loan interest rate

Check your plan document or HR portal

Loan Term

Number of months or years for repayment

Most plans max out at 60 months

Expected Annual Return

Your estimated investment return

Use 6% to 8% as a reasonable historical benchmark

Current 401k Balance

Total vested balance today

Used to calculate opportunity cost

Each field influences a different part of the output. The loan amount and interest rate drive your monthly payment. The expected return and current balance drive the opportunity cost projection. Filling in all fields gives you the most accurate and complete picture.

How to Read and Interpret Your Results

Once you submit your inputs, the calculator returns several key outputs:

Monthly Payment — This is the amount deducted from each paycheck. Compare this to your current take-home pay to confirm you can absorb it comfortably.

Total Interest Paid — Even though interest goes back into your own account, you are paying it with after-tax dollars and it will be taxed again at withdrawal — a hidden double-taxation effect many people overlook.

Opportunity Cost — This number represents what your account could have earned if the borrowed amount had stayed invested. It is arguably the most important figure on the page.

Break-Even Comparison — Some calculators show you how a 401k loan stacks up against a personal loan or home equity line of credit at a comparable rate. Use this to determine if borrowing from your retirement plan is actually the lowest-cost option.

Real World Examples and Use Cases

Example 1 — Emergency Medical Expense

Situation: Sarah has a 401k balance of ,000. She faces a ,000 medical bill not covered by insurance. Her credit card rate is 22%. Her plan offers a 401k loan at 7.5%.

She borrows ,000 at 7.5% over 3 years (36 months).

Monthly payment = 15,000 × [0.00625 × (1.00625)^36] ÷ [(1.00625)^36 − 1] (1.00625)^36 ≈ 1.2510 = 15,000 × 0.007819 ÷ 0.2510 = 7.35 per month

Compared to carrying ,000 on a 22% credit card, the 401k loan saves Sarah roughly ,800 in interest over the same period — a compelling case for the loan.

Key risk: If Sarah leaves her job, the remaining balance may be due in full within 60 to 90 days. If she cannot repay it, the outstanding balance becomes a taxable distribution with a 10% early withdrawal penalty if she is under 59½.

Example 2 — Home Down Payment Supplement

Situation: Marcus has 0,000 in his 401k and wants to buy a home. He needs an extra ,000 for his down payment. His plan allows loans for primary home purchases with a 10-year repayment term.

He borrows ,000 at 8% over 10 years (120 months).

Monthly payment = 30,000 × [0.006667 × (1.006667)^120] ÷ [(1.006667)^120 − 1] (1.006667)^120 ≈ 2.2196 = 30,000 × 0.01480 ÷ 1.2196 = 3.99 per month

Total paid = 3.99 × 120 = ,678.80 Total interest = ,678.80

The longer repayment term reduces the monthly burden but significantly increases total interest. Marcus needs to weigh this against the expected appreciation of his home and whether the 401k loan is cheaper than a second mortgage or PMI-heavy loan. Use the mortgage calculator alongside the 401k loan tool to compare these scenarios side by side.

Best Practices and Expert Tips

1. Borrow the minimum needed. Every dollar pulled from your retirement account stops compounding. Borrow only what you cannot cover through other means.

2. Repay faster than required. Most plans allow early repayment without penalty. Paying an extra to 0 per month can significantly reduce your opportunity cost.

3. Do not quit your job while the loan is outstanding. If you leave your employer voluntarily or are laid off, most plans require full repayment within 60 to 90 days. Failure to repay triggers taxes and penalties.

4. Continue contributing to your 401k while repaying. This preserves your employer match and keeps compounding working in your favor. If you stop contributing entirely, you lose the match — effectively a guaranteed 50% to 100% loss on those potential dollars.

5. Model multiple scenarios. Use the calculator to test a 3-year vs a 5-year term. Sometimes a slightly higher monthly payment dramatically reduces the opportunity cost.

6. Compare to alternatives first. Before borrowing from your 401k, check your budget estimator to see if the expense can be absorbed over time without borrowing. Also compare against a HELOC, personal loan, or 0% APR credit card offer.

7. Understand your plan's specific rules. The IRS sets maximums but your employer's plan may be more restrictive. Some plans only allow one loan at a time. Some charge an origination fee of to 0.

Common Mistakes and Misconceptions

Mistake 1 — "I am paying myself back so there is no real cost." This is the most common misconception. The interest you pay goes back into your account, yes — but you are paying it with after-tax dollars. When you later withdraw that money in retirement, you pay income tax on it again. That is double taxation on the interest portion.

Mistake 2 — Ignoring opportunity cost entirely. According to Vanguard's 2023 How America Saves report, the average 401k loan balance was approximately ,000 to ,000. On a ,000 loan over five years, assuming a 7% annual return foregone, the opportunity cost can exceed ,000. That cost is real even if it is invisible.

Mistake 3 — Using a 401k loan to fund discretionary spending. Taking a retirement loan to pay for a vacation, new car, or luxury purchase is financially damaging. The opportunity cost and repayment burden are not justified by non-essential spending.

Mistake 4 — Taking the maximum loan without considering job stability. If there is any chance you might change jobs in the next year or two, borrowing the maximum ,000 is extremely risky. A job change with an outstanding loan balance could trigger an immediate tax bill plus penalty.

Mistake 5 — Confusing a 401k loan with a 401k hardship withdrawal. A hardship withdrawal is permanent — the money is gone from your account and you owe income taxes plus a 10% penalty if under 59½. A loan is temporary and repaid. These are fundamentally different options with different consequences.

Feature

401k Loan

Hardship Withdrawal

Money leaves account

Temporarily

Permanently

Income tax owed

No (if repaid)

Yes immediately

Early withdrawal penalty

No (if repaid)

Yes (if under 59½)

Repayment required

Yes

No

Impact on future growth

Opportunity cost

Permanent reduction

Related Tools and When to Use Them

Financial decisions rarely exist in isolation. The 401k loan decision often connects to broader budgeting, home buying, and insurance planning. Here are the most relevant tools to use alongside the 401k loan calculator.

Mortgage Calculator — If you are borrowing from your 401k to boost a home down payment, run your mortgage figures here first. A larger down payment may eliminate PMI and reduce monthly payments enough to justify the 401k loan.

PMI Calculator — Use this to quantify exactly how much PMI costs per month at your expected loan-to-value ratio. If avoiding PMI saves more than the opportunity cost of the 401k loan, the math may favor borrowing.

IUL Calculator — Indexed universal life insurance is sometimes proposed as an alternative savings vehicle that avoids the 401k loan dilemma altogether. Model IUL projections here.

Cap Rate Calculator — If the reason for the 401k loan is a real estate investment, run cap rate analysis to confirm the investment return justifies the loan cost.

Budget Estimator Calculator — Before taking any loan, model your monthly cash flows. The budget estimator helps confirm whether you can comfortably absorb the loan repayment without financial strain.

Conclusion and Next Steps

A 401k loan is one of the most accessible borrowing options available to American workers — but it carries hidden costs that a simple monthly payment figure will never reveal. The opportunity cost, double-taxation on interest, and job-change risk are real consequences that must be modeled before you decide.

The smartest path starts with accurate numbers. Use the 401k Loan Calculator to model your exact scenario: enter your loan amount, interest rate, term, and expected return. Compare the monthly payment to your budget. Then compare the total cost against alternatives like a personal loan or HELOC.

If you are planning a major purchase alongside this decision — a home, for example — run your figures through the mortgage calculator and PMI calculator as well. A complete financial picture prevents costly surprises.

Knowledge and calculation are the two tools that separate informed retirement decisions from costly mistakes. Run your numbers today.

ADVERTISEMENT

Promote your business here.
Contact us for advertising.

SPONSORED

Promote your business here.
Contact us for advertising.

FEATURED

Promote your business here.
Contact us for advertising.

Frequently Asked Questions