Finance calculators

401k Loan Calculator

Updated Nov 11, 2026 By Infinity Calculator Formulas Sources
Rate
Plan Type & Calculation Mode
Plan Type
Results apply equally to 401(k) and 403(b) participants under the same IRS loan rules.
What do you want to solve for?
Enter a loan amount and we will calculate the monthly repayment.
Loan Details
IRS cap = lesser of 50% of this balance or $50,000.
If half your vested balance is less than $10,000, some plans let you borrow up to $10,000. Plans do not have to offer this.
Used when solving for the monthly payment.
Used when solving for the maximum loan amount.
Typical plan loan rate = prime rate + 1%.
IRS rules generally require plan loans to be repaid within 5 years (60 months), except for loans used to purchase a primary residence.
Retirement Projection Inputs
The calculator starts at 7%. Try a lower rate for a more careful estimate.
Used to measure the years of growth you have left.
Must be greater than your current age.

Your 401(k) loan repayment schedule

Monthly Payment
$0.00
per month via payroll deduction
Loan Amount
$0.00
principal borrowed
Total of All Payments
$0.00
over the full term
Total Interest Paid
$0.00
paid back into your own account
Loan Payoff Date
—
final scheduled payment
IRS Maximum Loan Available
$0.00
lesser of 50% vested balance or $50,000, with no other plan loans in the last 12 months
Step-by-Step Solution
Retirement Impact Comparison
Scenario A — Without the Loan
$0
Starting vested balance$0
Years of growth0
Assumed annual return0.00%
Scenario B — With the Loan
$0
Balance left invested$0
Growth of remaining balance$0
Principal repayments (future value)$0
Estimated reduction in retirement savings due to this loan
$0
0.00% of the no-loan projection
Counts the principal you repay, not the interest you also pay back into your account
Opportunity Cost of Borrowed Funds
$0
Estimated investment growth lost while the funds are on loan — the borrowed dollars are out of the market for the loan term.
Loan Balance & Interest Over Time
Where Your Payments Go
Amortization Schedule

Introduction

A 401(k) loan lets you borrow money from your own retirement savings and pay it back over time. This 401(k) loan calculator shows you what that loan will cost each month, how much interest you will pay, and how much smaller your retirement savings may be later.

Enter your vested balance, how much you want to borrow, the interest rate, and the loan term. The calculator gives you your monthly payment, your total payments, your payoff date, and a full month-by-month payment schedule. It also checks the IRS limit for you, which is the lesser of half your vested balance or $50,000.1

You can also flip it around. Pick "Maximum Loan Amount," type in the payment you can afford each month, and the tool tells you the largest loan that payment can cover.

The best part is the retirement impact section. It compares two paths side by side: what your account could grow to if you never took the loan, and what it could grow to if you do, counting the principal you repay but not the interest. That gap is the real price of borrowing, because the money you take out stops earning returns while it is gone. The tool works the same way for 403(b) plans, since both follow the same IRS loan rules.

How to use our 401(k) Loan Calculator

Fill in a few facts about your retirement plan and the loan you want. The calculator shows your monthly payment, total interest, payoff date, your IRS loan limit, and how much the loan may cost your retirement savings.

Plan Type: Pick 401(k) or 403(b). The same IRS loan rules apply to both, so the math does not change.

What do you want to solve for: Choose "Monthly Payment" if you know how much you want to borrow. Choose "Maximum Loan Amount" if you know how much you can pay each month.

Vested Account Balance: Enter the money in your plan that you fully own. This sets your loan cap, which is 50% of the balance or $50,000, whichever is less.1

My plan offers the $10,000 exception: Tick this if your plan lets you borrow up to $10,000 when half your vested balance is less than $10,000. Plans do not have to offer this.1 The calculator never shows a loan larger than your vested balance.

Loan Amount: Type how much you want to borrow. If it is over the IRS limit, the tool lowers it for you. This box is used in Monthly Payment mode.

Desired Monthly Payment: Type the payment you can afford each month. The tool works backward to find the largest loan that fits. This box is used in Maximum Loan Amount mode.

Annual Interest Rate: Enter your plan's loan rate. Most plans charge the prime rate plus 1%. You pay this interest back into your own account.5

Loan Term (months): Enter how many months you will take to pay it back, or pick a preset. Most plan loans must be paid off within five years, unless you are buying a main home.1

Expected Annual Investment Return: Enter the growth rate you expect if the money stayed invested. The calculator starts at 7%. Use a lower rate for a more careful estimate.

Current Age: Enter your age today. This shows how many years your money has left to grow.

Expected Retirement Age: Enter the age you plan to retire. It must be higher than your current age.

Click Calculate to see your results, charts, step-by-step math, and full amortization schedule. Click Reset to try new numbers.

What Is a 401(k) Loan?

A 401(k) loan lets you borrow money from your own retirement savings and pay it back with interest. The money does not come from a bank. It comes out of your plan account, and your payments go back into that same account.5 Most 403(b) plans work the same way. Your employer's plan must allow loans, and not all of them do.

How Much You Can Borrow

