US Tax Tools

W-2 Box 12 Code D — Elective deferrals to a 401(k) plan

Your traditional (pre-tax) 401(k) elective deferrals. Reduces Box 1 dollar-for-dollar, up to the annual §402(g) elective deferral limit (higher with age-50 catch-up and SECURE 2.0 ages-60–63 super-catch-up).

At a glance — Box 12 Code D

Box name
Elective deferrals to a 401(k) plan
Reports to
Already reflected in Box 1 (reduces it). Feeds Form 8880 (Saver's Credit).
Check against
Your 401(k) statement showing YTD employee pre-tax deferrals.

What Box 12 Code D means

Code D reports your traditional (pre-tax) elective deferrals to a 401(k) plan. These contributions reduce Box 1 (taxable federal wages) but not Box 3 (Social Security) or Box 5 (Medicare) — you still pay FICA on them now, but federal income tax is deferred until withdrawal.

The §402(g) elective deferral limit caps what you can contribute in a year. Participants age 50+ can add the age-50 catch-up; SECURE 2.0 added a super-catch-up for ages 60–63 that replaces the age-50 amount in that age window. Excess deferrals must be withdrawn by April 15 of the following year or face double taxation. §415(c) separately caps total employee + employer additions.

Tax return implications

  • Already reduces Box 1 — you do not separately deduct code D on your tax return.
  • Contributes to the Saver's Credit (Form 8880) if your AGI is below the phase-out.
  • Excess deferrals above the §402(g) limit must be pulled by April 15 via a corrective distribution or taxed twice.

Common pitfalls & things to check

  • If you had multiple employers, each plan has its own contribution cap — but YOU cannot exceed the §402(g) limit total across all 401(k)s. Track the aggregate yourself.
  • Roth 401(k) contributions go in code AA, not code D. Code D is traditional (pre-tax) only.
  • 403(b) elective deferrals use code E; 457(b) uses code G; SIMPLE uses code S.

For 2025 returns (filed by April 15, 2026)

§402(g) elective deferral limit
$23,500
Age-50 catch-up $7,500 · SECURE 2.0 ages-60–63 super-catch-up $11,250 · §415(c) total additions $70,000. Combined across code D + AA (traditional + Roth).

Values sourced from central tax-year config at build time — update automatically on FY rollover.

Related W-2 boxes

Reconciling your W-2 at tax time? Use the paycheck calculator to verify expected federal, Social Security, and Medicare withholdings on your salary, and the federal income tax calculator to estimate your refund or balance owing before you file.

Sources

W-2 box definitions per IRS General Instructions for Forms W-2 and W-3 and IRC §6051. Rates and thresholds current for tax year 2025 (file by April 15, 2026); 2026 figures included where published.

Last updated May 14, 2026 Tax year 2025-26

Data sources: IRS (irs.gov), Social Security Administration

This tool is general information only, not financial advice.

Reviewed by USTax Tools Editorial Desk

Read our methodology →