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

A 401(k) is a retirement savings account offered through your employer. You contribute a portion of 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 tax code that created it.

The basic mechanics are straightforward: you decide what percentage of your paycheck goes into the account (usually 1 to 50 percent), your employer deducts that amount and deposits it into an investment account in your name, and you choose how that money is invested from a menu of options your employer's plan offers. Your employer may match a portion of what you contribute — commonly 50 cents for every dollar you put in, up to 6 percent of your salary — though matching is optional and varies by employer.

The money grows tax-free while it sits in the account. You pay income tax on it only when you withdraw it, typically after age 59½. If you withdraw before that age, you generally owe a 10 percent penalty plus income tax on the amount withdrawn, with some exceptions for hardship or specific life events.

Key Takeaways

  • You contribute pre-tax money from your paycheck, and your employer may match part of what you contribute, though matching is not required.
  • The money is invested in mutual funds, target-date funds, or other options your employer's plan offers, and it grows tax-deferred.
  • You can usually withdraw money penalty-free starting at age 59½; withdrawals before that age typically trigger a 10 percent penalty plus income tax.
  • Your employer controls which investment options are available and may charge administrative fees that reduce your account balance over time.
  • If you leave your job, you can roll the account into an IRA or your new employer's plan to avoid taxes and penalties.

How much you can contribute each year

The IRS sets an annual limit on how much you can put into a 401(k). For 2024, that limit is $23,500 if you are under age 50. If you are 50 or older, you can contribute an additional $7,500 per year (called a "catch-up" contribution), for a total of $31,000.

Your employer may also contribute to your account through matching or profit-sharing. Those employer contributions count toward a separate annual limit of $69,000 total per person (including both your contributions and your employer's). Most people do not hit that second limit.

Your actual contribution is limited by your salary. You cannot contribute more than 100 percent of your gross income in a year. If you earn $30,000 annually, you cannot contribute $23,500 even if you wanted to.

Investment options and how your money grows

When you enroll in a 401(k), you choose how your contributions are invested from a menu of funds offered by your plan. Common options include stock funds, bond funds, money market funds, and target-date funds (which automatically shift from aggressive to conservative as you approach retirement). Your employer selects which funds to offer; you cannot invest in individual stocks or bonds directly through most 401(k) plans.

The growth of your account depends on which funds you choose and how the markets perform. A fund that invests heavily in stocks may grow faster over decades but will fluctuate more year to year. A bond fund is more stable but typically grows more slowly. You can usually change your investment choices once or twice per year, or when your life circumstances change (marriage, birth of a child, job loss).

Your employer may charge administrative fees to run the plan, and individual funds charge expense ratios (annual fees expressed as a percentage of the money invested). These fees reduce your account balance over time. A fund with a 1 percent expense ratio costs you $100 per year on a $10,000 balance.

Employer matching and why you should not leave it on the table

If your employer offers matching contributions, that is assistance programs added to your account. A typical match is 50 cents for every dollar you contribute, up to 6 percent of your salary. If you earn $50,000 and contribute 6 percent ($3,000), your employer adds $1,500. If you contribute only 3 percent ($1,500), your employer adds only $750.

Matching is not automatic. You must enroll in the plan and contribute enough to receive it. Many employers require you to contribute at least 3 to 6 percent of your salary to get the full match. If you do not contribute, you do not receive the match, even if your employer offers it.

Vesting is the timeline for when employer contributions become yours to keep. Some employers vest matching immediately (you own it the day they deposit it). Others use a vesting schedule where you own a percentage of the match each year — for example, 20 percent after one year, 40 percent after two years, and 100 percent after five years. If you leave your job before you are fully vested, you forfeit the unvested portion.

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½. At that point, you owe income tax on the withdrawal but no 10 percent early-withdrawal penalty. Withdrawals are taxed as ordinary income at your current tax rate.

If you withdraw before age 59½, you owe both income tax and a 10 percent penalty on the amount withdrawn. There are exceptions: you can withdraw without penalty if you are permanently disabled, if you are withdrawing to pay medical expenses that exceed 7.5 percent of your adjusted gross income, or if you are taking substantially equal periodic payments (a specific IRS formula). Some plans allow "hardship withdrawals" for immediate financial need, though these still trigger the 10 percent penalty and income tax.

At age 73, you must begin taking required minimum distributions (RMDs) — the IRS requires you to withdraw a calculated 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 (reduced to 10 percent if you correct it within two years).

What happens to your 401(k) when you leave your job

When you leave your employer, you have four options for your 401(k) account. You can leave it with your former employer's plan if the balance is at least $5,000 (some plans require higher minimums). You can roll it into your new employer's 401(k) plan if that plan accepts rollovers. You can roll it into a traditional IRA, which gives you more investment choices and often lower fees. Or you can cash it out, which triggers income tax and a 10 percent penalty if you are under 59½.

A rollover moves the money directly from one account to another without you touching it, so no taxes or penalties apply. This is the most common choice. If you cash out instead, your former employer withholds 20 percent for federal taxes, and you owe the full tax bill when you file your return — plus the 10 percent penalty if you are under 59½.

If you do not act within a certain timeframe (usually 30 to 60 days), your former employer may force a rollover into an IRA on your behalf, or they may cash out the account and send you a check.

Fees and costs that reduce your balance

Your 401(k) account is subject to several types of fees. Administrative fees cover the cost of running the plan and may be charged as a flat annual amount or as a percentage of your balance. Investment fees (called expense ratios) are charged by the mutual funds or other investments in your plan and are deducted automatically from fund returns. Some plans charge individual service fees for loans, investment advice, or other services.

Fees vary widely by employer and plan. A plan at a large company may charge 0.5 percent annually in total fees, while a small-business plan might charge 1.5 percent or more. Over decades, even small differences in fees compound significantly. A 1 percent difference in annual fees can reduce your retirement balance by 25 to 30 percent by the time you retire.

You can usually find fee information in your plan's summary plan description or on your employer's benefits website. If fees seem high, ask your employer whether they have negotiated lower rates or whether you can move to a lower-cost plan option.

Frequently Asked Questions

Can I borrow money from my 401(k)?

Many plans allow loans, typically up to 50 percent of your account balance or $50,000, whichever is less. You repay the loan with interest (usually the prime rate plus 1 percent) over five years. If you leave your job before repaying, the loan is usually treated as a withdrawal, triggering taxes and penalties on the unpaid balance.

What is the difference between a 401(k) and an IRA?

A 401(k) is offered through your employer and has higher contribution limits ($23,500 in 2024 versus $7,000 for an IRA). An IRA is opened on your own and gives you more investment choices. Many people use both: they contribute to their employer's 401(k) to get the match, then open an IRA for additional retirement savings.

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

Enrollment is optional, but many employers now use automatic enrollment, which puts you into the plan at a default contribution rate (often 3 percent) unless you opt out. If your employer offers matching, not enrolling means leaving assistance programs on the table.

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

Your account passes to your designated beneficiary, who can inherit it as a lump sum, roll it into an inherited IRA, or take distributions over time. The rules depend on whether the beneficiary is a spouse or someone else. Your employer should have a beneficiary designation form on file; update it if your circumstances change.

Can I withdraw money if I am still working?

Most plans do not allow withdrawals while you are employed, but some offer in-service withdrawals or loans. A few plans allow withdrawals after you reach age 59½ even if you are still working. Check your plan's rules or ask your employer's benefits administrator.