401(k) Loan Calculator
See the real cost of borrowing from your 401(k): the monthly payment, the interest, the retirement growth you give up, and how it compares to other ways to borrow.
Updated June 2026 with current IRS loan rules
You can borrow the lesser of $50,000 or half your vested balance.
Usually the prime rate plus 1%. You pay this interest back to your own account.
What the borrowed money would have earned if left invested.
Used only to estimate the tax if you leave your job before repaying.
Compare the alternatives
Monthly payment
$0
Total Interest
$0
paid back to yourself
Total Repayment
$0
principal plus interest
Opportunity Cost
$0
How it compares
| Option | Rate | Monthly | Real cost |
|---|
The 401(k) loan's interest is paid back to you, so its real cost is the retirement growth you give up, not the interest. The alternatives' interest leaves your pocket for good. A 401(k) loan can win on cost, but only if you keep your job and keep contributing.
If you leave your job
The double-taxation catch: you repay the loan with after-tax dollars from your paycheck, then pay income tax again when you withdraw that same money in retirement. The interest portion gets taxed twice.
View payment schedule
| # | Payment | Principal | Interest | Balance |
|---|
Want a second opinion?
Have a fiduciary advisor pressure-test your plan. Free to get matched, no obligation.
Get matched with an advisor →Sponsored. We may earn a referral fee.
Your PDF has been downloaded.
Check your downloads folder for your 401(k) loan report.
The borrowed dollars: invested vs repaid
If the loan amount stayed invested versus being pulled out and rebuilt by your repayments. The gap at retirement is the opportunity cost.
Projected values are estimates and are not guaranteed. Actual results will vary.
The basics
How a 401(k) loan works
You borrow from yourself
The money comes out of your own account, and the interest you pay goes back into it, not to a bank. There is no credit check and no effect on your credit score.
Limits are set by the IRS
You can take the lesser of $50,000 or half your vested balance. Repayment runs up to 5 years, or 15 years for a primary-home purchase.
Repaid through payroll
Level payments are deducted from your paycheck at least quarterly. The schedule above shows how each payment splits between principal and interest.
The money leaves the market
While borrowed, your money is not invested. If the market rises during the loan, you miss that growth. That gap is the opportunity cost.
Job loss accelerates it
Leave your job and the balance is generally due by your tax deadline. Unpaid, it becomes a taxable distribution with a possible 10% penalty.
Taxed on the way out, twice
You repay with after-tax pay, then pay income tax again when you withdraw it in retirement. The interest portion is effectively taxed twice.
Myth vs math
"It's free money, I'm paying myself back"
A 401(k) loan is often called free borrowing because the interest goes back to your own account. That is partly true, and it is why a 401(k) loan can genuinely beat a credit card. But "free" overstates it.
The cost hides in two places. First, the borrowed money is out of the market, so it misses any growth while you repay, and the interest you pay yourself is usually lower than what the market would have returned. Second, you repay with after-tax dollars and then pay tax again when you withdraw that money in retirement, so the interest is taxed twice.
None of that makes a 401(k) loan a bad choice automatically. Replacing 22% credit card debt with a 6% loan to yourself can be a smart move. The point is to see the real number. Run your own figures above, then switch to "Should I borrow?" to line it up against the alternatives.
If you borrow anyway
How to limit the damage
Keep contributing
The biggest hidden cost is pausing your regular contributions to afford the loan payment. Keep saving at least enough to capture your full employer match.
Borrow the minimum
Take only what you need. A smaller loan means less money out of the market and a smaller balance hanging over you if your job situation changes.
Repay faster than required
A shorter term gets your money back into the market sooner. If your plan allows extra payments without penalty, use them.
Watch your job stability
The loan is riskiest if your job may end. If a layoff is possible, an outstanding balance could turn into a taxable distribution at the worst time.
Compare before you commit
A 0% balance-transfer card or a HELOC may cost less in some cases. Run the comparison and let the numbers, not the convenience, decide.
Have a job-loss plan
Know that if you separate, you can usually repay or roll over the balance by your tax deadline to avoid taxes and the penalty. Keep that cushion in mind.
Keep going
Related calculators
401(k) Calculator →
See how your 401(k) grows with contributions and employer match, and what a loan pause would cost that trajectory.
Roth IRA Calculator →
A Roth IRA lets you withdraw your own contributions penalty-free, an alternative to a loan worth weighing.
Retirement Calculator →
Full retirement projection with a readiness score, so you can see how a loan fits the bigger picture.
Retirement Income Calculator →
Once you stop working, see how long your savings last under different withdrawal strategies.
IRA Calculator →
Project a Traditional IRA and check whether your contribution stays deductible.
Inflation Calculator →
See how inflation erodes the value of a dollar over the years your money is out of the market.