The four W-2 codes for elective deferrals are D, E, F, and G. Each one names a type of plan, and the letter on the form should match the arrangement that actually received the employee's money. If it does not, the form describes a plan the employee never used.
Year-end payroll review for a small-firm client usually focuses on wages, withholding, and whether the totals tie out. Retirement deferral entries get less attention, and that is where errors tend to hide. A salary deferral into a 401(k) and one into a 403(b) can look nearly identical on a payroll report. The W-2 code is what tells the IRS which kind of arrangement received the money.
This post covers the four codes, explains what each one covers, compares them side by side, and then lists the checks to run before you sign off on a client's year-end entries. The descriptions come from the IRS General Instructions for Forms W-2 and W-3 (2026), which remain the source for any filing question.
Why deferral codes get missed
Payroll software usually fills in codes from the plan setup screen. The setup is entered once and carried forward. When a client changes providers, adds a retirement plan partway through the year, or moves an owner from one plan to another, the setup may not change with it. The code then keeps coming from an old saved setup.
Nothing on the paycheck looks wrong, so the error survives until someone compares the form with the plan report.
Operations leads tend to start with dollar totals, and that is a reasonable first step. Totals can tie out perfectly while the code is wrong. A W-2 with the correct amount under the wrong letter still misreports which plan received the deferral. The code deserves its own line in the review, separate from the amount.
A simple test helps. Pick one deferral entry at random, identify the plan it came from, and find that plan on the provider's report without looking at the payroll system. If the arrangement is not on the report, the entry is unsupported. If the report shows a different arrangement, you have a mismatch. Either way, the test tells you something the total never could.
Withholding raises the stakes. The Intuit Payroll Tax Guide for Small Business Clients states that "Employers must withhold and deposit federal income tax from an employee's wages to the IRS." That duty sits with the employer, and the same wage data feeds the year-end forms. Sloppy wage data therefore affects both the withholding picture and the W-2 picture. Deferral entries deserve the same care.
Partners add a wrinkle. An owner's deferral may run through the same payroll as staff, but the plan on the owner's paperwork can differ from the plan staff use. Check the owner line on its own rather than assuming it follows the staff line. This is the spot where a reviewer who trusts the payroll setup is most likely to miss something.
Gather the paperwork before year-end
Most of the review goes faster when the documents are in hand before the payroll totals arrive. For each client, start a short list: every retirement arrangement the firm sponsors or contributes to, the provider for each, and the plan type as the provider describes it. Add any plan that opened, closed, or changed providers during the year. This list is the map for the rest of the review, and it is far easier to build early than in the final days of the close.
Next, collect the signed elections for every employee who defers. For a 403(b) agreement or a salary reduction SEP, the signed document is what supports the letter. Ask each provider for a year-end report that shows employee deferrals and employer contributions separately, so a G amount can be split from the report instead of estimated.
Finally, check the payroll setup for each employee, not just for the firm. A saved setup applied to a new hire can carry a wrong letter all year without anyone noticing. For a file-level version of this check, see Client payroll employee file: 4 checks before pay.
Some clients add a state layer. When a client pays a nonresident in California, state withholding on those payments follows its own track. The Franchise Tax Board puts the duty this way: "Annually, you must complete and submit the applicable form to FTB and the payee (s)." Those state forms sit outside the four codes, but they come from the same payments, so add them to the list.
What each deferral code covers
Four codes cover the arrangements in this post. The instructions describe D, E, and F as elective deferrals, and G as elective deferrals plus employer contributions.
Other codes on the same form cover other situations. Code M, for example, is described this way: "Code M—Uncollected social security or RRTA tax on taxable cost of group-term life insurance over $50,000 (for former employees)." Code K is another: "Code K—20% excise tax on excess golden parachute payments (not applicable to Forms W-2AS, W-2CM, W-2GU, or W-2VI)." Both come from the IRS General Instructions. Neither belongs in a deferral review. The point is narrower: a letter outside the four is never a substitute for one inside them, so a reviewer should not reassign a deferral to a code that describes a different kind of payment.
Code D: 401(k) plans. The instructions describe Code D as "Elective deferrals under a section 401(k) cash or deferred arrangement (plan)." When an employee routes part of their pay into a 401(k), this is the code that describes that money. The review question is simple: does the plan on the report say 401(k), and is the amount the employee's elective deferral? If the plan is a 401(k) but the W-2 shows a different letter, the entry needs a closer look before filing.
An employer contribution the employee did not elect is a different question. Code D describes elective deferrals only, so keep those amounts out of the D line.
Code E: 403(b) salary reduction agreements. The instructions describe Code E as "Elective deferrals under a section 403(b) salary reduction agreement." The word that matters is agreement. The code describes a reduction in pay made under that agreement, so the signed agreement and the provider's contribution report are the records to match. A letter E with no agreement behind it is a red flag.
Pull the paperwork before accepting the entry, and do not assume the 403(b) label on a payroll report settles the question. Elections can change during the year, so the paperwork should show when each election took effect.
Code F: salary reduction SEPs. The instructions describe Code F as "Elective deferrals under a section 408(k)(6) salary reduction SEP (this includes elective deferrals made to a Roth SEP IRA)." The parenthetical is the part people miss. A Roth label does not move the entry to another letter, because the instructions place Roth SEP IRA deferrals under F. A client with a Roth SEP should not have those amounts split across codes on the assumption that the Roth piece needs its own letter.
Before applying F, confirm the arrangement really is a salary reduction SEP, because the description names that arrangement specifically.
Code G: 457(b) deferred compensation plans. The instructions describe Code G as "Elective deferrals and employer contributions (including nonelective deferrals) to any governmental or nongovernmental section 457(b) deferred compensation plan." Code G is broader than the other three. It reaches employer contributions, including nonelective deferrals, and it covers governmental and nongovernmental 457(b) plans alike. A G amount may therefore include money the employee never chose to defer.
Check the amount against the plan's report, not only against the employee's pay elections. Pay records show the employee's side of the arrangement, not the plan's full contribution record, so they cannot settle a G entry alone.
Comparing the four codes side by side
The table places the four codes next to each other. The second column repeats the arrangement the instructions name. The third column is review guidance, not a rule from the instructions, so use it as a prompt for which documents to pull. The fourth column repeats the instructions' own note.
| Code | Arrangement named in the instructions | What to match before sign-off | Note from the instructions |
|---|---|---|---|
| D | Section 401(k) cash or deferred arrangement (plan) | The plan type on the provider's report and the employee's elective deferral amount | Elective deferrals only |
| E | Section 403(b) salary reduction agreement | The signed salary reduction agreement and the provider's contribution report | Tied to a salary reduction agreement |
| F | Section 408(k)(6) salary reduction SEP | The SEP setup and the deferral report, including any Roth SEP IRA amounts | Includes Roth SEP IRA amounts |
| G | Section 457(b) deferred compensation plan, governmental or nongovernmental | The plan report for both employee deferrals and any employer contributions | Includes employer contributions, including nonelective deferrals |
Read the table as a checklist. For each employee with a deferral, find the plan they used, find the code that matches that plan, and confirm the amount against the plan report. Going employee by employee keeps the plan report and the code in view together, which is where mismatches show up.
Checks to run before you sign off
Run these checks in order for each client. The first three confirm the code. The last four confirm the amounts, the owner lines, and the paper trail.
-
Pull the plan report first. Start with the provider's year-end deferral report, not the payroll system. The report shows which arrangement received each contribution. Compare the letter on each W-2 to the arrangement on the report, and note any employee whose letter and report disagree.
-
Look for more than one arrangement. An employee who had deferrals into more than one plan during the year may need more than one code. Confirm that each amount sits under the code for the plan that received it. Two plans of different types need separate codes.
-
Confirm Roth SEP deferrals sit under F. Search the payroll and provider records for any Roth SEP IRA deferrals. The instructions place those under Code F, so the entry should not be coded anywhere else.
-
Know what each G amount contains. Code G covers employee deferrals and employer contributions. Before you accept a G entry, confirm which part of the amount came from the employee's pay and which part came from the employer.
-
Review partner and owner lines separately. Owners often have plan elections that differ from staff elections. Check each owner's arrangement and code on its own line, rather than assuming it matches the staff pattern.
-
Tie the dollars to the plan report. Once the letters match, confirm the amounts. A correct code on the wrong amount still produces an incorrect form, so the totals need their own check against the report.
-
Record every change. If you correct a code or amount, write down the old entry, the new entry, the document that supports the change, and who approved it. Keep the note in the client's year-end file so the next reviewer can see why the entry changed.
Review scenarios
Four situations show how the checks apply.
A provider switch mid-year. Suppose a client moved its 401(k) to a new provider partway through the year. Both plans are 401(k) arrangements, so the D description fits both. The review should still confirm that both provider reports are in the file, that each covers the period it should, and that the amounts from the two reports account for the deferral figure on the W-2. A single letter can be right for both plans and still hide a missing report.
A payroll setup that says 401(k) for a SEP. Suppose the payroll setup codes a partner's salary reduction as a 401(k) deferral, but the provider's report describes the arrangement as a salary reduction SEP. The letter has to follow the arrangement. The instructions place that arrangement under Code F, so the setup is the thing to fix, not the report. Ask the provider to confirm the arrangement type, correct the W-2 entry, and log the change.
A 457(b) amount higher than pay. Suppose the G amount on a W-2 is larger than the employee's pay elections would suggest. The first question is whether the amount includes employer contributions, because Code G covers both. If it does, the entry may be correct. The review is to confirm the split from the plan report, not to reduce the amount until it matches the pay elections.
An employee with no signed election. Suppose a letter is on the W-2, but no election form can be found for that employee for the year. The letter may still be right, because the provider's report may show the deferral clearly. The gap is in the file, though, and a reviewer should not close it by assuming. Ask the provider for the report and the election, and hold the entry until one of them supports the letter.
Handling a mismatch
When a letter and a plan report disagree, do not change the code to make the totals look right. Start by asking the plan provider which arrangement received the contribution, and check the employee's signed elections, if any exist. If the documents confirm a different code, correct the entry in the payroll system and confirm the change flows through to the year-end forms. For the correction steps, see Filed W-2 corrections: 8 payroll items to check.
If the documents do not settle the question, hold the entry and escalate it to the partner who owns the client relationship. A partner may know about a plan change that never reached the payroll file, such as a provider switch or a new SEP opened late in the year. Make the question specific: which plan received the money, when the arrangement began, and which document shows it.
Guessing is the error this checklist is meant to catch. A code chosen to match last year's W-2, or the default the software suggested, can look correct until someone compares it to the plan report. The report decides the code, not habit.
Who signs off on the codes
Division of work matters for this review. Operations leads usually prepare the entries and pull the plan reports. The partner should review the codes that depend on judgment, such as owner lines, mid-year changes, and any G amount that mixes employee and employer money. Neither person should be the only check on the entry.
A simple sign-off sheet helps. List each employee with a deferral, the arrangement on the plan report, the code on the W-2, the amount on the report, and columns for the preparer's and reviewer's initials. The initials show that the match happened and who made it.
Partners should see open items, not just the finished sheet. A short list of unresolved mismatches, with the owner and the next step for each, lets the partner decide whether a filing can go out with the question still open.
The reviewer does not need to redo the preparer's work from scratch. The useful question is narrower: does the code match the arrangement on the report, and does the amount match the report? When both answers are yes, the entry can move on. When either is no, the entry goes back with a specific question attached.
Set the review date early. Year-end files get crowded, and provider reports can arrive late. Ask each client for the plan reports in advance so the codes can be checked before the forms are prepared, not after.
Four codes, one habit: match each deferral letter to the plan report before the W-2 leaves the office. The codes are short, but a wrong letter describes the wrong plan, and a reviewer who checks the report first is the one who can explain the entry later.