Retirement

What Is a 401(k) and How It Works

A 401(k) is the most common way Americans save for retirement, and the employer match makes it the best deal in personal finance. Here is how it works.

What is a 401(k) and how it works for retirement

A 401(k) is a retirement savings account offered through your employer, and it is the single most powerful wealth-building tool available to most workers, for one reason above all others: the employer match. When your employer matches part of what you contribute, that match is free money, and turning it down is the only guaranteed way to lose money in retirement saving. A 401(k) also cuts your taxable income today, grows tax-deferred for decades, and runs on autopilot once you set it up.

This guide explains what a 401(k) is, how contributions and the match work, what vesting means, how the money is invested, and what happens when you change jobs or retire. It pairs naturally with the 401(k) match guide for the details of capturing the full match, and with the contribution limits guide for how much you can put in this year.

1. What a 401(k) actually is

A 401(k) is named after the section of the tax code that created it, and it is a defined-contribution plan, which means you and your employer put money in, the money is invested, and what you get at retirement depends on how much went in and how the investments performed. Your employer sets up the plan, chooses the investment options, and usually hires a company to administer it, while you decide how much of each paycheck to contribute and which investments to choose from the menu.

The money is taken from your paycheck before tax in a traditional 401(k), which lowers your taxable income in the year you contribute, and the investments grow without tax until you withdraw them in retirement. Some employers also offer a Roth 401(k), where contributions are made with after-tax money, the investments grow tax-free, and withdrawals in retirement are tax-free too. The Department of Labor publishes plain-language explanations of both types, and the choice between them depends mostly on whether you expect your tax rate to be higher now or in retirement.

2. The employer match: free money with a catch

The employer match is the best part of a 401(k), and it is also the part most often misunderstood. A common formula is fifty cents for every dollar you contribute up to six percent of your pay, which means contributing six percent earns you an extra three percent from your employer, or a fifty percent instant return on your money before any investment growth. The 401(k) match guide works through the common formulas, and the rule is always the same: contribute at least enough to capture the full match, because leaving match money on the table is the only guaranteed loss in investing.

The catch is vesting. Your own contributions are always fully yours, but the employer's matching contributions often vest on a schedule, which means you only keep the full match after you have worked there for a set number of years. A common schedule vests twenty percent per year over five years, so leaving after two years means keeping only part of the match. Check your plan's vesting schedule before you make career decisions, because the unvested match is real money that you forfeit when you leave early.

3. Contribution limits and how much to save

There is an annual limit on how much you can contribute to a 401(k), and it rises most years with inflation. The contribution limits guide has the current numbers, including the extra catch-up amount allowed for workers over fifty, and it is worth checking each year, because the limit is a ceiling, not a target: most people contribute far less than the maximum, and that is fine, because the right amount is the one you can sustain every paycheck.

As a starting point, contribute at least enough to get the full match, then aim to raise your contribution by one percent a year until you reach ten to fifteen percent of your pay, which is the range most retirement planners recommend for a comfortable retirement. The increase is painless when it is timed to a raise, because the extra money never reaches your take-home pay. The retirement on a tight budget guide shows how to build toward that range even when money is tight, and the Internal Revenue Service site lists the current limits and the catch-up rules.

How 401(k) investments grow over time

4. How the money is invested

The money in a 401(k) is invested, not saved in a bank account, and your plan offers a menu of funds, usually including stock funds, bond funds, and target-date funds. A target-date fund is the simplest choice: you pick the fund dated near the year you expect to retire, and the fund automatically shifts from aggressive to conservative as that year approaches, which makes it the right default for anyone who does not want to manage investments. Most plans set it as the default for a reason.

If you want more control, a low-cost index fund that tracks the whole stock market is the usual recommendation, because it is diversified, cheap, and has historically performed well over long periods. Check the expense ratio of every fund you choose, because a fund charging one percent a year takes a far larger bite over thirty years than a fund charging a tenth of a percent. The Investor.gov site explains expense ratios and diversification in plain language, and the invest in your 401(k) guide walks through choosing funds from your plan's menu.

5. Loans, withdrawals, and the rules that cost you

Taking money out of a 401(k) before retirement is expensive, and it should be a last resort. Withdrawals before age fifty-nine and a half usually trigger income tax plus a ten percent early withdrawal penalty, which can take a third or more of the money, and the money you remove also stops growing, which is the larger loss over decades. Some plans allow loans from the account, which avoids the penalty, but a loan that is not repaid, especially if you leave the job, becomes a withdrawal with the same tax and penalty.

