Skip to main content

HomeAll guides

How a 401(k) Works and What It Means for Your Retirement Savings

What a 401(k) Is and How It Works

A 401(k) is a retirement savings account that your employer sponsors. You contribute money directly from your paycheck before taxes are taken out, your employer may add matching contributions, and the money grows tax-deferred until you withdraw it in retirement. The account is named after the section of the Internal Revenue Code that created it.

Here is how the flow works: you decide what percentage of your salary to contribute, that amount is deducted from your paycheck and deposited into your 401(k) account, you choose how to invest that money from the options your employer's plan offers (usually mutual funds or target-date funds), and the balance grows over time. You do not pay income tax on the contributions or the growth until you take money out, typically after age 59½.

Your employer controls which 401(k) provider manages the plan and what investment options are available. Common providers include Fidelity, Vanguard, Charles Schwab, and Empower. The specific investments you can choose from depend entirely on what your employer's plan includes — there is no standard menu across all plans.

Key Takeaways

  • You contribute pre-tax money from your paycheck, and your employer may match a portion of what you contribute, giving you when ready extra savings.
  • The money grows tax-deferred, meaning you pay no income tax on contributions or investment gains until you withdraw after retirement.
  • In 2024, you can contribute up to $23,500 per year if you are under age 50, and $31,000 if you are 50 or older (these limits change annually).
  • You cannot withdraw money before age 59½ without penalty in most cases, which makes a 401(k) designed for long-term retirement savings rather than emergency funds.
  • If you leave your job, you can roll your 401(k) balance into an IRA or your new employer's plan to keep it growing tax-deferred.

Employer Matching and How It Increases Your Savings

Many employers offer a matching contribution, which means they add money to your 401(k) based on how much you contribute. A common match is 50% of what you contribute up to 6% of your salary — so if you earn $50,000 and contribute $3,000 (6%), your employer adds $1,500. This is when ready extra money in your account with no additional effort on your part.

Not all employers offer matching, and the terms vary widely. Some match dollar-for-dollar up to a certain percentage, others match 50 cents on the dollar, and some match nothing at all. Your employer's plan documents or HR department will tell you the exact formula. If your employer offers a match, contributing enough to capture the full match is usually the first priority — it is the closest thing to information programs in retirement savings.

The match vests over time, meaning you do not own it when ready. Vesting schedules differ by employer. Some plans use a cliff schedule where you own 0% of the match until you hit a certain year (often three years), then you own 100%. Others use a graded schedule where you own a percentage each year. Your plan documents specify the vesting schedule. If you leave your job before you are fully vested, you forfeit the unvested portion of the employer match.

Contribution Limits and Catch-Up Contributions

The IRS sets annual limits on how much you can contribute to a 401(k). 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 as a catch-up contribution, bringing your total to $31,000. These limits change most years, and your plan administrator or HR department will notify you of the new limit each January.

Your employer may also set a lower limit, though this is rare. Some plans cap contributions at a percentage of your salary rather than allowing you to hit the IRS maximum. Check your plan documents or ask HR what the actual limit is for your specific plan.

If you contribute more than the IRS limit in a single year, the excess is taxed twice — once when you contribute it and again when you withdraw it — so it is important to track your contributions if you change jobs mid-year or have multiple employers.

Tax Treatment: Pre-Tax Versus After-Tax Contributions

Most 401(k) contributions are pre-tax, meaning the money comes out of your paycheck before your employer calculates income tax. This lowers your taxable income for the year. If you earn $60,000 and contribute $6,000 to a traditional 401(k), your taxable income is $54,000. You pay no federal income tax on that $6,000 in the year you contribute it.

When you withdraw money in retirement, that withdrawal is taxed as ordinary income at whatever tax rate applies in the year you withdraw. If you are in a lower tax bracket in retirement than you were while working, you pay less tax overall. If you are in a higher bracket, you pay more. This is the trade-off of the pre-tax structure.

Some employers also offer a Roth 401(k) option, where contributions are made with after-tax money. You pay income tax on the contribution in the year you make it, but withdrawals in retirement are tax-free. Roth 401(k)s have the same contribution limits and employer match rules as traditional 401(k)s. The choice between traditional and Roth depends on whether you expect to be in a higher or lower tax bracket in retirement — something no one can predict with certainty.

When You Can Access Your Money and Early Withdrawal Penalties

