401k Loan Calculator

Maximum loan, payments and the cost to your balance

Maximum new loan under these inputs

$30,000

$180 per paycheck for the selected loan

?
The part of your account you own, from your plan statement
$
?
Outstanding balance of all loans from this employer's plans
$
?
The highest total you owed on loans from the plan in the 12 months before the new loan
$
$
?
Set by your plan; check your loan policy
6.50%
0.00%15.00%
?
Up to 5 years, unless the loan buys your principal residence

What-if at retirement

?
Yours and your employer's together
$
?
Average yearly return on the money that stays invested
7.0%
0.0%10.0%

Most you can borrow

$30,000

Payment per paycheck

$180

Payments

130

Total interest

$3,451

Borrowing $20,000 at 6.50% over 5 years means 130 level payments of $180, principal and interest together, $23,451 in all.

How your maximum is worked out

$50,000 less the drop from your 12-month high$50,000 minus ($0 - $0), if above zero$50,000
Half your vested balance, or $10,000 if moreOnly if your plan includes the $10,000 floor; the part above half your balance needs other security$30,000
Limit for all your loans togetherThe lower of the two, and never more than your vested balance$30,000
Less loans you owe now$0
Most you can borrow now$30,000

Your plan can set a lower limit, a minimum loan amount or a cap on the number of loans, and it does not have to offer loans at all.

What-if: your balance at 65

An illustration at an assumed 7.0% return, not a forecast

Without the loan

$848,467

With the loan

$847,762

Lower with the loan by

$706

The comparison starts from your vested balance, takes the loan out of invested money and assumes each repayment, interest included, goes back into your account. The difference is the gap between the assumed return and the loan's interest rate while the loan is out. It looks only at the account: the payments themselves, interest included, are money you pay in. It leaves out taxes and assumes you repay on schedule.

Repayment by year

Loan yearYou repayOf which interestStill owed
1$4,690$1,192$16,502
2$4,690$957$12,769
3$4,690$707$8,786
4$4,690$440$4,535
5$4,690$155$0

Loan repayments are not plan contributions, so they do not count toward your 401(k) limits.

By the Coast FIRE Calculator editorial team · Methodology · Official sources: 26 U.S.C. 72(p): loans treated as distributions; 26 CFR 1.72(p)-1: loans treated as distributions (questions and answers) · Sources checked September 28, 2026 · Corrections: hello@coastfirecalculator.io

How much you can borrow from a 401(k)

A plan does not have to offer loans, and if it does it can set a lower limit. The most the tax code allows without the loan being taxed is the lesser of two amounts, and it covers the new loan and everything you already owe the plan together:

  • $50,000, reduced by the amount by which your highest loan balance in the 12 months ending the day before the new loan is above your loan balance on the day of the new loan; or
  • half your vested balance, or $10,000 if that is more. The IRS says plans are not required to include the $10,000 exception, and a loan above half your balance needs security other than your account.

The 12-month rule stops you from repaying a loan and borrowing a full $50,000 again straight away. In the IRS example, Participant A has a vested balance of $100,000 and borrowed $40,000; a year later, owing $33,322, the $50,000 is cut by $6,678 to $43,322, so the new loan can be at most $10,000. All plans of the same employer and its related employers count as one plan for these limits.

Example Vested balance Owed now 12-month high Most you can borrow
IRS example: $40,000 balance $40,000 $0 $0 $20,000
IRS example: Bill $80,000 $0 $0 $40,000
IRS example: Sue $120,000 $0 $0 $50,000
Small balance, plan with the $10,000 floor $14,000 $0 $0 $10,000
Small balance, plan without it $14,000 $0 $0 $7,000
IRS example: Jim, first loan still owed $80,000 $18,000 $27,000 $22,000
IRS example: Jim, after repaying it $80,000 $0 $27,000 $23,000
IRS example: Participant A, one year into a $40,000 loan $100,000 $33,322 $40,000 $10,000

