Skip to main content

HomeAll guides

How a 401(k) Plan Works: Contributions, Growth, and Withdrawals

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

A 401(k) plan is a retirement savings account offered through your employer. You contribute a portion of your paycheck directly into the account, and your employer may add matching contributions. The money grows tax-deferred, meaning you do not pay income tax on the earnings until you withdraw the money in retirement. The account is named after the section of the tax code that created it.

The basic mechanics are straightforward: you choose how much of each paycheck to contribute (within legal limits), your employer deducts that amount before calculating your income tax, and the money is invested in options your plan offers. You decide how that money is invested—usually among mutual funds, target-date funds, or stable value funds—and you bear the investment risk. If your investments gain value, your account grows; if they lose value, your account shrinks.

The account belongs to you, not your employer. If you leave your job, you can take the account with you through a rollover to another retirement account or leave it where it is if your balance is above a certain threshold (usually $5,000). You cannot access the money penalty-free until you reach age 59½, with limited exceptions.

Key Takeaways

  • You contribute pre-tax dollars from your paycheck, and your employer may match a percentage of what you contribute.
  • The money grows tax-deferred, and you choose how it is invested from the options your plan offers.
  • You can withdraw money penalty-free starting at age 59½, though some plans allow loans or hardship withdrawals before then.
  • Contribution limits are set by the IRS and change yearly; for 2024 the limit is $23,500 for workers under 50 and $31,000 for workers 50 and older.
  • If you leave your job, you can roll the account to an IRA or another employer's plan, or leave it with your former employer if the balance is large enough.

How contributions work and what your employer may match

You decide what percentage of your paycheck to contribute to your 401(k), up to the annual limit set by the IRS. For 2024, that limit is $23,500 for workers under age 50, and $31,000 for workers age 50 and older (the extra $7,500 is called a catch-up contribution). Your employer deducts your contribution before calculating your federal income tax, so you pay less in taxes that year.

Many employers offer a matching contribution—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. This means if you earn $50,000 and contribute 6 percent ($3,000), your employer adds $1,500. The match is not may provide; your employer can change or suspend it, and some employers do not offer a match at all.

Your contributions are always yours to keep. Your employer's matching contributions may be subject to a vesting schedule, which means you must work there for a certain period before the match fully belongs to you. A common schedule requires three to five years of employment. If you leave before you are fully vested, you forfeit the unvested portion of the match, though you keep your own contributions.

Tax treatment: when you pay taxes on 401(k) money

A traditional 401(k) is tax-deferred. You do not pay income tax on the money you contribute or on the investment earnings while the money sits in the account. You pay income tax only when you withdraw the money, usually in retirement. This lowers your taxable income in the year you contribute, which can mean a smaller tax bill or a larger refund.

Some employers also offer a Roth 401(k) option. With a Roth, you contribute after-tax dollars—you pay income tax on the contribution in the year you make it—but the money grows tax-free and you owe no tax on withdrawals in retirement. Roth contributions count toward the same annual limit as traditional contributions, so you cannot contribute $23,500 to a traditional 401(k) and another $23,500 to a Roth; the combined total cannot exceed $23,500.

At age 73, you must begin taking required minimum distributions (RMDs) from a traditional 401(k)—the IRS requires you to withdraw a certain amount each year based on your age and account balance. Roth 401(k)s also have RMDs, though Roth IRAs do not. If you do not take the required amount, you owe a penalty on the shortfall.

Investment options and how your money grows

Your 401(k) plan offers a menu of investment choices, typically mutual funds, exchange-traded funds (ETFs), or stable value funds. You decide how to split your contributions among these options. Some plans offer a target-date fund, which automatically adjusts its mix of stocks and bonds as you approach retirement—more aggressive when you are young, more conservative as you near retirement age.

You bear the investment risk. If the stock market rises, your account may grow significantly. If the market falls, your account value drops. Unlike a pension, where your employer guarantees a set payment in retirement, a 401(k) depends entirely on how well your investments perform and how much you contribute. You can usually change how your money is invested once per quarter or more often, depending on your plan.

Some plans offer a stable value fund or money market fund, which holds your money in lower-risk, lower-return investments. These are useful if you are close to retirement and want to protect what you have saved, but they typically do not keep pace with inflation over long periods.

When you can withdraw money and what happens if you withdraw early

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