The IRS sets a limit. You can borrow the lesser of 50% of your vested balance or $50,000.1 Vested means the part of the account you fully own, including any employer match you have earned the right to keep. So if your vested balance is $60,000, the most you can borrow is $30,000. If your vested balance is $200,000, the cap is $50,000, not $100,000. If half your vested balance is less than $10,000, your plan may let you borrow up to $10,000, but plans do not have to offer this.1 The limit also counts all of your loans from the plan together, and the $50,000 is lowered by how much your highest loan balance in the past 12 months was above what you owe now.3

How Repayment Works

You pay the loan back in equal payments that include principal and interest.3 They are usually taken straight from your paycheck. The IRS says most plan loans must be paid off within five years, with payments at least quarterly.1 There is one main exception: if you use the loan to buy your main home, your plan may allow a longer term.1 Plans often allow 10 to 15 years in that case.

The interest rate is set by your plan. A very common rate is the prime rate plus 1%. The good news is that the interest is paid to your own account, not to a lender.5

The Real Cost: Lost Growth

Even though you pay yourself back, a 401(k) loan can still cost you money. The dollars you borrow leave the market. While they are out on loan, they are not earning returns. That missed growth is called opportunity cost, and it can add up over many years because of compound interest.

Example: with the calculator's starting values, you borrow $15,000 of a $60,000 vested balance for 5 years, and your account would have grown 7% a year. With 25 years to retirement, the calculator shows your balance about $12,535 smaller than if you had not borrowed. That figure counts the principal you repay but not the interest, which also goes back into your account.

Risks to Know Before You Borrow

  • Leaving your job: If you quit or are let go, your plan may require you to repay the full balance.1 If you cannot, the unpaid amount is treated as a withdrawal. You can avoid the immediate income tax by rolling it over to an IRA or another eligible plan by the due date, including extensions, of your tax return for that year.1
  • Default: If you do not repay, the unpaid amount is treated as a withdrawal.1 You owe income tax on it, and if you are under age 59½ you may also owe a 10% additional tax unless an exception applies.2
  • Smaller contributions: If you cut your contributions to afford the loan payments, you may also lose employer matching contributions, which are made on what you contribute.

When a 401(k) Loan Can Make Sense

A plan loan may be a smart choice if you need cash for a short time, have a steady job, and would otherwise use a high-rate credit card or payday loan. There is generally no credit check, and the rate is often lower than other financing.5 It is a weaker choice if your job is shaky, if you are close to retirement, or if the loan would replace saving for your future. Building an emergency fund is often the better long-term fix.

Key Terms

  • Vested balance: The money in your plan that is truly yours.
  • Principal: The amount you borrow.
  • Amortization: The month-by-month plan showing how each payment splits between interest and principal.
  • Compound growth: Earnings that build on past earnings over time.

This information is for general learning only. Loan rules can differ by plan, so check your plan documents or talk with your plan administrator or a financial advisor before you borrow.


Formulas used

IRS maximum loan amount (general rule) 1
L_{max} = \min(50\% \times B_{vested},\; \$50,000)
Monthly interest rate
i = \frac{r_{annual}}{12}
Monthly loan payment (amortized)
M = \frac{P\,i}{1-(1+i)^{-n}}
Maximum loan supported by a desired payment
P = M \cdot \frac{1-(1+i)^{-n}}{i}
Total repaid and total interest
\text{Total} = M \times n, \qquad \text{Interest} = M \times n - P
Scenario A — projected balance without the loan
FV_A = B_{vested}\,(1+g)^{t}
Scenario B — projected balance with the loan
FV_B = (B_{vested}-P)(1+g)^{t} + \frac{P}{n}\cdot\frac{(1+g_m)^{n_{eff}}-1}{g_m}\,(1+g_m)^{12t-n_{eff}}, \quad g_m=(1+g)^{1/12}-1
Opportunity cost of borrowed funds
OC = \sum_{k=1}^{n} B_{k-1}\cdot g_m

Frequently asked questions

Do I need a credit check to get a 401(k) loan?

Generally no. A 401(k) loan does not need approval from an outside lender, so it generally does not trigger a credit check.5 You are borrowing your own money. The loan also does not appear on your credit reports or change your credit scores, so paying it back does not help your scores.5

How many 401(k) loans can I have at one time?

That depends on your plan, which sets the most loans you can have.1 The IRS limit counts all of your loans from the plan together: a new loan plus what you still owe on the others cannot go over it.3 The $50,000 is also lowered by how much your highest loan balance in the past 12 months was above what you owe now.3

What is the smallest loan I can take?

That depends on your plan. Federal rules let a plan set a minimum loan amount of up to $1,000.6 Some plans also let you borrow up to $10,000 even if that is more than half your vested balance.1 Check your plan rules.

Is the interest I pay tax deductible?

Not if the loan is secured by your 401(k) or 403(b) salary deferrals, or if you are a key employee.4 That holds even if you use the money to buy a home. That is one way it differs from a mortgage or home equity loan.

Does a 401(k) loan count as income on my taxes?

