What W-2 Box 12 Code AA Means
Box 12 Code AA reports your designated Roth contributions to a 401(k) plan — the part of your elective deferrals that you chose to have taxed now instead of later. The IRS assigns the letter under IRC §402A, and your payroll system prints it next to the dollar amount you contributed that way during the calendar year.
Code AA confuses people because it looks like a benefit the way DD or TA does. It is not. It is a flag on money you already earned and already paid tax on, and it tells your tax software which slice of your 401(k) deferrals should be tracked as Roth basis going forward.
Why Code AA Is Already Inside Box 1 Wages
This is the single most important point on this page. Traditional 401(k) deferrals (Code D) come out of your pay before federal income tax, which is why Box 1 wages are lower than your gross salary. Roth deferrals (Code AA) come out after federal income tax. That asymmetry has three consequences:
- Box 1 already includes the Code AA amount. You paid income tax on it at the time of the deferral.
- Box 3 and Box 5 include it too. Roth 401(k) deferrals are still subject to Social Security and Medicare tax.
- Box 12 does not reduce Box 1. A Code AA entry never lowers taxable wages. Its only job is to report the amount separately so it is not mistaken for a second, additional contribution.
If you add the Code AA figure to your income, you are paying tax on it twice. If you subtract it from Box 1, you are claiming a deduction you already received.
Code AA vs Code D: Two 401(k) Lines on the Same Form
Many W-2s print both letters, because many people split their deferrals between pre-tax and Roth.
| Line | What it reports | Effect on Box 1 |
|---|---|---|
| Code D | Traditional pre-tax deferrals | Reduces Box 1 |
| Code AA | Designated Roth deferrals | No effect — already inside Box 1 |
Add the two figures and you get your total elective deferrals for the year, which is the number that has to fit within the IRS elective deferral limit for that year. Neither letter by itself is a complete picture of what you contributed. Employer matching contributions are reported separately and are generally pre-tax even when your own deferrals were Roth.
Three mistakes to avoid with Code AA
- Do not report it as income. The figure is a subset of Box 1, not an addition to it.
- Do not deduct it. The tax benefit was delivered at deferral, not at filing.
- Do not confuse
AAwithBB. CodeBBis the same Roth election made inside a 403(b) plan, which is a different retirement vehicle used by schools, hospitals and nonprofits. The letters are not interchangeable.
Do You Enter Code AA on Your Tax Return?
Yes — enter the letter and amount into the Box 12 field of your tax software so your return matches the copy your employer sent to the IRS. Software reads Code AA as an after-tax contribution and excludes it from any income calculation automatically. Nothing else is required: no form, no worksheet, no attachment.
If you are reconciling a W-2 against your final pay stub, the Code AA figure should equal the Roth column of your year-to-date deferral summary. A mismatch is worth one call to payroll before you file, because a corrected W-2 is much easier to obtain in January than in April.
Comparing other letters? See the complete 33-code Box 12 list, the Code DD guide for the health coverage figure, or the instant W-2 code decoder for any letter, Box 14 label or 3-digit Box 14b code.