What Does Box 12 Code G Mean on Your W-2?

Code G in Box 12 on your W-2 is the total amount deferred into a Section 457(b) retirement plan during the year, counting both your own elective salary deferrals and any employer contributions made on your behalf.1Internal Revenue Service. 2026 General Instructions for Forms W-2 and W-3 The amount is already excluded from the taxable wages reported in Box 1, so for most filers the entry is informational: it explains why Box 1 is lower than your gross pay and lets the IRS confirm you stayed inside the annual deferral limit.

What the Code G Amount Includes

A 457(b) is a deferred compensation plan available to employees of state and local governments and certain tax-exempt organizations.2Office of the Law Revision Counsel. 26 USC 457 – Deferred Compensation Plans of State and Local Governments and Tax-Exempt Organizations Every dollar you and your employer put into that plan during the calendar year rolls up into the Code G figure. Amounts still subject to a substantial risk of forfeiture are excluded.1Internal Revenue Service. 2026 General Instructions for Forms W-2 and W-3

One point trips people up. Designated Roth contributions to a governmental 457(b) do not appear under Code G. They are reported as Code EE, because Roth money is included in Box 1 taxable wages rather than excluded from them.1Internal Revenue Service. 2026 General Instructions for Forms W-2 and W-3 Seeing both Code G and Code EE on the same W-2 means you split your contributions between traditional pre-tax and Roth within the same plan.

How Code G Affects Your Tax Return

Traditional 457(b) deferrals are pre-tax for federal income tax purposes. Your employer subtracts the deferred amount from your gross pay before running income tax withholding, so the reduction is already reflected in Box 1. Nothing on Form 1040 corresponds to Code G directly. Tax software reads the entry to sanity-check Box 1 against the annual limit, but there is no deduction to claim and no line to fill in.

Payroll taxes work differently. Even though the deferral escapes income tax in the current year, it is still subject to Social Security and Medicare tax.3Internal Revenue Service. Employer Contributions to 457(b) Plans Your Code G amount is included in the Social Security wages in Box 3 and the Medicare wages in Box 5. That is why the three wage boxes often disagree by roughly the Code G figure.

Money inside the plan grows tax-deferred. Withdrawals from a traditional 457(b) are taxed as ordinary income when you eventually take them out.

2026 Contribution Limits Code G Is Measured Against

The standard 457(b) deferral ceiling for 2026 is $24,500.4Internal Revenue Service. 2026 Amounts Relating to Retirement Plans and IRAs, as Adjusted for Changes in Cost-of-Living That ceiling covers pre-tax and Roth contributions combined, so the sum of your Code G and any Code EE amounts should not exceed it unless a catch-up applies.

Governmental 457(b) plans may offer higher limits in specific circumstances:5Internal Revenue Service. 401(k) Limit Increases to $24,500 for 2026, IRA Limit Increases to $7,500