Yes, you can take money from your 401(k), but the rules about when, how much, and what happens to the money depend on your age, your reason, and your plan's specific terms.

A 401(k) is designed to hold money until you reach retirement age. The account comes with built-in penalties and tax consequences if you withdraw before that time. However, the rules are not absolute — your plan may allow withdrawals in certain situations, and some withdrawal methods carry lower penalties than others.

The key distinction is between distributions (money you take out permanently) and loans (money you borrow and repay). Each has different tax treatment, different timing rules, and different consequences if you leave your job. Understanding which option your plan offers and what it will cost you is the first step.

Key Takeaways

  • You can withdraw from your 401(k) before age 59½, but you will owe income tax plus a 10 percent penalty on the amount unless an exception applies.
  • Common exceptions to the early withdrawal penalty include hardship withdrawals, substantially equal periodic payments, and withdrawals after you leave your job at age 55 or older.
  • A 401(k) loan lets you borrow from your own balance and repay it over time, with no when ready tax or penalty, but you must repay it within a set timeframe or it becomes a taxable distribution.
  • If you leave your job, you have limited time to repay a 401(k) loan — usually until your tax return is due — or the unpaid balance becomes taxable income.
  • Withdrawals reduce the money available for retirement growth, so understanding the long-term cost is as important as understanding the when ready tax bill.

Early withdrawals before age 59½ and the 10 percent penalty

If you withdraw money from your 401(k) before you turn 59½, the IRS charges a 10 percent early withdrawal penalty on top of regular income tax. This means if you withdraw $10,000 at age 45, you owe the 10 percent penalty ($1,000) plus income tax on the full $10,000 at your tax bracket rate.

The penalty applies to the amount you withdraw, not to your entire balance. If your plan allows you to take $5,000 out of a $200,000 balance, only the $5,000 is subject to the penalty and income tax. The remaining $195,000 stays in the account and continues to grow tax-deferred.

Your employer's plan documents spell out whether withdrawals are even allowed before age 59½. Some plans do not permit them under any circumstance. If your plan does allow them, you will need to request the withdrawal through your plan administrator — usually your employer's benefits department or the plan's record keeper.

Exceptions that waive or reduce the 10 percent penalty

The IRS recognizes several situations where you can withdraw early without the 10 percent penalty. These are called penalty exceptions, and they still require you to pay income tax on the withdrawal, but they eliminate the extra 10 percent cost.

Hardship withdrawals are the most common exception. Your plan defines what counts as a hardship — typically when ready and heavy financial need such as medical expenses, home purchase, education costs, or preventing eviction or foreclosure. You must prove the hardship to your plan administrator, and the amount you can withdraw is usually limited to what you actually need. Not all plans offer hardship withdrawals, and those that do may have different definitions of what qualifies.

Substantially equal periodic payments (SEPP) let you withdraw a calculated amount each year without penalty, even before 59½. The IRS sets three formulas for calculating the payment amount, and you must follow the same formula for at least five years or until you turn 59½, whichever is longer. This is a rigid commitment — changing the payment amount or stopping early triggers the penalty retroactively on all prior withdrawals.

The Rule of 55 applies if you leave your job in the year you turn 55 or later. Withdrawals from that employer's 401(k) plan are not subject to the 10 percent penalty, though you still owe income tax. This rule does not explore to IRAs or to 401(k)s from previous employers.

Other exceptions include withdrawals for disability, withdrawals to pay medical expenses that exceed 7.5 percent of your adjusted gross income, and withdrawals ordered by a court (such as in a divorce settlement). Your plan administrator can tell you which exceptions your specific plan recognizes.

401(k) loans: borrowing from your own account

Many 401(k) plans allow you to borrow from your balance instead of withdrawing. A loan lets you take money out without triggering the 10 percent penalty or when ready income tax. You repay the loan to yourself over time, usually through payroll deductions.

The IRS limits how much you can borrow: the lesser of $50,000 or 50 percent of your vested balance. If your balance is $100,000, you can borrow up to $50,000. If your balance is $80,000, you can borrow up to $40,000. Your plan may set a lower limit.

Loan repayment typically happens over five years through automatic payroll deductions. The interest rate is set by your plan — often the prime rate plus 1 percent — and you pay that interest to your own account, not to a bank. Because you are repaying yourself, the interest is not a cost in the traditional sense, but it does represent money that could have grown in the market instead.

