IQCalculators

401(k) Loan Calculator

Estimate the cost and repayment of borrowing from your 401(k).

Monthly Payment (calculated)
$581
Total Payments
$69,641
FV of Loan Investment
$89,542
Future Value of 401K
$81,445
Future Value Difference
$8,098
Loan InformationInvestment Information
YearYears LeftBoY BalancePaymentPrincipalInterestExtra Annual PaymentFV of InvestmentFV of 401KDifference
110$50,000$6,972$3,586$3,386
$53,000$52,500$500
29$46,414$6,972$3,845$3,127
$56,180$55,125$1,055
38$42,570$6,972$4,123$2,849
$59,551$57,881$1,670
47$38,447$6,972$4,421$2,551
$63,124$60,775$2,349
56$34,026$6,972$4,740$2,232
$66,911$63,814$3,097
65$29,286$6,972$5,083$1,889
$70,926$67,005$3,921
74$24,203$6,972$5,450$1,522
$75,182$70,355$4,826
83$18,752$6,972$5,844$1,128
$79,692$73,873$5,820
92$12,908$6,972$6,267$705
$84,474$77,566$6,908
101$6,641$6,893$6,641$252
$89,542$81,445$8,098
Total$69,641$50,000$19,641$0

Estimates only, not financial, tax, or legal advice. See our Terms and Privacy Policy.

Borrowing from your 401(k) feels like the cheapest loan there is: you're paying yourself interest. But the real cost is hidden. While the borrowed money is out of the market, it stops compounding, and that foregone growth often dwarfs the interest you're paying yourself.

Before you commit, check how this payment affects your debt-to-income ratio.

This calculator amortizes the loan you repay to your own account, then compares two fixed benchmarks: what that money would have grown to if it had stayed invested, versus what it grows to inside the 401(k) while the loan is outstanding. The gap between them is the loan's real cost.

How does this calculator work?

Enter the amount you want to borrow, the interest rate you'll pay back to your own account, and the repayment term in years. The calculator computes the fixed monthly payment (rounded to the nearest dollar, matching how most plan administrators quote it) and builds the full amortization schedule.

Click Show Additional Fields to reveal three more inputs. Extra Monthly Payment adds extra principal each month to pay the loan off faster, and fills the data table's Extra Annual Payment column (which you can also edit row by row for an uneven payoff plan). 401k Interest Rate is what you expect your 401(k) to earn on average going forward; Loan Investment Rate is what you'd expect from investing that same money outside the 401(k) instead. Both default to 5% and 6%, and both drive the Investment vs. 401K comparison.

The FV of Investment and FV of 401K columns project the original loan amount forward at those two rates, independent of any extra payments, so the comparison always answers the same question: what did taking this loan cost you, versus leaving the money invested?

Worked example

Borrow $50,000 from a 401(k) at 7%, repaid over 10 years.

Loan amount
$50,000
Rate / term
7% / 10 yrs
Monthly payment
$581
Total repaid (to self)
$69,641
If left invested at 6%
$84,474
401(k) balance at 5% (with loan out)
$77,566
Gap (the loan's real cost)
$6,908

How the numbers work

The $581 payment is the amortization result for $50,000 at 7% over 120 months, rounded to the nearest dollar the way plan administrators quote it. Over 10 years that adds up to $69,641 repaid: the $50,000 principal plus $19,641 of interest paid to yourself.

Left invested at the default 6% Loan Investment Rate, that same $50,000 would grow to $84,474 over 10 years. Modeled at the default 5% 401k Interest Rate instead, it reaches $77,566. The $6,908 gap between those two figures is the real cost of the loan: money the account would have had if you hadn't borrowed against it, separate from and larger than the $19,641 of interest you can see yourself repaying.

That gap is why a 401(k) loan is rarely truly “free.” It can still beat 20%+ credit card debt, but compare it against the opportunity cost shown here, not just the loan rate.

The job-change risk

The biggest danger of a 401(k) loan isn't the interest. It's what happens if you leave or lose your job. Many plans require the outstanding balance to be repaid quickly, and unpaid balances become taxable distributions. Before age 59½ that usually means income tax plus a 10% early-withdrawal penalty on top of it.

Because of this, a 401(k) loan is safest when your employment is stable and the term is short. If there's a real chance you'll change jobs before repaying, the risk often outweighs the convenience.

Advertisement

401(k) Loan Calculator glossary

401K Loan Amount
The amount you borrow from your retirement balance.
Payback Period
The number of years over which you repay the loan.
Total Interest (to self)
The interest you pay back into your own account over the loan.
Extra Monthly Payment
An extra amount paid each month, applied to principal to pay the loan off sooner. Fills the data table's Extra Annual Payment column, which can also be edited row by row.
401k Interest Rate
What you expect your 401(k) to earn on average going forward. Used to project the Future Value of 401K. Defaults to 5%, editable under Show Additional Fields.
Loan Investment Rate
The estimated average return you'd expect from investing the loan amount outside your 401(k) instead. Used to project the Future Value of Investment. Defaults to 6%, editable under Show Additional Fields.
FV of Investment
What the borrowed amount would grow to if left invested in the market, at the Loan Investment Rate you set (default 6%).
FV of 401K
What the balance grows to inside the 401(k) at the 401k Interest Rate you set (default 5%).
FV Difference (final year)
The gap between those two figures: the real cost of borrowing, separate from the interest you see yourself repaying.
Opportunity Cost
The market growth the borrowed money misses while it's out of the account. The true cost of a 401(k) loan.
Tax-Advantaged Growth
The tax-deferred compounding inside a 401(k) that a loan temporarily removes the borrowed amount from.
Deemed Distribution
An unpaid loan balance (often triggered by leaving your job) treated as a taxable withdrawal, with a possible 10% penalty before 59½.

401(k) Loan Calculator FAQs

Is borrowing from my 401(k) a good idea?+

It can be cheaper than high-interest debt, but you lose tax-advantaged growth and risk owing the balance quickly if you leave your job. Weigh the opportunity cost shown here, not just the interest rate.

What happens if I leave my job?+

Many plans require repayment soon after you leave. An unpaid balance is treated as a taxable distribution, often with a 10% penalty before age 59½.

Don't I just pay the interest to myself?+

Yes, but that's not the whole picture. While the money is borrowed it isn't invested, so it misses market growth. That foregone growth is the true cost, and it often exceeds the interest you repay.

Can I change the 6% and 5% growth assumptions?+

Yes. Click Show Additional Fields to reveal 401k Interest Rate and Loan Investment Rate, which default to 5% and 6% but are fully editable. There's also an Extra Monthly Payment field to model paying the loan off faster.

Related Calculators