Schema Tax

Box 12 AA on W2: Roth 401(k) Contributions Explained

By Schema TaxPublished Updated

Box 12 AA on a W2 shows the designated Roth contributions you made to your employer's 401(k) plan during the year. It is your own pay, set aside by payroll, not money from your employer. Because Roth contributions are taxed when you earn them, the code AA amount is still counted inside your Box 1 wages.

What code AA reports: designated Roth 401(k) contributions

Code AA reports designated Roth contributions under a section 401(k) plan. A designated Roth contribution is part of your salary that you choose to send to a Roth account inside your workplace plan, in place of a pre-tax deferral. The code AA amount is the employee's own money, taken from pay, and nothing else.

The IRS General Instructions for Forms W-2 and W-3 describe the code in one line: "Use this code to report designated Roth contributions under a section 401(k) plan. Do not use this code to report elective deferrals under code D." The section on designated Roth contributions explains that a participant in a plan with a Roth program "may elect to make designated Roth contributions to the plan or program in lieu of elective deferrals."

The instructions also define what any of these retirement codes may hold. "The amount reported as elective deferrals and designated Roth contributions is only the part of the employee's salary (or other compensation) that they did not receive because of the deferrals or designated Roth contributions." In other words, code AA is a slice of your pay. It does not include investment growth, and it does not include anything your employer added.

One newer kind of account can also land in the Roth codes. The instructions say employee contributions to a pension-linked emergency savings account, which they describe as "a special designated Roth account" inside a defined contribution plan, are designated Roth contributions too, and tell employers to "include designated Roth contributions to a pension-linked emergency savings account in box 12." If your 401(k) offers such an account and you used it, a code AA figure higher than your regular Roth 401(k) deductions may simply include those contributions. Ask payroll before assuming an error.

For workers age 50 or older, the instructions say employers report designated Roth contributions and Roth "catch-up" contributions "as a single sum in box 12 using the appropriate code." There is no separate code for the catch-up part. If you made catch-up contributions to the Roth side, they are already inside the code AA figure.

Code AA appears on Form W-2 as a letter pair and an amount in one of the four Box 12 slots, such as AA 4200.00. The four slots are labelled 12a to 12d, and the code letters, not the slot, tell you what the amount is.

Why does code AA Roth 401(k) money stay in Box 1?

Code AA Roth 401(k) money stays in Box 1 because designated Roth contributions are taxed in the year you earn them. Box 1 shows wages subject to federal income tax. A Roth contribution is paid from pay that has already been taxed, so it is counted in Box 1, unlike a pre-tax deferral under code D.

The W-2 instructions say designated Roth contributions "are subject to federal income tax withholding and social security and Medicare taxes" and "must be reported in boxes 1, 3, and 5." The Box 1 list of items to include names "designated Roth contributions made under a section 401(k) plan, a section 403(b) salary reduction agreement, or a governmental section 457(b) plan." The Box 3 instructions say the same amounts belong in Social Security wages too.

Pre-tax deferrals work the other way. The Box 1 instructions say not to include "elective deferrals (such as employee contributions to a section 401(k) or 403(b) plan)." The IRS 401(k) plan overview puts the difference plainly: pre-tax deferrals "are not reported as taxable income on the employee's individual income tax return," while "Roth deferrals are included in the employee's taxable income in the year of the deferral."

This is why two coworkers with the same salary can have different Box 1 figures. One chose pre-tax deferrals and sees a lower Box 1. The other chose Roth and sees a higher Box 1. The W-2 instructions put both kinds of contribution in Box 3, so the two coworkers' Social Security wages can match even when Box 1 does not.

The code AA amount is already inside Box 1, so it is not a second amount on top of wages. Its job on the W-2 is to record how much went to the Roth account, which the plan and the IRS use to keep Roth money separate from pre-tax money. Traditional deferrals and how they leave Box 1 are covered in the post on Box 12 code D for 401(k) deferrals.

Codes AA, BB and EE: one Roth idea, three plan types

Codes AA, BB and EE all report designated Roth contributions, each for a different kind of workplace plan. Code AA is for a 401(k), code BB for a 403(b) and code EE for a governmental 457(b). The tax treatment is the same for all three: the amount is taxed now and stays inside Box 1.

