When someone dies with an outstanding 401k loan, the unpaid balance is deducted from their account before anything passes to a beneficiary. The plan administrator does this through a bookkeeping step called a loan offset. Nobody personally inherits the debt, and the estate is not chased for repayment, but the account shrinks by the loan balance and that reduction is taxed as a distribution. So the practical answer to what happens to a 401k loan when you die is that the account pays it off automatically, and whoever inherits gets what’s left.
How the Loan Offset Works
A 401k loan is secured by the account itself. On the participant’s death, the administrator closes the loan by reducing the account balance by whatever is still owed. The IRS treats that reduction as an actual distribution from the plan, not just an internal accounting move.1eCFR. 26 CFR 1.72(p)-1 Once the offset is applied, the loan is considered fully satisfied. No further payments are due from anyone.
The size of the offset depends on how much was borrowed and how much has been repaid. 401k loans are capped at the lesser of $50,000 or half the participant’s vested balance, so an offset can range from a small figure into the tens of thousands.2Office of the Law Revision Counsel. 26 USC 72 – Annuities; Certain Proceeds of Endowment and Life Insurance Contracts Whatever the amount, it comes off the top before the beneficiary sees any money.
Who Pays the Tax on the Offset
Because the offset counts as a real distribution, it is ordinary taxable income for the year it happens. The IRS instructs plan administrators to issue the Form 1099-R in the name of whoever actually receives the distribution, meaning the beneficiary, trust, or estate, rather than the deceased participant.3Internal Revenue Service. Instructions for Forms 1099-R and 5498 In practice, that means the tax bill on the offset usually lands with the person or entity taking over the account.
One meaningful break: distributions triggered by the participant’s death are exempt from the 10% early withdrawal penalty that normally applies to money pulled out of a 401k before age 59½.4Internal Revenue Service. Retirement Topics – Exceptions to Tax on Early Distributions The administrator marks the 1099-R with distribution code 4 to flag it as a death payout.3Internal Revenue Service. Instructions for Forms 1099-R and 5498 Regular income tax still applies, but skipping the 10% penalty is a real savings on a large offset.
No Rollover Escape Hatch
Some plan loan offsets can be rolled into an IRA, which lets the recipient cover the offset with outside cash and avoid the tax entirely. The IRS defines a qualified plan loan offset narrowly, though: it only covers offsets that happen because the employee left the job or the plan terminated.5eCFR. 26 CFR 1.402(c)-2 Death is neither. A loan offset triggered by the participant’s death does not qualify for that extended rollover window, so the taxable income from the offset generally cannot be undone.
What the Beneficiary Actually Receives
The math is blunt. If the account holds $100,000 and the participant had a $15,000 loan outstanding, the offset erases the $15,000 and the beneficiary is entitled to $85,000. If multiple beneficiaries are named, each person’s share is calculated from that post-offset balance.
There is no grace period and no option to keep making the scheduled loan payments. Most plans will not allow the estate or a beneficiary to repay the loan after death, either. Plan documents control this, but the vast majority treat death as an immediate default and process the offset right away. A participant who was planning to pay the loan back over the next several years loses that runway the moment they die, and the shortfall lands on whoever inherits.
Spousal Rights When a Loan Is Outstanding
The loan offset happens before beneficiary rules kick in, so a surviving spouse’s protections apply to the reduced balance, not the pre-loan balance. Federal law requires that a married participant’s 401k pay the remaining account to the surviving spouse unless the spouse signed a written waiver consenting to a different beneficiary.6Office of the Law Revision Counsel. 26 USC 401 – Qualified Pension, Profit-Sharing, and Stock Bonus Plans That waiver has to be witnessed by a plan representative or notary.7Department of Labor. QDROs: The Division of Retirement Benefits Through Qualified Domestic Relations Orders
Practically, a spouse cannot block the offset itself. What the spouse gets is the account net of the loan, along with the same rollover options a surviving spouse would normally have on an inherited 401k, subject to the plan’s terms.8Internal Revenue Service. Retirement Topics – Beneficiary If the participant was carrying a loan close to the $50,000 ceiling, the reduction to a surviving spouse’s inheritance can be substantial, and there is no mechanism to restore it.