A 401(k) is a workplace retirement savings account where you and your employer set aside money for your future

A 401(k) is a retirement savings plan that your employer offers. You contribute money from your paycheck before taxes are taken out, your employer may add matching funds, and the money grows over time through investments you choose. You cannot withdraw the money without penalty until you reach age 59½, with some exceptions. The account is named after a section of the tax code that created it.

The basic structure is simple: money goes in automatically from your paycheck, sits in investments you pick, and stays there until retirement. Your employer holds the account through a plan administrator, but you control where the money is invested. The main reason people use 401(k)s is the tax break — you do not pay income tax on the money you contribute or on the investment gains until you withdraw it in retirement, when you may be in a lower tax bracket.

Key Takeaways

  • You contribute pre-tax money from your paycheck, and your employer may match a portion of what you contribute, typically between 3 and 6 percent of your salary.
  • You choose how to invest the money from a list of options your employer's plan offers, usually mutual funds and target-date funds.
  • You cannot withdraw money before age 59½ without paying a 10 percent penalty plus income tax, except in specific hardship situations.
  • In 2024, you can contribute up to $23,500 per year if you are under 50, and $31,000 if you are 50 or older, though your employer's plan may have lower limits.
  • If you leave your job, you can roll the money into an IRA or your new employer's plan to avoid taxes and penalties.

How contributions and employer matching work

When you enroll in your employer's 401(k), you choose what percentage of your paycheck to contribute — for example, 5 percent or 10 percent. That amount is deducted before your employer calculates your income tax, which lowers your taxable income for the year. If you earn $50,000 and contribute $5,000, you only pay income tax on $45,000.

Many employers offer a matching contribution, meaning they add money to your account based on what 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. This is assistance programs, so most financial advisors recommend contributing at least enough to capture the full match. If your employer offers a match and you do not contribute enough to get it, you are leaving money on the table.

The total amount you can contribute in a year is set by federal law and changes annually. For 2024, the limit is $23,500 if you are under 50 years old, and $31,000 if you are 50 or older. Your employer's plan may allow lower contributions, but not higher ones. Once you hit the annual limit, contributions stop for the rest of that year.

Investment choices and how your money grows

Your 401(k) money does not sit in a savings account earning interest. Instead, you invest it in the options your employer's plan offers. Most plans provide a menu of 10 to 30 mutual funds — baskets of stocks, bonds, or both — and target-date funds, which automatically shift from stocks to bonds as you get closer to retirement. You can usually split your contribution among multiple investments or change your choices once or twice a year.

The growth of your account depends on how the investments perform. If you invest in stock funds and the market rises, your account grows. If the market falls, your account value drops. This is why 401(k)s are considered riskier than a savings account but offer higher potential returns over decades. Most people in their 20s and 30s choose stock-heavy investments because they have time to recover from market downturns. People closer to retirement often shift toward bonds, which are more stable but grow more slowly.

You do not pay taxes on the investment gains while the money is in the account. If your $10,000 investment grows to $15,000, you do not owe tax on that $5,000 gain. You only pay tax when you withdraw the money in retirement.

Withdrawal rules and early withdrawal penalties

The main restriction on 401(k)s is that you cannot touch the money without consequences until you turn 59½. If you withdraw money before that age, you owe a 10 percent penalty on top of regular income tax. If you withdraw $10,000 at age 45 and are in the 22 percent tax bracket, you would owe $2,200 in tax plus $1,000 in penalty — meaning you only receive $6,800 of the $10,000.

There are narrow exceptions to this rule. Some plans allow hardship withdrawals for immediate financial need — such as medical bills, home repairs, or tuition — without the 10 percent penalty, though you still owe income tax. You must prove the hardship and exhaust other options first. Other plans offer loans, where you borrow from your own 401(k) and repay it with interest; if you repay on time, there is no tax or penalty.

At age 59½, you can withdraw money without penalty, though you still owe income tax on the full amount. At age 73, you must begin taking required minimum distributions — the government forces you to withdraw a certain amount each year and pay tax on it, to ensure the government eventually collects tax on the money.

What happens to your 401(k) when you change jobs

If you leave your job, your 401(k) stays in your former employer's plan unless you move it. You have three main options: leave it where it is, roll it into an IRA (Individual Retirement Account), or roll it into your new employer's 401(k) if that plan accepts rollovers.

Rolling the money into an IRA gives you more investment choices and lower fees, since IRAs are not tied to an employer. Rolling it into a new employer's plan keeps everything in one place if you prefer simplicity. Leaving it with your former employer is usually the worst option because you lose access to the employer's plan features and may face higher fees.

The key rule is to do a direct rollover, where the money moves from one account to another without touching your hands. If you withdraw the money yourself, your former employer withholds 20 percent for taxes, and you have only 60 days to deposit it elsewhere or you owe the full tax bill plus a 10 percent penalty. Direct rollovers avoid this trap entirely.

Tax treatment and retirement income

A 401(k) is a tax-deferred account, meaning you postpone paying income tax until you withdraw the money. This works well if you expect to be in a lower tax bracket in retirement than you are now — which is true for many people, since retirement income is often lower than working income. If you earn $80,000 now and withdraw $40,000 per year in retirement, you pay tax only on the $40,000.

However, if you have a large 401(k) balance and other retirement income, your withdrawals could push you into a higher tax bracket than you expected. There is no way to avoid this tax; it is built into the 401(k) structure. Some people use other accounts, like Roth IRAs, to diversify their tax situation in retirement, but that is a separate decision.

When you withdraw money in retirement, you report it as income on your tax return. If you withdraw $50,000 from your 401(k) in a given year, that $50,000 counts as taxable income for that year. You can withdraw as much or as little as you want each year, except that at age 73 you must withdraw at least the required minimum distribution.

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) through your employer and an IRA on your own. However, if you have a high income, contributing to a traditional IRA while you have a 401(k) may reduce or eliminate your IRA tax deduction. A financial advisor can help you decide which account to prioritize based on your income and goals.

What is the difference between a 401(k) and a Roth 401(k)?

A traditional 401(k) uses pre-tax money, so you get a tax break now and pay tax in retirement. A Roth 401(k) uses after-tax money, so you pay tax now but withdrawals in retirement are tax-free. Some employers offer both; you choose which one to use. Roth is better if you expect to be in a higher tax bracket in retirement.

What happens to my 401(k) if I am fired or laid off?

Your 401(k) belongs to you, not your employer. If you are fired or laid off, the money stays in your account. You can leave it there, roll it to an IRA, or roll it to a new employer's plan. You cannot access it without penalty until age 59½ unless you may have access to for a hardship withdrawal or loan.

Do I have to contribute to my employer's 401(k)?

No, 401(k)s are optional. However, if your employer offers a match and you do not contribute, you miss out on assistance programs. Most financial advisors recommend contributing at least enough to capture the full employer match before saving elsewhere.

Can I change my investment choices after I enroll?

Yes. Most plans let you change how your money is invested once or twice per year, or sometimes more often. You can also change your contribution amount whenever you want. Check your plan's rules or contact your plan administrator to learn how often you can make changes.