You can borrow from your 401k, but the rules are strict and the costs are real

A 401k loan lets you borrow money from your own retirement account and pay it back to yourself with interest. The IRS allows this, but your employer's plan has to permit it — not all plans do. You borrow a set amount, repay it on a fixed schedule (usually five years, longer if the money is for a home), and the interest you pay goes back into your account. Unlike a withdrawal, you do not pay income tax on the money you take out, and you do not face the 10 percent early withdrawal penalty if you are under 59½.

The catch is that if you leave your job or lose it, you typically have to repay the full balance within 60 days or it becomes a taxable withdrawal. You also lose the investment growth that money would have earned, and you are paying yourself interest instead of letting that money compound. For most people, a 401k loan should be a last resort, not a first option.

Key Takeaways

  • Your employer's plan must allow loans — check with your plan administrator or HR department to see if yours does.
  • You can typically borrow up to 50 percent of your vested balance, with a maximum of $50,000, though your plan may set lower limits.
  • You repay the loan through payroll deductions, usually over five years, and the interest rate is set by your plan (often prime rate plus 1 to 2 percent).
  • If you leave your job, you must repay the loan within 60 days or it becomes a taxable withdrawal subject to income tax and a 10 percent penalty if you are under 59½.
  • The money you borrow stops earning investment returns while it is out of your account, which can cost you significantly over time.

How much you can borrow and what the limits are

The IRS sets a ceiling: you can borrow up to 50 percent of your vested account balance, or $50,000, whichever is less. If your vested balance is $60,000, you can borrow $30,000. If it is $120,000, you can borrow $50,000, not $60,000. Your plan administrator can tell you your vested balance — this is the money that legally belongs to you, separate from any employer match that has not yet vested.

Many employers set their own limits lower than the IRS maximum. Some plans allow only $10,000 or $25,000 loans. Some do not allow loans at all. You need to check your plan documents or call your HR department to find out what your specific plan permits. This is not something you can assume.

If you have an outstanding loan from the same plan, the IRS limits you to a total of $50,000 borrowed at any one time across all loans. If you already owe $30,000, you can borrow only $20,000 more.

The repayment schedule and interest you pay

You repay a 401k loan through payroll deductions — your employer withholds the payment from your paycheck and sends it back to your 401k account. The standard repayment period is five years. If you are borrowing money specifically to buy a primary residence, your plan may allow a longer repayment term, sometimes up to 15 or 30 years, but you have to ask and your plan has to permit it.

The interest rate is set by your plan, not by the market. It is typically the prime rate plus 1 to 2 percent. As of early 2024, that might be around 9 to 10 percent, but rates change and vary by plan. The interest you pay goes back into your 401k account, so you are paying yourself — but you are also paying interest on money that is already yours, which is the real cost.

Your plan will give you an amortization schedule showing exactly how much you owe each month and when the loan is fully repaid. You cannot change the payment amount or extend the term on your own; you have to work with your plan administrator if your circumstances change.

What happens if you leave your job

This is the biggest risk of a 401k loan. If you are laid off, fired, or resign, most plans require you to repay the entire outstanding balance within 60 days. If you do not, the IRS treats the unpaid balance as a withdrawal. You owe income tax on that amount in the year you leave, and if you are under 59½, you also owe a 10 percent early withdrawal penalty.

Example: You borrow $20,000 and leave your job six months later with $18,000 still owed. If you cannot repay it in 60 days, that $18,000 is taxed as income. If you are in the 24 percent tax bracket and under 59½, you owe roughly $4,320 in taxes plus $1,800 in penalties — $6,120 total. You also lose the $18,000 from your retirement savings permanently.

Some plans allow you to extend the 60-day window if you negotiate with the plan administrator, but this is not may provide. A few plans allow you to keep making payments even after you leave, but this is rare. You need to know your plan's specific rules before you borrow.

The hidden cost: lost investment growth

When you borrow $20,000 from your 401k, that $20,000 stops earning returns. If your 401k normally grows at 7 percent per year, that $20,000 would become roughly $28,000 over five years if left invested. Instead, you are paying it back at 9 or 10 percent interest, which means you are losing the difference between what you could have earned and what you are paying back.

Over a 30-year career, a $20,000 loan taken at age 35 could cost you $100,000 or more in lost retirement savings, depending on market returns. This is not a cost you see on a statement, but it is real and it compounds over decades.

How to request a 401k loan from your plan

Contact your plan administrator — this is usually your HR department, your benefits team, or a third-party company that manages your plan. Ask whether your plan allows loans and request a loan application. You will need to provide basic information: how much you want to borrow, what you are borrowing for (some plans ask this), and your account balance.

The plan will calculate how much you can borrow based on your vested balance and the plan's limits. They will show you the interest rate, the monthly payment amount, and the repayment schedule. You sign the loan agreement, and the money is usually deposited into your bank account within one to two weeks.

Some plans allow you to request a loan online through their website or app. Others require a paper form. A few still require you to call. Ask your HR department which method your plan uses.

Alternatives to a 401k loan

Before you borrow from your 401k, explore other options. A personal loan from a bank or credit union may have a lower interest rate and does not put your retirement at risk if you lose your job. A home equity line of credit (if you own a home) is often cheaper. A credit card cash advance is expensive but does not require you to repay it on a fixed schedule.

If you are facing a hardship — medical bills, eviction, foreclosure — some 401k plans allow hardship withdrawals, which let you take money out without a loan. You do pay income tax and the 10 percent penalty, but you do not have to repay it. This is worse than a loan in the short term but better if you cannot afford the repayment schedule.

If you are unemployed or between jobs, a personal loan or a line of credit may not be available to you. In that case, a 401k loan might be necessary — but understand the 60-day repayment risk if your employment situation is uncertain.

Frequently Asked Questions

Can I borrow from my 401k if I am self-employed or have a Solo 401k?

Yes, but the rules are different. Solo 401k plans can allow loans, but you cannot borrow from your own account and lend to yourself — the IRS prohibits this. If you have a spouse who is also self-employed and covered by the plan, one spouse can borrow from the other's account. Check your plan documents or speak with a tax professional about your specific situation.

What if I cannot repay the loan before I leave my job?

Contact your plan administrator immediately and ask about your options. Some plans allow you to extend the 60-day window or set up a payment plan after you leave. Others do not. If you cannot repay within the allowed time, the unpaid balance becomes a taxable withdrawal, and you owe income tax plus a 10 percent penalty if you are under 59½. This is why understanding your plan's rules before you borrow is critical.

Do I pay taxes on the interest I pay back to my 401k?

No. The interest you pay goes back into your account tax-free. However, when you eventually withdraw that money in retirement, you will pay income tax on the entire amount, including the interest. You are not avoiding taxes — you are deferring them.

Can I take out a 401k loan while I am still working?

Yes. You can borrow from your 401k while employed and continue making payments through payroll deductions. The risk arises only if you leave your job before the loan is repaid.

Is a 401k loan better than cashing out my 401k early?

Almost always yes. A withdrawal before age 59½ costs you income tax plus a 10 percent penalty on the full amount. A loan lets you borrow without immediate tax consequences, as long as you repay it on schedule. The downside is the lost investment growth and the risk if you lose your job — but both are better than the immediate tax hit of a withdrawal.