Does a W-2 Show 401(k) Contributions? Box 12, Box 1 and Box 13 Explained (2026)

Does a W-2 Show 401(k) Contributions? Box 12, Box 1 and Box 13 Explained (2026)

Does a W-2 show 401(k) contributions? Yes, in four places at once, and reading them together answers most tax-season questions about a 401(k).

Yes. Form W-2 reports 401(k) contributions in Box 12: code D for pre-tax deferrals and code AA for Roth deferrals. Pre-tax deferrals are left out of Box 1 taxable wages but stay in Box 3 and Box 5, and Box 13 is checked. Employer matching contributions are not reported in Box 12.

By Craig Wear, CFP® | Last reviewed: October 9, 2026

Key Takeaways

  • Box 12 code D reports pre-tax 401(k) deferrals and code AA reports Roth 401(k) deferrals; regular and catch-up amounts are combined into one sum per code (2026 General Instructions for Forms W-2 and W-3).
  • Box 1 excludes pre-tax elective deferrals, but Boxes 3 and 5 include them, because Social Security (6.2%) and Medicare (1.45%) tax still apply (IRS Topic 751).
  • Box 3 can never exceed the 2026 Social Security wage base of $184,500, so for higher earners the Box 5 minus Box 1 gap, not Box 3, matches the deferral (IRS Topic 751).
  • Employer matching contributions are not elective deferrals and are not reported in Box 12; employers may list them in Box 14a (IRS W-2 instructions).
  • A checked Box 13 limits a single filer’s 2026 traditional IRA deduction between $81,000 and $91,000 of modified AGI (IRS, 2026 limits release).
  • Prior-year Box 3 wages decide the new Roth catch-up rule: catch-ups in 2026 must be Roth when 2025 FICA wages from the plan sponsor exceeded $150,000 (IRS Notice 2025-67; T.D. 10033).

401(k) Contributions on a 2026 W-2: Key Numbers

$24,5002026 401(k) deferral limit reported in Box 12 (code D, AA, or both)IRS Notice 2025-67
6Box 12 codes for employee deferrals to 401(k), 403(b), and 457(b) plans: D, E, G, AA, BB, EE2026 Form W-2 Instructions
$184,5002026 Social Security wage base: the most Box 3 can showIRS Topic 751
$150,0002025 Box 3 wages above which 2026 catch-ups must be RothNotice 2025-67, T.D. 10033

Pre-tax deferrals reduce Box 1 only. They stay in Box 3 (up to the wage base) and Box 5 because Social Security and Medicare tax still apply to them.

This guide reads a W-2 box by box for someone who contributes to a 401(k). For the full set of forms (Form 1099-R, Form 5498, and where distributions go on Form 1040), see 401k tax forms explained.

Talk With Craig Wear's Team

Craig has helped IRA millionaires save over $1 million each in unnecessary taxes. Find out if a Roth conversion strategy fits your retirement, with no sales pressure and no product pitch.

Which W-2 boxes change when you contribute to a 401(k)?

A 401(k) contribution touches at least four W-2 boxes: Box 12 shows the amount, Box 1 drops by a pre-tax deferral, Boxes 3 and 5 do not drop, and Box 13 is checked.

The 2026 IRS instructions tell employers to show in Box 1 “the total taxable wages, tips, and other compensation” paid during the year, but not to include elective deferrals such as 401(k) or 403(b) contributions (IRS W-2 instructions). The same instructions require elective deferrals to be reported in Box 3 and Box 5 even though they are not in Box 1.

W-2 box Pre-tax 401(k) deferral Roth 401(k) deferral Employer match
Box 1: wages, tips, other compensation Excluded (lowers Box 1) Included Not included
Box 3: Social Security wages Included, up to $184,500 Included, up to $184,500 Not included
Box 5: Medicare wages Included Included Not included
Box 12 Code D Code AA Not reported (Box 14a optional)
Box 13: Retirement plan Checked Checked Checked if allocated, even unvested
Box 16: state wages Usually excluded; Pennsylvania includes it Included Not included

The Pennsylvania row is a primary-source detail worth knowing: the state’s PA-40 W-2 RW reconciliation worksheet lists 401(k) (code D), 403(b) (code E), and 457(b) (code G) deferrals among items “not included in federal wages but are included in Pennsylvania wages.”

