How a 401(k) Works: Contributions, Growth, and Withdrawals
How money moves in and out of your 401(k)
A 401(k) is a retirement account your employer sponsors. You choose how much to contribute from your paycheck each pay period, your employer may add matching contributions, and the money sits in investments you pick. The account grows tax-deferred, meaning you don't pay income tax on the growth until you withdraw it in retirement.
The flow is straightforward: money leaves your paycheck before taxes are calculated, goes into your 401(k), you direct it into investment options (usually mutual funds or target-date funds), and it stays there until you withdraw it. If your employer offers a match, that's additional money deposited on your behalf, usually based on how much you contribute.
You control the investment choices within the plan, but you cannot control when the employer deposits the match or how often the investments are valued. Most plans value accounts daily, and contributions are processed on each pay cycle.
Key Takeaways
- You contribute pre-tax dollars from your paycheck, and your employer may contribute matching funds based on your contribution amount.
- Your contributions and any growth are not taxed until you withdraw money, usually after age 59½.
- You choose how to invest the money from a menu of options your employer's plan provides, typically mutual funds or target-date funds.
- If you leave your job, your contributions and employer match stay in the account or can be rolled over to another retirement account.
- Withdrawals before age 59½ usually trigger a 10% penalty plus income tax, with limited exceptions for hardship or specific life events.
Contribution limits and how much you can put in
The IRS sets an annual limit on how much you can contribute to your 401(k) from your own paycheck. 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 as a "catch-up" contribution, for a total of $31,000.
These limits change each year and are adjusted for inflation. Your employer's match does not count toward your personal contribution limit, but it does count toward the total plan limit (which is much higher). If you contribute more than the annual limit, the excess is taxed twice: once when it goes in and again when you withdraw it.
Your employer sets the match formula. A common one is 50% of what you contribute, up to 6% of your salary. That means if you earn $50,000 and contribute 6% ($3,000), your employer adds $1,500. If you contribute only 3%, your employer adds $750. Some employers match dollar-for-dollar up to a certain percentage; others offer a flat percentage regardless of what you contribute.
How taxes work now and in retirement
A traditional 401(k) uses pre-tax money, which lowers your taxable income in the year you contribute. If you earn $60,000 and contribute $6,000, your taxable income for that year is $54,000. You pay no income tax on that $6,000 contribution or on any growth it generates while it sits in the account.
When you withdraw money in retirement, you pay ordinary income tax on the full amount withdrawn. If you withdraw $30,000 in a year, that $30,000 is added to your other income and taxed at your tax rate that year. This is why withdrawals in retirement can push you into a higher tax bracket if you withdraw a large amount at once.
Some employers offer a Roth 401(k) option, where contributions are made with after-tax money. You pay income tax on the contribution now, but withdrawals in retirement are tax-free. The contribution limits are the same as a traditional 401(k), and the choice between traditional and Roth depends on whether you expect your tax rate to be higher or lower in retirement.
Vesting: when the employer match becomes yours
Your own contributions are always yours when ready. Employer matching contributions, however, may have a vesting schedule — a timeline before the money is fully yours. During the vesting period, if you leave the company, you forfeit the unvested portion of the match.
Vesting schedules vary by employer. A common one is cliff vesting, where you own 0% of the match until you have worked there for two years, then you own 100% when ready. Another is graded vesting, where you own 20% after one year, 40% after two years, and so on until you own 100% after five years. Some employers vest when ready, meaning the match is yours the day it is deposited.
Your vesting schedule is in your plan documents, which your employer is required to provide. If you are considering leaving a job, check when you will be fully vested — leaving one month before vesting can cost you thousands of dollars in employer contributions.
Investment choices and how your money grows
Your 401(k) plan offers a menu of investment options, usually 10 to 30 choices. These are typically mutual funds, index funds, or target-date funds. You decide how to split your contributions among these options, and you can change your allocation at any time (though some plans limit changes to once per quarter or once per year).
A target-date fund automatically adjusts its mix of stocks and bonds based on your expected retirement year. If you plan to retire in 2050, you would choose a 2050 target-date fund, and it starts aggressive (mostly stocks) and gradually becomes more conservative (more bonds) as 2050 approaches. This requires no action on your part.
If you choose individual funds, you control the mix. You might put 70% in a stock index fund and 30% in a bond fund, or any other split. The growth of your account depends on how these investments perform, which varies year to year. Your employer does not may provide any return, and your account value can go down if the market declines.
Withdrawals before retirement and the 10% penalty
You cannot withdraw money from your 401(k) before age 59½ without penalty, with a few exceptions. If you do withdraw early, you pay a 10% penalty on the amount withdrawn plus ordinary income tax. A $10,000 early withdrawal could cost you $1,000 in penalty plus $2,000 to $3,000 in income tax, depending on your tax bracket.
The exceptions to the early withdrawal penalty are narrow. You can withdraw without penalty if you are permanently disabled, if you are receiving substantially equal periodic payments (a specific IRS formula), if you have a may have access to medical expense, or if you are a victim of domestic abuse. Some plans also allow loans, where you borrow from your own 401(k) and repay it with interest; loans are not withdrawals and do not trigger the penalty.
At age 59½, you can withdraw as much as you want whenever you want, and the 10% penalty no longer applies. You still pay ordinary income tax on the withdrawal. At age 73, the IRS requires you to take minimum withdrawals each year, called required minimum distributions (RMDs), whether you need the money or not.
What happens to your 401(k) when you change jobs
Your 401(k) stays with the plan your employer sponsors, even after you leave. You have four options: leave it where it is, roll it over to an IRA, roll it over to your new employer's 401(k) if they accept rollovers, or cash it out.
Cashing out is usually the worst option because you pay the 10% early withdrawal penalty (if you are under 59½) plus income tax on the full balance. A rollover to an IRA or to your new employer's plan avoids this penalty and keeps the money growing tax-deferred. A direct rollover, where the money moves from one plan to another without passing through your hands, is the simplest route and avoids any tax withholding.
If you leave the money in your old employer's plan, you can still direct the investments and make withdrawals after 59½, but you cannot make new contributions. Some employers require you to roll over small balances (usually under $5,000) if you leave the company.
Frequently Asked Questions
Can I borrow from my 401(k)?
Many plans allow loans, but not all. If your plan allows it, you can borrow up to 50% of your vested balance, up to $50,000, and repay it over five years (longer if the loan is for a home purchase). You pay interest to yourself, not to the bank. If you leave your job before repaying the loan, the unpaid balance is treated as a withdrawal and subject to the 10% penalty and income tax.
What is the difference between a 401(k) and an IRA?
A 401(k) is sponsored by your employer and has higher contribution limits ($23,500 in 2024). An IRA is individual and has lower limits ($7,000 in 2024). A 401(k) may offer an employer match; an IRA does not. Both grow tax-deferred, but IRAs offer more investment choices because you can invest in almost anything, while 401(k)s limit you to the plan's menu.
Do I have to contribute to my employer's 401(k)?
No, contributions are voluntary. However, if your employer offers a match, not contributing means leaving information programs on the table. Many financial advisors suggest contributing at least enough to capture the full employer match before saving elsewhere.
What happens to my 401(k) if I die?
Your beneficiary, named in your plan documents, inherits the account. They can roll it into an inherited IRA and withdraw it over time, or take it as a lump sum. The tax treatment depends on whether they are a spouse or non-spouse beneficiary and when they withdraw the money.
Can I have both a 401(k) and an IRA?
Yes, you can contribute to both in the same year, but your total contributions are limited. For a traditional IRA, your contribution may be tax-deductible only if your income is below certain limits and you have a 401(k). A Roth IRA has no deduction limit, so you can contribute to both a 401(k) and a Roth IRA without restriction, as long as you stay within each plan's annual limit.
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.