How a 401(k) Works: The Basics of Employer Retirement Savings
A 401(k) is money you set aside from your paycheck for retirement, held in an account your employer sponsors
A 401(k) is a retirement savings account offered through your employer. You choose how much to deduct from each paycheck — the money goes straight into the account before taxes are taken out. Your employer may add matching money to your account. The account grows over time through your contributions and investment returns, and you can withdraw it after age 59½ without penalty.
The name comes from the section of the tax code that created it. It is not a government program — it is a private account your employer sets up with a financial company. You control how the money is invested, usually by choosing from a list of mutual funds or target-date funds the plan offers.
The main reason people use 401(k)s is the tax break: money you contribute reduces your taxable income for the year, which lowers what you owe in federal income tax. You pay taxes on the money when you withdraw it in retirement, not when you earn it.
Key Takeaways
- You contribute money from your paycheck, and your employer may match a portion of what you contribute, usually up to 3 to 6 percent of your salary.
- The money you put in reduces your taxable income for the year, so you pay less in federal income tax now.
- You choose how the money is invested from options your employer's plan offers, typically mutual funds or target-date funds.
- You can withdraw money without penalty after age 59½; withdrawals before that age usually trigger a 10 percent penalty plus income tax.
- If you leave your job, you can roll the money into an IRA or your new employer's plan to keep it growing tax-deferred.
How contributions and employer matching work
You decide what percentage of your paycheck goes into the 401(k) — typically anywhere from 1 to 50 percent, though your employer may set limits. The money is deducted before federal income tax is calculated, which is why it lowers your tax bill. If you earn $50,000 and contribute $5,000 to a 401(k), you only pay federal income tax on $45,000.
Many employers offer a match: they contribute money to your account based on how much you contribute. A common match is 50 cents for every dollar you contribute, up to 6 percent of your salary. If you earn $50,000 and contribute 6 percent ($3,000), your employer adds $1,500. If you contribute only 3 percent ($1,500), they add $750. The match amount varies by employer — some offer no match, and some offer more generous ones.
The employer match is essentially information programs, so most financial advisors recommend contributing at least enough to capture the full match. If your employer matches up to 6 percent, contributing less than 6 percent means leaving money on the table.
Investment choices and how your money grows
Your 401(k) provider gives you a list of investment options, usually 10 to 30 choices. Most plans include mutual funds (which hold many stocks or bonds), index funds (which track a market index like the S&P 500), and target-date funds (which automatically shift from stocks to bonds as you approach retirement). Some plans also offer company stock or stable value funds.
You choose how to split your contributions among these options. For example, you might put 60 percent in a stock fund and 40 percent in a bond fund. Your choices determine how much risk you take and how much growth you might see. Stock funds typically grow faster but fluctuate more; bond funds are more stable but grow slower.
The money in your account grows tax-deferred, meaning you do not pay taxes on the investment gains each year. If a mutual fund earns $500 in dividends, that $500 stays in your account and keeps growing. You only pay taxes when you withdraw the money in retirement.
Contribution limits and how much you can save
The IRS sets a maximum amount you can contribute each year. For 2024, the limit is $23,500 for people under age 50. If you are 50 or older, you can contribute an additional $7,500 (called a catch-up contribution), for a total of $31,000. These limits change each year and are announced by the IRS in October for the following year.
Your employer may also set a lower limit, though this is uncommon. Some plans cap contributions at a percentage of your salary rather than a dollar amount. Check your plan documents or ask your employer's benefits department what the actual limit is for your plan.
If you have multiple jobs with 401(k) plans, your combined contributions across all plans cannot exceed the annual limit. If you contributed $15,000 at one job and $10,000 at another, you have hit the limit and cannot contribute more that year.
Withdrawals, penalties, and what happens when you leave your job
You can withdraw money from your 401(k) after age 59½ without penalty. If you withdraw before that age, you owe a 10 percent penalty on top of regular income tax. For example, if you withdraw $10,000 at age 45, you pay $1,000 in penalty plus income tax on the full $10,000.
There are a few exceptions to the early withdrawal penalty: if you become disabled, if you face a financial hardship your plan recognizes, or if you take substantially equal periodic payments. Hardship withdrawals vary by plan — some allow them for medical bills, home purchase, or education costs, while others do not. Ask your plan administrator what your plan allows.
When you leave your job, you have several options. You can leave the money in your former employer's plan if the balance is at least $5,000 (rules vary by plan). You can roll it into an IRA (Individual Retirement Account), which gives you more investment choices. You can roll it into your new employer's 401(k) if that plan accepts rollovers. Or you can cash it out, though you will owe the 10 percent penalty (if you are under 59½) plus income tax on the entire amount.
Tax treatment: now versus later
A traditional 401(k) reduces your taxes now but you pay taxes later. The $5,000 you contribute this year lowers your taxable income this year, so you pay less in federal income tax. When you withdraw that $5,000 in retirement, you pay income tax on it then. This works well if you expect to be in a lower tax bracket in retirement than you are now.
Some employers also offer a Roth 401(k) option. With a Roth, you contribute money after taxes have already been taken out, so it does not lower your current tax bill. But when you withdraw in retirement, the money comes out tax-free. A Roth works well if you expect to be in a higher tax bracket in retirement or if you want tax-free growth.
You cannot choose both — you pick either traditional or Roth (or split your contributions between them). The choice depends on your current tax situation and what you expect in retirement.
Vesting: when the employer match becomes yours
Your own contributions are always yours when ready. But employer matching money is sometimes subject to a vesting schedule — a timeline for when the match officially becomes yours to keep.
Common vesting schedules are when ready (the match is yours right away), cliff vesting (you get 100 percent after a certain number of years, like three years), or graded vesting (you get a percentage each year, like 20 percent per year for five years). If you leave your job before you are fully vested, you forfeit the unvested portion of the match.
For example, if your employer uses three-year cliff vesting and you leave after two years, you keep your own contributions but lose the employer match. If you stay three years, the entire match is yours. Check your plan documents to see your vesting schedule — it is usually listed in the summary plan description your employer provides.
Frequently Asked Questions
Can I withdraw money from my 401(k) before retirement?
You can withdraw before age 59½, but you will owe a 10 percent penalty plus income tax on the amount withdrawn. Some plans allow hardship withdrawals for specific reasons like medical bills or home purchase, which may waive the penalty. Check your plan documents or ask your employer what hardship reasons your plan recognizes.
What happens to my 401(k) if I get fired or quit?
Your contributions are always yours. Employer matching money depends on your vesting schedule — if you are not fully vested, you forfeit the unvested portion. You can roll the vested balance into an IRA or your new employer's plan, or leave it in your former employer's plan if the balance is at least $5,000.
Is a 401(k) the same as a pension?
No. A pension is funded entirely by your employer and pays you a set amount each month in retirement. A 401(k) is funded by you and your employer (if they offer a match), and the amount you have in retirement depends on how much you contributed and how well your investments performed.
Should I contribute to a 401(k) or an IRA first?
If your employer offers a match, contribute enough to capture the full match first — that is information programs. After that, you can contribute to an IRA if you want more investment choices, or continue contributing to the 401(k). An IRA has lower contribution limits but more flexibility in investment options.
What if my employer does not offer a 401(k)?
You can open an IRA on your own through a bank, brokerage, or investment company. An IRA has lower contribution limits ($7,000 for 2024 if you are under 50) but gives you control over investments and no employer involvement. Some self-employed people use a Solo 401(k) or SEP IRA instead.
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.