Box 12a reports deferred compensation you chose not to take home that year

Box 12a on your W2 form shows money your employer set aside for you under a retirement or savings plan — typically a 401(k), 403(b), or similar arrangement — that you decided to defer, meaning you told your employer to hold it rather than pay it to you as wages. The amount in box 12a reduces your taxable income for that year because you did not actually receive the money as pay.

The box is labeled with a code that tells the IRS what type of deferral it is. The most common code is "D," which means a 401(k) deferral. Other codes include "E" for 403(b) deferrals, "F" for 401(k) catch-up contributions (if you are 50 or older), and "G" for 403(b) catch-up contributions. Your W2 may show multiple entries in box 12a if you made different kinds of deferrals.

This is not money you owe taxes on in the year you defer it. You pay taxes on it later, when you withdraw it from the retirement account — usually after you retire. That is the whole point of these plans: you reduce your current tax bill by saving for retirement.

Key Takeaways

  • Box 12a shows pre-tax money you chose to have your employer hold in a retirement account instead of paying you as wages.
  • The code next to the amount (usually "D") tells you what type of retirement plan the deferral went into.
  • Money in box 12a does not count as taxable income in the year you defer it, which lowers your tax bill that year.
  • You will owe taxes on this money when you withdraw it from the retirement account, typically after retirement.
  • If you see an amount in box 12a that you did not authorize, contact your payroll department or HR immediately.

How box 12a affects your taxes

When you file your tax return, the IRS uses the amount in box 12a to calculate your adjusted gross income (AGI). Your AGI is lower than your total wages because box 12a money is subtracted out. A lower AGI can mean you owe less in federal income tax and may open the door to tax credits or deductions you would not otherwise receive.

Your employer already withheld federal income tax from your remaining wages (the amount in box 1 of your W2), so you do not pay tax twice. The box 12a amount simply never enters the taxable income calculation in the first place. This is different from money you contribute to a Roth 401(k), which does count as taxable income in the year you earn it.

State and local taxes vary by location. Some states treat box 12a deferrals the same way the federal government does; others tax them differently or not at all. Check your state tax rules or ask your payroll department if you are unsure how your state handles these deferrals.

Common codes you will see in box 12a

The letter code next to your box 12a amount tells you what kind of plan the money went into. Here are the ones you are most likely to encounter:

  • Code D: 401(k) deferral — the most common type, used by private employers.
  • Code E: 403(b) deferral — used by schools, hospitals, nonprofits, and other tax-exempt organizations.
  • Code F: 401(k) catch-up contribution — an extra deferral allowed if you are 50 or older.
  • Code G: 403(b) catch-up contribution — the same as F but for 403(b) plans.
  • Code H: 401(k) designated Roth contribution — money you put into a Roth account within your 401(k).
  • Code S: 408(k)(6) salary reduction SEP deferral — used by some self-employed people and small business owners.

If you see a code you do not recognize, your W2 instructions or your employer's benefits documentation will explain it. You can also call your payroll or HR department and ask what the code means and where that money went.

What to do if box 12a looks wrong

If the amount in box 12a does not match what you think you deferred, or if there is an amount there when you did not authorize any deferrals, contact your payroll department or HR right away. Mistakes happen — a deferral might have been entered twice, or the amount might reflect a different pay period than you expected.

Do not assume the number is correct just because it is on an official form. Your employer is responsible for reporting accurate deferral amounts, and if there is an error, they need to issue a corrected W2 (called a W2-C) before you file your tax return. The sooner you catch the mistake, the easier it is to fix.

If you have already filed your return and then discover an error in box 12a, you can file an amended return (Form 1040-X) to correct your tax liability. Keep documentation of the error and your employer's response in case the IRS asks questions.

How box 12a differs from other W2 boxes

Box 1 shows your total wages before any pre-tax deferrals are subtracted. Box 12a is already subtracted from that number. So if your box 1 says $50,000 and box 12a says $5,000, you actually earned $55,000 total, but only $50,000 counts as taxable income.

Box 2 shows federal income tax your employer already withheld from your pay. That withholding was calculated on the wages in box 1, not on the full $55,000, because the $5,000 in box 12a was never part of your take-home pay to begin with.

Boxes 3 and 5 show Social Security and Medicare wages. These are usually the same as box 1, but sometimes box 12a deferrals do not reduce them — it depends on the type of plan. Your payroll department can explain how your specific plan affects these boxes.

Why employers use box 12a codes

The IRS requires employers to report deferrals by type so the government can track how much money flows into different retirement accounts each year. This helps the IRS enforce contribution limits (the maximum amount you can defer per year varies by plan type and your age) and ensures people are not hiding income.

For you, the code is useful because it shows exactly where your deferred money went. If you have multiple retirement accounts or if you switched jobs during the year, the codes help you match up your W2 with your account statements and make sure everything lines up.

Frequently Asked Questions

Do I have to pay taxes on box 12a money eventually?

Yes. When you withdraw money from a traditional 401(k) or 403(b), you pay federal income tax on it at your tax rate that year. If you withdraw before age 59½, you may also owe a 10% early withdrawal penalty, though some exceptions exist. Roth accounts (code H) work differently — you do not pay tax on withdrawals if you follow the rules.

What if I have box 12a on multiple W2s from different employers?

That is normal if you worked for more than one employer during the year and deferred into their plans. Each W2 reports only the deferrals from that employer. When you file your tax return, you add up all the deferrals from all your W2s to see your total for the year. Make sure the total does not exceed the annual limit set by the IRS.

Can I change my box 12a amount after the year ends?

No. Box 12a reflects what you actually deferred during that tax year. You cannot go back and change it. However, you can change your deferral amount for the next year by updating your retirement plan elections with your employer, usually during open enrollment.

Does box 12a affect my Social Security benefits?

No. Social Security taxes are calculated on your Social Security wages (box 3 on your W2), which usually include the full amount you earned even if you deferred some of it. Your retirement benefits are based on your lifetime earnings record, not on how much you took home in any given year.

What if my W2 shows box 12a but I do not remember authorizing a deferral?

Contact your payroll or HR department immediately. It is possible you authorized it and forgot, or it could be an error. Some employers also have automatic enrollment in retirement plans, which means you may have been enrolled without actively choosing it. Your employer can explain what happened and help you correct it if needed.