How a 401(k) Plan Works and What It Does
A 401(k) is a workplace retirement savings account where you and your employer set aside money before taxes
A 401(k) is a retirement account offered through your employer. You contribute money from your paycheck — before income tax is taken out — and your employer may add matching contributions. The money grows tax-deferred, meaning you do not pay income tax on the growth until you withdraw it in retirement. The account is named after the section of the tax code that created it.
The core mechanics are straightforward: you choose a percentage of your salary to contribute, that amount comes out of your paycheck automatically, and you direct where the money is invested (usually among mutual funds or target-date funds your plan offers). Your employer decides whether to match your contributions and on what terms. You own the money in the account; if you leave your job, the account goes with you.
A 401(k) is not the same as a pension. A pension is a may provide monthly payment for life. A 401(k) is a pot of money you build and manage, and how long it lasts depends on how much you saved and how you spend it.
Key Takeaways
- You contribute pre-tax money from your paycheck, and your employer may match a portion of what you contribute.
- The money grows without being taxed each year, but you pay income tax when you withdraw it after age 59½.
- You choose how the money is invested from the options your employer's plan offers.
- If you leave your job, you can roll the account to a new employer's plan or to an individual retirement account (IRA).
- Withdrawing money before age 59½ usually triggers a 10 percent penalty plus income tax, with limited exceptions.
How contributions work and what your employer may match
You decide what percentage of your gross salary to contribute — for example, 3 percent, 6 percent, or 10 percent. That amount is deducted from your paycheck before federal income tax is calculated, which lowers your taxable income for the year. Your employer then decides whether to match your contributions and on what formula. A common match is 50 cents for every dollar you contribute, up to 6 percent of your salary. Some employers match dollar-for-dollar up to a certain percentage; others do not match at all.
The IRS sets an annual contribution limit. For 2024, you can contribute up to $23,500 of your own money to a 401(k). If you are age 50 or older, you can contribute an additional $7,500 as a "catch-up" contribution, for a total of $31,000. Your employer's matching contribution does not count toward your personal limit, but the combined total of your contributions and your employer's contributions cannot exceed $69,000 in 2024. These limits change each year.
Employer matching is not may provide. Your employer can change or stop matching at any time, and they can require you to work a certain length of time before the match is fully yours — a process called vesting. If you leave before you are fully vested, you forfeit the unvested portion of the employer match.
Tax treatment: what you pay now and what you pay later
A traditional 401(k) is tax-deferred. You do not pay federal income tax on the money you contribute or on the investment growth while the money sits in the account. You pay income tax only when you withdraw the money, usually in retirement. This means your taxable income is lower in the year you contribute, which can lower your tax bill.
Some employers also offer a Roth 401(k) option. With a Roth, you contribute after-tax money — it does not lower your taxable income that year — but the growth and withdrawals are tax-free in retirement. The contribution limits are the same as a traditional 401(k), and you can split contributions between both types if your plan allows it.
Once you turn 73, the IRS requires you to take required minimum distributions (RMDs) from a traditional 401(k) each year, based on your age and account balance. Roth 401(k)s also have RMDs during your lifetime, though Roth IRAs do not. If you do not take the required amount, you owe a penalty of 25 percent of the shortfall (reduced to 10 percent if you correct it within two years).
When you can withdraw money and what happens if you withdraw early
You can withdraw money from your 401(k) without penalty once you reach age 59½. Before that age, withdrawals are subject to a 10 percent early withdrawal penalty plus income tax on the amount withdrawn. For example, if you withdraw $10,000 at age 45, you owe the 10 percent penalty ($1,000) plus income tax at your current tax rate on the full $10,000.
Some plans allow hardship withdrawals for specific situations — such as medical expenses, home purchase, or preventing eviction — without the 10 percent penalty, though you still owe income tax. The rules vary by plan, and not all plans offer this option. You must show financial need and that you have no other way to pay for the expense.
Another option is a loan from your 401(k). You can borrow up to 50 percent of your vested balance (or $50,000, whichever is less) and repay it over five years, usually through payroll deduction. You do not owe income tax or the early withdrawal penalty on a loan, but if you leave your job before repaying it, the outstanding balance is treated as a withdrawal and taxed accordingly.
What happens to your 401(k) when you change jobs
Your 401(k) belongs to you, not your employer. When you leave a job, you have several options for what to do with the account. You can leave it with your former employer's plan if the balance is above a certain amount (usually $5,000). You can roll it into your new employer's 401(k) if the new plan accepts rollovers. You can roll it into a traditional IRA, which gives you more investment choices and potentially lower fees. Or you can cash it out, though you will owe income tax and the 10 percent early withdrawal penalty if you are under 59½.
A direct rollover is the simplest route: the money moves directly from your old plan to the new account without touching your hands. If you take the money yourself and deposit it within 60 days, it is called an indirect rollover, but your former employer withholds 20 percent for taxes, and you must come up with that 20 percent from your own pocket to avoid owing taxes and penalties on the full amount.
If you have a Roth 401(k), you can roll it into a Roth IRA, which has no required minimum distributions during your lifetime. Rolling a traditional 401(k) into a traditional IRA preserves the tax-deferred status.
How investment choices work inside a 401(k)
Your employer's plan offers a menu of investment options — typically mutual funds, index funds, and target-date funds. You direct how your contributions are split among these options. A target-date fund automatically shifts from aggressive to conservative investments as you approach retirement; for example, a fund labeled "2050" is designed for someone retiring around 2050.
You can usually change your investment selections several times per year or whenever your life circumstances change (such as after a job change or marriage). Some plans allow self-directed brokerage accounts, which let you invest in individual stocks and bonds beyond the standard menu, though this requires more active management on your part.
The investment options and fees vary widely by employer. Some plans charge low fees; others charge high fees that eat into your returns over time. You can request a summary of plan fees and investment options from your employer's benefits department or plan administrator.
Frequently Asked Questions
Can I have a 401(k) and an IRA at the same time?
Yes. You can contribute to both a 401(k) and a traditional or Roth IRA in the same year. However, if you have a traditional IRA and earn above a certain income threshold, your 401(k) contributions may reduce the amount you can deduct on your taxes. The income limits change each year, so check the current rules with the IRS or a tax professional.
What happens to my 401(k) if I am laid off or fired?
Your 401(k) is yours to keep. Being laid off or fired does not affect your account balance or your right to the money. You can leave it with your former employer, roll it to a new job's plan, or roll it to an IRA. If you are under 59½ and need the money, you can withdraw it, but you will owe the 10 percent penalty and income tax unless you may have access to for a hardship withdrawal or use the loan option.
Do I have to contribute to my employer's 401(k)?
No. Contributing is optional. However, if your employer offers matching contributions, not contributing means you are leaving information programs on the table. Most financial advisors recommend contributing at least enough to capture the full employer match, since that is an when ready return on your money.
What is the difference between a 401(k) and a 403(b)?
A 403(b) is similar to a 401(k) but is offered by nonprofit organizations, schools, and some government employers instead of for-profit companies. The contribution limits and tax treatment are the same, but 403(b) plans typically have fewer investment options and different fee structures. The rules around loans and withdrawals are also slightly different.
Can I withdraw money from my 401(k) to pay off debt?
You can, but it usually costs you. A withdrawal before age 59½ triggers a 10 percent penalty plus income tax. Some plans allow hardship withdrawals for certain situations, but credit card debt or personal loans typically do not may have access to. A 401(k) loan is often a better option if your plan offers it, since you repay yourself with interest rather than losing the money to taxes and penalties.
This guide is for general information only and is not medical, financial, legal, or other professional advice. For decisions specific to your situation, consult a qualified professional. See our Editorial Policy.