A worker who borrows from a 401(k) can pull out tens of thousands of dollars without triggering income tax or the 10 percent early-withdrawal penalty, because a properly structured loan is not treated as a distribution at all. The catch surfaces at the exit door. Leaving the employer, whether by quitting, being laid off, or retiring, can make the remaining balance due almost immediately, and if it is not repaid or moved in time, the unpaid amount converts into a taxed withdrawal. For anyone under 59 and a half, the penalty then lands on top of the tax.
Why a 401(k) Loan Escapes Tax While Paychecks Repay It
Federal rules let a participant borrow the lesser of 50,000 dollars or half of the vested account balance, and the money comes out untaxed because the borrower is expected to pay it back, with interest, generally within five years. A longer repayment schedule is permitted only when the loan is used to buy a primary residence. The repayments, including the interest, flow back into the borrower’s own account rather than to an outside lender, which is part of what makes the arrangement attractive to savers who want cash without cashing out.
Because the borrowed amount is scheduled to return to the plan, it is never counted as a taxable distribution while the loan stays in good standing, according to the IRS rules on retirement plan loans. That is the appeal for an older worker who needs money for a medical bill, a home repair, or a stretch of lost income, since the account keeps its tax-deferred status, no penalty applies, and the interest is effectively paid back to oneself. Missed payments, though, can lead the plan to declare a default, which the code treats as a taxable distribution.
Free retirement updates: Want plain-English help keeping more of your money in retirement? The free Retirement Shield newsletter covers the benefits, deadlines, and money mistakes that cost retirees, a couple times a week. Subscribe free.
How Leaving a Job Turns the Balance Into a Taxable Offset
The danger point is separation from the employer. Many plans require that an outstanding loan be repaid shortly after a worker leaves, and when it is not, the plan reduces the account by the unpaid balance in what the IRS calls a plan loan offset. That offset is an actual distribution, taxable as ordinary income in the year it occurs, and the agency’s issue snapshot on plan loan offsets spells out that it is reported to the borrower on a Form 1099-R like any other withdrawal.
For someone younger than 59 and a half, the offset also draws the 10 percent early-withdrawal penalty unless an exception applies, so a modest unpaid balance can generate a tax bill far larger than the convenience of the loan first seemed to justify. A 20,000-dollar unpaid balance for a worker in their mid-fifties, taxed in a middle bracket and hit with the penalty, could cost several thousand dollars. The timing is what stings, because the bill arrives precisely when the paycheck that had been repaying the loan has stopped.
The exposure is heaviest for workers laid off or nudged into early retirement, the group least able to absorb a surprise tax hit. A loan that felt safe while employment was steady becomes a liability the moment the job ends, and it is the plan’s repayment clock, not the borrower’s cash flow, that controls the outcome.
The Tax-Filing-Deadline Window to Roll the Offset Into an IRA
Federal law softened the trap starting in 2018. Under a change made by the Tax Cuts and Jobs Act, a plan loan offset that happens because a worker separates from the job, known as a qualified plan loan offset, can be rolled over into an IRA or a new employer’s plan as late as the borrower’s federal income tax filing deadline, including extensions, for the year of the offset. The IRS answers on plan loans describe that extended window, which replaced the old 60-day limit that had caught many departing workers off guard.
In practice that can stretch to October of the following year for a taxpayer who files for an extension, a far more forgiving deadline than the near-immediate repayment many plans demand. Rolling the offset amount over, using cash from other sources to replace what had been borrowed, keeps the money inside a tax-advantaged account and sidesteps both the income tax and the penalty. To qualify for that treatment, the offset must have occurred within 12 months of leaving the job.
The rollover is not automatic, and there lies the pitfall. A plan is not required to offer a direct rollover of an offset, so the burden falls on the departing worker to move an equivalent sum into an IRA before the deadline. Someone who lacks that cash on hand, or who never learns the option exists, defaults to the fully taxable result.
The 401(k) loan remains one of the few ways to reach retirement money without an immediate tax cost, and for a borrower who stays employed and pays on schedule, it does what it promises. The exposure is concentrated almost entirely at the point of separation, where an unpaid balance stops being a loan and becomes a distribution the tax code treats like any other early withdrawal.
What decides the outcome is whether a worker can cover the offset from other savings within the filing-deadline window. Those who can preserve the account and escape the penalty; those who cannot face a tax bill stacked on top of a lost job. The rule quietly rewards planning for the exit before borrowing, not scrambling after the paychecks have already stopped.
This article was produced with AI assistance and reviewed against primary sources by The Money Overview editorial team.
More Financial Reading