You can take money out of your 401k, but the rules depend on your age and reason

Yes, you can withdraw money from your 401k before you turn 59½, but you will usually pay a 10% early withdrawal penalty on top of income tax. The exception is if you meet one of the IRS's specific hardship categories or life circumstances — job loss, disability, medical bills, home purchase, education costs, or a few others. If you are 59½ or older, you can withdraw without the penalty, though you still owe income tax on the money.

The key distinction is between a withdrawal (you take the money and it is gone) and a loan (you borrow from your own balance and pay it back). A loan has different rules and no tax hit if you repay on time. Your plan documents and your plan administrator determine which options are actually available to you — not all plans allow loans, and not all plans allow hardship withdrawals.

Key Takeaways

  • Withdrawals before age 59½ trigger a 10% penalty plus income tax unless you meet an IRS hardship category or exception.
  • A 401k loan lets you borrow from your own balance without penalty, but you must repay it within five years (or longer if buying a home), and you owe income tax on any amount you do not repay.
  • Your specific plan decides whether loans and hardship withdrawals are even an option — contact your plan administrator to find out what your plan allows.
  • If you leave your job, you can roll your 401k into an IRA or a new employer's plan to avoid immediate withdrawal pressure and keep the money growing tax-deferred.
  • Withdrawals reduce your retirement savings permanently and can trigger tax bills you do not expect, so exploring loans or rollovers first usually costs less.

Early withdrawal penalties and when they do not apply

If you withdraw money from your 401k before age 59½, the IRS charges a 10% penalty on the amount withdrawn. You also owe federal income tax on that amount — the plan will withhold 20% automatically, but your actual tax bill may be higher or lower depending on your total income that year. A $10,000 withdrawal could cost you $1,000 in penalty plus $2,000 to $4,000 in federal tax, depending on your tax bracket.

The penalty does not apply if you are 59½ or older, if you are disabled, if you are a beneficiary receiving distributions after the account holder's death, or if you have separated from service and are taking substantially equal periodic payments under IRS Rule 72(t). You also avoid the penalty if you meet an IRS hardship category: unreimbursed medical expenses, medical insurance premiums after job loss, home purchase (first-time buyers only, up to $10,000 lifetime), higher education costs, or preventing eviction or foreclosure. Some plans add their own categories — ask your administrator what your plan covers.

