The 401(k) Loan Trap: What Borrowing From Your Future Self Actually Costs
The opportunity cost of a 401(k) loan is smaller than you've been told. The job-change offset and the contribution you quietly stop making are much bigger, and nobody warns you.
A 401(k) loan is the only loan I know of where the lender and the borrower are the same person. You approve yourself, you set no covenants, nobody pulls your credit, and the interest you pay lands back in your own account. On paper it looks less like borrowing and more like moving money from your left pocket to your right.
That framing is why people reach for it, and it is also why the actual risks hide so well. The costs of a 401(k) loan are almost entirely conditional. They stay at zero right up until one specific thing happens, and then they arrive all at once.
The mechanics, briefly
Not every plan offers loans — it is an optional feature, and your plan document is the authority. Where they exist, the shape is fairly standard.
You can generally borrow the lesser of $50,000 or half your vested balance. There is a provision allowing up to $10,000 even where that exceeds half the balance, if your plan permits it. Repayment runs up to five years, longer if the money buys a primary residence. The interest rate is set by the plan and typically sits a point or two above prime. Payments come out of your paycheck automatically, in after-tax dollars, and both principal and interest go back into your account.
Two things about this arrangement matter more than they appear to.
There is no credit check and no report to the bureaus. If your credit is damaged, this may be the cheapest capital available to you, and it does not make your next mortgage application worse.
And the money you withdraw stops being protected. Assets in an ERISA-covered 401(k) are shielded from creditors and survive personal bankruptcy almost fully intact. Cash in your checking account is not. Borrowing converts protected retirement money into money a creditor can take. If bankruptcy is anywhere in your field of view, this fact alone should end the conversation — you would be paying down debts with the one asset the process would have let you keep.
The opportunity cost, done honestly
The standard warning goes: take $20,000 out and you lose every dollar it would have earned in the market. Compounded to retirement, that is supposedly six figures.
This is overstated, and I would rather give you the real number than the scary one.
Two corrections. First, the money is not out for the whole term. A five-year amortising loan pays down steadily, so the average outstanding balance is a little over half the principal — call it $11,000 on a $20,000 loan, not $20,000. Second, and more importantly, the borrowed money is not sitting in a hole earning nothing. It is earning the loan rate, because you are the lender. If your plan charges prime plus one and you are paying that back into your own account, that is what the borrowed slice returns while it is out.
So the real opportunity cost is the gap between what the market would have returned and the loan rate — applied to a declining balance. If the long-run figure for a diversified equity portfolio is somewhere around ten percent nominal and your loan rate is eight, the gap is two points on roughly $11,000 for five years. That is on the order of a thousand dollars of foregone growth, which then compounds until you retire. Real money. Not six figures.
What that tidy average hides is variance. Markets do not deliver their long-run average in even slices. They deliver it in a handful of very good years surrounded by ordinary ones. Borrow across a year the market returns twenty-five percent and the gap for that year is not two points, it is seventeen. Borrow across a flat year and you came out ahead. You do not get to know which one you drew until afterwards.
The honest summary: the opportunity cost is real, modest in expectation, and unpredictable in any individual case. It is not the reason to avoid a 401(k) loan. The next two sections are.
The risk that actually bites
Here is the one that turns a reasonable loan into a bad year.
If you leave the job — quit, get laid off, get fired — many plans require the outstanding balance to be settled, and quickly. What happens if you cannot pay is that the plan executes what is called a loan offset: your remaining balance is deducted from your account and treated as a distribution. It becomes ordinary taxable income for that year, plus a ten percent early withdrawal penalty if you are under 59½.
Run it. Twelve thousand outstanding, a twenty-two percent federal bracket, state tax of five, plus the ten percent penalty. That is roughly forty-four hundred dollars, owed in April, on money you never received in cash because it went to a debt you had already spent.
There is a genuine escape hatch, and it is underused because almost nobody knows it exists. The 2017 tax law created the qualified plan loan offset. If your loan is offset because you separated from your employer or the plan terminated, you now have until your tax filing deadline for that year — including extensions — to deposit an equivalent amount into an IRA and roll the offset over. Do that and the tax and penalty disappear. Before 2018 the window was sixty days, which was often impossible. Now it can be well over a year.
The catch is that you must come up with the full offset amount from somewhere else. Which is difficult for the same reason you took the loan in the first place.
Two more things. Plan rules vary — some now allow separated employees to keep making payments, so ask rather than assume. And notice which direction the risk points: it fires precisely when you lose your income. This is a loan whose worst outcome is triggered by the event most likely to make you unable to handle it. Job loss is not a rare tail event; it is the single most common reason these loans go bad.
The quiet one: what happens to your contributions
This is the cost I almost never see discussed, and in my reading of the numbers it is bigger than the opportunity cost by a wide margin.
Loan repayment comes out of the same paycheck your contributions do. A $20,000 five-year loan is roughly four hundred dollars a month, after tax, gone. For most people, something has to give — and the thing that gives is the retirement contribution, because it is the only line item that reduces without an immediate consequence.
Cut your contribution below the match threshold and you are turning down free money. If your employer matches fifty cents on the dollar up to six percent, and you drop from six percent to two on an eighty-thousand-dollar salary, you have given up sixteen hundred dollars a year of match. Over the five-year loan term that is eight thousand dollars you were handed and declined, before any growth on it.
Compare: roughly one thousand dollars of opportunity cost from the loan itself, versus eight thousand from the contribution cut that the loan quietly forced. Some plans also restrict contributions while a loan is outstanding. Check yours; do not assume.
If you take the loan, protect the match. Treat the contribution rate as fixed and find the four hundred dollars somewhere else. That single rule removes most of the real damage.
When it is genuinely the least-bad option
The 401(k) loan is not always a mistake. It has a narrow band where it clearly wins.
You are refinancing something worse. Paying off a twenty-four percent credit card with an eight percent loan to yourself is a straightforwardly good trade — the interest saved swamps every cost in this article. The condition is that the card stays at zero afterward. If the balance regrows, you have converted unsecured debt into retirement debt and kept the original problem.
Your credit is poor and the alternatives are predatory. Against a payday lender or a thirty-percent personal loan, this wins easily.
The need is short, real, and bounded. A medical bill, a necessary car repair, a bridge you can see the far side of.
And the band where it is clearly wrong: funding a lifestyle expense, covering a shortfall in a budget that does not balance, buying an asset that depreciates, or borrowing while you are actively job hunting or on any kind of watch list at work.
A decision tree you can actually run
Work through these in order and stop at the first no.
1. Is bankruptcy plausible in the next two years? If yes, stop. Your 401(k) is protected and the cash is not. Talk to a bankruptcy attorney before touching it.
2. Is your job stable for the loan's full term? Not "am I performing well" — is the company, the team, the funding stable? If you have real doubts, stop, or borrow far less over a much shorter term.
3. Have you exhausted the cheaper options? Emergency fund. Negotiating a payment plan directly with the creditor, hospital, or tax authority — often free and routinely available. A HELOC if you have equity. A 0% balance transfer if your credit supports one. Under SECURE 2.0 many plans now allow a $1,000 penalty-free emergency withdrawal once a year, repayable within three years, and some offer a linked emergency savings account of up to $2,500. Small, but real, and worth checking before you borrow ten times that.
4. Is the rate you are escaping meaningfully higher than your plan's loan rate? If you are refinancing debt, the spread is the entire justification. Under about four points, the risks are not worth it.
5. Can you keep contributing at least to the full match while repaying? Do this arithmetic on the actual paycheck, not in your head. If the answer is no, the loan costs several times what you think.
6. Do you know your plan's separation rule? Find out whether you can continue payments after leaving. This is one call to your plan administrator, and it changes the size of the worst case.
7. Can you borrow less and repay faster? Almost always yes, and almost always better. Both the interest cost and the offset exposure scale with amount and time.
Six yeses and a defensible answer on the seventh, and this is a reasonable tool. A no anywhere in the first three, and the loan is the trap it is reputed to be — just not for the reason most articles give.
The thing I would want someone to take away is this. The danger in a 401(k) loan is not that the money stops growing. It is that you have written yourself a loan whose payment schedule assumes nothing goes wrong, secured by the one asset the bankruptcy court would have let you keep, with a balloon payment triggered by unemployment. Priced correctly, it is sometimes worth it. Priced as "borrowing from myself," it never gets priced at all.
Common questions
Does a 401(k) loan affect my credit score? No. There is no credit check to take one out and no reporting to the credit bureaus, including if you default. A defaulted loan costs you taxes and a penalty, not credit standing.
What happens if I leave my job with a loan outstanding? The typical outcome is a loan offset: the balance is deducted from your account and treated as a taxable distribution, plus a ten percent penalty if you are under 59½. You have until that year's tax filing deadline, including extensions, to roll an equivalent amount into an IRA and undo the tax hit — if you can find the cash.
Is a 401(k) loan better than a hardship withdrawal? Usually, yes. A hardship withdrawal is permanent: taxed as income, typically penalised, and the money never returns to the account. A loan at least restores the balance if you repay it.
Should I stop contributing while I repay? Not below the match, if there is any way to avoid it. Forfeiting an employer match to accelerate a loan repayment is one of the more expensive optimisations available, and it is remarkably easy to talk yourself into.