A 401(k) loan lets you borrow money from your own retirement account balance, with the principal being the amount you take out. You repay that principal plus interest to yourself over a set term, typically five years. This page calculates your monthly payment and total interest based on the loan amount, interest rate, and term you enter.
Formula
The monthly payment for a 401(k) loan uses the standard amortization formula:
M = P × (r × (1 + r)^n) / ((1 + r)^n − 1)
Where:
- M = monthly payment (in dollars)
- P = principal loan amount (in dollars)
- r = monthly interest rate = annual percentage rate (APR) ÷ 12 ÷ 100
- n = total number of monthly payments = loan term in years × 12
Total interest = M × n − P.
Worked Example
Using the defaults from the calculator: P = $20,000, APR = 8%, term = 5 years.
- Convert APR to monthly rate: r = 8 ÷ 12 ÷ 100 = 0.0066667.
- Number of payments: n = 5 × 12 = 60.
- Plug into the formula: M = 20000 × (0.0066667 × (1.0066667)^60) / ((1.0066667)^60 − 1).
- Calculate (1.0066667)^60 ≈ 1.48985.
- Numerator: 20000 × (0.0066667 × 1.48985) ≈ 20000 × 0.0099323 ≈ 198.65.
- Denominator: 1.48985 − 1 = 0.48985.
- M ≈ 198.65 / 0.48985 ≈ 405.53.
So the monthly payment is $405.53. Total paid = 405.53 × 60 = $24,331.80. Total interest = 24,331.80 − 20,000 = $4,331.80.
Assumptions
- Fixed interest rate for the entire loan term.
- Payments are made at the end of each month.
- Interest compounds monthly at APR ÷ 12.
- This calculation does not include any plan fees, origination costs, or penalties that your specific 401(k) plan may charge.
How a 401(k) Loan Works
When you take a 401(k) loan, you are borrowing from your own account balance. The plan administrator typically allows you to borrow up to 50% of your vested balance, capped at $50,000 (these limits are set by law and your plan may have different rules). The loan is not a withdrawal—you do not pay income tax on the amount borrowed, and it does not count as a taxable distribution as long as you repay it according to the plan’s terms.
You repay the loan through payroll deductions, usually over a term of up to five years (longer if the loan is used to purchase a primary residence). The interest rate is set by your plan, often based on the prime rate plus a small margin. Crucially, the interest you pay goes back into your own account, not to a bank. So, in theory, you are paying yourself interest.
Choosing a Loan Amount and Term
The calculator lets you adjust the loan amount, interest rate, and term to see how they affect your payment and total interest. When choosing these inputs, consider:
- Loan amount: borrow only what you need. A larger loan means a higher monthly payment and more interest paid to yourself (though that interest is your money).
- Term: a shorter term means higher monthly payments but less total interest (again, interest you pay to yourself). A longer term lowers the monthly burden but increases the total interest.
- Interest rate: your plan sets this rate. Use the actual rate from your plan document for an accurate estimate.
Remember that your plan may have a minimum loan amount and may limit the number of outstanding loans you can have at once.
Common Problems and Risks
The biggest risk of a 401(k) loan is default. If you leave your job (voluntarily or not), the outstanding balance typically becomes due within a short period—often 60 to 90 days. If you cannot repay, the remaining balance is treated as a distribution: you owe income tax on it, plus a 10% early withdrawal penalty if you are under age 59½.
Another issue is the opportunity cost. While your money is loaned out, it is not invested in the market. If the market performs well, you could miss out on gains. Additionally, if you lose your job and cannot repay, you face the tax and penalty hit, which can be a serious financial setback.
Also, some plans do not allow contributions while a loan is outstanding, which would delay your retirement savings growth.
401(k) Loan vs. Other Borrowing Options
It helps to compare a 401(k) loan with other ways to borrow money:
- 401(k) loan: no credit check, interest paid to yourself, but risk of default if you leave your job, and potential lost investment growth.
- Personal loan from a bank or credit union: credit check, interest paid to the lender, but no impact on your retirement account if you default (though it hurts your credit).
- Home equity loan or HELOC: may offer lower rates, but uses your home as collateral and involves closing costs.
- Credit card cash advance: very high interest, not recommended for large amounts.
Each option has trade-offs. The right choice depends on your specific situation, your job stability, and the interest rates available to you. This calculator only shows the arithmetic for a 401(k) loan; it does not tell you which option is better.
Costs and Fees to Watch For
Many 401(k) plans charge a loan origination fee (e.g., $50–$100) and an annual maintenance fee (e.g., $25–$50). These are not included in the calculator because they vary by plan. Ask your plan administrator for a complete fee schedule before taking a loan.
Also note that the interest rate on a 401(k) loan is typically a few percentage points above the prime rate. As of a recent example, if the prime rate is 7%, your plan might charge 8% or 9%. Always use the exact rate from your plan in the calculator.
Safety and Tax Considerations
A 401(k) loan is generally not a taxable event when taken, but it becomes one if you default. The IRS treats a defaulted loan as a distribution, and you will receive a Form 1099-R. You may also face the 10% early distribution penalty if you are under 59½. There are exceptions, such as disability or death, but not for job loss.
To avoid default, make sure you can afford the payroll deduction and have a plan to repay the full balance if you change jobs. Some plans allow you to continue making payments after leaving your job, but this is not automatic—you must arrange it with your plan administrator.
This article explains the math behind 401(k) loans, but it is not financial advice. Always consult your plan documents and a qualified advisor before making a decision.
Frequently Asked Questions
Can I take a 401(k) loan if I still work for the employer?
Yes, most plans allow loans while you are employed. You must be a participant in the plan and have a vested balance. The plan sets the minimum loan amount and the maximum number of loans you can have at once.
What happens if I leave my job with an outstanding 401(k) loan?
Typically, you have until the tax filing deadline (including extensions) of the year you leave to repay the full balance. If you do not repay, the loan is considered a distribution, and you owe income tax plus a 10% early withdrawal penalty if under 59½.
Do I pay taxes on the interest I pay to myself?
No, the interest you pay into your 401(k) account is not tax-deductible, but it is also not taxed when you pay it. It becomes part of your account balance and will be taxed when you withdraw it in retirement, just like your other contributions and earnings.
Can I take a 401(k) loan for a down payment on a house?
Yes, many plans allow a longer repayment term (up to 15 or 25 years) for a loan used to purchase a primary residence. However, the plan must document the loan as a primary residence loan. The interest rate is usually the same as other 401(k) loans.
Is a 401(k) loan better than a hardship withdrawal?
A loan is generally better because it is not taxable (if repaid) and does not permanently reduce your retirement savings. A hardship withdrawal is taxable and may incur a 10% penalty, and you cannot pay it back. However, a loan still carries the risk of default if you leave your job.
The result from this calculator is an estimate; your plan’s official loan statement will show the exact payment and interest.
Related
Formula used
in p | Loan amount | $ | 20000 | 1 | 100000000 in apr | Interest rate (APR) | % | 8 | 0.01 | 100 in yrs | Loan term | years | 5 | 0.0833 | 50 out pmt | Monthly payment | $ | p * (apr / 1200) / (1 - (1 + apr / 1200) ^ -(yrs * 12)) | 2 out int | Total interest | $ | pmt * yrs * 12 - p | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard loan formula for this calculation, fixed rate and monthly compounding unless stated, rounded as each result states. Not financial advice; no lender, rate or product is recommended. See formulas and assumptions, the disclaimer or report an error.
More in this section
- JS Bank Credit Card: Features & How to Apply$405.53
- JD Gift Card Balance: How to Check It$60.00
- JD Bank Credit Card: How It Works & What to Know$405.53
- In-N-Out Gift Card Balance: Check & Use Guide$30.00
- JCPenney Credit Card Balance: How to Check It27 months
- Houston Metro Q Card Balance: Check & Add Funds$35.00