You can borrow from your 401(k), withdraw early with penalties, or leave it where it is

A 401(k) is locked until age 59½ in most cases, but that does not mean you have no options before then. You can borrow against the balance, take a withdrawal and pay a 10% penalty plus income tax, or simply leave the money untouched. Each path has different costs and consequences. The choice depends on whether you need the money now, how much you need, and whether you can afford to repay a loan.

The most common move is a loan. You borrow from your own account, set a repayment schedule, and pay yourself back with interest. A withdrawal, by contrast, is permanent — you lose that money and the growth it would have earned. A hardship withdrawal exists for specific emergencies, but it still costs you the 10% penalty and income tax unless you meet narrow exceptions.

Key Takeaways

  • A 401(k) loan lets you borrow up to 50% of your balance (or $50,000, whichever is less) and repay it over five years, with interest going back into your own account.
  • An early withdrawal before age 59½ costs you a 10% penalty plus income tax on the full amount, reducing what you actually receive by 30% to 40% depending on your tax bracket.
  • Hardship withdrawals for medical bills, home purchase, or education avoid the 10% penalty but still cost income tax, and your plan must offer them — not all do.
  • If you leave your job, you can roll the 401(k) into an IRA or your new employer's plan to keep it tax-deferred, or cash it out and pay the penalty and tax immediately.
  • Once you withdraw or borrow, that money stops growing tax-deferred, which costs you significantly over time even if you repay the loan.

How a 401(k) loan works and what it costs

A loan is the least expensive way to access your 401(k) before retirement. You borrow from your own account, and your employer's plan sets the terms. Most plans let you borrow up to 50% of your vested balance, with a maximum of $50,000. If your balance is $100,000, you can borrow up to $50,000. If it is $60,000, you can borrow up to $30,000.

You repay the loan through payroll deductions, usually over five years. The interest rate is set by your plan — often the prime rate plus 1% to 2%. That interest goes back into your account, not to a bank. So if you borrow $20,000 at 6% interest over five years, you pay roughly $5,300 in interest, but that $5,300 becomes part of your 401(k) balance.

The catch is that while you are repaying, that borrowed money is not invested and earning growth. If the market rises 8% a year, you lose that gain on the $20,000 you borrowed. Over five years, that lost growth can amount to $5,000 to $10,000 depending on market performance. You also cannot contribute to your 401(k) while you have an outstanding loan in some plans, which means you lose employer matching during that period.

If you leave your job before the loan is repaid, most plans require you to pay back the full remaining balance within 60 to 90 days. If you do not, the unpaid balance is treated as a withdrawal, and you owe the 10% penalty plus income tax on that amount.

Early withdrawal: the 10% penalty and income tax

An early withdrawal before age 59½ costs you a 10% penalty on the amount withdrawn, plus you owe income tax on the full withdrawal as ordinary income. If you withdraw $10,000 and you are in the 22% tax bracket, you pay $1,000 in penalty plus $2,200 in tax, leaving you with $6,800. The effective cost is 32% of what you took out.

The tax is withheld by your plan at the time of withdrawal — usually 20% automatically. So if you request $10,000, you receive $8,000 and the plan sends $2,000 to the IRS. But you still owe the 10% penalty ($1,000) when you file your tax return. If your tax bracket is higher than 20%, you may owe more at tax time.

Some employers offer a direct rollover option instead of a withdrawal. You can move the money to an IRA or another 401(k) without triggering the penalty or tax, as long as you complete the transfer within 60 days. This is almost always better than a withdrawal if you do not need the money immediately.

Hardship withdrawals for specific emergencies

A hardship withdrawal lets you take money out before 59½ without the 10% penalty, but only if your plan offers it and you meet the plan's definition of hardship. Common reasons include unreimbursed medical expenses, home purchase or repair, education costs, or preventing eviction or foreclosure. The IRS does not require plans to offer hardship withdrawals, so check your plan documents first.

Even with a hardship withdrawal, you still owe income tax on the amount. If you withdraw $5,000 for medical bills and you are in the 22% bracket, you owe $1,100 in tax. You avoid the 10% penalty, but the tax bill is the same as a regular withdrawal.

Your plan may require you to prove the hardship — medical bills, a mortgage statement, an eviction notice. Some plans also require you to exhaust other sources of funds first, such as taking a loan from the plan before you can withdraw. The rules vary by employer, so contact your plan administrator to learn what your plan allows.

