Skip to main content

Borrowing From Your 401(k): Loan Limits, the 5-Year Repayment Rule, and What Happens When You Leave Your Job

Published 11 min readMike ThriftMike Thrift
Borrowing From Your 401(k): Loan Limits, the 5-Year Repayment Rule, and What Happens When You Leave Your Job
On this page

You have an outstanding 401(k) loan and you just accepted a new job. Congratulations — you may also have just triggered a tax bill. Studies have found that the vast majority of borrowers who leave an employer with a loan outstanding end up defaulting on it, converting what felt like borrowing from yourself into taxable income plus, in many cases, a 10% early-distribution penalty. If you understand nothing else about 401(k) loans, understand this: the loan is easy to take and the exit rules are where the damage happens.

This guide walks through how much you can borrow, the repayment rules that keep the loan tax-free, what actually happens when you separate from your employer, and the rollover deadline that can still save you.

How Much Can You Borrow?​

Not every plan offers loans. The IRS permits them, but your employer's plan document decides whether they exist, how many you can have at once, and the minimum amount. Check your summary plan description or plan portal first — everything below assumes your plan allows loans at all.

The 50% or $50,000 ceiling​

Federal law caps a 401(k) loan at the lesser of:

  • 50% of your vested account balance, or
  • $50,000.

If your vested balance is $80,000, you can borrow up to $40,000. If it is $120,000, half would be $60,000, so the $50,000 cap binds and that is your maximum.

There is a narrow exception for small balances: if 50% of your vested balance is less than $10,000, the law allows borrowing up to $10,000. Plans are not required to include this exception, so confirm yours does before counting on it.

The 12-month lookback that shrinks the $50,000 cap​

The $50,000 figure is not simply "per loan." The limit is reduced by your highest outstanding loan balance during the 12 months before the new loan. If you borrowed $20,000 eleven months ago and repaid it in full last week, your new maximum is roughly $30,000, not $50,000. Serial borrowers get tripped up here more than anywhere else in the limit calculation.

Only the vested balance counts​

Unvested employer contributions — matching dollars you have not yet earned under the plan's vesting schedule — do not count toward the 50%. If your statement shows $100,000 total but $20,000 of it is unvested match, your borrowing base is $80,000 and your ceiling is $40,000.

The Repayment Rules That Keep It Tax-Free​

A 401(k) loan is not taxed when you receive it precisely because it is a genuine loan with a real repayment schedule. Break the schedule and the IRS recharacterizes the balance as a distribution. The three requirements:

  1. Repay within five years. The full balance must be scheduled for repayment within five years of the loan date.
  2. Pay at least quarterly. Payments must come at least once per quarter — most plans collect them through payroll deduction every paycheck.
  3. Amortize in substantially level payments. You cannot back-load the loan with token payments and a balloon at the end.

The primary-residence exception​

Loans used to purchase your principal residence get an exception to the five-year limit — the plan may allow a longer repayment term, often 10 to 15 years. Note the narrow wording: it covers acquiring a primary residence, not refinancing one, renovating one, or buying a second home or rental property. The quarterly-payment and level-amortization requirements still apply.

The interest rate — and who it goes to​

Plans typically charge around the prime rate plus one or two percentage points. The comforting part: the interest goes back into your own account, not to a bank. The less comforting parts, covered below, are that you repay with after-tax dollars and that the borrowed money earns nothing while it sits outside the market.

The True Cost of Borrowing From Yourself​

"It is my own money and I pay myself interest, so what is the downside?" There are four, and they compound.

Opportunity cost while the money is out​

Every dollar on loan is a dollar not invested. In a rising market, the foregone returns often dwarf the interest you "pay yourself," because that interest is typically well below long-run market returns. A $30,000 loan outstanding for five years during a strong bull market can easily cost you tens of thousands in missed compounding — money no repayment schedule restores.

The interest is taxed twice​

You repay the loan — principal and interest — with after-tax dollars from your paycheck. When you later withdraw those dollars in retirement, they are taxed as ordinary income again. To be precise, the double taxation applies to the interest portion, not the principal, but on a $50,000 loan at 8% that interest is real money getting taxed on the way in and on the way out.

Borrowers tend to save less afterward​

Fidelity's participant data has consistently shown that roughly a quarter of borrowers reduce their contribution rate within a few years of taking a loan, and a meaningful share stop contributing entirely while the loan is outstanding. Some plans even bar new contributions until the loan is repaid. The loan itself is temporary; the savings habit it disrupts can cost far more.

Fees and reduced flexibility​

Many plans charge an origination fee, an annual maintenance fee, or both. And while the loan is outstanding, some plans restrict hardship withdrawals or additional loans — exactly the flexibility you might need next.

Leaving Your Job With a Loan Outstanding​

This is the scenario that produces most 401(k) loan disasters, so read it twice.

Most plans demand full repayment at separation​

Whether you quit, are laid off, or retire, your plan can require the entire outstanding balance immediately — often within 30 to 90 days. Few departing employees have that cash on hand, especially after an involuntary job loss. This is why studies have found that the overwhelming majority of borrowers who separate with a loan outstanding default.

What default actually means: the plan loan offset​

