A 401(k) is a retirement savings account your employer offers, where you set aside money from your paycheck before taxes

A 401(k) plan is a workplace retirement account that lets you save money for later life. You choose how much to contribute from each paycheck — that money goes into the account before income tax is calculated, which lowers your taxable income for the year. Your employer may add matching contributions (assistance programs, up to a limit you set). The money sits in investments you pick, and you do not pay taxes on the growth until you withdraw it, typically at age 59½ or later.

The account is named after a section of the tax code. It is one of the most common ways American workers save for retirement because the tax deferral and employer match make it more powerful than a regular savings account. However, it is not the only retirement option — some employers offer pensions, some workers use IRAs instead, and some have access to both.

Key Takeaways

  • You contribute a percentage of your salary before income tax is withheld, and your employer may match part of what you contribute.
  • The money grows tax-free inside the account, but you owe income tax on withdrawals after age 59½.
  • If you withdraw money before age 59½, you typically pay a 10 percent penalty plus income tax, with narrow exceptions for hardship or specific life events.
  • You choose how the money is invested from a menu your employer's plan provides — usually mutual funds or target-date funds.
  • If you leave your job, you can roll the account to a new employer's plan or to an IRA to keep the tax benefits intact.

How contributions work and what your employer may add

You decide what percentage of your gross pay goes into the 401(k) — typically between 1 and 50 percent, though most plans set a legal maximum around 23,500 dollars per year (this limit changes annually). That amount is deducted from your paycheck before federal income tax is calculated, so if you earn 50,000 dollars and contribute 10 percent, you only pay income tax on 45,000 dollars.

Many employers offer a matching contribution — they add their own 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 dollars and contribute 6 percent (3,000 dollars), your employer adds 1,500 dollars. This is not automatic; you have to contribute first for the match to happen. If you do not contribute, you do not receive the match.

Some employers offer a flat contribution instead of a match — they add a set percentage to everyone's account regardless of whether you contribute. Others offer no employer contribution at all. The plan documents your employer provides will state exactly how their match works.

Investment options and how your money grows

Once money is in your 401(k), you direct how it is invested. Your employer's plan offers a menu of choices — usually 10 to 30 options — which typically include stock mutual funds, bond funds, money market funds, and target-date funds. A target-date fund automatically shifts from aggressive to conservative as you approach retirement, so you do not have to rebalance manually.

The money you contribute and the employer match grow through investment returns. If you invest in a stock fund that gains 8 percent in a year, your account balance increases by 8 percent. You do not pay taxes on these gains while the money stays in the account — that is the tax-deferral benefit. However, you are responsible for choosing investments; if you pick poorly or do not diversify, your balance may not grow as much as it could.

Most plans let you change your investment choices once per quarter or more often. Some offer a "self-directed brokerage" option that lets you pick individual stocks or bonds, though this is less common and carries more risk.

When you can withdraw money and what it costs

The intended use of a 401(k) is retirement. If you withdraw money before age 59½, you typically owe a 10 percent early withdrawal penalty plus income tax on the full amount withdrawn. For example, if you withdraw 10,000 dollars at age 45, you might owe 1,000 dollars in penalty plus 2,400 dollars in income tax (at a 24 percent rate), leaving you 6,600 dollars.

There are narrow exceptions where you can withdraw without the 10 percent penalty: a permanent disability, a medical hardship that meets IRS rules, a series of equal payments over your lifetime, or a loan from your own account (which you repay with interest). Some plans also allow "hardship withdrawals" for events like foreclosure or medical bills, though you still owe income tax. The rules are strict and vary by plan.

At age 59½, you can withdraw without penalty, though you still owe income tax. At age 73, you must begin taking required minimum distributions — the IRS forces you to withdraw a calculated amount each year and pay tax on it. If you do not take the required amount, you face a 25 percent penalty on the shortfall (reduced to 10 percent if you correct it within two years).

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

