What a 401(k) plan is and how it works

A 401(k) plan is a retirement savings account that your employer sets up and you contribute to through payroll deductions. Money comes out of your paycheck before taxes are calculated, which lowers your taxable income for that year. Your employer may also add money to your account — this is called a match — though they are not required to.

The money sits in investment accounts you choose from a menu your employer provides. Common choices are stock funds, bond funds, and target-date funds that automatically shift from stocks to bonds as you get closer to retirement. You do not pay taxes on the money or its growth until you withdraw it, usually after age 59½.

The account stays with you even if you change jobs, though the money stays in the plan your old employer set up unless you move it. Your new employer's 401(k) is a separate account.

Key Takeaways

  • Money you put into a 401(k) comes out of your paycheck before income tax, reducing what you owe the IRS that year.
  • Your employer may match part of what you contribute — for example, 50 cents for every dollar you put in, up to 6 percent of your salary — but matching is optional and varies by employer.
  • You choose how the money is invested from a list of funds your employer provides, and you can change your choices once a year or when your life changes.
  • You cannot withdraw the money without penalty before age 59½ in most cases, though some plans allow loans or hardship withdrawals with restrictions.
  • If you leave your job, you can roll the money into a new employer's plan or into an individual retirement account (IRA) to keep it growing tax-free.

Contribution limits and how much you can put in

The IRS sets a yearly limit on how much you can contribute to a 401(k). This limit changes most years. For 2024, the limit is $23,500 if you are under age 50. If you are 50 or older, you can contribute an additional $7,500, for a total of $31,000.

Your employer's match does not count toward your personal limit — it is separate money. If your employer matches 50 percent of contributions up to 6 percent of your salary, that match is added on top of what you contribute yourself.

You can change how much you contribute during open enrollment, which most employers hold once a year. Some employers allow changes if you have a major life event, such as marriage, divorce, birth of a child, or loss of health insurance.

Employer matching and why it matters

An employer match is assistance programs. If your employer matches 50 percent of what you contribute up to 6 percent of your salary, and you earn $50,000 a year, contributing 6 percent ($3,000) means your employer adds $1,500. That $1,500 is immediate return on your contribution.

Not all employers offer a match, and those that do set their own terms. Some match dollar-for-dollar up to a certain percentage. Others match 50 cents on the dollar. A few match nothing. You should know your employer's match formula before deciding how much to contribute — contributing less than the match threshold means leaving money on the table.

The match usually vests over time, meaning you do not own it immediately. Common vesting schedules require you to stay at the company for three to five years before the match is fully yours. If you leave before vesting is complete, you forfeit the unvested portion. Your own contributions are always yours immediately.

Tax treatment: now versus later

A traditional 401(k) reduces your taxable income in the year you contribute. If you earn $60,000 and contribute $6,000 to a 401(k), you report only $54,000 as income to the IRS. This lowers your tax bill that year.

When you withdraw the money in retirement, you pay income tax on the full amount withdrawn — both what you contributed and all the growth. If you withdraw $100,000 in retirement and you are in the 22 percent tax bracket, you owe $22,000 in federal income tax on that withdrawal.

Some employers also offer a Roth 401(k) option. With Roth, you contribute after-tax money — it does not lower your current tax bill — but withdrawals in retirement are tax-free. The choice between traditional and Roth depends on whether you expect to be in a higher or lower tax bracket in retirement.

Withdrawal rules and penalties

You can withdraw money from a 401(k) after age 59½ without penalty. Before that age, withdrawals are subject to a 10 percent early withdrawal penalty plus income tax on the amount withdrawn. A $10,000 early withdrawal might cost you $1,000 in penalty plus $2,200 in income tax if you are in the 22 percent bracket, leaving you $6,800.

Some plans allow loans against your 401(k) balance. You borrow from yourself and repay with interest, which goes back into your account. Loans typically must be repaid within five years, though longer terms apply if you use the money to buy a home. If you leave your job before repaying a loan, the unpaid balance is treated as a withdrawal and subject to penalty and tax.

Hardship withdrawals are allowed in some plans for specific situations: medical bills, home purchase, education costs, or preventing eviction. Hardship withdrawals are still subject to the 10 percent penalty and income tax. You must prove the hardship and show you have no other funds available.

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

Your 401(k) belongs to you, not your employer. When you leave the job, the money stays in the plan your old employer set up unless you move it. 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 out is the worst option for most people. You pay income tax on the full amount plus a 10 percent penalty if you are under 59½. A $50,000 balance cashed out at age 45 in the 22 percent tax bracket costs $11,000 in taxes and penalty, leaving you $39,000.

A rollover into an IRA or a new employer's plan avoids tax and penalty. The money moves directly from one account to another with no tax event. An IRA gives you more investment choices than most 401(k) plans. A new employer's plan keeps everything in one place and may offer better investment options or lower fees than your old plan.

Fees and how they reduce your balance

Most 401(k) plans charge fees. These include administrative fees (for record-keeping and customer service), investment fees (charged by the fund companies), and sometimes advisor fees if your plan offers professional management. Fees are usually small — often 0.5 to 1.5 percent of your balance per year — but they compound over decades.

A 0.5 percent annual fee on a $100,000 balance costs $500 that year. Over 30 years, that same fee rate can reduce your retirement balance by tens of thousands of dollars compared to a lower-fee plan. You should know what your plan charges and whether your employer offers lower-cost fund options.

Some employers offer index funds, which track a market index like the S&P 500 and charge very low fees — sometimes 0.03 to 0.10 percent per year. If your plan offers index funds, they are usually the lowest-cost option available to you.

Frequently Asked Questions

Can I contribute to a 401(k) and an IRA in the same year?

Yes. You can contribute to both a 401(k) and an IRA in the same year. The 401(k) limit and IRA limit are separate. However, if you have a high income and a workplace 401(k), your ability to deduct contributions to a traditional IRA may be limited. A tax professional can tell you whether your situation allows full deduction.

What if I need money before retirement?

You can take a loan against your balance if your plan allows it, or request a hardship withdrawal for specific situations like medical bills or preventing eviction. Both options have costs and restrictions. Early withdrawal before age 59½ triggers a 10 percent penalty plus income tax. Some people also leave money in their old employer's plan until they reach 59½, then withdraw it penalty-free.

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

No. Contributing is optional. However, if your employer offers a match, not contributing means you are passing up assistance programs. Even a small contribution — enough to capture the full match — is usually worth doing.

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 leave it in the old plan, roll it to a new employer's plan, or roll it to an IRA. If you are laid off and lose health insurance, you may be able to make changes to your 401(k) outside the normal enrollment period.

Can my employer take money out of my 401(k)?

Your employer cannot take money you contributed. They can only take back unvested matching contributions if you leave before the match is fully vested. Once money is vested, it is yours permanently and your employer has no claim to it.