Finance calculators

401k Loan Calculator

Updated Jul 31, 2026 By Jehan Wadia
Rate Formulas
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.
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
A 7% long-run average is a common planning assumption.
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
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
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.

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. That gap is the real price of borrowing, because the money you take out stops earning returns while it is gone. If you want to see how your balance builds when you leave it alone, try our 401k Calculator or the broader Retirement Calculator. The tool works the same way for 403(b) plans, since both follow the same IRS loan rules, and you can model that plan directly with our 403b Calculator.

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.

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. A quick check with our Monthly Budget Calculator can help you pick a number you can really live with.

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. To compare that cost against other borrowing, see our Loan Interest Calculator.

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 in 60 months, unless you are buying a main home.

Expected Annual Investment Return: Enter the growth rate you expect if the money stayed invested. Many people use 7% as a long-term guess. Our Compound Interest Calculator shows how that rate builds over decades.

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. If you are still deciding, our Retirement Age Calculator and When Can I Retire Calculator can help.

Click Calculate to see your results, charts, step-by-step math, and full amortization schedule. Click Reset / Start Over 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. 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. 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, your most you can borrow is $30,000. If your vested balance is $200,000, the cap is $50,000, not $100,000.

How Repayment Works

You pay the loan back in level payments, usually taken straight from your paycheck. The IRS says most plan loans must be paid off within 5 years (60 months). There is one main exception: if you use the loan to buy your main home, your plan may allow a longer term, often 10 to 15 years. If a home purchase is the reason you are borrowing, run the numbers with our Down Payment Calculator and Home Affordability Calculator first.

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. Our Amortization Calculator shows the same payment split for any fixed-rate loan.

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: borrowing $15,000 for 5 years means those dollars miss years of possible growth. If your account would have grown about 7% a year, the loss at retirement can be much larger than the amount you borrowed. You can test that gap yourself with our Future Value Calculator or the Investment Calculator.

Risks to Know Before You Borrow

  • Leaving your job: If you quit or are let go, many plans want the full balance paid back fast, often by the tax filing deadline.
  • Default: If you do not repay, the unpaid amount is treated as a withdrawal. You owe income tax on it, plus a 10% early withdrawal penalty if you are under age 59½. Our 401k Early Withdrawal Calculator shows what that would cost, and the 401k Withdrawal Calculator covers regular withdrawals.
  • Double taxing on interest: Loan payments come from your take-home pay, which was already taxed. See how much of your check is left after taxes with our Take Home Pay Calculator. That money is taxed again when you withdraw it in retirement.
  • Smaller contributions: Some people stop adding new money while repaying a loan. That can mean losing employer match dollars too.

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. Compare it against a Personal Loan Calculator, a Credit Card Payoff Calculator, or a Home Equity Loan Calculator before you decide. There is no credit check, and the rate is usually low. 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. Our Loan Payment Calculator turns any principal into a monthly figure.
  • 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. The Rule of 72 Calculator is a fast way to see how long money takes to double.

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
L_{max} = \min(0.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?

No. There is no credit check and no credit approval. You are borrowing your own money, so your credit score does not matter. The loan also does not show up on your credit report, and paying it back does not help your score.

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

That depends on your plan. Many plans allow only one loan at a time. Some allow two. The IRS $50,000 cap counts all of your plan loans together, not each one separately.

Why does the calculator lower the loan amount I typed in?

Your entry went over the IRS limit. The cap is 50% of your vested balance or $50,000, whichever is smaller. The tool drops the amount to that cap and shows a yellow notice telling you the new number.

What is the smallest loan I can take?

The IRS does not set a floor, but most plans set a minimum of $1,000. Some plans also let you borrow up to $10,000 even if that is more than half your vested balance. Check your plan rules.

Is the interest I pay tax deductible?

No. Interest on a 401(k) loan is not deductible, 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 you repay on time is not taxable income. You only owe tax if you default and the balance is treated as a withdrawal.

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

Most plans let you pay extra or pay it off in full with no penalty. 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.

How is my monthly payment figured out?

The tool 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. You can see each step in the Step-by-Step Solution box.

Why is my payment taken from my paycheck?

Plans use payroll deduction so payments never get missed. The money comes out of your take-home pay after taxes, so your paycheck 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 to yourself. The retirement gap is lost compound growth over many years. Missing growth on $15,000 for 25 years can cost far more than the interest on a 5-year loan.

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

Yes, in most plans. Keeping contributions going is smart because you keep any employer 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?

Many plans want the full remaining balance right away, often by your tax filing deadline for that year. If you cannot pay, the unpaid amount becomes a taxable withdrawal, plus a 10% penalty if you are under 59½.

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

Usually no. Most plans only allow loans for current workers. 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. 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?

Most plans fund a loan in a few business days to two weeks after approval. Online requests are usually faster than paper forms.

What return rate should I put in the projection box?

Many people use 7% as a long-run average for a stock-heavy mix. Use a lower number, like 4% or 5%, if you hold more bonds or want a careful estimate. A higher rate makes the loan look more costly.

Does the calculator save my numbers?

No. Nothing is stored or sent anywhere. All the math runs in your browser. Refreshing the page or pressing Reset brings back the default numbers.

Can I print or save my results?

Yes. Use your browser's print option. The page switches to a clean print layout, hides the input boxes and buttons, and shows the full amortization schedule so nothing gets cut off.

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

A loan is usually better if you can repay it. You avoid taxes and the 10% penalty, and the money goes back to work for you. A hardship withdrawal is permanent, taxed, and often penalized.