The IRS examples are from its loan FAQs and its Retirement topics page on loans; the calculator gives the same answers. The small-balance rows are this page's own example. The $50,000 and $10,000 amounts are written into IRC 72(p)(2)(A) and are not among the amounts the IRS adjusts for the cost of living in Notice 2025-67. Checked September 28, 2026.

401(k) loan repayment rules

The loan agreement has to require repayment within 5 years, in substantially level payments that include principal and interest, made at least quarterly. The 5-year limit does not apply to a loan used to buy a home that within a reasonable time will be your principal residence; the law sets no other term for it, so the plan does. Loan repayments are not plan contributions.

A plan can suspend payments for up to a year during an unpaid leave of absence, or one where your pay is too low to cover them, but the loan still has to be paid off within 5 years of the loan date, so you make up the missed payments with larger payments or a lump sum at the end. It can also suspend payments while you serve in the uniformed services and extend the term by that time.

Treas. Reg. 1.72(p)-1 Loan Payments Each payment Total interest
Q&A-20, Example 1 $40,000 Quarterly, 5 years $2,491 $9,815
Q&A-9, Example 1 $40,000 Monthly, 5 years $825 $9,529
Q&A-21 $20,000 Quarterly, 5 years $1,245 $4,908
Q&A-10 $20,000 Monthly, 5 years $413 $4,765
Same loan, every two weeks $20,000 Every two weeks, 5 years $190 $4,726

At 8.75%, the rate the regulation uses to illustrate its examples. The calculator reproduces the regulation's payments of $2,491 a quarter and $825 a month on $40,000, $1,245 a quarter on $20,000, and the $33,322 still owed a year into the quarterly loan. The regulation calls its rate compounded annually, but its figures match 8.75% divided evenly across the payments in a year, which is how the calculator applies your rate. The regulation does not print the monthly payment for its Q&A-10 loan; the calculator's $413 gives the balances it does print, shown in the next section. The last row is this page's own example, and the total interest column is the calculator's.

Who sets the interest rate

Your plan does. Under Department of Labor rules the plan's written loan program has to set out how it determines a reasonable rate of interest, and a rate is reasonable if it gives the plan a return in line with what businesses that lend money charge for similar loans. The IRS lists interest rate information among the details a plan may give you when you apply for a loan. Enter the rate from your plan's loan policy.

Missed payments and deemed distributions

A loan that breaks the rules becomes a deemed distribution. If the amount is over the limit, only the excess is deemed distributed when the loan is made: a $70,000 loan against a $200,000 balance gives a $20,000 deemed distribution. If the terms break the 5-year or quarterly payment rule, the whole loan is deemed distributed. If you stop paying, the whole balance still owed, including accrued interest, is deemed distributed.

A plan can allow a cure period, which cannot run past the last day of the calendar quarter after the quarter the missed payment was due. In the regulation's example, a $20,000 loan repaid monthly has its first missed payment on August 31, 2003; with a three-month cure period the deemed distribution is the $17,157 owed on November 30, and with a cure period to the end of the next quarter it is the $17,282 owed on December 31. The calculator reproduces both.

A deemed distribution is taxed like a withdrawal: the part not taxed before is income, and it may owe the 10% additional tax if you are under 59½. It cannot be rolled over, it does not end the loan, and repayments you make afterwards become tax basis in the plan. It still counts as outstanding when the plan works out how much more you can borrow.

Leaving your job with a 401(k) loan

A plan can require you to repay the whole balance when you leave or when the plan ends. If you do not, the plan can reduce your account by what you owe. This plan loan offset is an actual distribution, not a deemed one, so it is treated as a distribution and can be rolled over.

If the offset happens because the plan ended, or because you did not repay after leaving the employer and it happens within 12 months after you leave, and the loan met the loan rules just before, it is a qualified plan loan offset: you have until your tax return due date, including extensions, for the year of the offset to roll the same amount into an IRA or another plan, which avoids the immediate income tax on it. Any other offset has the usual 60-day rollover period.