No. A loan that follows the IRS rules on amount, term and repayment is not taxable income.3 You owe tax on any part of a loan over the IRS limit, and on the unpaid balance if you miss the repayment schedule, because those amounts are treated as withdrawals.3 A balance left unpaid when you leave your job is also treated as a withdrawal, and it is taxed unless you roll it over to an IRA or another eligible plan by the due date, including extensions, of your tax return for that year.1

Can I pay off my 401(k) loan early?

Most plans let you pay extra or pay it off in full with no penalty.5 Paying early cuts your total interest and gets your money back in the market sooner. Ask your plan if extra payments are allowed by check or only by payroll.

What formula is used to calculate a 401(k) loan payment?

A 401(k) loan payment uses the standard loan payment formula: M = P × i ÷ (1 - (1 + i)-n). Here P is the loan amount, i is your yearly rate divided by 12, and n is the number of months.

Why is my payment taken from my paycheck?

Your loan payments are often deducted from your paycheck automatically, which makes repaying simpler.5 The payments are not plan contributions.3 They come out of your pay on top of any contributions, so your take-home pay will be smaller during the loan term.

What does the Opportunity Cost number mean?

It is the growth your borrowed dollars miss while they sit outside the market. Each month the tool multiplies your unpaid balance by your monthly expected return and adds it all up. It is a smaller, short-term view than the full retirement gap.

Why is the retirement impact bigger than the total interest I pay?

Interest is money you pay back into your own account.5 The retirement gap is the growth the borrowed money misses while it is out, and that missed growth keeps compounding until you retire. With the calculator's starting values, a $15,000 loan for 5 years at 8.5% costs $3,464.88 in interest, while the balance at retirement 25 years later is about $12,535 smaller.

Can I still contribute to my 401(k) while repaying a loan?

Yes, unless your plan's rules say otherwise. Loan payments are not plan contributions.3 An employer match is made on the contributions you put in, so keeping them going keeps the match. Stopping them makes the retirement gap much larger than this tool shows.

Does my spouse have to approve the loan?

Some plans require spousal consent in writing before they release loan money. Rules vary, so ask your plan administrator before you apply.

What happens if I lose my job before the loan is paid off?

Your plan may require you to repay the full remaining balance when you leave.1 If you cannot, the unpaid amount is treated as a withdrawal. You can avoid the immediate income tax by rolling all or part of it over to an IRA or another eligible plan by the due date, including extensions, of your tax return for that year.1 Any amount you do not roll over is taxable, and if you are under 59½ you may also owe a 10% additional tax unless an exception applies.2 One exception covers leaving your job in or after the year you turn 55.4

Can I take a loan from an old employer's 401(k)?

Only if that plan's rules allow it. To find out whether a plan offers loans, check with the plan sponsor or the Summary Plan Description.1 You also cannot borrow from an IRA at all. If you rolled an old 401(k) into an IRA, that money is off limits for loans.

Why can a home loan run longer than 60 months?

The IRS allows a longer term when the money buys your main home.1 Many plans then allow 10 or 15 years. This tool has 120 and 180 month presets for that case. Vacation homes and rentals do not qualify.

What fees should I expect?

Many plans charge a one-time setup fee, often $50 to $100, and sometimes a small yearly service fee. This calculator does not include fees, so add them to your own cost estimate.

How long does it take to get the money?

It depends on your plan, but the processing period is typically brief, and most plans let you apply online.5 Ask your plan administrator how long it takes.

What return rate should I put in the projection box?

No one knows future returns, so this box is your own estimate. The calculator starts at 7%. Try a lower number, like 4% or 5%, for a more careful estimate. A higher rate makes the loan look more costly.

Which is better: a 401(k) loan or a hardship withdrawal?

A loan is usually the better choice if you can repay it. A loan that follows the IRS rules is not taxed.3 Your payments, including interest, go back into your account.5 A hardship withdrawal is subject to income tax unless it comes from Roth contributions, may also face a 10% additional tax, and cannot be paid back to the plan.7


Sources

  1. Retirement topics: Plan loans. Internal Revenue Service. Accessed September 11, 2026.
  2. Topic no. 558, Additional tax on early distributions from retirement plans other than IRAs. Internal Revenue Service. Accessed September 11, 2026.
  3. Retirement plans FAQs regarding loans. Internal Revenue Service. Questions 4, 5, 7 and 8. Accessed November 11, 2026.
  4. Publication 575 (2025), Pension and Annuity Income. Internal Revenue Service. 2025;Loans Treated as Distributions (Denial of interest deduction); Tax on Early Distributions (Separation from service). Accessed November 11, 2026.
  5. What is a 401(k) Loan and How Do I Get One? Equifax. How does a 401(k) loan work?; Pros of a 401(k) Loan; Steps to get a 401(k) loan. Accessed November 11, 2026.
  6. 29 CFR 2550.408b-1, General statutory exemption for loans to plan participants and beneficiaries who are parties in interest with respect to the plan. Code of Federal Regulations, Title 29. Legal Information Institute, Cornell Law School. paragraph (b)(2). Accessed November 11, 2026.
  7. Retirement topics: Hardship distributions. Internal Revenue Service. Tax treatment of hardship distributions. Accessed November 11, 2026.