A 401(k) is the retirement plan most American workers encounter, named after a section of the tax code. The idea is simple: your employer sets up the plan, you funnel part of each paycheck into it, that money gets invested, and it grows over the years until you retire. Along the way the government gives it favorable tax treatment to encourage you to save.

For many people the 401(k) is the single largest pool of money they will ever build, yet the rules around it, the match, the tax choices, the penalties, often go unexplained. This article walks through how it works. Before we start, a necessary note: this is general educational information, not financial advice, and investing always involves risk, including the risk of losing money, so use it as background rather than a personal recommendation.

What a 401(k) actually is

A 401(k) is an employer-sponsored retirement account. That phrase matters: you generally can only get one through a job that offers it. You decide what percentage of your pay to contribute, and your employer deducts it automatically before the money ever reaches your bank account, then invests it in options the plan offers, typically a menu of mutual funds.

Because the contributions happen automatically and the money is a little harder to reach, a 401(k) makes consistent saving almost effortless. That automation, combined with tax perks and often an employer match, is what makes it such a powerful tool for building long-term wealth.

Traditional versus Roth 401(k)

Many plans let you choose between two flavors, and the difference comes down to when you pay tax. A traditional 401(k) takes your contributions before tax. That lowers your taxable income today, but you will pay ordinary income tax on the money when you withdraw it in retirement.

A Roth 401(k) works in reverse. You contribute after-tax dollars, so there is no tax break now, but qualified withdrawals in retirement are generally tax-free, including the investment growth. The right pick depends partly on whether you expect to be in a higher or lower tax bracket later. This same tradeoff appears in individual accounts too, and our guide to the Roth versus traditional IRA walks through the logic in more detail.

The employer match: free money

The single most valuable feature of many 401(k) plans is the employer match. Your company agrees to contribute money based on what you put in, up to a limit. A common formula is a match of 50 cents or a dollar for every dollar you contribute, up to a set percentage of your salary.

This is as close to free money as personal finance gets. If your employer matches contributions up to, say, 5 percent of your pay and you contribute less than that, you are leaving part of your compensation on the table. For this reason, a widely repeated rule of thumb is to contribute at least enough to capture the full match before putting money anywhere else.

How contribution limits work

You cannot pour unlimited money into a 401(k). The IRS sets an annual limit that changes, usually rising a bit each year to keep pace with inflation, so you should always check the figure for the current year. For reference, the employee contribution limit was 23,500 dollars in 2025 and rose to 24,500 dollars in 2026.

People age 50 and older can add extra catch-up contributions on top of the standard limit, and there are additional provisions for certain older savers. Employer match money does not count against your personal limit; it falls under a separate, higher combined cap for total contributions. When in doubt, the IRS publishes the current numbers each year.

Vesting: when the match is really yours

There is a catch with employer contributions. While the money you contribute is always 100 percent yours immediately, the match may be subject to vesting, a schedule that decides when the employer’s contributions fully belong to you.

Some plans vest the match immediately, but others spread it out, granting ownership gradually over a number of years of service, or all at once after a set period. If you leave the company before you are fully vested, you can forfeit the unvested portion of the match. Your own contributions and their growth are never at risk this way. Because vesting rules vary widely, it is worth reading your specific plan’s documents.

Why time is the real engine

The tax breaks and match get the attention, but the quiet force that makes a 401(k) so effective is time. Money left invested for decades does not just add up, it compounds, with each year’s growth generating its own growth the next year. A dollar contributed in your twenties has far longer to snowball than the same dollar added in your fifties.

This is why starting early, even with small amounts, tends to matter more than contributing larger sums later. It also explains why early withdrawals are so costly: pulling money out does not just cost you that money, it costs you every future year of compounding it would have produced.

Early withdrawal penalties

A 401(k) is built for retirement, and the rules are designed to keep your hands off it until then. If you withdraw from a traditional 401(k) before age 59 and a half, you generally owe ordinary income tax on the amount plus a 10 percent early-withdrawal penalty.

There are exceptions for certain situations, such as specific hardships or leaving your employer at a qualifying age, and some plans allow loans against your balance. But the default cost of early access is high by design. Treating the 401(k) as untouchable until retirement, and building a separate emergency fund for surprises, usually saves far more than it costs.

Rollovers when you change jobs

Because a 401(k) is tied to an employer, leaving a job raises the question of what to do with the account. You typically have a few choices: leave the money in the old plan, roll it into your new employer’s plan, or roll it into an individual retirement account.

A direct rollover, where the money moves straight from one account to another without passing through your hands, avoids triggering taxes or penalties. The best option depends on the fees, the quality of the investment choices, and your own preferences. Consolidating old accounts can simplify your finances, but it is worth comparing carefully.

What your money is invested in

Contributing is only half the story; the money has to be invested to grow. A 401(k) does not hold cash sitting idle. Instead, the plan offers a menu of investment options, most commonly a selection of mutual funds spanning stocks, bonds, and blends of the two. You choose how your contributions are divided among them.

Many plans now default new savers into a target-date fund, which holds a diversified mix that automatically shifts toward more conservative investments as your chosen retirement year nears. These have become popular precisely because they require no ongoing tinkering. Whatever you choose, it is worth paying attention to the fees attached to each option, since a high expense ratio quietly erodes returns year after year. Within the limits of the plan’s menu, matching your investment choices to how far away retirement is, and how much short-term ups and downs bother you, is part of making a 401(k) work.

How a 401(k) compares to an IRA

A 401(k) and an IRA are cousins, both tax-advantaged retirement accounts, but with key differences. A 401(k) comes through an employer, often includes a match, and allows much higher annual contributions. An IRA is one you open on your own, giving you a far wider range of investment choices but lower contribution limits and no employer match.

The two are not either-or. Many people use both: contributing to the 401(k) at least up to the match, then adding to an IRA such as a Roth IRA for its flexibility and investment range. How to balance them depends on your income, taxes, and goals, and the right mix can shift as your career and earnings change over time. A common sequence many savers follow is to contribute to the 401(k) up to the full match first, then direct additional savings into an IRA, and only afterward return to the 401(k) to push toward the annual limit, though this is just one approach among many. As with everything here, this is general education, not personalized advice, and investing involves risk; a qualified professional can help you weigh your own circumstances.