Schema Tax

Box 12 Code E vs D: 403(b) and 401(k) Deferrals Compared

By Schema TaxPublished Updated

In Box 12 code E vs D, the difference is the plan type. Code D reports pre-tax salary deferrals to a 401(k) plan, and code E reports pre-tax deferrals to a 403(b) plan, which schools and tax-exempt charities offer. Both amounts are left out of Box 1, and both count toward one yearly deferral limit per person.

Code E vs code D at a glance

Code E and code D both report elective deferrals, the part of your pay you chose to put into a workplace retirement plan before income tax. Code D is for a section 401(k) plan. Code E is for a section 403(b) plan. The employer you work for decides which plan, and so which code, you get.

The IRS General Instructions for Forms W-2 and W-3 give the titles. Code D is "Elective deferrals under a section 401(k) cash or deferred arrangement (plan)," and code E is "Elective deferrals under a section 403(b) salary reduction agreement." Code G, which often appears in the same conversation, is "Elective deferrals and employer contributions (including nonelective deferrals) to any governmental or nongovernmental section 457(b) deferred compensation plan."

Who offers each plan is set by law. The IRS 401(k) plan overview says traditional and safe harbor 401(k) plans are open to "employers of any size." IRS Publication 571 limits 403(b) plans to employees of 501(c)(3) organizations, public school systems, cooperative hospital service organizations and a few others. The IRS page on 457(b) plans for state or local governments says state and local governments "are not eligible to maintain 401(k) plans (except if adopted before May 6, 1986)."

The table below compares the three codes. The limit figures are for 2026.

Code DCode ECode G
Plan401(k)403(b)457(b)
Typical employerBusinesses of any sizePublic schools, 501(c)(3) charitiesState and local governments, tax-exempt organizations
Shares the yearly limitWith code E and other non-457 plansWith code D and other non-457 plansNo, it has its own limit
Age 50 catch-upYes, $8,000Yes, $8,000Yes for governmental plans
Ages 60 to 63$11,250 in place of $8,000$11,250 in place of $8,000$11,250 for governmental plans
Plan-specific extraNone15-year rule, up to $3,000 more a yearLast three years before normal retirement age
Roth partner codeAABBEE (governmental plans only)

The catch-up and limit figures come from the IRS announcement of the 2026 limits, which sets the deferral limit for "401(k), 403(b), governmental 457 plans" at $24,500, the age 50 catch-up at $8,000, and the catch-up for employees aged 60 to 63 who participate in these plans at $11,250. The 15-year rule comes from Publication 571. The full detail on code D lives in the post on Box 12 code D for 401(k) deferrals, and the 403(b) side in the post on Box 12 code E.

The shared deferral limit across code D and code E plans

The deferral limit across code D and code E plans is per person, not per plan. If you have both a 401(k) and a 403(b) in the same year, the deferrals reported under both codes are added together and compared with one limit, $24,500 for 2026 before any catch-up. Having two plans does not double the limit.

Publication 571 says that if elective deferrals are made to other retirement plans on your behalf during the year, "you must combine all of the elective deferrals to determine if they are more than your limit on elective deferrals." It then lists the plans that share the limit: "401(k) plans, to the extent excluded from income; Roth contribution programs; Section 501(c)(18) plans," SIMPLE plans, SARSEP plans "and All 403(b) plans."

The IRS page on deferring salary to more than one retirement plan frames it the same way: "The amount of salary deferrals you can contribute to retirement plans is your individual limit each calendar year." The limit covers "all your plans (not including 457(b) plans)," and it includes "pre-tax and Roth contributions."

That last phrase matters when your W-2 also shows code AA or code BB. Roth contributions to a 401(k) or 403(b) count toward the same per-person limit as code D and code E. So the amounts that count toward the one limit are D, E, AA and BB, across every W-2 for the year.

Each employer sees only its own plan. The 401(k) payroll has no record of what went into the 403(b), and the 403(b) payroll has no record of the 401(k). No single W-2 shows the combined total. What happens when the total goes over, and how excess deferrals are handled on a return, is covered in the section on Box 12 amounts over a limit.

Where do code G 457(b) deferrals fit beside D and E?

Code G 457(b) deferrals sit outside the shared limit. A 457(b) plan has its own yearly limit, so deferrals reported under code G are not added to code D or code E. Someone with a 403(b) and a 457(b) from the same school district can defer the full limit to each plan.

