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

A 401(k) is a retirement savings plan that your employer offers. You put money into it from your paycheck before taxes are taken out, your employer may add matching money, and that account grows over time until you withdraw it in retirement. The money sits in investments — usually mutual funds or target-date funds — that you choose from a menu your employer provides.

The name comes from the section of the tax code that created it. It is not a government program you sign up for separately; it is a benefit your employer runs, usually through a financial company like Fidelity, Vanguard, or Schwab. If your employer offers one, you enroll through your HR or payroll department.

Key Takeaways

  • You contribute money from your paycheck before income tax is withheld, which lowers your taxable income for that year.
  • Your employer may match a portion of what you contribute — commonly 3 to 6 percent of your salary — but only if you contribute first.
  • The money you contribute and any employer match grow tax-free until you withdraw it, usually at age 59½ or later.
  • If you leave your job, you can roll the 401(k) into an IRA or your new employer's plan to keep it growing without penalty.
  • Withdrawing money before age 59½ usually costs you a 10 percent penalty plus income tax on the amount withdrawn.

How money moves in and out of a 401(k)

You decide what percentage of each paycheck goes into the 401(k) — typically between 1 and 50 percent of your gross salary. That money is deducted before your employer calculates income tax, so if you earn $50,000 and contribute $5,000 to your 401(k), you only pay income tax on $45,000. This is called a pre-tax contribution.

Your employer then decides whether to match your contribution. A common match is 50 cents for every dollar you contribute, up to 6 percent of your salary. So if you earn $50,000 and contribute 6 percent ($3,000), your employer adds $1,500. If you contribute only 2 percent ($1,000), your employer adds $500. If you contribute nothing, you get nothing — employer match is not automatic.

All that money — yours and your employer's — goes into investment funds you select. You can usually choose from 10 to 40 different funds, ranging from conservative (bonds, stable value) to aggressive (stock index funds). The account grows or shrinks based on how those investments perform.

When you can take money out

You can withdraw money from your 401(k) starting at age 59½ without penalty. Before that age, withdrawals are subject to a 10 percent early withdrawal penalty plus income tax on the amount you take out. So if you withdraw $10,000 at age 45, you lose $1,000 to the penalty, plus you owe income tax on the full $10,000.

Some plans allow hardship withdrawals for specific situations like medical bills, eviction, or funeral costs, but you still pay the 10 percent penalty and income tax. Other plans offer a loan feature that lets you borrow from your own 401(k) and repay it over time, which avoids the penalty if you repay on schedule.

At age 73, the IRS requires you to start taking required minimum distributions (RMDs) — a set amount each year based on your age and account balance. If you do not take the RMD, you owe a 25 percent penalty on the amount you should have withdrawn.

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

Your 401(k) belongs to you, not your employer. When you leave the job, you have four options: leave it where it is, roll it into your new employer's 401(k), roll it into an Individual Retirement Account (IRA), or cash it out.

Cashing it out is almost always the worst choice — you pay the 10 percent penalty (even if you are over 59½ when you leave) plus income tax on the full amount. A rollover to an IRA or new 401(k) avoids both penalties and keeps the money growing tax-free. Many people choose an IRA rollover because IRAs usually offer more investment choices than a 401(k).

If you leave the money in your old employer's plan, it keeps growing, but you cannot add to it anymore. You can still withdraw it at 59½ without penalty, and you still owe RMDs at 73.

The difference between pre-tax and Roth contributions

Most 401(k)s offer pre-tax contributions, which lower your income tax bill now but you pay tax on withdrawals later. Some employers also offer a Roth 401(k) option, where you contribute money that has already been taxed, but withdrawals in retirement are tax-free.

Pre-tax makes sense if you expect to be in a lower tax bracket in retirement. Roth makes sense if you expect to be in a higher bracket, or if you want to lock in today's tax rate. You can contribute to both in the same year, but your total across both cannot exceed the annual limit (which changes yearly and varies by age).

Employer match is assistance programs — but only if you contribute

If your employer offers a match, not taking it is leaving money on the table. A typical match of 3 to 6 percent is an immediate 50 to 100 percent return on your contribution. Even if you are paying off debt or building an emergency fund, contributing enough to capture the full match is usually worth it.

The match vests over time, meaning you do not own it immediately. Common vesting schedules are three to five years. If you leave before the match fully vests, you forfeit the unvested portion. Always check your plan documents to see your vesting schedule.

Investment choices and how they affect your money

Your 401(k) provider gives you a menu of funds to choose from. Conservative options include bond funds and stable value funds, which grow slowly but do not drop much in value. Moderate options mix stocks and bonds. Aggressive options are mostly stock index funds, which can grow faster but swing up and down more.

Many plans offer target-date funds, which automatically shift from aggressive to conservative as you approach retirement. A target-date 2050 fund, for example, is designed for someone retiring around 2050 and adjusts its mix of stocks and bonds automatically each year.

You can change your investment choices once or twice a year, or sometimes more often. Changing does not trigger taxes or penalties — it is just moving money between the funds your plan offers.

Frequently Asked Questions

Can I contribute to a 401(k) if I am self-employed?

No, a 401(k) is only for employees of companies that offer the plan. If you are self-employed, you can open a Solo 401(k) or a SEP IRA, which work similarly but are set up differently. Talk to a tax professional about which fits your situation.

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

Your 401(k) is yours to keep. Your employer cannot take it. You can roll it to an IRA, move it to your new employer's plan, or leave it where it is. You cannot add to it anymore, but it keeps growing. If you need money before 59½, you can take a loan or hardship withdrawal, though both have costs.

How much can I contribute per year?

The annual limit changes each year and depends on your age. In 2024, the limit is $23,500 for people under 50, and $31,000 for people 50 and older (the extra $7,500 is called a catch-up contribution). Your employer's match does not count toward your limit — only your own contributions do.

Can I withdraw money from my 401(k) to buy a house?

You can take a loan from your 401(k) if your plan allows it, or a hardship withdrawal for a down payment in some cases, but both have costs. A loan must be repaid with interest or you owe taxes and a penalty. A hardship withdrawal costs you the 10 percent penalty plus income tax. Saving separately for a house usually costs less.

What if my employer does not offer a 401(k)?

You can open an Individual Retirement Account (IRA) on your own through a bank or brokerage. An IRA has lower annual contribution limits than a 401(k), but you control the investments and there is no employer involvement. Some employers offer a SIMPLE IRA as a smaller alternative to a 401(k).