You can withdraw money from your 401(k) without penalty once you reach age 59½. Before that age, withdrawals are subject to a 10% early withdrawal penalty on top of ordinary income tax. So if you withdraw $10,000 at age 45, you owe income tax on the full $10,000 plus a $1,000 penalty.

There are narrow exceptions to the early withdrawal penalty. You can withdraw without penalty if you become permanently disabled, if you are withdrawing to cover unreimbursed medical expenses that exceed 7.5% of your adjusted gross income, or if you are taking substantially equal periodic payments (a complex calculation that requires IRS Form 72(t)). Some plans also allow loans, where you borrow from your own 401(k) balance and repay it with interest — this avoids the penalty but ties up your retirement savings.

Once you reach age 73, the IRS requires you to take required minimum distributions (RMDs) from your 401(k) each year. The amount is calculated based on your age and account balance. If you do not take the RMD, you owe a 25% penalty on the amount you should have withdrawn (this penalty was reduced from 50% in 2023). If you are still working and your employer's plan allows it, you may be able to delay RMDs until you actually retire.

What Happens to Your 401(k) When You Change Jobs

When you leave your job, your 401(k) stays with you — your employer cannot keep it. You have several options for what to do with the balance. You can leave it in your former employer's plan if the balance is above a certain threshold (usually $5,000, though this varies). You can roll it into your new employer's 401(k) if the new plan accepts rollovers. You can roll it into a traditional IRA, which gives you more investment choices and lower fees in many cases. Or you can cash it out, though this triggers income tax and the 10% early withdrawal penalty if you are under 59½.

A direct rollover is the cleanest option: the money moves directly from your old plan to your new account without touching your hands. If you take a check and deposit it yourself, you have 60 days to complete the rollover or the full amount becomes taxable income. Many people miss this important date by accident, so a direct rollover avoids that risk.

If you roll a traditional 401(k) into a traditional IRA, the tax treatment stays the same — the money remains pre-tax and grows tax-deferred. If you roll it into a Roth IRA, you owe income tax on the full amount in the year of the rollover. This is called a Roth conversion and is a deliberate choice, not something that happens automatically.

Investment Options and How Your Choices Affect Growth

Your 401(k) plan offers a menu of investment options, typically mutual funds, index funds, or target-date funds. You choose how to allocate your contributions across these options. A target-date fund is a single fund that automatically adjusts its mix of stocks and bonds based on your expected retirement year — for example, a 2050 target-date fund starts aggressive and gradually becomes more conservative as 2050 approaches. This requires no ongoing decisions from you.

If you choose individual funds, you decide the split yourself. A younger person might choose 80% stocks and 20% bonds; someone closer to retirement might choose 50% stocks and 50% bonds. The more aggressive your allocation, the higher the potential growth but also the higher the risk of short-term losses. The more conservative your allocation, the lower the volatility but also the lower the expected long-term growth.

Your investment choices directly affect how much money you have at retirement. Two people who contribute the same amount but choose different investments will end up with different balances. Some plans offer low-cost index funds; others charge higher fees. Over decades, fee differences compound significantly. Review your plan's fee disclosure document (called a Summary of Material Modifications or SMM) to understand what you are paying.

Frequently Asked Questions

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

Yes. You can contribute to a 401(k) and a traditional or Roth IRA in the same year. However, if you have a traditional IRA and your income exceeds certain thresholds, your 401(k) contributions may reduce the tax deduction you can claim on your IRA contributions. The IRS website lists the income limits, which change annually.

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

Your 401(k) belongs to you, not your employer. Being laid off or fired does not affect your account balance or your right to the money. You can leave it in your former employer's plan, roll it to an IRA, or roll it to a new employer's plan. You cannot access it penalty-free until age 59½ unless an exception applies.

Can my employer change or eliminate the 401(k) plan?

Yes. Employers can change plan terms, investment options, or the match formula. They cannot take money you have already contributed, but they can freeze future contributions or eliminate the match. If your employer eliminates the plan entirely, your balance is yours to keep or roll over. Your plan documents and HR department will explain any changes.

What if I do not know how to invest the money in my 401(k)?

Most plans offer a target-date fund based on your expected retirement year. This is a straightforward one-fund choice that handles the allocation for you. Some plans also offer a managed account service where a professional adjusts your allocation over time, though this usually costs a small fee. Ask your plan administrator what options are available.

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

No. Contributing is voluntary. However, if your employer offers a match, not contributing means you are leaving information programs on the table. Even a small contribution to capture the full match is usually worth doing if you can afford it.

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.