Which Box 12 code matches each workplace plan?

Each plan type has its own Box 12 letter, and the code tells the IRS which deferral limit the amount counts against. The 401k tax forms guide explains codes D and AA; the table below covers the rest of the retirement and health codes a saver is likely to see.

Code What it reports (2026 W-2 instructions) In Box 1?
D Pre-tax elective deferrals to a 401(k), including a SIMPLE 401(k) and federal TSP traditional contributions No
AA Designated Roth contributions to a 401(k) (and Roth TSP) Yes
E Pre-tax 403(b) salary reduction contributions No
BB Designated Roth contributions to a 403(b) Yes
G Elective deferrals and employer contributions to a governmental or nongovernmental 457(b) No
EE Designated Roth contributions to a governmental 457(b) Yes
F Salary reduction SEP (SARSEP) deferrals, including Roth SEP IRA deferrals Pre-tax: No
S SIMPLE IRA salary reduction contributions, including Roth SIMPLE IRA Pre-tax: No
H 501(c)(18)(D) plan deferrals (rare) Yes, deducted on Form 1040
W Employer HSA contributions, including employee pre-tax cafeteria plan HSA contributions No

The IRS has flagged recurring employer errors: code D used for 403(b) or 457 amounts, code S used for a SIMPLE 401(k) (which belongs under code D), and code H used for health benefits (IRS, common W-2 code errors). Federal TSP contributions use code D (traditional) and code AA (Roth), per the USPS Postal Bulletin W-2 explanation.

Why is Box 1 lower than Boxes 3 and 5?

Box 1 is lower because pre-tax 401(k) deferrals escape federal income tax in the year contributed but not Social Security or Medicare tax. That is the whole reason the gap exists, and it is why “deductible” is an imprecise word for these contributions; the mechanics are covered in are 401k contributions tax deductible.

Two other items commonly widen or blur the gap. Pre-tax cafeteria plan benefits such as health premiums are excluded from Boxes 1, 3, and 5 alike, so they do not change the gap (IRS Publication 15-B). The Social Security wage base does: Box 3 stops at $184,500 in 2026, while Box 5 has no cap (IRS Topic 751). Why FICA applies to 401(k) money at all is explained in payroll taxes explained.

So the shortcut “Box 3 minus Box 1 equals my 401(k)” works only below the wage base. Above it, Box 5 minus Box 1 is the reliable check.

Hypothetical $220,000 salary: where a $24,500 deferral shows up

Box 5 Medicare wages$217,000
Box 1 taxable wages$192,500
Box 3 Social Security wages (capped)$184,500
Box 12 code D deferral$24,500

Hypothetical worker, age 45, single, $220,000 salary, $24,500 pre-tax 401(k) deferral, $3,000 pre-tax health premiums. Box 3 stops at the 2026 wage base of $184,500 (IRS Topic 751), so Box 3 minus Box 1 is negative here; Box 5 minus Box 1 recovers the $24,500. Source: 2026 IRS Form W-2 instructions, arithmetic by Q3 Advisors.

Why doesn’t the W-2 show the employer match?

The match is not on the W-2 in any required box because it is not an elective deferral and is not taxable wages when contributed. The 2026 instructions list “employer matching contributions,” nonelective employer contributions, and non-Roth after-tax contributions as items that may go in Box 14a but not in Box 12 (IRS W-2 instructions).

The plan statement is the record of the match; formulas, vesting, and true-ups are covered in what is a 401(k) match. One W-2 consequence remains: if any employer contribution or forfeiture is allocated to the account, the employee is covered by the plan for the year even with no vested interest (IRS, are you covered by an employer’s retirement plan).

What does Box 13 mean for an IRA deduction?

A checked Retirement plan box tells the IRS the employee was an active participant, which can phase out the traditional IRA deduction. The IRS describes the checkbox as a signal that the worker “may not be entitled to a full deduction” for traditional IRA contributions (IRS).

For 2026, the deduction phases out between $81,000 and $91,000 of modified AGI for a covered single filer and between $129,000 and $149,000 for a covered spouse filing jointly; a non-covered spouse married to a covered worker phases out between $242,000 and $252,000 (IRS 2026 limits release). Full tables and worked phase-outs are in traditional IRA income limits 2026.

