Skip to content
Independent money guidance
Clear Money Guide
Start here
Menu

W-2 Box 12 Code G: 457(b) Deferrals

Updated September 29, 2026. Quick answer: code G in Box 12 reports deferrals to a 457(b) deferred compensation plan. It is the one deferral code where the IRS says the total can include employer contributions, not just the money you elected to defer.

What the IRS tells the employer

The instructions define code G as “Elective deferrals and employer contributions (including nonelective deferrals) to any governmental or nongovernmental section 457(b) deferred compensation plan.” They add: “Do not report either section 457(b) or section 457(f) amounts that are subject to a substantial risk of forfeiture.”

The exception to the general rule

For the other coded plans the instructions say only elective deferrals and designated Roth contributions belong in Box 12, “except, when using code G for section 457(b) plans, include both elective and nonelective deferrals.”

Governmental and nongovernmental plans differ in Box 3 and 5

The Box 3 instruction for nongovernmental plans reads: “Include both elective and nonelective deferrals for purposes of nongovernmental section 457(b) plans.” Roth contributions to a governmental 457(b) are reported under code EE, not code G.

Common mistakes

  • Assuming code G is only your own salary reduction. The IRS instruction includes employer contributions in the total.
  • Using code G for a Roth 457(b) contribution. The EE instruction says not to use EE for elective deferrals under code G.

Related: code D, code E, code EE, and the 457(b) contribution limit.

Every code in one place: the Box 12 codes table. If a withdrawal from one of these accounts is your question, see the Form 1099-R Box 7 codes.

Figures verified against the IRS 2026 General Instructions for Forms W-2 and W-3 on September 30, 2026.

Sources

Optional next step

Want help with this decision?

Ask an adviser how this choice fits your broader retirement and financial plan.

  • No fee to request a match
  • No obligation to hire

Expect questions about your situation, your name, email and phone, and phone verification by text. A match is not guaranteed.

The form is run by Kapitalwise, our advisor-matching partner. Kapitalwise sends your details to advisers who pay for the introduction, so expect calls and texts. Clear Money Guide is paid when you submit the form, whether or not you ever hire anyone. This is free to you and there is no obligation to hire anyone.

Opens here. Nothing loads and nothing reaches Kapitalwise until you press the button.

How our partner relationships work

Code meanings are read from the IRS 2026 General Instructions for Forms W-2 and W-3 (Box 12) at irs.gov on September 29, 2026. General information, not tax advice. Your own facts decide the outcome, and a payroll professional, a preparer or the IRS is the right place to confirm anything consequential.