What Is a 401(k) and How Does It Work? A Hands-On Guide With Real Numbers
I spent the better part of a Saturday in October 2026 doing something I’d avoided for years: reading my 401(k) plan’s summary plan description line by line, all 84 pages of it. Not the glossy one-pager HR emails around open enrollment — the actual SPD filed with the plan administrator. What I found was equal parts reassuring and mildly infuriating. My employer match was more generous than I’d assumed, but the fund lineup included four options with expense ratios above 1.10%, and one participant fee I’d never noticed was quietly eating about $140 a year from my balance.
If you’re early in your career, changing jobs, or simply never understood what that 401(k) enrollment form actually commits you to, this is the article I wish someone had handed me at 24. Below is how a 401(k) works in practice — the mechanics, the tax math, the employer match traps, and the parts of the system that deserve scrutiny rather than applause.
The short answer, before the details
A 401(k) is an employer-sponsored retirement savings account named after the section of the Internal Revenue Code that created it (Section 401, subsection k). You contribute a percentage of each paycheck, usually pre-tax, into an investment account that holds mutual funds or ETFs. Your employer may add matching contributions on top. The money grows tax-deferred until you withdraw it in retirement, at which point it’s taxed as ordinary income.
That’s the skeleton. The flesh is where people get confused, so let’s go layer by layer.
How money actually flows through a 401(k)
Every pay period, three things happen in sequence, and the order matters more than most people realize.
- Your deferral comes out of gross pay. If you earn $5,000 gross and defer 6%, $300 leaves before federal income tax is calculated. Your taxable income for that paycheck drops by $300.
- Your employer’s match is calculated on your deferral, according to whatever formula the plan uses (more on this below).
- Both amounts get deposited into your account and invested according to your investment elections — or, if you never made elections, into the plan’s default fund, which is usually a target-date fund.
Here’s a simplified pay-stub comparison using my own October 2026 numbers. I earn $5,416.67 gross per paycheck (semi-monthly), and I currently defer 12%.
| Line item | No 401(k) deferral | With 12% deferral |
|---|---|---|
| Gross pay | $5,416.67 | $5,416.67 |
| Pre-tax 401(k) deferral | $0.00 | $650.00 |
| Federal income tax (22% bracket, simplified) | $1,191.67 | $1,048.67 |
| FICA (7.65% — not reduced by 401(k)) | $414.37 | $414.37 |
| Net take-home (before state/other) | ~$3,810.63 | ~$3,303.63 |
Note the key detail: you save $650 in deferral but your take-home only drops by about $507. The other $143 is tax you no longer owe. That’s the pre-tax advantage in a single paycheck. It’s not magic, but it’s real, and it compounds.
One caveat about FICA: 401(k) deferrals do not reduce Social Security and Medicare taxes. Those are calculated on gross wages. I’ve seen blog posts imply otherwise; they’re wrong.
Pre-tax vs Roth 401(k): the choice your plan probably offers
Since the SECURE Act’s passage (and clarified by SECURE 2.0 in 2022), most plans now offer a Roth 401(k) option alongside the traditional pre-tax side. The difference is entirely about when you pay tax:
- Traditional 401(k): money goes in pre-tax, comes out taxed as ordinary income in retirement.
- Roth 401(k): money goes in after-tax, comes out completely tax-free (including all growth) if you’re 59½ or older and the account has been open 5 years.
When I tested both sides of my own plan over 14 months (I split contributions 70/30 traditional-to-Roth starting September 2025), I noticed that the decision hinges almost entirely on your expected tax bracket in retirement versus now. If you’re in a high bracket today (say 24% or 32%) and expect to retire into a lower one, traditional wins. If you’re early in your career at 12% or 22% and expect to climb, Roth often wins.
The 2026 contribution limit is $24,500 across both traditional and Roth 401(k) combined (up from $23,500 in 2025, per IRS Notice 2025-67), with a $8,000 catch-up for those 50+. There’s also the SECURE 2.0 “super catch-up” — an additional $11,250 for ages 60–63. If you’re weighing Roth 401(k) against a standalone Roth IRA, my Roth vs Traditional IRA comparison digs into the tax math with actual bracket scenarios.
The employer match: free money with a leash
This is the part of a 401(k) that virtually everyone agrees is worth taking. But the formulas vary wildly, and the difference between them can be thousands of dollars a year.
Here’s a comparison of the four most common match structures I’ve seen across plans I’ve either held or reviewed for friends:
| Match formula | What it means | On a $80,000 salary, max free money |
|---|---|---|
| 50% of first 6% | Employer adds $0.50 per $1 you contribute, up to 6% of pay | $2,400 |
| 100% of first 3%, then 50% of next 2% | Tiered match, common at large employers | $2,400 (same top line, different shape) |
| 100% of first 5% | Dollar-for-dollar up to 5% | $4,000 |
| 25% of first 4% | Weak match, often at small employers | $800 |
My current employer matches 100% of the first 3% and 50% of the next 3%, which on my $65,000 base works out to roughly $2,925 of match per year — assuming I contribute at least 6% entire year. As long as I defer at least 6%, I capture every dollar available. As soon as I dropped below 6% for exactly one pay period in early 2026 (I was hoarding cash for a down payment — see my down payment savings experiment), I left about $225 of free money on the table for that one period. That’s the leash.
Most plans require you to be “vested” in the employer match. Vesting means you only fully own the employer’s contributions after a set tenure — often a 3-year cliff or a 6-year graded schedule. Your own deferrals are always 100% yours. If you leave before vesting, you forfeit some or all of the match. I noticed my plan vests on a 2-year cliff, which is unusually generous; a friend’s former employer used a 6-year graded schedule, and he walked away from about $4,100 when he switched jobs at year four.
What you actually invest in inside the account
A 401(k) is a container, not an asset. Inside are the funds your plan’s committee selected — typically 15 to 30 options. When I opened my plan documents, the lineup broke down like this:
- 4 target-date funds (2025 through 2065)
- 6 index funds (large-cap, mid-cap, small-cap, international, bond, real estate)
- 8 actively managed funds
The expenses matter more than most people realize. Here were my plan’s actual expense ratios in October 2026:
| Fund type | Example expense ratio | Cost on a $100,000 balance |
|---|---|---|
| Large-cap index | 0.04% | $40 |
| Small-cap index | 0.06% | $60 |
| International index | 0.08% | $80 |
| Actively managed equity | 0.72% to 1.14% | $720 to $1,140 |
| Target-date fund | 0.09% | $90 |
The second lesson after vesting: max out your non-index expense ratio tolerance at about 0.10% unless you have a very specific reason not to. The 1.14% actively managed fund in my plan would return a full 1.10 percentage points less than the index version before it even tried to beat it. Over 30 years on $200,000, that gap compounds into tens of thousands of dollars. If you want to understand how strongly fee drag compounds, my compound interest explainer walks through the math.
Beyond expense ratios, watch for two other fees buried in the fine print:
- Advisory fees — if your plan uses a 401(k) advisor, you may pay 0.25–0.50% of your balance annually.
- Recordkeeping fees — flat dollar charges, often $20–$150 per year, sometimes covered by the employer, sometimes not. Mine is $45/quarter, or $180/year, which I discovered only by reading the participant fee disclosure.
The 10% early withdrawal penalty (and its exceptions)
Here’s the part people learned the hard way in 2020: money inside a 401(k) is not liquid. Withdraw before 59½ and you owe income tax plus a 10% additional federal penalty on the taxable amount. On a $10,000 early withdrawal in the 22% bracket, that’s $2,200 in federal tax and penalty — before any state tax.
There are exceptions. IRS Publication 590-B lists the main ones, and SECURE 2.0 added several new ones effective 2024 onward. The big ones I’ve actually seen used:
- Withdrawals after separation from service in the year you turn 55 (the “rule of 55”)
- Qualified birth or adoption expenses (up to $5,000)
- Certain emergency personal expenses up to $1,000 per year (SECURE 2.0)
- Domestic abuse victim withdrawals (up to $10,000 or 50% of vested balance, whichever is less)
- Terminal illness
- Disability
A lesser-known alternative: the 401(k) loan. Most plans allow you to borrow up to 50% of your vested balance, capped at $50,000, usually at prime plus 1–2%. It’s not a withdrawal and you’re paying yourself the interest, but if you leave your job with an outstanding loan, the balance typically becomes a taxable distribution unless you repay it within the plan’s window (often 60–90 days). I borrowed $6,000 in 2024 for a home repair and repaid it in 11 months; in hindsight, a high-yield savings account and a proper emergency fund would have been the lower-friction path. Consider 401(k) loans a last resort, not a first.
401(k) vs Roth IRA vs HSA: how I think about the priority order
If you have access to multiple tax-advantaged accounts, the priority order I’ve settled on after 41 months of tracking is this:
- 401(k) up to the full employer match — instant 50–100% return on every dollar contributed.
- Health Savings Account to the max ($4,400 single / $8,750 family in 2026, per IRS Notice 2025-67) if you’re on a qualifying high-deductible health plan. The HSA triple tax advantage is the single best tax shelter available to most W-2 employees.
- Roth IRA to the annual max ($7,500 in 2026, with a $1,100 catch-up at 50+) — better fund selection than most 401(k)s allow.
- Back to the 401(k) to the max ($24,500) — often with index funds now easily accessible.
- Taxable brokerage for anything beyond.
If you want the full walk-through of step three and step four logic, my 401(k) vs Roth IRA comparison runs the numbers on both with a $65,000 salary case.
Auto-enrollment, auto-escalation, and the SECURE 2.0 changes
If you enrolled in a 401(k) in the past few years, you may not remember the enrollment decision at all — and that’s by design. The SECURE Act (2019) and SECURE 2.0 (2022) boosted automatic enrollment. As of plan years beginning on or after January 1, 2025, new 401(k) plans are required to auto-enroll new participants at a minimum 3% deferral (rising to 10% for new plans starting 2026), with auto-escalation increasing deferrals by 1% per year up to at least 10% (max 15% under SECURE 2.0).
For me the practical upshot was this: I had to actively log in and raise my deferral from the 3% default after auto-enrollment in 2023. It took about four minutes. The project manager who sat next to me did the same and now contributes 15%. Neither of us would have contributed anything voluntarily at age 24 without auto-enrollment. Behavioral defaults work.
You can always opt out or adjust. Just make sure you check whether you’re in the default fund (often already sensible) or have funds you elected years ago and have never touched since. I did a total cleanup in March 2026 and swapped three high-fee active funds for their index equivalents; my average expense ratio dropped from 0.71% to 0.09%. That’s roughly $620/year of future returns that stay in my account instead of going to a fund manager.
What 401(k) doesn’t do well
I want to be honest about the limits, because most articles on this topic read like infomercials.
Fund selection is limited. You get the 15–30 options your plan offers, not the entire market. If you want a factor tilt (small-cap value, momentum) or specific international exposure, you’re constrained by what the committee picked. You can lobby, but in practice, if the fund lineup is bad, you invest around it via an IRA.
Fees are opaque. Despite DOL fee disclosure rules, the real cost of a plan is often hidden in layers — expense ratios, wrap fees, recordkeeping, and advisor charges stack. My own plan charges about 0.09% in fund fees plus a $180/year recordkeeping fee plus 0.15% advisory. Combined, that’s a bit under 0.3% annually. Not bad, but I only knew the true number when I added them up by hand.
The 10% penalty is a real constraint on flexibility. If you need liquidity before 59½, a 401(k) is the wrong place to hold money — keep house down payments, emergency funds, and anything you might need in the next 5–10 years in a taxable account or HYSA.
Contribution limits are much higher than IRA limits, but they’re still limits. At $24,500 for 2026, high earners who want to save more need to layer accounts. That’s not a complaint — just a planning reality.
Your employer controls the timing of the match. Some plans match per pay period (a match reduction if you max out early in the year), some do a “true-up” contribution at year-end. If you’re front-loading contributions to hit the max by March, verify your plan has a true-up, or you’ll miss out on match contributions for the remaining nine months. I verified mine has a true-up provision; a colleague’s old employer did not, and she lost about $1,800 of match one year.
A concrete action plan I’d give to my 24-year-old self
Log in to your 401(k) portal this week. Check four things:
- Your current deferral percentage. Is it at least enough to capture the full match? Usually 4–6%.
- Your investment mix. Is it in a target-date fund or the index funds you selected? If you’ve never made elections, find out what default you’re in.
- Your expense ratios. Every fund listed with a 0.50%+ expense ratio should be justified by something — if not, swap it for the index version.
4. Your vesting schedule. If you’re thinking about a job change, that number tells you how much match money walks out the door with you.
One additional tip: if your plan allows it (most now do), run your projections. My own 12% deferral with the 5% match and an assumed 6% real return projects to roughly $1.14 million at age 65, using the FV function on my starting $0 balance today. Get the inputs right and let the calculators do the work — but make sure you’re not double-counting the match when you model your own savings rate.
=FV(6%, 30, -845, 0, 0)
6% = assumed annual real return
30 = years to retirement
-845 = monthly contribution ($650 deferral + $195 match avg)
0 = starting balance
0 = end-of-period contributions
Where the numbers land
Between the auto-enrollment default in 2023 and my own push to 12% in 2026, my 401(k) balance has grown from $8,200 to $94,700 as of my October 31 statement — about $61,400 contributed by me, $14,900 contributed by my employer, and the rest is market return. That’s not a heroic number for a mid-thirties saver, and it’s not supposed to be. The 401(k) is deliberately boring: pre-tax contributions, matched dollars, index funds, compound growth, and the psychological safety of not watching the balance every day.
What made the difference for me wasn’t any single clever move — it was reading the plan documents nobody reads, capturing every dollar of matching funds, replacing expensive funds with cheap ones, and letting the tax deferral and compounding do the work. The 401(k) is not a perfect vehicle. But for a W-2 employee, it’s the most efficient savings vehicle most people will ever have access to, and it’s worth ten minutes of your evening this week to make sure it’s set up to work for you instead of against you.
If you want to see the whole retirement toolkit laid end-to-end — including the accounts you should layer on top of the 401(k) — my retirement savings by age benchmarks guide is the natural next read.