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
?
?
?
?
What-if at retirement
?
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 year | You repay | Of which interest | Still 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
- 26 U.S.C. 72(p): loans treated as distributions
- 26 CFR 1.72(p)-1: loans treated as distributions (questions and answers)
- IRS: Retirement plans FAQs regarding loans
- IRS: Retirement topics - Loans
- IRS: Considering a loan from your 401(k) plan?
- IRS: Fixing common plan mistakes - Plan loan failures and deemed distributions
- 26 CFR 1.402(c)-2: plan loan offsets and qualified plan loan offsets
- 26 U.S.C. 402(c)(3)(C): rollover of qualified plan loan offset amounts
- 29 CFR 2550.408b-1: Department of Labor rules for participant loans
- IRS Notice 2025-67: 2026 cost-of-living adjustments for retirement plans
Checked September 28, 2026.