What happens when you put money into a 401(k)
A 401(k) is a retirement savings account that your employer offers. When you enroll, money comes out of your paycheck before taxes are calculated, goes into an account in your name, and you choose how to invest it — usually in mutual funds or target-date funds the plan offers. Your employer may match part of what you contribute, meaning they add their own money to your account.
The account grows tax-free while the money sits there. You do not pay income tax on the money you contribute or on any gains it earns until you withdraw it in retirement. This is different from a regular savings account, where you pay taxes on interest as you earn it.
The money is yours to keep. If you leave your job, the account stays with you — you can roll it into a new employer's plan, move it to an individual retirement account (IRA), or leave it where it is if the balance is large enough.
Key Takeaways
- Money goes into your 401(k) directly from your paycheck before income tax is taken out, and you choose how to invest it from the options your employer's plan offers.
- Your employer may contribute matching funds — for example, 50 cents for every dollar you put in up to 6 percent of your salary — which is money you should try to capture.
- You cannot withdraw the money before age 59½ without paying a 10 percent penalty plus income tax, with limited exceptions for hardship or first-time home purchase.
- Once you turn 73, you must begin taking required minimum distributions (RMDs) each year, which are taxed as ordinary income.
- If you leave your job, you can roll the 401(k) into an IRA or your new employer's plan to keep it growing tax-free.
How much you can contribute each year
The IRS sets a limit on how much you can put into a 401(k) each year. That limit changes annually and is higher if you are 50 or older. For 2024, the limit is $23,500 for workers under 50 and $31,000 for workers 50 and up. Your employer may also set a lower limit or require that you contribute no more than a certain percentage of your salary.
If your employer offers a match, you want to contribute at least enough to get the full match. For example, if your employer matches 50 cents on the dollar up to 6 percent of your salary, you should contribute at least 6 percent. That is assistance programs — if you do not contribute enough to capture it, you are leaving it on the table.
Employer matching and vesting
When your employer contributes matching funds, those dollars do not always become yours right away. Vesting is the schedule that determines when the employer's contributions become permanently yours. Some employers use immediate vesting, meaning the match is yours as soon as it hits your account. Others use a graded schedule — for example, you own 20 percent of the match after one year, 40 percent after two years, and so on until you own 100 percent after five years.
If you leave your job before you are fully vested, you forfeit the unvested portion of the employer match. Your own contributions are always 100 percent vested immediately — you own them from day one. Check your plan documents or ask your HR department what vesting schedule applies to you.
Investment choices and how your money grows
Your 401(k) plan offers a menu of investment options, typically mutual funds, index funds, and target-date funds. You decide how to split your contributions among these choices. A target-date fund automatically adjusts its mix of stocks and bonds as you get closer to retirement, so it requires less active management on your part.
The money you invest grows through earnings — dividends, interest, and capital gains. You do not pay taxes on these earnings while they remain in the account. Over decades, this tax-free growth can significantly increase your balance. However, investment returns are not may provide, and the value of your account can go down if the investments lose money.
Withdrawals before retirement and early withdrawal penalties
You cannot withdraw money from your 401(k) before age 59½ without paying a 10 percent early withdrawal penalty plus ordinary income tax on the amount you take out. This rule applies even if you leave your job. For example, if you withdraw $10,000 at age 45, you owe the 10 percent penalty ($1,000) plus income tax on the full $10,000.
There are narrow exceptions. You can withdraw without the penalty if you are experiencing a severe financial hardship (defined by your plan, often including medical bills, eviction, or foreclosure), if you are disabled, if you are a beneficiary receiving distributions after the account holder's death, or if you use the "substantially equal periodic payments" rule. Some plans also allow loans against your balance, which you repay to yourself with interest.
A first-time home purchase is another exception: you can withdraw up to $35,000 lifetime from a 401(k) to buy your first home without the 10 percent penalty, though you still owe income tax on the amount.
Required minimum distributions at age 73
Once you reach age 73, the IRS requires you to withdraw a minimum amount from your 401(k) each year, called a required minimum distribution (RMD). The amount is calculated based on your age and account balance. If you do not take the RMD, you owe a penalty — currently 25 percent of the amount you should have withdrawn (reduced to 10 percent if you correct it within two years).
You must pay income tax on every dollar of your RMD. If you do not need the money, you still have to withdraw it and pay the tax. One exception: if you are still working and do not own more than 5 percent of the company, you may be able to delay RMDs until you actually retire.
What happens to your 401(k) when you leave your job
When you leave your employer, you have four main options for your 401(k): leave it with your former employer's plan, roll it into your new employer's plan, roll it into an individual retirement account (IRA), or cash it out. Cashing it out triggers the 10 percent early withdrawal penalty (if you are under 59½) plus income tax, so this is usually the worst option.
A rollover moves the money directly from one account to another without you touching it, which avoids taxes and penalties. If you do a rollover yourself — meaning the check is made out to you — you have 60 days to deposit it into another retirement account or you owe taxes and penalties on the full amount. A direct rollover, where the money moves from plan to plan without passing through your hands, is simpler and safer.
An IRA rollover gives you more investment choices than most 401(k) plans offer, but you lose access to the plan's loan feature and certain creditor protections. Leaving the money in your former employer's plan keeps it simple if the plan is well-run and has low fees, but you cannot add new contributions.
Frequently Asked Questions
Can I borrow money from my 401(k)?
Many plans allow loans against your balance. You typically can borrow up to 50 percent of your vested balance or $50,000, whichever is less. You repay the loan to yourself with interest, and the interest goes back into your account. If you leave your job, the loan usually must be repaid within 60 to 90 days or it is treated as a withdrawal, triggering taxes and penalties.
What is the difference between a 401(k) and an IRA?
A 401(k) is offered by your employer; an IRA is an individual account you open yourself. 401(k)s have higher contribution limits and often include employer matching. IRAs have more investment choices and lower fees. You can have both at the same time, but total contributions to all retirement accounts are subject to IRS limits.
Do I pay taxes on 401(k) contributions?
No, not when you contribute. The money comes out of your paycheck before federal income tax is calculated, which lowers your taxable income for the year. You pay income tax on the money when you withdraw it in retirement. This is called a "pre-tax" or "traditional" 401(k).
What if my employer does not offer a 401(k)?
You can open an individual retirement account (IRA) on your own through a bank, brokerage, or investment company. Contribution limits are lower than a 401(k), but you have full control over investments and no employer involvement is needed.
Can I change my investment choices after I enroll?
Yes. You can change how your contributions are invested and rebalance your existing balance among the plan's options as often as your plan allows — usually quarterly or even daily. Changing your investments does not trigger taxes or penalties.