You generally cannot take money out of your 401k anytime you want. Federal rules lock the account until you leave the sponsoring employer, reach age 59½, qualify for a hardship, or hit another triggering event such as disability or plan termination. Even once you can withdraw, any distribution before 59½ usually carries a 10% early distribution penalty on top of ordinary income tax, unless a specific exception applies.
The Events That Unlock a Withdrawal
A 401k is built for retirement, and the distribution rules enforce that. While you are still employed by the company sponsoring your plan, the IRS permits distributions only when one of the following happens:1Internal Revenue Service. 401(k) Resource Guide – Plan Participants – General Distribution Rules
- You separate from service — you quit, get laid off, or are fired.
- You reach age 59½ (and your plan allows in-service withdrawals).
- You have a qualifying hardship.
- You become disabled, or your beneficiary receives funds after your death.
- Your employer terminates the plan without replacing it.
Outside these situations, cash withdrawals from a 401k while you’re still employed aren’t available. Some plans do allow loans, which let you borrow against your balance without triggering a permanent distribution.
Once you separate from the employer, you can request a distribution for any reason. Access, though, is not the same as penalty-free access. Before 59½, the 10% early withdrawal penalty applies unless you fit an exception below.
Age 59½ and the Early Exit Ages
Age 59½ is the main dividing line. After that birthday, you can take distributions for any reason without the 10% penalty, though traditional 401k withdrawals still count as taxable income.2Internal Revenue Service. Retirement Topics – Exceptions to Tax on Early Distributions If you’re still working, your plan has to permit in-service withdrawals; most do, but check your plan document.
Rule of 55
If you leave your job during or after the calendar year you turn 55, you can withdraw from that employer’s 401k without the 10% penalty. It only covers the plan held by the employer you most recently left. Old 401k accounts from prior jobs and IRAs are not eligible.2Internal Revenue Service. Retirement Topics – Exceptions to Tax on Early Distributions Income tax still applies.
Rule of 50 for Public Safety Workers
State and local public safety workers in governmental plans can tap those plans as early as age 50 upon separation. The exception also covers specified federal law enforcement officers, federal firefighters, corrections officers, customs and border protection officers, private-sector firefighters, and air traffic controllers.3Internal Revenue Service. Topic No. 558, Additional Tax on Early Distributions From Retirement Plans
Hardship Withdrawals
If your plan allows hardship distributions, you may be able to pull funds before 59½ to cover an immediate and heavy financial need, but only if you can’t reasonably cover it another way.4Office of the Law Revision Counsel. 26 USC 401 – Qualified Pension, Profit-Sharing, and Stock Bonus Plans Not every plan offers them; check your plan documents.
The IRS safe harbor list of expenses that automatically qualify:
- Unreimbursed medical expenses for you, your spouse, dependents, or plan beneficiary.
- Costs directly tied to buying your primary residence (not mortgage payments).
- Tuition, fees, and room and board for the next 12 months of post-secondary education for you, your spouse, children, dependents, or beneficiary.
- Payments needed to prevent eviction from or foreclosure on your primary home.
- Funeral or burial expenses for close family or your beneficiary.
- Certain repairs to damage on your primary residence.
Your plan can rely on your written self-certification that you have no other way to cover the expense, but the employer can’t accept that certification if it actually knows you could pay through insurance, other assets, or a plan loan.5Internal Revenue Service. Retirement Plans FAQs Regarding Hardship Distributions
Important cost note: a hardship withdrawal is still subject to income tax, and the 10% early penalty still applies unless one of the exceptions below covers your situation. Plans can no longer force you to suspend your 401k contributions after a hardship distribution, so you can keep saving.
Other Penalty-Free Exceptions Before 59½
Beyond the age rules and hardship, the tax code lists several situations where the 10% penalty is waived. Income tax still applies to traditional 401k distributions in every case.
Substantially Equal Periodic Payments
You can set up a schedule of substantially equal periodic payments based on your life expectancy and avoid the 10% penalty. For a 401k, you first have to leave the employer sponsoring the plan. Once payments begin, you can’t change the schedule until the later of five years after the first payment or the date you reach 59½. Break the schedule early and every past payment gets hit with retroactive penalties plus interest.6Internal Revenue Service. Substantially Equal Periodic Payments
Disability, Terminal Illness, and Death
Distributions are penalty-free if you become totally and permanently disabled. A terminal illness exception also applies when a physician certifies you’re expected to die within 84 months. Distributions to your beneficiary or estate after your death are penalty-free as well.2Internal Revenue Service. Retirement Topics – Exceptions to Tax on Early Distributions
Birth or Adoption
Each parent can withdraw up to $5,000 per child within one year of a birth or a finalized adoption without the 10% penalty, and you can repay the distribution to the plan later.2Internal Revenue Service. Retirement Topics – Exceptions to Tax on Early Distributions
Divorce Under a QDRO
When a court issues a qualified domestic relations order directing part of your 401k to a former spouse or other alternate payee, that distribution is penalty-free for the recipient.1Internal Revenue Service. 401(k) Resource Guide – Plan Participants – General Distribution Rules
Domestic Abuse Survivors
For distributions made after December 31, 2023, a domestic abuse survivor can self-certify and withdraw the lesser of $10,500 (the 2026 limit, adjusted for inflation) or 50% of the vested account balance without the 10% penalty. The amount can be repaid within three years.7Internal Revenue Service. 2026 Amounts Relating to Retirement Plans and IRAs
Emergency Personal Expense Distributions
Under SECURE 2.0, plans can allow one penalty-free emergency withdrawal per calendar year, capped at the lesser of $1,000 or your vested balance above $1,000. You can repay it within three years, and you can’t take another one during that window unless you’ve fully repaid the previous distribution or contributed an equivalent amount.2Internal Revenue Service. Retirement Topics – Exceptions to Tax on Early Distributions
Medical, Military, IRS Levy, and Disaster
Other penalty-free categories include unreimbursed medical expenses exceeding 7.5% of your adjusted gross income, distributions ordered by an IRS levy, distributions to qualified military reservists called to active duty for at least 180 days, and distributions triggered by a federally declared disaster in your area.3Internal Revenue Service. Topic No. 558, Additional Tax on Early Distributions From Retirement Plans
What an Early Withdrawal Actually Costs
Two layers of cost stack up on an early 401k withdrawal: income tax and, in most cases, the 10% penalty.
Any traditional 401k distribution counts as ordinary income for the year, piled on top of your wages. The 10% penalty is a separate charge on your tax return for pre-59½ distributions without an exception.2Internal Revenue Service. Retirement Topics – Exceptions to Tax on Early Distributions
On top of that, when you receive a distribution eligible for rollover, the plan administrator must withhold 20% for federal income tax before cutting your check. That withholding is automatic and can’t be waived.1Internal Revenue Service. 401(k) Resource Guide – Plan Participants – General Distribution Rules A direct rollover to another retirement plan or IRA avoids the withholding entirely.8Internal Revenue Service. Topic No. 413, Rollovers From Retirement Plans
Example: Cashing Out $20,000 at Age 45
- 20% withholding: $4,000 goes straight to the IRS. You receive $16,000.
- 10% penalty: another $2,000 owed at tax time.
- Income tax: the full $20,000 is added to your taxable income, and depending on your bracket, you may owe more than the $4,000 already withheld.
For 2026, federal rates run from 10% on the first $12,400 of taxable income (single filers) to 37% on income above $640,600.9Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026 Because the distribution stacks on top of your wages, even a moderate withdrawal can push part of your income into a higher bracket. State income tax may also apply.
Borrowing Instead of Withdrawing
If your plan permits loans, you can access money without a permanent distribution or immediate tax consequences. Federal rules cap 401k loans at the lesser of $50,000 or 50% of your vested balance. If half of your vested balance is under $10,000, some plans allow up to $10,000, but they aren’t required to.10Internal Revenue Service. Retirement Topics – Plan Loans
You typically must repay within five years through at least quarterly payments, often via payroll deduction. Loans used to buy a primary residence can run longer if the plan allows.
Leaving your job with an outstanding loan is where things get expensive. The plan may require immediate repayment of the full balance. If you can’t pay, the unpaid amount is treated as a taxable distribution, with the 10% penalty if you’re under 59½. Defaulting while still employed produces the same result. One relief: if the distribution comes from a plan loan offset triggered by leaving your job, you have until your tax filing deadline (including extensions) that year to roll the amount into an IRA or another eligible plan and avoid the tax hit.11Internal Revenue Service. Plan Loan Offsets
Rolling Over Instead of Cashing Out
Leaving a job doesn’t force you to cash out, and cashing out is usually the most expensive move. Your rollover options:
- Direct rollover to an IRA. The plan sends funds straight to the IRA custodian. No withholding, no penalty.
- Direct rollover to a new employer’s 401k, if it accepts rollovers.
- Leave it in the old plan, if the plan allows former employees to stay. No tax event, but you’re stuck with the old plan’s investment menu.
With an indirect rollover — a check made out to you — 20% is withheld, and you have 60 days to deposit the full original distribution (making up the withheld portion from your own pocket) into an eligible retirement plan. Miss the 60-day window and the whole amount becomes taxable.12Internal Revenue Service. Rollovers of Retirement Plan and IRA Distributions If your vested balance is $1,000 or less, the plan may cash you out automatically with 20% withheld, but you can still roll it over within 60 days.
Roth 401k Withdrawals Work Differently
Roth 401k contributions were already taxed when you made them, so withdrawing the contribution portion doesn’t trigger income tax.13Internal Revenue Service. Roth Account in Your Retirement Plan The earnings get tax-free treatment only if the withdrawal is a “qualified distribution”: you must be at least 59½ (or disabled, or the distribution goes to a beneficiary after your death), and at least five years must have passed since your first Roth contribution to the plan. Pull earnings out before meeting both, and they’re taxable and can face the 10% penalty.
Vesting Limits What You Can Actually Take
Before you plan a withdrawal, check what’s actually yours. Your own contributions are always 100% vested. Employer contributions — matches and profit-sharing — may be subject to a vesting schedule.14Internal Revenue Service. Retirement Topics – Vesting
- Cliff vesting: you own none of the employer contributions until you hit a set milestone (up to three years of service), then jump to 100%.
- Graded vesting: ownership builds each year, reaching 100% after up to six years — for instance, 20% after two years, 40% after three, and so on.
Leave before you’re fully vested and you forfeit the unvested employer contributions. Only the vested balance is available to withdraw or roll over.