The W-2 instructions say "designated Roth contributions to 401(k) plans will be reported using code AA in box 12; designated Roth contributions under 403(b) salary reduction agreements will be reported using code BB in box 12; and designated Roth contributions under a governmental section 457(b) plan will be reported using code EE in box 12." Each Roth code pairs with a pre-tax code. The instructions tell employers not to use BB for elective deferrals under code E, and not to use EE for deferrals under code G.

The table below uses fictional amounts for three fictional workers, one in each type of plan.

CodePlan typePre-tax partner codeEffect on Box 1Example amount
AA401(k)DIncluded in Box 1$4,200.00
BB403(b)EIncluded in Box 1$3,000.00
EEGovernmental 457(b)GIncluded in Box 1$2,400.00

Code EE is limited to governmental 457(b) plans. The code's own title in the instructions is "Designated Roth contributions under a governmental section 457(b) plan." A worker at a nonprofit with a nongovernmental 457(b) will not see code EE for that plan.

The plan type also tells you which limit the contributions count toward. The IRS page on deferring salary to more than one retirement plan says your limit covers pre-tax and Roth contributions to all your plans "not including 457(b) plans," which have a separate limit. The post on Box 12 code E for 403(b) deferrals covers who gets a 403(b) and why its codes look different from a 401(k)'s.

Can code AA and code D appear on the same W2?

Code AA and code D can appear on the same W2 when you split your 401(k) contributions between Roth and pre-tax. Code D shows the pre-tax part, which is left out of Box 1. Code AA shows the Roth part, which stays in Box 1. Each is reported as its own entry in Box 12.

The W-2 instructions include an example of exactly this. In it, a fictional employee named Alex "elected to defer $26,500 under a section 401(k) plan" and "also made a designated Roth contribution to the plan of $1,000." The instructions show the result as D 26500.00 and AA 1000.00, two separate Box 12 entries. They add that "the employer must separately report the actual amounts" with the appropriate codes.

The same example shows that the two codes share a limit. It says "the 2026 limit for elective deferrals and designated Roth contributions is $24,500," one figure that covers both. Alex's amounts went over it, and the example notes that the return of excess deferrals and excess Roth contributions "is reported on Form 1099-R." The way the shared limit works across plans and employers is covered in the comparison of the shared deferral limit across code D and code E plans.

Reading a split W-2

Here is a fictional split. Sam Example earned $80,000 and contributed $6,000 pre-tax and $4,200 Roth to a 401(k), with no other pre-tax deductions. The W-2 shows D 6000.00 and AA 4200.00. Box 1 is $74,000, which is salary minus the code D amount only. Box 3 and Box 5 are $80,000. Total 401(k) contributions from pay are $10,200, the sum of the two codes.

A common reading error is to subtract both codes from salary when checking Box 1. That gives $69,800 here, which is wrong because the Roth part never left Box 1.

An employer match listed under code AA: a likely error

An employer match listed under code AA is likely a reporting error. Code AA is meant to hold only the employee's own Roth contributions from salary. Matching money comes from the employer, and the W-2 instructions say even a match designated as Roth is reported somewhere other than code AA.

The instructions note that a plan may let a participant "designate certain nonelective contributions or matching contributions as Roth contributions." They then say "the reporting instructions that apply to designated Roth contributions (which are made in lieu of elective deferrals) do not apply to designated Roth nonelective contributions or designated Roth matching contributions. Instead, those contributions must be reported on Form 1099-R."

The general rule for the retirement codes points the same way. The instructions say "only elective deferrals and designated Roth contributions should be reported in box 12 for all coded plans," with an exception only for code G. In the code D example, the employer's nonelective contributions "are not required to be reported on Form W-2, but may be reported in box 14a."

How to spot it

Compare code AA with your pay stubs. Add up the Roth 401(k) deduction across the year, or read the year-to-date figure on the last stub. If code AA is larger than that total, and the difference matches what your plan statement lists as employer match, the match has probably been folded in. Ask your payroll department to check it. The W-2 instructions name the correction form: an employer fixes a wrong W-2 by filing a Form W-2c.

The check takes only two numbers per W-2, which makes it easy to run across many forms. Schema Tax reads each Box 12 slot as a code and an amount, so an AA entry from one employer and a BB entry from another arrive in the same named fields, ready to compare with pay records in a spreadsheet; the list of supported forms shows what it reads from a W-2. More guides on W-2 boxes and codes are collected in the W-2 forms category.

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