401(k) Loan Calculator — Max Loan, Payments & True Cost

Borrowing from your retirement? See your IRS maximum loan amount, monthly payroll payment, the interest you pay back to yourself — and the real opportunity cost of pulling money out of the market.

Quick answer: Borrowing from your retirement?

🏦 401(k) Loan Calculator

A 401(k) loan lets you borrow from your own retirement savings instead of a bank. You pay interest, but the interest goes back into your own account — which is why it looks cheaper than credit cards or personal loans. The real price tag is hidden: money pulled out of the market stops compounding, and if you leave your job before repaying, the unpaid balance can turn into a taxable distribution plus a 10% penalty. This calculator lays out both sides so you can decide with open eyes.

The IRS caps every 401(k) loan at the lesser of $50,000 or 50% of your vested balance, and general-purpose loans must be repaid within 5 years with regular payroll deductions. Most plans charge the prime rate plus 1 to 2 points — around 8 to 10% in recent years. Unlike a withdrawal, a properly repaid loan is not taxed and carries no penalty, and there is no credit check because you are borrowing your own money.

When does it make sense? The honest answer: mainly to kill high-interest debt (credit cards at 20%+) where the guaranteed interest savings beat the expected market return, or to cover a genuine emergency when no cheaper option exists. It is rarely wise for vacations, cars, or investments — the lost compounding plus the job-separation risk usually swamp the benefit. If you do borrow, repay as fast as your cash flow allows and keep contributing to the 401(k) during the loan so you don't lose the employer match.

How to use the 401(k) Loan Calculator

  1. Enter your vested 401(k) balance — only the vested portion counts toward your maximum loan.
  2. Add your annual salary to see how the payments fit your budget.
  3. Set the loan amount, interest rate and term (1 to 5 years, per IRS rules).
  4. Enter the market return you expect — this powers the opportunity-cost estimate.
  5. Click Calculate to see your max loan, monthly payment, interest paid to yourself, and the true cost of taking the money out of the market.

Tips before you borrow

  • Check your plan's specific loan policy first — some plans cap loans below the IRS maximum or charge origination fees.
  • Keep making 401(k) contributions during the loan if you can; some plans suspend your contributions while a loan is outstanding, which can cost you the employer match.
  • Build a separate payoff fund — if you change jobs, the balance often comes due within 60 to 90 days.
  • Double contributions after the loan is repaid to help recover the lost compounding years.

The cost most calculators skip: lost growth

Paying 9% interest to yourself feels free, but the borrowed money earns 0% in the market while it is gone. Over five years, $20,000 growing at 8% becomes roughly $29,400 — meaning about $9,400 of growth never happens. The interest you pay back into the account offsets part of that loss, but not all of it, because loan interest is a fixed repayment, not a market return. The calculator's "true net cost" line shows exactly this gap: lost growth minus the interest you paid yourself. That is the number to weigh against whatever the loan buys you.

Frequently asked questions

How much can I borrow from my 401(k)?

Under IRS rules, the maximum is the lesser of $50,000 or 50% of your vested account balance. Some plans apply a lower cap, so check your plan's loan policy before assuming the full amount.

Do I pay interest on a 401(k) loan?

Yes, but you pay the interest to yourself — it goes back into your own 401(k) account. Most plans set the rate at the prime rate plus 1 to 2 percentage points.

What happens to my 401(k) loan if I leave my job?

Most plans require the outstanding balance to be repaid shortly after you leave, often within 60 to 90 days. If you cannot repay, the balance is treated as a taxable distribution, and if you are under 59 and a half you may also owe a 10% early withdrawal penalty.

Is a 401(k) loan better than a bank loan?

A 401(k) loan has no credit check and the interest goes to your own account, so it can beat high-interest debt. But it carries two unique costs: lost market growth while your money is out of the account, and the risk of taxes plus penalties if you leave your job before repaying.

How long do I have to repay a 401(k) loan?

General-purpose 401(k) loans must be repaid within 5 years under IRS rules, with substantially equal payments at least quarterly. Loans used to buy your primary home may allow a longer repayment period, depending on your plan.

All calculations are estimates for personal use only, not financial advice. Plan rules vary — confirm limits, fees and repayment terms with your plan administrator.