Some plans allow loans from your 401(k) balance. You can borrow up to 50 percent of your vested balance (or $50,000, whichever is less) and repay it with interest over five years. The interest goes back into your account, not to a bank. If you leave your job before repaying the loan, the unpaid balance is treated as a withdrawal and subject to the 10 percent penalty and income tax.

Most plans also allow hardship withdrawals for specific situations—medical expenses, home purchase, education costs, or preventing eviction or foreclosure. Hardship withdrawals are still subject to income tax and the 10 percent penalty, and you must prove the hardship to your plan administrator. Rules vary by plan, so check your plan documents to see what qualifies.

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

When you leave your job, you have several options for your 401(k). You can roll it over to an IRA (Individual Retirement Account) at a bank, brokerage, or investment firm. A rollover moves the money directly from your 401(k) to the IRA without you touching it, so there is no tax or penalty. An IRA often offers more investment choices than a 401(k) and may have lower fees.

You can also roll the 401(k) into your new employer's 401(k) plan if that plan accepts rollovers. This keeps your money in a 401(k) structure, which some people prefer because 401(k)s offer higher contribution limits than IRAs and have stronger creditor protection in some states.

If your account balance is $5,000 or more, you can leave it with your former employer's plan. The plan will continue to invest your money and you can withdraw it later. If your balance is less than $5,000, your former employer may force you to roll it over or cash it out. If you cash it out, you owe income tax and the 10 percent early withdrawal penalty (unless you are 59½ or older).

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

A 401(k) is an employer-sponsored plan, while an IRA (Individual Retirement Account) is opened on your own at a bank or brokerage. For 2024, you can contribute up to $7,000 to an IRA (or $8,000 if you are 50 or older), compared to $23,500 for a 401(k). If your employer offers a 401(k), you can have both accounts, but there are income limits on whether you can deduct IRA contributions from your taxes.

A 401(k) may offer employer matching contributions, which an IRA does not. However, an IRA typically offers more investment choices and lower fees. A 401(k) has stronger legal protection against creditors in bankruptcy, and it allows loans and hardship withdrawals, which IRAs do not.

A SEP IRA or Solo 401(k) is for self-employed people or small business owners. These allow much higher contributions than a regular IRA. A straightforward IRA is for small employers (under 100 employees) and allows lower contributions than a 401(k) but is simpler to administer.

Fees and how they affect your savings

401(k) plans charge fees that reduce your account balance over time. Common fees include plan administration fees (charged to all participants), investment fees (charged by the mutual funds or ETFs you invest in), and advisor fees (if your plan offers professional investment information). Some plans also charge individual service fees for loans or hardship withdrawals.

Plan administration fees vary widely—some are under 0.1 percent of your account balance per year, while others are 0.5 percent or higher. Investment fees depend on which funds you choose; index funds typically charge less than actively managed funds. Over decades, even small differences in fees compound significantly. A 0.5 percent annual fee on a $500,000 account costs $2,500 per year.

Your plan administrator is required to provide a fee disclosure document that lists all fees. Ask your employer's benefits department for this document, or check your plan's website. If fees seem high, ask whether your plan offers lower-cost index fund options.

Frequently Asked Questions

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

Yes, you can contribute to both in the same year. However, if you have a 401(k) at work, there are income limits on whether you can deduct a traditional IRA contribution from your taxes. You can always contribute to a Roth IRA regardless of income, though Roth contributions are also subject to income limits if you earn above a certain threshold.

What happens to my 401(k) if my employer goes out of business?

Your 401(k) is held in trust and legally separate from your employer's assets, so it is protected if the company fails. However, if your employer stops funding the plan, you may lose future matching contributions. You can roll the account to an IRA or another employer's plan at any time.

Can I withdraw money from my 401(k) if I am still working?

Most plans do not allow withdrawals while you are still employed, with limited exceptions for hardship or loans. Some plans offer an in-service distribution after you reach age 59½, which allows you to withdraw or roll over part of your balance while still working. Check your plan documents or ask your benefits administrator what is allowed.

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

A traditional 401(k) uses pre-tax dollars, lowering your taxes now but requiring you to pay tax on withdrawals later. A Roth 401(k) uses after-tax dollars, so you pay tax now but withdrawals are tax-free in retirement. Both have the same contribution limits and both require RMDs at age 73.

Do I lose my 401(k) if I get fired?

No. Your 401(k) belongs to you, not your employer. If you are fired, you keep the account and can roll it to an IRA or another employer's plan. You may lose unvested employer matching contributions if your plan has a vesting schedule, but your own contributions are always yours.

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.