401(k) Loan Calculator
Working
This 401(k) loan calculator answers three questions in one place. First, how much can you borrow from your 401(k) under the IRS rules? Second, what would the monthly payment be on that loan at the interest rate your plan charges? And third, if you take money out early instead of borrowing it, how much is the 10% additional tax? The loan limit follows the IRS formula exactly, and the early-withdrawal estimate follows the IRS rules for distributions before age 59½. Plans aren't required to offer loans, and your plan's own rules — including its interest rate and whether it allows loans at all — decide what you can do. Nothing on this page is a quote from your plan and nothing here is tax advice.
What this calculator does
A 401(k) loan isn't like a bank loan. For most people, the amount you can borrow is capped by a tax rule, the repayment schedule is set by tax law, and taking the money out permanently instead of borrowing it triggers a tax that many people don't expect. This calculator keeps those three things separate so each answer is clear. Part 1 applies the IRS maximum-loan rule to your vested balance and your loan history. Part 2 estimates the 10% additional tax on an early distribution, so you can see what cashing out would cost before you do it. Part 3 works out the monthly payment on a loan amount you put in, at the interest rate your plan charges, over a term that respects the 5-year repayment rule.
The distinction between borrowing and withdrawing matters more than most people realize. A loan is not a taxable distribution as long as it stays within the limits and is repaid on schedule — but if you leave the job or miss payments, the unpaid balance can become a taxable distribution, and the 10% additional tax can apply on top of ordinary income tax. A withdrawal, by contrast, is taxable income in the year you take it, and the 10% additional tax applies on top if you are under 59½ and no exception applies. Seeing the loan limit and the withdrawal tax side by side is the point of this page: the same $20,000 taken as a loan and taken as a withdrawal are two different decisions.
How this is calculated
The maximum new loan is the lesser of two limits. Limit (a) is $50,000 reduced by the excess of the highest outstanding loan balance during the 12-month period ending the day before the new loan over the outstanding balance on the date of the new loan. Limit (b) is the greater of 50% of the vested account balance or $10,000. The maximum is the smaller of (a) and (b), and it can't be less than $0. The monthly payment uses the standard amortization formula — M = P × r(1+r)n / ((1+r)n − 1) — with the loan amount, the plan-set rate you entered, and the term in years. For most people, the early-withdrawal estimate is 10% of the distribution amount when the person is under 59½ and no exception applies; it is $0 when the person is 59½ or older, or when an exception applies. Ordinary income tax on the distribution isn't included in that figure and must be counted separately.
Source
The loan limit, the 5-year repayment rule, the primary-residence exception, the rule that IRAs and IRA-based plans cannot offer loans, and the 10% additional tax with its exceptions are published by the Internal Revenue Service in IRS Retirement Topics — Loans, the IRS page on tax on early distributions, and IRS Topic 558 — Additional Tax on Early Distributions.
Limitations
This calculator applies the IRS limits; it doesn't apply your plan's own rules, which can be stricter. Plans aren't required to offer loans, and a plan that does offer them may cap the loan below the IRS maximum, limit the number of loans, or charge fees this calculator does not model. In practice, the early-withdrawal figure is only the 10% additional tax — ordinary federal and state income tax on the distribution is not included, and the total tax cost of a withdrawal is higher than the figure shown. In real terms, the payment estimate assumes a fixed rate and level monthly payments; your plan may require quarterly payments or a different schedule. In real terms, this is not tax advice: confirm the figures with your plan administrator and a tax professional before acting.
What each input means
Vested account balance. The part of your 401(k) that is fully yours. Employer matching or profit-sharing contributions may vest over time, so check your statement for the vested figure rather than the total balance. Outstanding loan balance now. What you still owe on an existing plan loan on the day of the new loan. Highest outstanding balance in the last 12 months. The peak you owed at any point in the 12 months before the new loan. For most people, this figure reduces the $50,000 limit, which is how the rule stops someone from repaying a loan and immediately borrowing the full $50,000 again. Distribution amount. The amount you would take out permanently, for the early-withdrawal estimate. Your age. The 10% additional tax applies to distributions taken before age 59½, unless an exception applies. Exception applies. Tick this only if one of the listed exceptions genuinely covers your distribution. Loan amount to repay. The amount whose monthly payment you want to see — often the maximum from Part 1. Interest rate your plan charges. The plan-set rate, entered by you; it never fills one in. Repayment term. Years to repay, up to 5 unless the loan buys a primary residence, in which case the term is set by the plan. Primary residence. Tick this only if the loan is used to buy your main home.
How to read your result
Read Part 1 first: the maximum loan is the smaller of the two limits, and the result names both limits so you can see which one binds. If limit (a) binds, an old loan is holding the maximum down, and repaying it or waiting for the 12-month window to pass can raise the amount available. If limit (b) binds, the vested balance is the constraint, and only a larger vested balance raises the maximum. In Part 2, a $0 additional tax does not mean the withdrawal is free: ordinary income tax still applies to the distribution, and that tax isn't shown here. In Part 3, check that the monthly payment fits your pay after the loan repayments are taken — plan loan repayments usually come out of your paycheck, so the payment reduces your take-home pay directly. If you leave the job, most plans require the loan to be repaid quickly, and any unpaid balance can become a taxable distribution.
Worked example
Take a vested balance of $80,000, no current loan and no loan in the last 12 months. Limit (a) is $50,000 minus ($0 minus $0), which is $50,000. Limit (b) is the greater of 50% of $80,000 ($40,000) or $10,000, which is $40,000. In real terms, the maximum new loan is the lesser of the two: $40,000 — the IRS's own example for this balance. With a vested balance of $120,000 instead, limit (b) is the greater of $60,000 or $10,000, which is $60,000, and the maximum is the lesser of $50,000 and $60,000: $50,000, again matching the IRS example. In practice, a third case: vested $80,000, a current balance of $10,000 and a highest balance of $30,000 in the last 12 months. Limit (a) is $50,000 minus ($30,000 minus $10,000) = $30,000, limit (b) is $40,000, so the maximum new loan is $30,000. On a $40,000 loan at 5% over 5 years the monthly payment is $754.85. On a $20,000 early distribution at age 45 with no exception, the 10% additional tax is $2,000 — and ordinary income tax applies on top of that.
Common questions
Can I borrow from an IRA?
No. IRAs and IRA-based plans — SEP, SIMPLE IRA and SARSEP — can't offer loans. Only a qualified plan such as a 401(k), 403(b) or governmental 457(b) can offer a loan, and only if the plan allows it.
Does every 401(k) plan offer loans?
No. Plans are not required to offer loans. Your plan document and your plan administrator decide whether loans are available, how many you can have, and what the rate and fees are.
How long do I have to repay a 401(k) loan?
Generally within 5 years, with payments at least quarterly and substantially level. The 5-year limit doesn't apply to a loan used to buy a primary residence; the term for that loan is set by the plan.
What happens if I leave my job with a loan outstanding?
Most plans require the loan to be repaid by the tax return due date (with extensions) for the year you leave, or sooner under the plan's rules. An unpaid balance can become a taxable distribution, and the 10% additional tax can apply if you're under 59½.
Is the 10% additional tax the only tax on an early withdrawal?
No. The distribution is also included in gross income and taxed as ordinary income. The 10% additional tax is charged in addition to that income tax. It estimates only the 10% part.
Is a 401(k) loan taxed?
A loan within the limits that is repaid on schedule is generally not a taxable distribution. Interest you pay goes back into your own account, but it is paid with after-tax money and the repayments aren't tax-deductible.