The instructions also say not to check Box 13 for contributions to a nonqualified or section 457(b) plan (IRS W-2 instructions). A public employee in a 457(b) only, without a pension or 401(a) plan, may therefore have more IRA deduction room than a 401(k) participant with the same pay.

Worked example: a $24,500 deferral on a 2026 W-2

A worker deferring the full $24,500 into a pre-tax 401(k) should see that amount next to code D and a Box 1 figure exactly $24,500 lower than Box 3 when pay is under the wage base. The example below is hypothetical and uses 2026 limits from IRS Notice 2025-67.

Assume a single worker, age 45, with a $120,000 salary, a $24,500 pre-tax 401(k) deferral, $3,000 of pre-tax health premiums through a cafeteria plan, and a 4% employer match of $4,800.

W-2 item Traditional 401(k) version Roth 401(k) version
Box 1 wages $92,500 ($120,000 minus $24,500 minus $3,000) $117,000
Box 3 Social Security wages $117,000 $117,000
Box 5 Medicare wages $117,000 $117,000
Box 12 D 24500.00 AA 24500.00
Box 13 Retirement plan Checked Checked
$4,800 match Not in Box 12 Not in Box 12
FICA on the $24,500 deferral (7.65%) $1,874.25 $1,874.25

In the traditional version, Box 3 minus Box 1 is $24,500, matching code D. In the Roth version the gap is zero, because Roth deferrals stay in Box 1; the trade-off is explained in Roth 401(k) vs traditional 401(k).

Box 13 matters here too. With modified AGI near $92,500 and Box 13 checked, this single filer is above the $91,000 top of the 2026 phase-out, so a traditional IRA contribution would be nondeductible and tracked on Form 8606.

At age 50 or older the same worker could defer $32,500, and at ages 60 to 63, $35,750. The W-2 instructions say regular and catch-up deferrals are reported “as a single sum” under one code, so Box 12 would show D 32500.00, not two lines (IRS W-2 instructions).

How do you reconcile your W-2 with your final pay stub?

The Box 12 amount should equal the year-to-date 401(k) deduction on the last pay stub dated in the calendar year. W-2 wages follow the pay date, so a paycheck for late-December work that is dated January 2 lands on the next year’s W-2.

  1. Find the final 2026 pay stub and note the year-to-date pre-tax 401(k) and Roth 401(k) deductions.
  2. Match them to Box 12 code D and code AA. Catch-ups are inside those totals, not listed separately.
  3. Check the gap: below $184,500 of pay, Box 3 minus Box 1 should equal code D; above it, use Box 5 minus Box 1.
  4. Confirm Box 13 is checked if any contribution or forfeiture was allocated to the 401(k) during the year.
  5. If figures differ, ask payroll for a corrected Form W-2c before filing.

If the employer does not fix a wrong or missing W-2, the IRS says to call 800-829-1040 by the end of February; it will contact the employer and send Form 4852, a substitute W-2. A W-2 that arrives later with different numbers calls for an amended return on Form 1040-X (IRS Topic 154).

A Box 12 total above the worker’s own limit is a different problem: the instructions require the full amount to be reported, even the excess (IRS W-2 instructions). The April 15 fix is covered in 401(k) over-contribution.

Why does Box 3 decide your 2026 catch-up tax treatment?

Box 3 of the prior year’s W-2 now determines whether catch-up contributions must be Roth. Treasury’s final regulations state that the rule “is based on the prior year FICA wages reported in Box 3 of Form W-2” from the plan sponsor (T.D. 10033, IRB 2025-40).

For 2026 catch-ups, the threshold is $150,000 of 2025 Box 3 wages (IRS Notice 2025-67). A 55-year-old whose 2025 W-2 from the same employer showed $160,000 in Box 3 would generally see the $8,000 catch-up reported under code AA on the 2026 W-2, not code D. Because Box 3 includes pre-tax deferrals, deferring more does not pull a worker under the threshold. The full rule is covered in catch-up contributions 2026.

How does W-2 reporting connect to Roth conversion planning?