Even when the penalty does not apply, you still owe income tax on the withdrawal. The only exception is if you roll the money into another retirement account (an IRA or a new employer's 401k) within 60 days — that move is tax-free and penalty-free.

How 401k loans work and what you repay

A 401k loan lets you borrow from your own account balance without triggering the 10% penalty. You set up a repayment schedule, usually through payroll deductions, and you pay back the loan plus interest. The interest rate is typically the prime rate plus 1% to 2%, set by your plan. If you repay on time, there is no tax consequence — the money you repay goes back into your account tax-free.

The catch: if you do not repay the loan on time, the IRS treats the unpaid balance as a withdrawal. You then owe the 10% penalty (if you are under 59½) plus income tax on the full unpaid amount. If you leave your job, most plans require you to repay the loan within 60 to 90 days or face that tax hit. Some plans allow you to extend the repayment period if you stay with the employer, but the rules vary.

The standard repayment term is five years for general loans. If you are borrowing to buy a primary residence, some plans allow a longer repayment period — ask your administrator. You can borrow up to $50,000 or half your vested balance, whichever is less. Not all plans offer loans, so check your plan documents or contact your administrator before counting on this option.

Hardship withdrawals and what counts as a hardship

A hardship withdrawal lets you take money out before 59½ without the 10% penalty, but only for specific reasons the IRS recognizes. The most common categories are: immediate and heavy financial need due to medical care, preventing foreclosure or eviction, paying for higher education, or paying unreimbursed casualty losses. You must show that you cannot meet the need any other way — you cannot have other savings or loans available, and you must have already taken out any available 401k loans.

The process varies by plan. Some plans require you to submit a written request with documentation — medical bills, a foreclosure notice, a tuition bill, or proof of casualty loss. Others use a simpler attestation process where you sign a form stating the hardship is real. Your plan administrator decides how strict the review is. Even if your hardship is approved, you still owe income tax on the withdrawal, though the 10% penalty is waived.

Hardship withdrawals are not loans — the money does not go back into your account. Once you withdraw it, that balance is gone and does not grow tax-deferred anymore. For that reason, a 401k loan is usually the better choice if your plan offers one, because you keep the money growing and you avoid the tax bill if you repay on time.

What happens to your 401k when you leave your job

When you separate from your employer, you have four main options for your 401k: leave it where it is, roll it into an IRA, roll it into your new employer's plan, or cash it out. Cashing it out triggers the 10% penalty (if you are under 59½) plus income tax on the full balance. A rollover — moving the money directly to an IRA or new plan — is tax-free and penalty-free, and the money keeps growing tax-deferred.

If you have an outstanding 401k loan when you leave, most plans require you to repay it within 60 to 90 days. If you cannot repay, the unpaid balance is treated as a withdrawal and taxed accordingly. Rolling your balance into an IRA does not automatically resolve the loan — you have to handle the loan separately, either by repaying it or accepting the tax hit.

Leaving the money in your old employer's plan is an option if your balance is above a certain threshold (usually $5,000). You keep the tax-deferred growth and avoid any immediate decision, but you lose access to that plan's loan feature and you cannot make new contributions. Rolling to an IRA gives you more investment choices and keeps the loan option open if your new plan does not offer loans.

Tax withholding and what you actually owe

When you take a withdrawal from your 401k, your plan administrator withholds 20% for federal income tax automatically. That withholding goes to the IRS, but it is not your final tax bill — your actual tax liability depends on your total income for the year. If you are in a higher tax bracket, you may owe more than 20%. If you are in a lower bracket or have other deductions, you may get a refund when you file your return.

The 10% early withdrawal penalty is separate from income tax. If you withdraw $10,000 before age 59½ and do not may have access to for an exception, you owe 10% penalty ($1,000) plus income tax on the full $10,000. Your plan withholds 20% ($2,000), leaving you $8,000. When you file your tax return, you calculate your actual tax bill — it might be $3,000 total, in which case you get a $1,000 refund, or it might be $4,000, in which case you owe $2,000 more.

If you take a hardship withdrawal, the 10% penalty does not apply, but the 20% withholding still happens. You owe income tax on the full amount, but not the penalty. A $10,000 hardship withdrawal withholds $2,000, and your actual tax bill is based on your bracket — typically $1,500 to $3,000 depending on your income.

Alternatives to withdrawals: rollovers and loans

Before you withdraw, explore whether a rollover or loan makes sense for your situation. A rollover moves your balance to an IRA or a new employer's plan without any tax or penalty, and the money keeps growing tax-deferred. This is the best option if you are changing jobs and do not need the money right now. You can also do a partial rollover — move most of the balance and take a small withdrawal if you need cash.

A 401k loan costs you less than a withdrawal if you can repay it on time. You avoid the 10% penalty and the income tax, and the money you repay goes back into your account. The trade-off is that you have to repay on a set schedule, usually through payroll deductions, and if you leave your job you have a short window to repay or face a tax bill. If your plan does not offer loans, this option is not available.

If you are facing a genuine hardship and have no other options, a hardship withdrawal avoids the 10% penalty but still costs you income tax. It is better than a regular withdrawal if you may have access to, but worse than a loan because the money does not come back. Talk to your plan administrator about what your plan allows before deciding.

Frequently Asked Questions

Can I withdraw my 401k if I am unemployed?

Yes, you can withdraw at any time, but if you are under 59½ you owe the 10% penalty plus income tax unless you meet an exception. If you lost your job and are paying for health insurance, you may may have access to for a hardship withdrawal without the penalty. Otherwise, a rollover to an IRA is usually cheaper than a withdrawal because you avoid the penalty and keep the money growing.

What if I need the money but do not want to pay the penalty?

A 401k loan avoids the penalty if your plan offers one. You borrow from your own balance and repay through payroll, with no tax hit if you repay on time. If you do not may have access to for a loan, a rollover to an IRA lets you keep the money growing tax-deferred while you figure out your next step. Withdrawals should be your last option because the penalty and tax are permanent.

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

No, not if you repay on time. The money you borrow and repay goes back into your account tax-free. You only owe taxes if you fail to repay — then the unpaid balance is treated as a withdrawal and taxed as income, plus the 10% penalty if you are under 59½.

What happens if I roll my 401k to an IRA and then withdraw from the IRA?

The same rules apply. If you are under 59½ and withdraw from an IRA, you owe the 10% penalty plus income tax unless you meet an exception. Rolling to an IRA does not change the penalty rules — it just gives you more investment choices and keeps the money growing tax-deferred while you decide what to do.

Can I withdraw my 401k to pay off debt?

You can withdraw for any reason, but paying off debt does not may have access to as an IRS hardship, so you owe the 10% penalty plus income tax if you are under 59½. A 401k loan might be a better option if your plan offers one — you borrow at a lower rate than most credit cards and avoid the penalty. Otherwise, the tax cost of a withdrawal usually makes it more expensive than keeping the debt.