401(k) Loan Repayment Calculator
Enter your 401(k) loan amount, rate, term and pay frequency to see the deduction per paycheck, total interest, payoff date and a check against the IRS limit.
401(k) Loan Repayment Calculator
Your loan
The amount you borrowed, as shown on your loan notice.
The rate on your loan notice. Plans set it themselves, often at the prime rate plus 1 or 2 points.
Half-year steps. A general-purpose 401(k) loan must be repaid within 5 years.
Pay schedule
Use the schedule on your loan notice. Most plans take a deduction every paycheck. Not sure which you have? The pay frequency converter lays them side by side.
The pay date of the first paycheck the loan comes out of. Clear it to skip the dates.
IRS limit check
The vested amount on your latest 401(k) statement. Used only for the limit check.
Plans don't have to offer it. Your summary plan description says whether yours does.
Other loans from this plan
Leave at 0 if this is your only loan.
Your highest total loan balance at any point in the 12 months before this loan. Counts a loan you've already paid off.
That's more than your whole vested balance. Check the amount against your latest 401(k) statement.
A general-purpose 401(k) loan must be repaid within 5 years. Only a loan used to buy your principal residence can run longer, and only if your plan allows it.
Your highest balance in the past 12 months can't be lower than what you owe today. The check uses today's balance for both.
Your plan's $10,000 floor applies. A plan can count no more than half your vested balance as security (29 CFR 2550.408b-1(f)(2)), so a loan above half may need other security. Plans don't have to offer the floor.
Dates assume a deduction every scheduled payday. A holiday can move a payday, and a missed or skipped payday pushes the end date out.
IRS limit check
—
Add your vested balance to check the IRS limit.
Repayment schedule
Enter a loan amount above $0.
| # | Pay date | Deduction | Interest | Principal | Balance after | Year-to-date |
|---|
Find the row for a pay date, and its Deduction and Year-to-date columns are the two amounts for that stub's loan line. If your loan notice shows a different amount, use the notice.
Payslip44
Paystub Generator
Put the loan deduction on your pay stub
Add a Loan Repayment row under After-tax Deductions, type this amount and its YTD, and it comes back as a Recent item on your next stub.
Free · No sign-up needed
How your 401(k) loan deduction is worked out
The law requires a plan loan to be repaid in substantially level payments of principal and interest, so the amount that comes out of each paycheck is a standard amortized payment. Three things set it: the amount you borrowed, the annual interest rate, and the number of paychecks the loan runs over.
- Rate per paycheck = annual rate ÷ paychecks a year
- Number of deductions = years × paychecks a year
- Deduction = loan × rate per paycheck ÷ (1 − (1 + rate per paycheck)−deductions)
Take a $20,000 loan at 8% over 5 years, repaid biweekly. The rate per paycheck is 8% ÷ 26, and 5 years of biweekly pay is 130 deductions, which gives $186.89 a paycheck. Over the life of the loan you pay $4,296.48 of interest, so $24,296.48 comes out of your pay in total. The last deduction is $187.67 rather than $186.89: each paycheck's interest is rounded to the cent, and the final deduction picks up the leftover cents so the balance lands on exactly $0.00.
Dividing the annual rate by the number of paychecks is the convention that matches the Treasury's own worked examples. In Treas. Reg. §1.72(p)-1, a $40,000 loan at 8.75% over five years is repaid at $825 a month (Q&A-9) or $2,491 a quarter (Q&A-20). The monthly setting here gives $825.49, and the same math on a quarterly schedule gives $2,490.76, which the regulation rounds to $2,491.
Pay frequency changes the deduction even when the loan doesn't. The same $20,000 loan is $93.39 a paycheck weekly, $186.89 biweekly, $202.49 semi-monthly and $405.53 monthly. Biweekly (26 paychecks a year) and semi-monthly (24) are the pair people mix up, and picking the wrong one puts the deduction more than $15 off per paycheck. Your loan notice says which schedule the plan used.
The IRS rules behind the numbers
Under 26 U.S.C. §72(p)(2)(A), a plan loan can't be more than the lesser of $50,000 or half your vested balance. The IRS gives two quick examples: Bill, with $80,000 vested, can borrow up to $40,000; Sue, with $120,000 vested, is capped at $50,000.
If you've borrowed from the plan in the past year, the $50,000 shrinks. It drops by the gap between your highest loan balance in the 12 months before the new loan and what you owe on the day you take it. The IRS's example is Jim: $80,000 vested, a $27,000 loan taken eight months ago with $18,000 still owed. His loans together can't pass $40,000, so a second loan tops out at $22,000. Paying off the first loan wouldn't help much: the $27,000 high still counts, so he could borrow $23,000. That is why this calculator asks for both balances.
Some plans let you borrow up to $10,000 even when half your balance is less. The IRS says plans aren't required to include this exception, so the calculator leaves it off until you say your plan has it. There is a second catch: Labor Department rules let a plan count no more than half your vested balance as security for the loan (29 CFR 2550.408b-1(f)(2)), so a loan above half may need other collateral.
The loan has to be repaid within 5 years, in substantially level payments of principal and interest made at least quarterly. A loan used to buy your principal residence can run longer, for as long as the plan allows. Borrow more than the limit, or fall off the payment schedule, and the IRS treats the excess or the outstanding balance as a deemed distribution: taxable, and possibly subject to the 10% early distribution tax.
Plans can be stricter than the law. A plan can set a minimum loan amount, limit how many loans you have at once, or charge fees: Microsoft's plan, for one, has a $1,000 minimum and charges $35 to set up a loan plus $3.75 a quarter. Fees are plan-specific and aren't part of the math here. The plan also sets the rate; the Labor Department only requires a reasonable rate of interest. The $50,000, half-balance, $10,000 and 5-year figures are written into the statute and aren't adjusted for inflation, so the calculator builds them in.
What a 401(k) loan looks like on your pay stub
The repayment shows up as its own after-tax deduction, separate from your 401(k) contribution line. Loan repayments are not contributions: the IRS says so directly, which means they don't count toward the 2026 elective deferral limit of $24,500. The 401(k) max-out per paycheck calculator handles the contribution side, and the guide to pre-tax and post-tax deductions explains why the two lines sit in different sections.
The amount itself comes from your plan. Patriot Software's payroll help describes the notice a plan provider sends the employer once a loan is approved: the total to repay including interest, the number of payments and the amount per paycheck. Payroll can set that total as a lifetime limit, so the deduction stops on its own once it has all been collected. The Total of all deductions figure above is that number.
The YTD column on the loan line counts from January 1, not from the day the loan started. With a first deduction on October 30, 2026, the default loan takes five deductions in 2026 (October 30 to December 25), so the December 25 stub shows $934.45 year-to-date. The January 8, 2027 stub starts over at $186.89. The schedule's Year-to-date column follows the same rule, and what YTD means on a pay stub covers the rest of the column.
A loan deduction is one of several fixed after-tax lines a stub can carry; a garnishment is another, and the wage garnishment calculator works that one out. If you leave your job or the payments stop, the unpaid balance can become taxable, as the FAQ below explains.
Put the loan deduction on a pay stub with Payslip44
In Payslip44, Loan Repayment is a preset label under After-tax Deductions. Type the per-paycheck amount from your loan notice (or this schedule) as the Amount and, if you want it on the stub, the Year-to-date figure as the YTD. The row is saved and comes back as a Recent chip the next time you add an after-tax deduction, with the amount and YTD you last typed, so update the YTD from the schedule for each new pay date.
It's a document builder, so here's what it doesn't do. It doesn't work out the deduction, track the loan balance, add up YTD across earlier stubs or run payroll. It records the amounts you type, with decimal-precise money math, on your device. A stub is a record of pay that was actually made, not an official or verified document. Stubs export as PDF, PNG, CSV or plain text, and the guide to those formats covers which one to send where.
Have your loan deduction worked out? Get Payslip44 and put it on the stub.
Frequently Asked Questions
Common questions about 401(k) loan repayment calculator
How is a 401(k) loan repayment calculated?
The law requires substantially level payments of principal and interest, so the deduction is a standard amortized payment. Divide the annual rate by your paychecks per year to get the rate per paycheck (r), then the deduction is loan × r ÷ (1 − (1 + r)^−n), where n is the number of deductions. A $20,000 loan at 8% over 5 years, repaid biweekly, comes to $186.89 a paycheck for 130 paychecks. Interest is rounded to the cent every paycheck, so the final deduction absorbs the leftover cents. If your loan notice shows a different amount, the notice is what payroll takes.
How much can I borrow from my 401(k)?
The law caps a plan loan at the lesser of $50,000 or half your vested balance. If you've had another loan from the plan in the past 12 months, the $50,000 drops by the gap between your highest loan balance in that window and what you owe today. A plan may let you borrow up to $10,000 when half your balance is less than that, but it doesn't have to, and it can set a lower cap or offer no loans at all. The IRS's own example: Jim has $80,000 vested, borrowed $27,000 and still owes $18,000. His loans together can't pass $40,000, so a new loan tops out at $22,000.
How long do I have to repay a 401(k) loan?
Within 5 years, in substantially level payments of principal and interest made at least once a quarter. A loan used to buy your principal residence can run longer: the law sets no fixed maximum, so your plan sets it. Microsoft's 401(k) plan, for one, allows 1 to 15 years for a primary-residence loan. A deduction from every paycheck meets the quarterly rule with room to spare.
Are 401(k) loan repayments taken out before or after tax?
After tax. Plans and payroll systems take the repayment as its own after-tax deduction, separate from your 401(k) contribution line. Patriot Software's payroll help doesn't hedge: "Loan repayments are always after-tax." The IRS notes that loan repayments are not plan contributions, so they don't count toward the 2026 elective deferral limit of $24,500. The guide to pre-tax and post-tax deductions shows where each kind of line sits on a stub.
Where does the interest on a 401(k) loan go?
Back into your own 401(k) account, not to a lender. You pay it out of after-tax pay, and only that interest is taxed a second time when you withdraw it in retirement, since the money you borrowed came out tax-free. The loan still costs something: the borrowed money is out of the market until you repay it.
What happens if I miss a 401(k) loan payment?
Your plan may allow a cure period, which can run no later than the end of the calendar quarter after the quarter the payment was due. If the payment is still missing then, the entire outstanding balance becomes a deemed distribution: taxable income, and possibly subject to the 10% early distribution tax. You can still make the late payments afterward, and they add to your tax basis in the plan.
What happens to my 401(k) loan if I leave my job?
Your plan may require you to repay the full balance. If you can't, the unpaid balance is treated as a distribution and reported on Form 1099-R. When the plan offsets the loan against your account because you left the job, you can roll that amount over to an IRA or another eligible plan until your tax-return due date for that year, including extensions, which avoids the immediate income tax.
Why is my last deduction different from the others?
Every paycheck's interest is rounded to the cent, so a level payment never clears the balance exactly. This calculator lets the final deduction absorb the leftover cents, which brings the balance to exactly $0.00. In the $20,000, 8%, 5-year biweekly example, the final deduction is $187.67 against $186.89 for the other 129. Recordkeepers don't all round the same way, so if your loan notice differs by a few cents, go with the notice.