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
- Participants who are 50 or older can defer an additional $8,000 in 2026, for a total of $32,500.
- Participants aged 60 through 63 can contribute an extra $11,250 under a SECURE 2.0 provision, raising the ceiling to $35,750.
- In the three calendar years before the plan’s stated normal retirement age, a special 457(b) catch-up allows deferrals up to twice the standard limit, up to $49,000 in 2026, capped at the sum of the standard limit plus any unused deferral room from earlier years. The age-based catch-ups and the three-year catch-up cannot be used in the same year.6Internal Revenue Service. Issue Snapshot – Section 457(b) Plan of Governmental and Tax-Exempt Employers – Catch-Up Contributions7Internal Revenue Service. 8Internal Revenue Service. Non-Governmental 457(b) Deferred Compensation Plans
One feature worth knowing if you also see a Code E (403(b)) or Code D (401(k)) on the same W-2 or on a spouse’s: the 457(b) deferral limit is independent of the 401(k) and 403(b) limit.9Internal Revenue Service. How Much Salary Can You Defer if You’re Eligible for More Than One Retirement Plan A public university employee with access to both plans could defer $24,500 into each in 2026 without either amount cannibalizing the other.
When Code G Creates Extra Filing Work
If your Code G total exceeds the applicable annual limit, the plan needs to return the excess along with any earnings on it. Deadlines depend on plan type:10Internal Revenue Service. Issue Snapshot – 457(b) Plans – Correction of Excess Deferrals
- In a governmental 457(b), the excess and its earnings must be distributed as soon as administratively practicable after the plan discovers the problem. Delay can cost the plan its eligible status.
- In a non-governmental 457(b), the excess and earnings must be distributed by April 15 of the year following the excess deferral. Missing that date converts the plan to an ineligible 457(f) arrangement, which triggers immediate taxation of vested benefits.
When the excess comes from exceeding the individual participant limit rather than a plan-level failure, the plan can keep its eligible status even if the money stays in the account, but you must add the excess to your income for the year it was deferred. This most often happens when someone contributes to two 457(b) plans with different employers and the combined total crosses the annual ceiling.
A related contrast helps place Code G among its neighbors on the W-2: Code H, for Section 501(c)(18)(D) plan contributions, requires the taxpayer to claim a deduction on the return. Code G does not, because the exclusion happens automatically through payroll.1Internal Revenue Service. 2026 General Instructions for Forms W-2 and W-3
Why the Governmental or Non-Governmental Distinction Matters Later
Code G looks the same on the W-2 regardless of which type of 457(b) you participate in, but what you can do with the money afterward is very different. Governmental plans hold assets in a trust shielded from the employer’s creditors, allow rollovers to IRAs and other qualified plans after separation from service, and permit loans.11Internal Revenue Service. Comparison of Tax-Exempt 457(b) Plans and Governmental 457(b) Plans Distributions from a governmental 457(b) are also exempt from the 10% early withdrawal penalty that applies to 401(k)s and IRAs before age 59½, though rollover-in money from other plans keeps the penalty attached.12Internal Revenue Service. Topic No. 558, Additional Tax on Early Distributions From Retirement Plans
Non-governmental 457(b) balances remain the property of the employer and are exposed to the organization’s general creditors. They cannot be rolled into an IRA, 401(k), or 403(b); the only permitted transfer is to another non-governmental 457(b), and only after you leave the employer.11Internal Revenue Service. Comparison of Tax-Exempt 457(b) Plans and Governmental 457(b) Plans Both plan types allow required minimum distributions to be delayed past age 73 if you are still working for the sponsoring employer.13Internal Revenue Service. Retirement Plan and IRA Required Minimum Distributions FAQs
None of that changes how you handle the Code G entry at tax time. It does change what the number represents in your long-term picture, which is worth knowing before you start planning around it.