There are narrow exceptions to the penalty, including disability, certain medical expenses, and a first home purchase in limited circumstances, but the exceptions are narrow for a reason: the account exists for retirement, and the rules are designed to keep the money there. If you are facing a financial emergency, the low-income emergency fund guide is the better first step, because an emergency fund is the buffer that keeps retirement money untouched, and the Roth versus traditional IRA comparison explains an account with more flexible withdrawal rules for contributions.

6. What happens when you change jobs

When you leave a job, your 401(k) does not disappear, and you have four choices: leave it with the old employer, roll it into your new employer's plan, roll it into an IRA, or cash it out. Cashing out is almost always the worst choice, because it triggers tax and the early withdrawal penalty, and it removes the money from the tax-advantaged system entirely. Rolling it over, either to the new plan or to an IRA, keeps the money growing tax-deferred and costs nothing when done as a direct rollover.

A direct rollover means the money moves from one institution to another without passing through your hands, and it is the option to choose, because an indirect rollover, where you receive the money and deposit it yourself, triggers mandatory tax withholding and a sixty-day deadline. The Department of Labor explains rollover rules and your rights when you leave a job, and the monthly money review is the habit that keeps track of old accounts, because a forgotten 401(k) from three jobs ago is more common than most people think.

Calculating 401(k) contributions and employer match

7. 401(k) vs IRA: how they fit together

A 401(k) and an IRA are complementary, not competing, and most people should use both when they can. The 401(k) comes first, because of the employer match, and the IRA comes second, because it offers more investment choices and lower fees than most 401(k) plans, and because a Roth IRA in particular offers tax-free growth and more flexible access to contributions. The Roth versus traditional IRA comparison explains the tax trade-off, and the Roth IRA beginner guide covers opening one.

The order that works for most people is: contribute enough to the 401(k) to get the full match, then fund an IRA up to its annual limit, then return to the 401(k) and raise the contribution toward ten to fifteen percent of pay. That order captures every employer dollar, then uses the cheaper and more flexible account, then fills the 401(k) the rest of the way. The retirement in your twenties guide shows why starting this order early matters so much, because the first decade of contributions does most of the work over a career.

The verdict: get the match, then automate and forget

A 401(k) is the best deal in personal finance for one reason: the employer match is a guaranteed return that no investment can beat. Contribute at least enough to capture the full match, choose a low-cost target-date or index fund, raise your contribution by one percent a year, and never cash out when you change jobs. The account works best when it is automated and ignored for decades.

Start this week: log in to your plan, check your contribution rate against the match, and raise it if you are below the full match. That single change is worth more than any budgeting trick, because it is free money that compounds for the rest of your working life.

Frequently asked questions

A 401(k) is an employer-sponsored retirement savings account. You contribute part of each paycheck before tax, your employer may match part of it, and the money is invested and grows tax-deferred until retirement.

Contribute at least enough to capture the full employer match, then aim for ten to fifteen percent of your pay over time. Raise your contribution by one percent a year, ideally timed to a raise, so the increase is painless.

Vesting is the schedule on which your employer's matching contributions become fully yours. Your own contributions are always yours, but the match may vest gradually, often twenty percent per year over five years, so leaving early can mean forfeiting part of it.

You can, but withdrawals before age fifty-nine and a half usually trigger income tax plus a ten percent penalty, and the money stops growing. Loans from the plan are sometimes available, but an unpaid loan can become a taxable withdrawal.

You can leave it, roll it into your new employer's plan, roll it into an IRA, or cash it out. A direct rollover to the new plan or an IRA keeps the money growing tax-deferred. Cashing out triggers tax and penalties and is almost always the worst choice.

Keep reading

About MoneyWise

MoneyWise is an independent personal finance publication. Every guide on this site is researched from primary sources — official program pages, government publications, and reputable financial institutions — and reviewed for accuracy before publishing. We show our math, cite our sources, and update articles when facts change.

Our content is educational only and is not financial advice. For decisions involving significant money, consider consulting a qualified financial professional.

Learn more about our editorial standards

Affiliate disclosure: Some links in this article are affiliate links. If you buy through them, MoneyWise may earn a commission at no extra cost to you. We participate in the Amazon Associates Program (as an Amazon Associate, we earn from qualifying purchases) and the AliExpress Affiliate Program. Details on this page can change — always check the official provider page before buying. Content on this site is educational only and is not financial advice.