How does a 401(k) work?
Last updated August 2026
Short answer
For most people the 401(k) is the largest investment account they will ever have, and the one they understand least, because it is set up once during onboarding and then left alone. Here is what is actually happening inside it.
The mechanism: deferral, not transfer
You do not move money into a 401(k). You instruct your employer to pay you less and send the difference to the plan. That distinction matters: the money is never in your possession, which is why traditional contributions reduce your taxable income automatically without you claiming anything on your return.
Defer 10% of a $70,000 salary and $7,000 goes to the plan. If it is a traditional deferral, you are taxed as though you earned $63,000. The plan buys the funds you selected, and from then on nothing inside the account is taxed year to year. Dividends, interest and gains all compound untouched.
The bill arrives at withdrawal, when everything you take out is taxed as ordinary income.
Traditional or Roth: the same account, opposite tax timing
Most plans now offer both. A traditional deferral gives you the deduction today and taxes the withdrawal. A Roth deferral gives you no deduction today and makes qualified withdrawals tax free.
The rough rule: choose Roth if you expect your tax rate in retirement to match or exceed today's, which often favors people early in their careers. Choose traditional if you are at a peak earning point and expect to retire into a lower bracket. Splitting between the two hedges the fact that nobody knows future tax rates.
One detail people miss: even if you choose Roth deferrals, the employer match typically goes into the traditional side, so most Roth 401(k) savers end up with both anyway.
The match, and vesting
A match is your employer contributing alongside you. A common shape is 100% of the first 3% of pay you contribute plus 50% of the next 2%, giving 4% of pay if you contribute 5%.
Contributing less than the match threshold leaves money behind that has no equivalent anywhere else in investing. This is why the standard first step is to contribute at least enough to capture all of it.
Vesting is the catch. Your own contributions are always fully yours. Employer contributions may require you to stay a set period before they become yours: cliff vesting hands you the whole amount at once after, say, three years, while graded vesting releases it in slices. Leaving before you vest forfeits the unvested part.
What you can hold inside it
Unlike an IRA, a 401(k) offers only the menu your plan provides, typically ten to thirty funds plus a set of target-date funds. You cannot buy individual stocks in most plans.
Because the menu is fixed, the one variable genuinely in your control is cost. Expense ratios inside plans range from about 0.03% to well over 1%, and over decades that gap compounds into a serious sum. Comparing the expense ratios on your plan menu is a ten-minute task with an outsized payoff.
When you leave the job
The balance is yours regardless. Four options:
Leave it. Usually allowed above a minimum balance. Simple, but easy to forget, and you keep whatever fees that plan charges.
Roll it to your new employer's plan. Keeps everything in one place.
Roll it to an IRA. Opens up the whole investment universe instead of a fixed menu, and usually cuts costs. Note that a large pre-tax IRA balance complicates a future backdoor Roth.
Cash it out. The expensive one. Income tax plus a 10% penalty under 59 and a half, and the compounding is gone for good.
Try it in Walnut
Walnut connects to the brokerage accounts you hold outside your plan and reads the positions, so you can see your workplace allocation and everything else as one picture rather than two.
Common mistakes
Contributing below the match. The single most costly and most common one.
Leaving the default. Auto-enrollment often starts at 3%, a number chosen to be painless, not sufficient.
Losing track of old plans. Several small accounts across former employers, each with its own fees and none reviewed, is a common and avoidable drag.
Sources
2026 deferral and catch-up limits are from IRS Notice 2025-67. Plan mechanics, vesting and rollover rules are covered by the US Department of Labor. Walnut is informational and is not an investment adviser. This guide is educational and not personalized tax or investment advice; anything with a tax consequence is worth confirming with a tax professional.
FAQ
How does a 401(k) work?
+
You choose a percentage of your pay to defer. Your employer takes it out before you are paid, so it never reaches your bank account, and sends it to the plan where it is invested in funds you select. Traditional contributions reduce your taxable income now and are taxed on withdrawal. Roth contributions are taxed now and come out tax free later.
What is a 401(k) employer match?
+
Money your employer adds on top of your own contribution, usually as a percentage of pay you contribute. A common formula is 100% of the first 3% plus 50% of the next 2%. It is the highest-return part of the account, an immediate return on the portion matched, and it is the reason most guidance says to contribute at least enough to get all of it.
What happens to my 401(k) when I leave my job?
+
The money stays yours. You can leave it in the old plan if the balance is large enough, roll it into your new employer's plan, or roll it into an IRA. Vested employer contributions come with you; unvested ones are forfeited. Cashing out is the expensive option, triggering income tax plus a 10% penalty if you are under 59 and a half.
How much can I put in a 401(k) in 2026?
+
$24,500 of your own money, plus a $8,000 catch-up if you are 50 or over. Employees aged 60 to 63 get a larger catch-up of $11,250. Employer contributions sit on top of your limit rather than counting against it.