What happens to your 401(k) when you change jobs

If you leave your job, you have four options: leave the money in your former employer's plan, roll it into an IRA, roll it into your new employer's plan, or cash it out. The first three keep the money tax-deferred. Cashing it out triggers the 10% penalty and income tax immediately.

A rollover to an IRA gives you more investment choices and lower fees than most 401(k) plans. You contact an IRA provider (a bank, brokerage, or mutual fund company), open an account, and request a direct rollover from your old plan. The money moves directly from the old plan to the IRA with no tax withheld. This is the cleanest option if you do not need the money.

A rollover to your new employer's plan keeps everything in one place and may offer lower fees if the new plan is well-managed. Not all plans accept rollovers, so check with your new employer's benefits office first. If you roll over, you can borrow from the new plan if you need to, and the loan terms may be better than your old plan's.

If you cash out, the plan withholds 20% for taxes automatically. If you owe more than 20% in tax and penalties, you pay the difference when you file your return. This option should be a last resort because you lose decades of tax-deferred growth on that money.

Age 55 exception and other penalty-free withdrawals

If you leave your job in the year you turn 55 or later, you can withdraw from that employer's 401(k) without the 10% penalty. You still owe income tax, but not the penalty. This is called the Rule of 55. It applies only to the plan at the employer you just left, not to old 401(k)s from previous jobs or to IRAs.

Other penalty-free withdrawal reasons include disability, death (for beneficiaries), and substantially equal periodic payments (SEPP), which is a complex calculation that lets you take regular withdrawals without penalty if you follow the IRS formula exactly. Most people do not use SEPP because it requires you to take the same amount every year for at least five years or until age 59½, whichever is longer.

Military service members called to active duty can withdraw up to $100,000 from a 401(k) without the 10% penalty. You still owe income tax unless you repay the withdrawal within three years.

The real cost of taking money out early

The 10% penalty and income tax are only the immediate costs. The bigger cost is the lost growth. If you withdraw $20,000 at age 40, and that money would have grown at 7% a year until age 65, you lose roughly $95,000 in growth over 25 years. That $20,000 becomes $107,000 if left alone, but you only have the $20,000 minus taxes and penalties.

A loan has the same problem. While you repay the loan, that $20,000 is not invested. Even though you are putting money back into the account through repayment, the borrowed portion sits idle. If you borrow $20,000 and repay it over five years, you lose five years of growth on that $20,000, which costs you $20,000 to $30,000 depending on market returns.

This is why financial advisors generally recommend borrowing over withdrawing, and borrowing only if you have no other option. A personal loan or credit card, while more expensive in interest, does not reduce your retirement savings or their growth potential.

Frequently Asked Questions

Can I borrow from my 401(k) if I am still working?

Yes. Most plans let you borrow while employed. You repay through payroll deductions, which makes it automatic. If you leave the job before repaying, you usually have 60 to 90 days to pay back the full balance or face the 10% penalty and income tax on the unpaid amount.

What if I cannot repay a 401(k) loan after I leave my job?

The unpaid balance is treated as a withdrawal. You owe a 10% penalty plus income tax on the amount you did not repay. If you borrowed $15,000 and cannot repay $8,000, you owe the penalty and tax on that $8,000. Some plans offer a grace period or let you repay on a new schedule, so contact your plan administrator immediately.

Is a hardship withdrawal the same as a loan?

No. A hardship withdrawal is permanent — you do not repay it. A loan must be repaid. A hardship withdrawal avoids the 10% penalty but costs income tax. A loan costs interest and lost growth but no penalty or tax until you retire and withdraw.

Can I withdraw from my 401(k) to pay off credit card debt?

Technically yes, but it is usually a bad idea. You pay a 10% penalty plus income tax, which can total 30% to 40% of the withdrawal. Credit card interest is typically 15% to 25%, so you are paying more in penalties and tax than you would pay in credit card interest over a few years. A 401(k) loan is cheaper if your plan offers it.

What is the difference between a rollover and a withdrawal?

A rollover moves money from one retirement account to another without triggering tax or penalty. A withdrawal takes money out of retirement accounts and into your hands, triggering tax and possibly penalty. A direct rollover (plan to plan) is always better than a withdrawal if you do not need the money immediately.