
What a 401(k) changes on your pay stub
| Pay stub line | Traditional 401(k) | Roth 401(k) |
|---|---|---|
| Gross pay | No change | No change |
| 401(k) deduction | New line, before tax | New line, after tax |
| Federal income tax | Goes down | No change |
| Social Security and Medicare | No change | No change |
| State income tax | Goes down in most states | No change |
| Net pay | Falls by less than your contribution | Falls by the full contribution |
The IRS treats traditional contributions, called elective deferrals, as pay you haven't received yet for income tax purposes. They still count as wages for Social Security and Medicare, according to IRS Topic 424. Roth contributions are taxed like the rest of your pay before they go into your account.
Where the 401(k) fits in the paycheck order
Every paycheck is built in the same order. Your 401(k) lands at a different step depending on its type.
- Gross pay. Your salary or hourly earnings for the period.
- Traditional 401(k) and other pre-tax deductions come out. This lowers the wages used for income tax.
- Federal income tax is figured on what's left, using your Form W-4 and the IRS withholding tables.
- Social Security and Medicare are figured on your full gross pay, minus only deductions that are exempt from them, such as health premiums paid through a cafeteria plan. A 401(k) isn't one of those.
- State and local income tax. Most states start from the lower, federal-style wage figure. Some don't.
- Roth 401(k) and other after-tax deductions come out.
- Net pay is what's left.
Our guide to gross pay vs net pay covers every step in this chain, not just the 401(k).
A pay stub example, line by line
Here's one paycheck three ways: with no 401(k), with 8% going to a traditional 401(k), and with 8% going to a Roth 401(k).
Assumptions: 2027 federal rates, $90,000 salary paid twice a month (24 checks), single filer, standard Form W-4, no state income tax (as in Texas), no other deductions.
| Pay stub line | No 401(k) | 8% traditional | 8% Roth |
|---|---|---|---|
| Gross pay | $3,750.00 | $3,750.00 | $3,750.00 |
| Traditional 401(k) | $0.00 | $300.00 | $0.00 |
| Roth 401(k) | $0.00 | $0.00 | $300.00 |
| Federal income tax | $445.40 | $379.40 | $445.40 |
| Social Security | $232.50 | $232.50 | $232.50 |
| Medicare | $54.38 | $54.38 | $54.38 |
| Net pay | $3,017.72 | $2,783.72 | $2,717.72 |
With the traditional 401(k), federal income tax is figured on $3,450.00 instead of $3,750.00, and withholding drops by $66.00. That's why $300.00 goes into your account while your net pay falls by only $234.00. Social Security and Medicare are still figured on the full $3,750.00.
With the Roth, your net pay falls by the full $300.00. Over 24 paychecks, the traditional version leaves you $1,584.00 more in take-home pay this year, while both put $7,200.00 into your account.
Why the same contribution saves different amounts
The tax break on a traditional 401(k) is worth your top federal tax rate, so it isn't the same for everyone. This table shows what happens when different workers move $100 per paycheck into a traditional 401(k).
Assumptions: 2027 federal rates, paid every two weeks, standard Form W-4, no state income tax.
| Filer and salary | Federal tax without 401(k) | Federal tax with $100 traditional | Take-home drops by | Federal tax saved |
|---|---|---|---|---|
| Single, $40,000 | $98.15 | $86.15 | $88.00 | $12.00 |
| Single, $60,000 | $190.46 | $178.46 | $88.00 | $12.00 |
| Single, $100,000 | $495.75 | $473.75 | $78.00 | $22.00 |
| Single, $150,000 | $937.50 | $913.50 | $76.00 | $24.00 |
| Married filing jointly, $100,000 | $288.61 | $276.61 | $88.00 | $12.00 |
A single worker earning $150,000 gives up $76.00 of take-home pay to save $100. At $40,000, the same $100 costs $88.00. The married couple earning $100,000 sits in a lower withholding bracket than a single filer with the same pay, so their saving is smaller too.
With a Roth 401(k), every row would show a $100.00 drop and no federal tax saved, because Roth contributions don't change withholding.
Traditional or Roth: the paycheck trade-off
Your paycheck only shows half of the comparison. A traditional 401(k) gives you a tax break now, and you pay income tax when you withdraw the money in retirement. A Roth gives you no break now, but qualified withdrawals of contributions and earnings are tax-free, as the IRS Roth comparison chart explains.
So the question isn't which one costs less today. It's whether your tax rate is likely to be higher now or when you withdraw. Some people split their contributions between the two. Both types share one yearly limit, and a Roth 401(k) has no income limit to participate.
To compare both side by side for your pay, try the traditional vs Roth view in the 401(k) paycheck calculator.
How your W-2 shows your 401(k)
Your contributions also change your Form W-2 at the end of the year, which is where people often notice the effect.
- Box 1, wages for income tax, leaves out traditional contributions. Roth contributions stay in.
- Boxes 3 and 5, Social Security and Medicare wages, include both types.
- Box 12 lists your contributions: code D for traditional 401(k) and code AA for Roth 401(k), according to the IRS Form W-2 instructions.
In the $90,000 example above, a full year of 8% traditional contributions would show $82,800.00 in box 1, $90,000.00 in boxes 3 and 5, and $7,200.00 in box 12 with code D.
Because box 1 is lower, a traditional 401(k) lowers your taxable income on your tax return too, not just the amount withheld from each check.
When state and local taxes don't follow the federal rules
Most states that tax wages also leave traditional 401(k) contributions out of state taxable wages. A few important exceptions:
- Pennsylvania counts employee contributions to retirement plans as taxable compensation, according to the Pennsylvania Department of Revenue. In the $90,000 example, the 3.07% PA income tax is $115.13 per check with or without the traditional 401(k).
- New Jersey excludes 401(k) contributions but not contributions to 403(b), 457 or 414(h) plans, which many teachers and public employees use, according to the NJ Division of Taxation.
- Ohio cities and school districts tax wages that add back 401(k), 403(b) and 457 deferrals, under Ohio Revised Code 718.01.
- States with no wage tax, such as Texas and Florida, have no state tax for your contribution to reduce.
If you work in one of these places, your state wages in W-2 box 16 can be higher than your federal wages in box 1. That's expected. See the Pennsylvania paycheck calculator or the New Jersey paycheck calculator for local detail.
Limits, catch-ups and the Roth rule for higher earners
The IRS caps how much you can put into a 401(k) from your pay each year. The limit is per person and covers traditional and Roth contributions together, even across two employers. The IRS had not announced the 2027 limits when this page was reviewed. For 2026 the limit is $24,500. Workers 50 and older can add catch-up contributions of $8,000, or $11,250 at ages 60 to 63, according to the IRS catch-up contribution rules.
Higher earners face one more rule. If your Social Security wages from your employer in the previous year, shown in box 3 of your W-2, were above the IRS threshold ($150,000 for 2026; the 2027 figure had not been announced when this page was reviewed), your catch-up contributions must go in as Roth. That means they come out of your pay after tax and don't lower your withholding. IRS final regulations on this rule generally apply from January 1, 2027.
What happens when you change or max out your contribution
- Changing your rate often takes effect within a pay period or two, depending on your plan, and your next pay stub shows the new deduction and new withholding together.
- Reaching the yearly limit stops your contributions for the rest of the year. Your take-home pay goes up, and with a traditional 401(k), so does your federal withholding.
- The match can stop too. If you hit the limit early and your employer matches each paycheck, you may miss match money in later months unless your plan makes a year-end true-up. Check your plan rules before you front-load contributions.
- Bonuses may or may not have 401(k) taken out, depending on your plan and your election.
Does a 401(k) lower your Social Security benefits?
Generally no. Because 401(k) contributions are still counted as Social Security wages, they stay in the earnings record used to figure your future benefits. That's the flip side of paying Social Security tax on them.
Frequently asked questions
Is a 401(k) taken out before or after taxes?
A traditional 401(k) is taken out before federal income tax, and in most states before state income tax. It's still taken out after Social Security and Medicare are figured on your full pay. A Roth 401(k) is taken out after all taxes.
Why didn't my paycheck go down by the full amount of my 401(k)?
Because a traditional contribution lowers the wages your federal income tax is figured on. The tax you no longer have withheld covers part of the contribution. In the $90,000 example above, $300.00 per check into a traditional 401(k) lowers net pay by $234.00.
Does a Roth 401(k) lower my paycheck more than a traditional 401(k)?
Yes, for the same contribution. Roth money comes out after tax, so your net pay falls by the full amount. You get the tax benefit later, when qualified withdrawals come out tax-free.
Does a 401(k) reduce my taxable income?
A traditional 401(k) does. Your contributions are left out of box 1 of your W-2, so they lower the income you report on your federal return. Roth contributions don't reduce taxable income.
Why is my state taxable wage higher than my federal wage?
Usually because your state doesn't exclude some or all retirement contributions. Pennsylvania taxes 401(k) contributions, and New Jersey taxes 403(b) and 457 contributions, so your W-2 state wages can be higher than your federal wages.
Does my employer's 401(k) match count as income on my paycheck?
No. The match goes into your account, doesn't appear in your take-home pay and isn't included in your W-2 wages when it's made. It doesn't count toward your own contribution limit either.
Next step
Now that you know which lines move, put in your own numbers. The 401(k) paycheck calculator shows your paycheck before and after a contribution, and traditional vs Roth side by side. For the full picture of your pay, start with the paycheck calculator or our step-by-step guide on how to calculate take-home pay.
Sources
Tax year used in examples: 2027. Last reviewed: November 5, 2026
- IRS Topic 424, 401(k) plans
- IRS, General Instructions for Forms W-2 and W-3
- IRS Roth comparison chart
- IRS, catch-up contributions
- IRS, final regulations on the Roth catch-up rule
- IRS, cost-of-living adjustments for retirement plan limits
- IRS, tax year 2027 inflation adjustments
- Social Security Administration, 2027 wage base announcement
- Pennsylvania Department of Revenue, gross compensation
- New Jersey Division of Taxation, NJ income tax wages
- Ohio Revised Code 718.01
This guide is general information, not tax or financial advice. See our calculator disclaimer.