When you leave an employer, your 401(k) account stays yours — it does not go back to the company. You have four main options: leave it with your former employer's plan (if the balance is above a minimum, usually 5,000 dollars), roll it to your new employer's plan if they accept rollovers, roll it to an Individual Retirement Account (IRA), or cash it out.

Cashing out is the worst option for most people because you owe the 10 percent penalty (if you are under 59½) plus income tax on the full balance, and you lose years of tax-deferred growth. A direct rollover to an IRA or new employer plan avoids the penalty and keeps the tax deferral intact. The money moves directly from one account to the other without touching your hands.

If you receive a check instead of a direct rollover, the plan withholds 20 percent for taxes, and you have 60 days to deposit the full amount (including the withheld 20 percent from your own pocket) into another retirement account or you owe taxes and penalties on the whole thing. Direct rollover is simpler and safer.

How 401(k)s differ from IRAs and other retirement accounts

A 401(k) is an employer-sponsored plan, so you can only open one if your employer offers it. An IRA (Individual Retirement Account) is opened on your own, through a bank or brokerage, and does not depend on employment. IRAs have lower annual contribution limits (7,000 dollars for most people in 2024) but more investment flexibility and lower fees.

Some employers offer a Roth 401(k) option alongside the traditional 401(k). With a Roth, you contribute after-tax dollars (your paycheck is not reduced), but withdrawals in retirement are tax-free. The trade-off: you lose the immediate tax deduction, but you avoid taxes later. Employer matches go into the traditional side, not the Roth side.

A pension is different from a 401(k) — the employer funds it and guarantees you a set payment in retirement based on salary and years of service. Pensions are rare in private industry now but still common in government and some union jobs. A 401(k) puts the investment risk and responsibility on you; a pension puts it on the employer.

Vesting: when the employer match becomes yours

Your own contributions to a 401(k) are always yours immediately — you own them from the moment they are deducted from your paycheck. The employer match, however, may have a vesting schedule. This means you do not own the full match until you have worked there for a certain period.

A common vesting schedule is "cliff vesting" at three years — you own zero percent of the match until you complete three years of employment, then you own 100 percent. Another common schedule is "graded vesting" — you own 20 percent after one year, 40 percent after two years, and so on, reaching 100 percent after five years. If you leave before you are fully vested, you forfeit the unvested portion.

Your plan documents will state the vesting schedule. If you are considering leaving a job, check whether you are fully vested — if you are not, you may want to wait a few months to capture the full match.

Frequently Asked Questions

Can I borrow money from my 401(k)?

Yes, most plans allow loans against your own balance. You typically can borrow up to 50 percent of your vested balance, up to 50,000 dollars, and you repay it with interest over five years (longer for a home purchase). The interest goes back into your account, not to the bank. If you leave your job before repaying, the loan is usually due immediately or treated as a withdrawal subject to penalty and tax.

What happens to my 401(k) if I die?

The account goes to your designated beneficiary, not through your will. You name a beneficiary when you open the account and can change it anytime. The beneficiary can roll it to an inherited IRA and take distributions over their lifetime, or withdraw it all at once and pay income tax. The rules changed in 2023, so check your plan's current rules.

Do I have to invest in stocks, or can I keep the money in cash?

Most plans offer a money market fund or stable value fund that acts like a savings account — your balance does not fluctuate, and you earn a small interest rate. However, over decades, cash typically does not keep up with inflation. Many financial advisors suggest a mix based on your age and risk tolerance, not 100 percent cash.

What if my employer goes out of business?

Your 401(k) is separate from the company's assets and is protected by federal law. If the employer closes, your account remains yours. You may need to roll it to an IRA or new employer plan, but the money is not at risk. The employer's bankruptcy does not affect your retirement savings.

Can I contribute to both a 401(k) and an IRA?

Yes, you can contribute to both in the same year. However, if you have a 401(k) at work and earn above a certain income threshold, your IRA contributions may not be tax-deductible. The income limits vary by filing status and change annually. A tax professional can tell you what applies to your situation.