Saving for Retirement with a 401k

See how pre-tax 401k contributions can grow over a long career, especially when employer matching and tax savings are added in. This version assumes you retire at 65 and keep salary flat for simplicity.

Your real-world tax situation and employer match will vary. This page is meant to teach the basic concepts so you can recognize how each piece — your contribution, the match, the tax savings, and compound growth — fits together.

Main Points

A 401k works best when you start early and save regularly, but it is never too late to take advantage of tax savings and employer matches.

Tax savings
Tax savings help you save more money every month.
Automatic savings
Automatic contributions make saving easier and more consistent.
Employer match
Employer contributions help your savings grow faster.
Every month you contribute
$0.00
Save in taxes $0.00
Your employer contributes $0.00
You invest in your 401k $0.00
At a cost to you of $0.00
Over time, that's
$0.00
In tax savings $0.00
In employer contributions $0.00
You invest in your 401k $0.00
At a cost to you of $0.00
Your 401k grows to
$0.00
Your after-tax contributions $0.00
Including employer contributions $0.00
You get in compound growth $0.00
Growth by year

Want to dial in your contribution rate and employer match, paycheck by paycheck?

Year-by-year breakdown
Year Age Employee contribution Employer match Investment growth 401k balance
Deep Dive

What is a 401(k)?

A 401(k) is a retirement savings account offered through your employer. You choose a percentage of each paycheck to contribute, and that money goes into an investment account in your name. The plan gets its name from a section of the U.S. tax code.

A 401(k) is different from a regular savings account in two important ways. First, the money is invested in things like stock and bond funds, so it can grow over time. Second, it comes with special tax treatment that helps you keep more of your money.

Pre-tax contributions and tax savings

A traditional 401(k) contribution is pre-tax. The money is taken out of your paycheck before income tax is calculated, so your taxable income that year is lower. If you contribute $500 a month and your tax rate is 22%, you save about $110 a month in taxes. The $500 still goes into your retirement account, but only about $390 of it comes out of your take-home pay.

You will pay income tax on the money later when you withdraw it in retirement. The idea is that many people are in a lower tax bracket in retirement than during their working years.

The employer match

Many employers offer a matching contribution. A common version is "50% match up to 6% of salary," meaning if you contribute 6% of your salary, the employer adds another 3%. That match is essentially free money added to your retirement account.

Not contributing enough to get the full match is one of the most common money mistakes. If your employer offers a match, contributing at least up to the match cap is usually the highest-return move you can make.

Contribution limits

The IRS sets a yearly limit on how much you can contribute to a 401(k) from your own paycheck. The limit changes most years to keep up with inflation. Employer matches do not count against this limit.

The "Max 401k contribution per year" input on this page caps your employee contributions so the projection stays realistic.

Tax-deferred compound growth

Inside the 401(k), your investments grow tax-deferred. You do not pay tax on dividends, interest, or capital gains each year. All of those earnings stay in the account and keep compounding. Over decades, this can make a meaningful difference compared to a taxable brokerage account where gains are taxed along the way.

Why starting early matters so much

Because growth compounds, the years you save in your 20s and 30s usually contribute more to your final balance than the years in your 50s. A person who saves $500 a month from age 25 to 65 typically ends up with much more than someone who saves $1,000 a month from age 40 to 65, even though the second person puts in more total dollars.

Marginal tax rate

Your marginal tax rate is the tax rate that applies to your next dollar of income. It is usually higher than your average tax rate. Because 401(k) contributions reduce your taxable income, the tax savings on a 401(k) contribution are calculated using the marginal rate, not the average rate.

Common misconceptions

Some people think 401(k) money is "locked up forever." It is restricted, but there are several normal ways to access it in retirement starting at age 59½, and hardship rules exist for emergencies. Others think they cannot afford to contribute. Because of the tax savings and employer match, contributing often costs less out of take-home pay than the contribution amount suggests.

Key takeaway

A 401(k) combines three powerful forces: tax savings today, free money from an employer match, and decades of tax-deferred compound growth. Even small, regular contributions over a long career can grow into a retirement balance many times larger than the money you put in yourself.

Keep learning

Read the ideas behind this calculator, or try a related tool.

Read the why
Planning Your 401(k)

Two workers, one earning $75,000 and one $150,000, plan their 401(k) contributions. The employer match and tax savings hand both of them a day-one return…

Read the article →
Read the why
Does the Timing of Your 401(k) Contributions Matter?

Front-load your 401(k) into the first half of the year, or spread it evenly throughout — two ways to contribute the same $24,500. We model 20 years of…

Read the article →
Related calculator
401(k) Contribution Calculator

See what your 401(k) contribution really does: whether you capture the full employer match, how much you save on income taxes, and how a smaller…

Open calculator →
Related calculator
Retirement Outcomes Explorer — Allocation & Market Conditions
Open calculator →

How we build these tools: Calculator Methodology · How We Test Our Calculators