Skip to content
Omnikalc

401(k) loan calculator: what does it really cost to borrow from your retirement plan?

Enter the loan, the interest rate and the return you expect to see the repayment, the lost growth and the full cost.

Updated on
Your inputs
$

Value out of range

% a year

Value out of range

years

Value out of range

% a year

Value out of range

%

Value out of range

$

Value out of range

Results

Total cost of the loan

$2,240

Monthly repayment
$410
Interest you pay to your own account
$4,620
Growth you give up compared with staying invested
$1,131
Staying invested would have grown more The market return you give up is higher than the interest you pay yourself.
Tax paid twice on the loan interest
$1,109
Most the plan lets you borrow
$40,000
Tax and penalty if the loan is not repaid and you are under 59½
$6,800

Many employer plans let you borrow from your 401(k). You may borrow the lesser of $50,000 or half of your vested balance, and you repay the loan, with interest, through payroll deductions over up to five years (longer for a home purchase). The interest you pay goes back into your own account, so it can look like a loan with no cost. It does have costs: while the money is out, it is not invested, and you repay with after-tax dollars that will be taxed again when you withdraw them. This calculator shows the repayment, the growth you give up, the tax paid twice and the total cost.

How the calculation works

  • Repayment = the standard loan payment for the amount, rate and term
  • Interest to yourself = total repayments − amount borrowed
  • Growth given up = what the money would have grown to if it stayed invested − the value of your repayments invested at the same return
  • Tax paid twice = interest × your tax rate, since the interest is paid with after-tax money and taxed again at retirement
  • Total cost = growth given up + tax paid twice

Example

You borrow $20,000 at 8.5 % over 5 years, so you repay $410 a month, which includes $4,620 of interest paid to yourself. If the plan would have earned 10 % a year, staying invested would have grown $1,131 more than the repayments do. The interest is taxed twice for $1,109, so the loan costs about $2,240. You could borrow up to $40,000 with a vested balance of $80,000.

Why it matters

A 401(k) loan is often cheaper than a credit card or a personal loan, and it has no credit check. Its true cost depends on the return you give up. If the markets rise more than the interest rate on your loan, you lose; if they rise less, you gain. The biggest danger is leaving your job: the balance usually becomes due by your tax filing deadline for that year, and any amount not repaid is treated as a withdrawal, taxed as income, with a 10 % penalty if you are under 59½.

Good to know

Not all plans allow loans, and some stop your contributions or the employer match while you repay. Plans set their own limits on the number of loans. Interest is not deductible for most people. If you are a few years from retirement, the lost growth hurts more, since you have less time to catch up. Compare the loan with other choices, such as a home equity line, a personal loan, or a hardship withdrawal, which costs far more in tax and penalties.

In practice

Borrow only what you need, keep your contributions going if the plan allows it, and plan for repayment if you may change jobs. This tool is educational and is not financial advice.

Frequently asked questions

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

The lesser of $50,000 or half of your vested balance, and some plans let you borrow up to $10,000 even if half is less.

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

Yes, but the interest goes back into your own account, so you pay it to yourself.

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

The balance usually becomes due by your tax filing deadline. Anything unpaid is treated as a withdrawal, taxed as income, with a 10 % penalty before 59½.

Is a 401(k) loan taxed twice?

The interest is. You repay with after-tax dollars, and those dollars are taxed again when you withdraw them in retirement.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.