When money is tight, your 401k can look like an easy source of cash. It is your money, the interest you pay goes back into your own account, and there is no credit check. Borrowing from it can feel like the cheapest loan available. But a 401k loan is not free money, and it carries risks that do not show up in the monthly payment.
This guide explains how 401k loans work, what they really cost, when they might make sense, and what to consider before you take one.

How a 401k Loan Works
A 401k loan lets you borrow from your own retirement account, usually up to a set share of your balance or a dollar limit, whichever is lower. The exact limits are set by tax law and by your employer’s plan, so check your plan’s rules first. You repay the loan through payroll deductions, usually over five years, although loans used to buy a first home can sometimes have a longer term.
The interest you pay goes back into your own account, which is why the loan looks cheap. But that interest is paid with after-tax money, and the money you borrowed is not invested while it is out of the account, so it is not growing in the market. Those two facts are the hidden costs of a 401k loan, and they matter more than most borrowers expect.
The Real Costs You Do Not See
The biggest cost of a 401k loan is the growth you miss. Money borrowed from your account is not invested, so if the market rises while your loan is outstanding, your account misses that growth. Over five years, that missed growth can be worth far more than the interest you saved compared with another loan.
There are also fees. Many plans charge an origination fee for the loan, and some charge a yearly maintenance fee. If you reduce your contributions while repaying the loan, you may also miss out on your employer’s matching contributions, which is free money you cannot get back later. Add those together, and the true cost is usually much higher than the interest rate suggests.
The Risk If You Leave Your Job
The most serious risk of a 401k loan is what happens if you leave your job, whether by choice or not. Most plans require the loan to be repaid in full shortly after you leave, often within a set number of months. If you cannot repay it, the outstanding balance is treated as a withdrawal, which means it is taxed as income and may also be subject to an early withdrawal penalty if you are under a certain age.
That risk turns a short-term loan into a long-term tax bill at the worst possible moment: just when you have lost your income. It is the main reason financial guides usually warn against 401k loans, even for borrowers who are confident they will stay in their job.
When It Might Make Sense
Despite the risks, there are situations where a 401k loan can be the least bad option. If you need money for a genuine emergency, have no other affordable source, and are confident you will stay in your job, a 401k loan can be cheaper than a high-interest credit card or a payday loan. It can also make sense for a short-term need that you can repay quickly, so the money is out of the market for only a few months.
Even then, borrow only what you need, and repay it as fast as you can. Keep contributing to your 401k while you repay, if your plan allows it, so you do not lose the employer match as well. A 401k loan should be a last resort for a real need, not a convenient way to pay for something you could save for instead.
Smarter Alternatives to Consider First
Before borrowing from your retirement, consider the alternatives. A personal loan from a bank or credit union may have a higher interest rate, but it does not risk your retirement or your tax bill if you change jobs. A home equity loan may offer a lower rate, although it puts your home at risk. A hardship withdrawal from your 401k is also possible in some plans, but it is taxed and may carry a penalty, so it is usually worse than a loan.
Also consider whether the expense can be reduced, delayed, or paid in instalments. A medical bill, a car repair, or a tax bill can often be negotiated into a payment plan with no interest at all. Those options take a phone call and some patience, but they leave your retirement untouched, which is where it should stay.
Frequently Asked Questions
How much can I borrow from my 401k?
It is usually up to a set share of your balance or a dollar limit, whichever is lower, as set by tax law and your employer’s plan.
What happens if I leave my job with a 401k loan?
Most plans require full repayment shortly after you leave, and any unpaid balance may be taxed as a withdrawal, possibly with a penalty.
Do I pay interest on a 401k loan?
Yes, but the interest goes back into your own account, although it is paid with after-tax money and the borrowed money misses market growth.
Is a 401k loan better than a credit card?
It can be cheaper on interest, but it risks your retirement savings and carries a tax risk if you leave your job, so compare carefully.
Can I keep contributing while repaying a 401k loan?
It depends on your plan. Some plans allow it and some do not, so check your plan’s rules before you borrow.
Related guides: Retirement Accounts Compared: 401(k), IRA, RRSP, TFSA, Annuities Basics Explained in Plain English, Freelance Retirement Planning A Simple Guide, and 403(b) Basics Explained for Beginners.