$Missed Deductions

What does code D, E, or G on my W-2 mean?

Understanding Your Returnintermediate2 answers · 5 min readUpdated February 28, 2026

Quick Answer

Code D shows 401(k) pre-tax contributions, Code E shows 403(b) contributions, and Code G shows 457(b) plan contributions. These reduce your taxable income — for 2026, you can contribute up to $23,500 to these plans ($31,000 if 50+, $34,750 if 60-63). These amounts should already be excluded from your W-2 wages.

Best Answer

DF

Diana Flores, EA

Employees with employer-sponsored retirement plans who want to maximize tax benefits

Top Answer

What codes D, E, and G mean on your W-2


These codes in Box 12 of your W-2 represent pre-tax contributions to different types of employer-sponsored retirement plans:


  • Code D: 401(k) plan contributions
  • Code E: 403(b) plan contributions (typically for non-profit and government employees)
  • Code G: 457(b) plan contributions (deferred compensation plans, often for government workers)

  • Important: These amounts should already be excluded from your taxable wages in Box 1 of your W-2.


    Example: How these codes affect your taxes


    Let's say Maria earns $80,000 and contributes to her employer's retirement plan:


  • Gross salary: $80,000
  • 401(k) contribution (Code D): $12,000
  • Taxable wages (W-2 Box 1): $68,000
  • Tax savings: ~$2,640-$3,600 (depending on tax bracket)

  • The $12,000 appears as Code D in Box 12, but more importantly, it's already subtracted from her Box 1 wages, reducing her taxable income.


    2026 contribution limits and tax benefits



    *Tax benefit calculated for maximum contribution at 22-35% marginal tax rates


    Key differences between these retirement codes


    Code D (401(k) plans):

  • Most common employer plan
  • Often includes employer matching
  • Early withdrawal penalties apply before age 59½
  • Required minimum distributions start at age 73

  • Code E (403(b) plans):

  • For employees of schools, hospitals, and non-profits
  • Similar rules to 401(k) but may have different investment options
  • Some 403(b) plans allow additional catch-up contributions for long-term employees

  • Code G (457(b) plans):

  • Primarily for government employees
  • Unique advantage: no early withdrawal penalty (though income tax still applies)
  • Can contribute to both 457(b) and 401(k)/403(b) in the same year if your employer offers both

  • What you need to verify on your tax return


    Check your contribution limits: Make sure your total contributions don't exceed IRS limits. If they do, you'll need to withdraw the excess to avoid double taxation.


    Verify Box 1 wages: Your taxable wages should equal gross wages minus pre-tax deductions (including retirement contributions). If Box 1 seems too high, your employer may have made an error.


    Roth vs. pre-tax: Some plans allow Roth contributions, which appear differently on your W-2. Roth contributions are included in Box 1 wages but marked separately.


    Common tax mistakes with retirement contribution codes


    Mistake 1: Trying to deduct these amounts again on your tax return. They're already excluded from your taxable wages.


    Mistake 2: Not contributing enough to get full employer match. This is "free money" — maximize it first.


    Mistake 3: Exceeding contribution limits across multiple jobs. If you change jobs mid-year, track your total contributions.


    What you should do


    1. Verify the amounts shown in codes D, E, or G match your records

    2. Check contribution limits — make sure you haven't exceeded the $23,500 basic limit (or higher limits if you qualify)

    3. Plan for next year — consider increasing contributions if you're not maxing out

    4. Maximize employer matching if your company offers it


    Use our refund estimator to see how increasing your retirement contributions could affect your tax refund and take-home pay for next year.


    Special considerations for 2026


    The new "super catch-up" provision allows employees ages 60-63 to contribute an additional $11,250 beyond the regular catch-up amount. If you're in this age range, your maximum 401(k) or 403(b) contribution is $34,750.


    Key takeaway: Codes D, E, and G show retirement contributions that already reduced your taxable wages by up to $23,500 ($34,750 if 60-63), potentially saving you $5,170-$8,245 in taxes depending on your bracket.

    *Sources: [IRS Publication 560](https://www.irs.gov/pub/irs-pdf/p560.pdf), [Form W-2 Instructions](https://www.irs.gov/pub/irs-pdf/iw2w3.pdf)*

    Key Takeaway: Codes D, E, and G represent pre-tax retirement contributions that already reduced your taxable wages, potentially saving thousands in taxes without any additional action needed on your return.

    2026 retirement plan contribution limits and tax benefits

    Plan Type (Code)Basic LimitAge 50+ LimitAge 60-63 LimitTax Savings Range*
    401(k) - Code D$23,500$31,000$34,750$5,170 - $8,245
    403(b) - Code E$23,500$31,000$34,750$5,170 - $8,245
    457(b) - Code G$23,500$31,000N/A$5,170 - $8,245

    More Perspectives

    DF

    Diana Flores, EA

    Employees who are new to retirement contributions or want a basic understanding

    Simple explanation of retirement contribution codes


    If you see Code D, E, or G in Box 12 of your W-2, it means you contributed money to a retirement plan through your employer. The good news? You've already received the tax benefit.


    What this means for your taxes


    These contributions were taken from your paycheck before taxes were calculated. So if you earned $50,000 but contributed $6,000 to your 401(k), your taxable income is only $44,000.


    Example:

  • Your gross pay: $50,000
  • 401(k) contribution (Code D): $6,000
  • Taxable wages (Box 1): $44,000
  • Tax savings: ~$1,320-$1,980

  • Do you need to do anything?


    Usually, no. The tax software will automatically use the wages shown in Box 1, which already reflect your retirement contributions. You don't need to enter these codes separately.


    When to pay attention


    Only worry about these codes if:

  • The amount seems wrong compared to your pay stubs
  • You contributed to multiple retirement plans and might have exceeded the $23,500 limit
  • You changed jobs and want to make sure your total contributions are correct

  • Key takeaway: These codes show money you already saved on taxes by contributing to retirement — no additional action needed when filing your return.

    Key Takeaway: Retirement contribution codes show tax savings you already received through payroll, with no additional action needed when filing your return.

    Sources

    w 2 codes401k403bretirement contributions

    Reviewed by Diana Flores, EA on February 28, 2026

    This content is for educational purposes only and is not a substitute for professional tax advice. Consult a qualified tax professional for advice specific to your situation.

    What Do Codes D, E, G on W-2 Mean? | MissedDeductions