Every code D dollar on a W-2 is income deferred, not forgiven: it is taxed as ordinary income when withdrawn or converted. Summing code D, E, or G across past W-2s roughly shows how much pre-tax money has accumulated, before growth.

Households with large pre-tax balances often look at the years between retirement and required distributions, when Box 1 wages fall to zero, as a window for a Roth conversion. A financial professional can model whether converting in lower-bracket years fits a specific tax picture.

Frequently asked questions

Does a W-2 show 401(k) contributions?

Yes. Pre-tax 401(k) deferrals appear in Box 12 with code D and Roth 401(k) deferrals with code AA. The amount is the total deducted from paychecks dated in the calendar year, including any age-50 catch-up. Employer matching contributions are not shown in Box 12.

Do I need to deduct my 401(k) contributions on my tax return?

No. Pre-tax deferrals are already left out of Box 1 taxable wages, so entering the W-2 exactly as issued gives the tax benefit. Subtracting the Box 12 code D amount again would understate income. The Box 12 figure is informational for the IRS and for limit tracking.

Why is Box 1 on my W-2 lower than my salary?

Box 1 excludes pre-tax 401(k), 403(b), 457(b), and SIMPLE deferrals, plus pre-tax cafeteria plan items such as health premiums. Boxes 3 and 5 still include the retirement deferrals because they remain subject to Social Security and Medicare tax. Roth deferrals stay in Box 1.

Does my employer 401(k) match show up on my W-2?

Not in Box 12. The 2026 IRS W-2 instructions list employer matching contributions among items that are not elective deferrals and may be reported in Box 14a, which is optional. The match is not taxable when made, so the plan statement is the reliable record of it.

What does the Retirement plan box in Box 13 mean?

A check in Box 13 means the employee was an active participant in a workplace plan such as a 401(k), 403(b), SEP, or SIMPLE for any part of the year. For a single filer in 2026, it limits the traditional IRA deduction once modified AGI exceeds $81,000, with no deduction above $91,000.

Is Box 13 checked if I only have a 457(b) plan?

No. The 2026 IRS W-2 instructions tell employers not to check the Retirement plan box for contributions to a nonqualified or section 457(b) plan. A government worker in a 457(b) only, with no pension or 401(a) plan, is generally not an active participant for IRA deduction purposes.

What should I do if the 401(k) amount on my W-2 is wrong?

Compare Box 12 with the year-to-date deferral on the final pay stub dated in that calendar year, then ask the employer for a corrected Form W-2c if they differ. If the employer does not respond, the IRS says to call 800-829-1040 by the end of February; Form 4852 is the fallback.

Why does my W-2 show more than the $24,500 limit in Box 12?

Box 12 combines regular deferrals and catch-up contributions in one sum, so a worker age 50 or older can show up to $32,500, or $35,750 at ages 60 to 63. An amount above the worker’s own limit signals an excess deferral that needs a corrective distribution by April 15.

About the author: Craig Wear, CFP®, is the founder of Q3 Advisors, a fee-only registered investment adviser focused on Roth conversions and retirement tax planning for households with large pre-tax retirement balances.

Last reviewed: October 9, 2026

Methodology: Box definitions, codes, and examples come from the IRS 2026 General Instructions for Forms W-2 and W-3. 2026 dollar limits and the Roth catch-up wage threshold come from IRS Notice 2025-67 and the IRS 2026 limits news release; the Box 3 test comes from T.D. 10033 (IRB 2025-40). Payroll tax rates and the $184,500 wage base come from IRS Topic 751, correction steps from IRS Topic 154, and the Pennsylvania treatment from the PA-40 W-2 RW worksheet. Worked examples use hypothetical facts and are not projections. Because this topic affects financial decisions, anonymous forum anecdotes and unsourced claims were excluded.

This article is for educational purposes only and is not individualized investment, tax, or legal advice. Consult a qualified professional about your specific situation.

Craig Wear Craig Wear
Helping IRA Millionaires save $1 million (or more) in unnecessary taxes

Is a Roth Conversion Right for You?

Get a personalized strategy from the firm that’s saved clients $9 billion in projected taxes

  • 2,400+ families guided through conversions
  • $9B in tax avoidance
  • Built for $1M+ IRAs

no obligation. 45-minute consultation