U.S. · W-2 box 12

W-2 box 12 code G.

A 457(b) code that, unlike the others, can include money your employer put in.

Code G reports 457(b) deferred compensation: your own deferrals and, uniquely among the deferral codes, employer contributions too. The governmental 457(b) limit is $24,500 for 2026, but a G total can legitimately exceed it because it mixes in employer money.

IRS General Instructions for Forms W-2 and W-3 (2026)Read November 1, 2026

Advertisement

Check your code G amount

$
The dollar figure on your W-2.
$
Other jobs, plus any pre-tax or Roth deferral codes on other lines. Leave 0 if none.
Age 50 and over gets a catch-up in most plans.
$

Result

Advertisement

What code G means

IRS description: Code G: Elective deferrals and employer contributions (including nonelective deferrals) to any governmental or nongovernmental section 457(b) deferred compensation plan.

This is the one deferral code the IRS defines as a blend. For codes D, E, F and S, the instructions say to report only the employee's elective deferrals. For code G they say to include "both elective and nonelective deferrals." The result is that a city employee who defers $10,000 while the employer adds $2,000 sees G 12000.00, and nothing on the W-2 splits the two parts. If you need the split, ask the plan administrator for your contribution statement.

The IRS also tells employers not to report either 457(b) or 457(f) amounts that are subject to a substantial risk of forfeiture. Money that is still forfeitable if you leave is not in code G yet. A governmental plan that offers designated Roth contributions reports those under code EE, and the instructions say not to use EE for elective deferrals under G.

Where code G shows up on your W-2 and return

Worked example

A city employee defers $10,000 and the city adds $2,000. Box 12 shows G 12000.00. Box 1 is lower than gross pay by the $10,000 you deferred, because the city's $2,000 was never part of your pay. Only the $10,000 is your elective deferral for the $24,500 limit. The $2,000 is not, so the G total of $12,000 says nothing about whether you hit the limit.

Limits and what to check

The IRS news release lists governmental 457 plans with the 401(k) and 403(b) at $24,500 for 2026, with the same $8,000 catch-up for 50 and over and $11,250 at ages 60 to 63. The 2025 Form 1040 instructions note a special higher limit may apply to 457(b) participants in the three years before retirement age, so it is worth asking the plan. Because code G blends your deferral with employer money, do not compare the G figure to the limit directly. Use your own deferral from the plan statement, add any D or E amounts from other jobs, and compare that to the limit. In a nongovernmental 457(b), amounts that stop being forfeitable are reported in boxes 3 and 5 when they vest, which is a different timing from governmental plans.

Common mistakes

See every code in one searchable table on the W-2 box 12 codes lookup.

Sources

Primary sources opened on November 1, 2026. The plain-English parts of this page are our summary of them, not IRS guidance.

Advertisement

Frequently asked questions

What does code G mean on a W-2?

Code G is for elective deferrals and employer contributions to a governmental or nongovernmental section 457(b) deferred compensation plan.

Does code G include employer contributions?

Yes. Unlike codes D, E, F and S, which are only your own deferrals, the IRS says code G includes both elective and nonelective (employer) deferrals.

Why is box 13 unchecked when I have code G?

The IRS tells employers not to check the Retirement plan box for contributions to a nonqualified or section 457(b) plan.

Is code G taxable?

In a governmental 457(b) the amount is excluded from box 1. It is still counted in boxes 3 and 5. The money is taxed when distributed, and the IRS says distributions are reported on Form 1099-R.

What is the 457(b) deferral limit for 2026?

$24,500, plus catch-up of $8,000 at age 50 and over or $11,250 at ages 60 to 63. A special limit can apply in the three years before retirement age.

How do I find my own deferral amount?

Ask the plan administrator for a contribution statement. The W-2 combines your deferral and employer money in one number.

Not tax advice

This page summarizes IRS instructions written for employers and is not tax advice. Your payroll provider, plan administrator or a tax professional can confirm what a code means on your own form. Everything runs in your browser; nothing you enter is sent anywhere.