When you fail to repay after separation, the plan reduces your account balance by the unpaid amount to cancel the debt. That is called a plan loan offset, and it is treated as an actual distribution to you — reported on Form 1099-R. Unlike the "deemed distributions" described below, an offset is a real distribution of your money, which matters because only real distributions can be rolled over.

The tax consequences of the offset:

  • The offset amount is taxable ordinary income for the year.
  • If you are under 59 and a half, the 10% early-distribution penalty generally applies on top, unless an exception covers you.
  • The plan withholds nothing on the offset itself — 20% withholding applies to any remaining cash paid out to you — so the tax bill arrives at filing time as a surprise.

The rollover deadline that saves you​

Here is the rescue provision. Tax law gives you until your tax-filing deadline, including extensions, for the year of the offset to roll over the offset amount into an IRA or another eligible retirement plan. Separate from a job in 2026 with a $15,000 unpaid balance, and you have until October 15, 2027 (with an extension) to deposit $15,000 of your own cash into an IRA and erase the tax bill.

Three details people miss:

  1. You must come up with the cash yourself. The money went to you as a loan long ago; the rollover requires depositing an equal amount from other funds. There is no withholding to cover it.
  2. A partial rollover helps partially. Roll over $10,000 of a $15,000 offset and only the remaining $5,000 is taxed.
  3. This extended deadline applies to qualified plan loan offsets from separation or plan termination — not to deemed distributions from missed payments, which generally cannot be rolled over at all.

What if the plan itself terminates?​

The same offset mechanics apply. If your employer terminates the plan while your loan is outstanding, the balance becomes an offset distribution with the same rollover-until-filing-deadline relief.

Missed Payments and Deemed Distributions​

Separate from job loss, simply failing to keep up payments triggers its own tax event. If your repayments stop and you do not cure the default — plans typically allow a cure period through the end of the calendar quarter following the quarter of the missed payment — the outstanding balance becomes a deemed distribution.

A deemed distribution is taxed as ordinary income and can attract the 10% early-distribution penalty, exactly like an offset. Two cruel twists distinguish it:

  • You still owe the loan. A deemed distribution is a tax fiction, not forgiveness. You remain obligated to repay the plan, and those post-default repayments become after-tax basis in your account (not taxed again when eventually distributed).
  • You generally cannot roll it over. Because no money actually left the plan, there is nothing to roll into an IRA. The tax bill is locked in for that year.

The lesson: if you cannot make payments, talk to your plan administrator before the cure period expires. Some failures can be corrected through the IRS voluntary correction program by re-amortizing the loan — but only if caught in time.

Special Situations Worth Knowing​

Military service​

If you enter active military duty, the plan may suspend your loan payments for the duration of service and extend the repayment period by the same length. This is the one suspension that also extends the clock.

Other leaves of absence​

If your pay drops too low to support payroll-deduction repayments during a leave — parental leave, disability, or similar — the plan may suspend payments for up to one year. Unlike military service, the repayment term is not extended, so your remaining payments must increase to retire the loan on the original schedule.

Some plans require your spouse's written consent for loans above $5,000. Many 401(k) plans are exempt from this requirement, but if yours is not, an unsigned spousal form will stall your application.

A Practical Checklist Before You Borrow​

Work through these questions before signing anything:

  1. Does my plan even allow loans, and what are its minimum, maximum, and fee terms?
  2. What is my vested balance — and my true ceiling after the 12-month lookback?
  3. How stable is my employment? If a layoff, a planned move, or a sale of the company is plausible within the repayment window, the offset risk may outweigh any benefit.
  4. Can I keep contributing while repaying? If the plan suspends contributions during a loan, price the lost match into your decision.
  5. What are the alternatives? A home-equity line, a 0% balance-transfer offer, or simply waiting may be cheaper once you count opportunity cost, double-taxed interest, and fees.
  6. Do I have a separation backup plan? Know today where the rollover cash would come from if you had to repay within 60 days.

Track the Loan Like Any Other Debt​

A 401(k) loan rarely appears in your bank's debt dashboard, which is exactly why it deserves a place in your books. Record the outstanding balance, the payment schedule, the interest rate, and — critically — the tax exposure if you separate before it is repaid. If you run a solo 401(k) for your own business, the documentation burden is yours twice over: missed-payment defaults and excess-loan violations in a one-participant plan draw the same deemed-distribution treatment, with no HR department to warn you first.

Beancount users can model the loan as a liability account with scheduled repayment transactions, keeping the after-tax cost and the remaining balance visible alongside every other obligation. The documentation on getting started walks through setting up accounts for exactly this kind of tracking, and the Fava dashboard makes the balance and payoff trajectory easy to watch over the life of the loan.

Keep Your Retirement Borrowing Visible​

Borrowing from your 401(k) is not free money with paperwork — it is a five-year commitment whose worst penalties trigger at the worst moments, usually a job loss. Know your limit, protect the repayment schedule, and have a rollover plan ready before you need one. And whatever you decide, keep the loan on your books where you can see it: clear financial records turn a vague future tax risk into a number you can plan around. Beancount.io provides plain-text accounting that gives you complete transparency and control over your financial data — no black boxes, no vendor lock-in. Get started for free and see why developers and finance professionals are switching to plain-text accounting.

Source: https://beancount.io/blog/2026/10/08/borrowing-from-401k-loan-limits-5-year-rule-job-separation-guide

Published: October 8, 2026