The critical risk with a 401(k) loan is what happens if you leave your job. Most plans require you to repay the full loan balance within 60 to 90 days of separation, or by the time you file your tax return for that year. If you do not repay it, the unpaid balance is treated as a taxable distribution — you owe income tax on it, and if you are under 59½, you owe the 10 percent penalty as well. This can create a large unexpected tax bill.

Withdrawals after you leave your job

When you separate from your employer, your 401(k) plan rules about withdrawals may change. Some plans allow you to withdraw your balance when ready after you leave. Others require you to wait until a specific age or event. Your plan documents and the summary plan description (SPD) from your employer spell out these rules.

If you have an outstanding 401(k) loan when you leave, you face a choice: repay it in full by the important date (usually 60 to 90 days or by tax filing time), or let it default. A defaulted loan becomes a taxable distribution, which means you owe income tax on the unpaid balance plus the 10 percent early withdrawal penalty if you are under 59½.

After you leave your job, you can also roll your 401(k) balance into an IRA or into a new employer's 401(k) plan. A rollover does not count as a withdrawal — no tax or penalty applies — but it must be completed within 60 days if you take the money directly, or it can be done as a direct transfer between institutions with no time limit. Rolling over preserves the tax-deferred status of the money and keeps it out of your hands, which eliminates the temptation to spend it.

Roth 401(k) withdrawals and tax treatment

If your plan offers a Roth 401(k) option, the withdrawal rules are similar to a traditional 401(k), but the tax treatment differs. Roth contributions are made with after-tax dollars, so you do not owe income tax on the contributions themselves when you withdraw them. You do owe income tax and the 10 percent penalty on the earnings (investment growth) if you withdraw before age 59½ and before the account has been open for five years.

This distinction matters. If you contributed $20,000 to a Roth 401(k) and it grew to $25,000, you can withdraw the $20,000 contribution without tax or penalty at any age. The $5,000 in earnings is subject to tax and penalty if you are under 59½ and the account is less than five years old.

Roth 401(k) loans follow the same rules as traditional 401(k) loans — you can borrow up to $50,000 or 50 percent of your balance, and you must repay within five years or face a taxable distribution if you leave your job.

The long-term cost of early withdrawal

The when ready cost of a 401(k) withdrawal is the income tax and penalty. But the real cost is often larger: the money you remove stops growing tax-deferred. If you withdraw $10,000 at age 40 and that money would have grown to $50,000 by age 65, you have lost $40,000 in potential growth, not just the $1,000 to $3,000 in taxes and penalties.

This is why loans can be preferable to withdrawals when your plan offers them — you keep the money in the account, it continues to grow, and you repay it over time. The tradeoff is the risk that you will leave your job and face a large repayment important date.

Before you withdraw or borrow, ask your plan administrator for a projection showing what the money would grow to by your planned retirement age. That number often changes the decision.

Frequently Asked Questions

What happens if I withdraw from my 401(k) and then change my mind?

You cannot undo a withdrawal, but you can roll the money back into a 401(k) or IRA within 60 days. This is called a rollover contribution, and it reverses the tax and penalty as long as you complete it on time. After 60 days, the withdrawal is final and the tax and penalty stand.

Can my employer stop me from taking a hardship withdrawal?

No, but your employer's plan defines what qualifies as a hardship, and you must provide documentation. If your situation meets the plan's definition, the plan must allow the withdrawal. Different plans have different standards, so check your plan documents or ask your benefits department what your plan considers a hardship.

Do I have to pay taxes on a 401(k) loan?

No, a loan is not taxable when you take it out or when you repay it. You only owe taxes if the loan goes unpaid and is treated as a distribution. The interest you pay goes back into your account, so it is not a tax-deductible expense.

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

The unpaid balance becomes a taxable distribution. You owe income tax on the full amount, plus the 10 percent early withdrawal penalty if you are under 59½. Some plans allow a short grace period (60 to 90 days) after you leave, and some let you repay by your tax filing important date. Check your plan documents or contact your plan administrator to know your specific important date.

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

Technically yes, if your plan allows withdrawals, but it is usually expensive. You will owe income tax and the 10 percent penalty unless an exception applies. A hardship withdrawal typically requires when ready and heavy financial need — credit card debt alone usually does not may have access to. A loan might be a better option if your plan offers it, since you avoid the penalty and keep the money growing.