Loans after a federally declared disaster

For a qualified individual, someone whose main home was in the area of a major disaster declared by the President during the incident period and who had an economic loss from the disaster, a loan made during the applicable period can be up to $100,000 and up to the whole vested balance instead of half (IRC 72(p)(6)). Repayments due in the period from the start of the incident to 180 days after it ends can be delayed for a year, if the plan allows these rules. The calculator uses the regular limits.

How the what-if comparison works

The comparison is an illustration, not a forecast. It starts both cases from your vested balance and grows the invested money at your assumed return, adding your yearly contributions. With the loan, the amount borrowed leaves the investments on day one, and each payment, principal and interest together, goes back into your account as you repay. So the loan costs you the gap between the assumed return and the loan's rate while it is out, and more if you stop contributing while you repay; if the rate is higher than the return, the loan comes out ahead in the account. It leaves out taxes, fees and the risk of default. For your 401(k) as a whole, use the 401k calculator.

Sources

Checked September 28, 2026.

Frequently Asked Questions

How much can I borrow from my 401(k)?
If your plan offers loans, the most is the lesser of $50,000 and half your vested balance. A plan can also let you borrow up to $10,000 when half your balance is less than that, but plans do not have to include that exception. With a vested balance of $80,000 you can borrow up to $40,000; with $120,000, up to $50,000. Loans you already owe count against the same limit.
How long do I have to repay a 401(k) loan?
Up to 5 years, in substantially level payments of principal and interest made at least every quarter. A loan used to buy your principal residence can run longer, if your plan allows it. Your plan sets the term and how you pay, for instance by payroll deduction.
Who sets the interest rate on a 401(k) loan?
Your plan. Its written loan program has to say how the rate is set, and under Department of Labor rules the rate must be reasonable: it has to give the plan a return in line with what commercial lenders charge for similar loans. Check your plan's loan policy or summary plan description for the current rate.
Can I have two 401(k) loans at the same time?
Only if your plan allows it. The new loan plus what you still owe cannot pass the limit, and the $50,000 is reduced by how far your highest loan balance in the past 12 months is above what you owe today. In the IRS example, Jim has a vested balance of $80,000, borrowed $27,000 and still owes $18,000, so he can borrow another $22,000. Repaying the first loan first would only raise that to $23,000.
What happens if I miss 401(k) loan payments?
The loan is in default and the whole balance still owed, with accrued interest, becomes a deemed distribution: taxed like a withdrawal, including any 10% additional tax before 59½. A plan can allow a cure period that runs until the end of the calendar quarter after the quarter the payment was due. You still owe the loan, and payments you make after the deemed distribution add to your tax basis in the plan.
What happens to my 401(k) loan if I leave my job?
Your plan can require you to repay the whole balance. If you do not, the plan can reduce your account by what you owe, a plan loan offset, which is treated as a distribution. If the offset happens because you left the employer (within 12 months after you leave) or because the plan ended, you can avoid the tax by rolling over the same amount to an IRA or another plan by your tax return due date, including extensions, for the year of the offset.
Does my spouse have to agree to a 401(k) loan?
Some plans require your spouse's written consent for a loan over $5,000. A profit-sharing plan such as a 401(k) may not require it at any amount if the whole death benefit goes to your surviving spouse unless they agreed to another beneficiary, the plan offers no life annuity, and it holds no transfer from a plan that had to offer a survivor annuity. Your plan's loan rules say which applies.
Can I take a loan from an IRA?
No. IRAs and IRA-based plans such as SEP, SARSEP and SIMPLE IRA plans cannot make loans. Borrowing from an IRA ends its status as an IRA, and the whole value is included in your income.

More Calculators

Privacy policy

Optional site analytics

Analytics is off by default. If you allow it, Google Analytics collects page usage and device information to help us improve these tools. We do not send calculator fields in analytics events, and we strip query strings from the page address we send. This choice is separate from Google's advertising consent message.