The IRS page on more than one plan says "You have a separate deferral limit if you're also eligible to participate in a 457(b) plan," and the 457(b) amount "is not combined with your deferrals made to a 403(b) or other plans." The page on 457(b) deferred compensation plans says contributions may go "up to the IRC 402(g) limit ($24,500 in 2026, $23,500 in 2025)," the same dollar figure as the 401(k) and 403(b) limit but counted on its own.

Code G also holds a wider set of money than D or E. The W-2 instructions say "Only elective deferrals and designated Roth contributions should be reported in box 12 for all coded plans; except, when using code G for section 457(b) plans, include both elective and nonelective deferrals." An employer contribution to a 457(b) can therefore be inside code G, while an employer contribution to a 401(k) is never inside code D.

Two more differences show up on the form. The instructions say employers should not report 457(b) amounts "that are subject to a substantial risk of forfeiture," so code G can lag behind what was set aside if the money is not yet vested. They also say not to check Box 13 "Retirement plan" for "contributions made to a nonqualified or section 457(b) plan." A W-2 with only code G may leave that box empty.

The 457(b) catch-up rule is its own as well. The 457(b) page describes a special catch-up "in the three years prior to normal retirement age," and an age 50 catch-up of up to $8,000 for participants in governmental 457(b) plans.

Is code E taxed differently from code D?

Code E is not taxed differently from code D on the W-2. Both are pre-tax elective deferrals, so both are left out of Box 1 and kept in Box 3 and Box 5. The income tax treatment of the money when it goes in is the same; the codes only tell you which kind of plan received it.

The W-2 instructions name both plan types together when they tell employers what to leave out of Box 1: employee contributions to a 401(k) and to a 403(b) are treated alike. Their Box 3 rule lists the deferral codes that stay in Social Security wages as one group, D, E, F, G and S, with no distinction between them. Code G sits in that same group, so a 457(b) deferral follows the same pattern on the form.

A worked check shows the effect. A fictional worker earning $70,000 who defers $5,000 sees Box 1 of $65,000 and Box 3 of $70,000, whether the code is D or E, assuming no other pre-tax items. The code changes; the arithmetic does not.

The real differences between the codes lie elsewhere. One is the 15-year catch-up, which only 403(b) plans offer and which can push code E above the usual limit. Another is who can offer the plan. A third is the Roth partner code: Roth money in a 401(k) goes under AA, in a 403(b) under BB. None of those change how Box 1 is built.

For preparers handling many clients, this sameness is useful. A rule that compares the gap between Box 1 and Box 3 with the pre-tax deferral can treat D, E and G alike, and only needs a note for clients whose wages pass the Social Security wage base. The tax preparers category collects other checks that work across a client list.

Switching jobs between a code D and a code E employer: the two-W2 edge case

Switching jobs between a code D employer and a code E employer leaves you with two W2s, one showing code D and one showing code E. The yearly limit applies to the two amounts added together. Each employer applied the limit only to its own plan, so the total can go over without either payroll department noticing.

The IRS page on more than one plan covers this case directly. When you change employers mid-year, "the amount you can defer to both plans can't exceed your individual limit for that year." The page also tells a worker who went over to "contact your plan administrator and ask them to distribute any excess amounts," and says "The plan should distribute the excess contribution to you by April 15 of the following year."

A worked two-job example

The figures below are fictional. Casey Example, age 38, worked at a software firm from January to May 2026 and at a public high school from June to December. The firm offered a 401(k); the school offered a 403(b) and a 457(b).

W-2EmployerBox 12 entriesCounts toward the shared limit
FirstSoftware firmD 11000.00, AA 2000.00$13,000
SecondPublic high schoolE 10500.00, G 6000.00$10,500
Total$23,500

The shared limit for 2026 is $24,500, and Casey is under 50, so no catch-up applies. Codes D, AA and E add up to $23,500, which is $1,000 under the limit. Code G is left out of the sum because the 457(b) has its own limit, and $6,000 is well under it.

Now change one number. If Casey had deferred $13,000 under code E at the school instead of $10,500, the shared total would be $26,000, or $1,500 over. Neither W-2 would look wrong on its own. Publication 571 says a plan can distribute an excess deferral "no later than April 15 of the year following the year the excess deferral was made."

Adding codes across two or more W-2s is simple when each form's Box 12 entries sit in one table with a column for the code and a column for the amount. Schema Tax reads every Box 12 slot on each W-2 into a code and an amount and exports a spreadsheet with one row per form, so a sum across D, E, AA and BB is one formula. Box 12 is also easy to confuse with Box 14, where some employers list similar items; the comparison of Box 12 and Box 14 on a W-2 explains which is which. School employees often see another code nearby too: code C for group-term life over $50,000.

All posts in W-2 Box 12 and Box 14 Codes