Fill out your information, and we'll do the calculations for you
blog-4

blog-4

Finance Admin
W-2 Boxes Explained: Every Box and Box 12 Code (2026)
Quick Answer

Your W-2 has lettered boxes (A to F) for your and your employer's identifying details, and numbered boxes (1 to 20) for wages and taxes. Box 1 is your federal taxable wages; Boxes 3 and 5 are your Social Security and Medicare wages; Box 12 uses letter codes to report benefits like 401(k) (D) and health coverage (DD). For 2026, the IRS added three new Box 12 codes, TA, TP, and TT, for Trump accounts, tips, and overtime, and split Box 14 into 14a and 14b. This guide explains every box and every code.

A W-2 packs a lot into a small space, and the codes can be baffling the first time you read one. This is a complete reference: what each numbered and lettered box reports, the full Box 12 code list, and the brand-new 2026 codes most guides haven't caught up with yet. We're a pay-stub resource, so wherever a box traces back to your paycheck, we'll point you to the detail.

Every W-2 Box, Explained

The lettered boxes hold identifying information; the numbered boxes hold the money. Here's the full reference, with the 2026 changes flagged.

BoxWhat it reports
aYour Social Security number
bYour employer's EIN (Employer Identification Number)
cEmployer's name and address
dControl number (internal payroll tracking; may be blank)
e / fYour name and address
Box 1Federal taxable wages (gross pay minus pre-tax deductions). Flows to Form 1040.
Box 2Federal income tax withheld during the year
Box 3Social Security wages (capped at $184,500 for 2026)
Box 4Social Security tax withheld (6.2% of Box 3)
Box 5Medicare wages (no cap)
Box 6Medicare tax withheld (1.45%, plus 0.9% on wages over $200,000)
Box 7Social Security tips you reported
Box 8Allocated tips (assigned by your employer; not in Box 1)
Box 9Reduced in size for 2026 to make room for the Box 14 split; generally blank
Box 10Dependent care benefits (amounts over $5,000 are added to Box 1)
Box 11Nonqualified deferred compensation distributions
Box 12Coded benefits and compensation (see the full code list below)
Box 13Checkboxes: statutory employee, retirement plan, third-party sick pay
Box 14aOther (union dues, state disability insurance, health premiums, etc.)
Box 14bNEW for 2026: Treasury Tipped Occupation Code (used with code TP)
Box 15State and employer's state ID number
Box 16State taxable wages
Box 17State income tax withheld
Box 18 / 19 / 20Local wages, local income tax, and locality name
Why Box 1 is usually lower than Box 3: a 401(k) contribution reduces your federal taxable wages (Box 1) but not your Social Security wages (Box 3), because retirement money is still subject to Social Security and Medicare tax. If you want to work the numbers yourself, see how to calculate W-2 wages from your pay stub.

Box 12 Codes, the Complete List

Box 12 is where most of the confusion lives. Instead of a dollar figure alone, it uses letter codes to report specific benefits and compensation. You may see one code or several (12a, 12b, 12c, 12d are just slots, ignore those lowercase letters). Here's every code.

How many codes can Box 12 hold? Up to four, one in each slot (12a, 12b, 12c, 12d). If you have more than four coded items, your employer issues an additional Form W-2 for the extra ones, so don't be alarmed if you receive two W-2s from the same employer. Codes are never combined, even when they relate to the same benefit (traditional and Roth deferrals, for example, always appear on separate lines).
CodeWhat it means
A / BUncollected Social Security / Medicare tax on tips
CTaxable cost of group-term life insurance over $50,000 (already in Box 1)
D401(k) contributions
E403(b) contributions
F408(k)(6) SEP contributions
G457(b) deferred compensation contributions
H501(c)(18)(D) plan contributions
JNontaxable sick pay
K20% excise tax on golden parachute payments
LSubstantiated employee business expense reimbursements
M / NUncollected Social Security / Medicare tax on group-term life (former employees)
PExcludable moving expense reimbursements (armed forces)
QNontaxable combat pay
REmployer contributions to an Archer MSA
S408(p) SIMPLE plan contributions
TEmployer-provided adoption benefits
VIncome from nonstatutory stock option exercise (already in Box 1)
WHSA contributions (employer and employee through a cafeteria plan)
YDeferrals under a 409A nonqualified deferred compensation plan
ZIncome under a 409A plan that fails the rules (subject to extra 20% tax)
AADesignated Roth 401(k) contributions
BBDesignated Roth 403(b) contributions
DDCost of employer-sponsored health coverage (informational only)
EEDesignated Roth contributions to a governmental 457(b) plan
FFPermitted benefits under a QSEHRA (small employer HRA)
GGIncome from qualified equity grants under Section 83(i)
HHAggregate deferrals under Section 83(i) elections
IIMedicaid waiver payments excluded from gross income
TANEW 2026: Employer contributions to a Trump account
TPNEW 2026: Total cash tips reported to the employer
TTNEW 2026: Qualified overtime compensation

The New 2026 Box 12 Codes: TA, TP, TT

This is the biggest W-2 change in years. When the IRS released the 2026 Form W-2, it added three Box 12 codes under the One Big Beautiful Bill Act (OBBBA). If you have tips or overtime, these directly affect your taxes.

New for the 2026 tax year

TP Qualified Tips

The total cash tips you reported to your employer. This amount supports the new "No Tax on Tips" deduction, you transfer it to Schedule 1-A when you file to claim the deduction. To qualify, your employer also reports your occupation in the new Box 14b.

New for the 2026 tax year

TT Qualified Overtime

Your qualified overtime compensation, and an important detail: this is only the "and-a-half" premium portion of time-and-a-half, not your full overtime pay. For example, if your regular rate is $15 and overtime pays $22.50, only the $7.50 premium counts. It also feeds the new overtime deduction on Schedule 1-A.

New for the 2026 tax year

TA Trump Account Contributions

Employer contributions made to a Trump account (a new tax-advantaged account established under the law) for an employee or their dependent. This code reports those contributions for the year.

A note on timing: the 2026 Form W-2 is finalized, but the IRS was still settling some final instructions as these codes rolled out. Tips and overtime remain subject to normal payroll tax withholding during the year, the TP and TT codes exist so you can claim the new deductions on your return, not to change what's withheld from your paycheck. Always confirm current details with the IRS or a tax professional.

Which Box 12 Codes Are Taxable?

Here's the single most useful thing to understand about Box 12, and the mistake that costs people money: not every code is extra income. Most are informational or already counted in Box 1.

CategoryCodesWhat it means for you
Informational onlyDD, AA, BB, EE, FFReported for the record; does not add to or reduce your taxable income
Already in Box 1C, V, ZAlready part of your taxable wages; don't add them again
Reduce taxable incomeD, E, G, S, AA*, WPre-tax contributions that lowered your Box 1 wages
May carry extra taxA, B, K, ZUncollected taxes or penalties that may increase what you owe
The pre-tax codes have annual limits. The contributions behind codes like D, E, G, AA, and W aren't unlimited, the IRS caps them each year. For 2026, the employee 401(k) elective deferral limit is $24,500, with an additional catch-up amount if you're 50 or older. Note one 2026 change under SECURE 2.0: higher earners (wages above $145,000, indexed) must make their catch-up contributions on a Roth basis. If a Box 12 figure looks higher than the limit, it's worth a second look. Confirm the current year's limits at irs.gov.
The common mistake: assuming every Box 12 entry is additional income to add to your return. It isn't. A large Code DD figure (the cost of your health coverage) does not raise your taxes at all, it's there for transparency. Enter each code exactly as it appears, and let the code's category tell you how it's treated.
The Code W trap (this one costs real money): Code W is the combined total of what your employer AND you contributed to your HSA through payroll, there's no separate breakdown. The mistake people make is entering that same amount again as a "personal HSA contribution" in their tax software. Don't. If your HSA contributions are already in Code W, they're accounted for, re-entering them creates a phantom excess contribution and can cost you a refund. Your payroll HSA contributions live in Code W and nowhere else on the W-2.

Code D vs Code DD: The Most Confused Pair

These two look almost identical and mean completely different things, and mixing them up is one of the most common Box 12 errors.

Code D is your pre-tax 401(k) contribution. It lowered your taxable income, so it's a tax benefit working in your favor. Code DD is the total cost of your employer-sponsored health coverage, both the employer's share and your premiums. It's informational only and does not affect your taxes. So a big number next to DD isn't something you owe; it's simply what your health plan costs.

How Box 12 Connects to Box 13

Box 12 doesn't sit on its own. If you have a retirement-plan code in Box 12, it usually triggers a checkmark in Box 13, and that small check can affect a deduction you might be counting on.

If you see amounts next to codes like D, E, F, or G (workplace retirement contributions), your employer almost certainly checked the "Retirement plan" box in Box 13. That checkmark tells the IRS you were an active participant in a workplace retirement plan during the year, which can limit or eliminate your ability to deduct contributions to a separate traditional IRA, depending on your income. So a Box 12 retirement code is worth noticing before you assume a traditional IRA deduction is available.

What If a Box 12 Code Is Wrong or Missing?

It happens, a code is off, or one you expected (like your 401(k) under code D) isn't there. There's a right way to handle it, and it isn't fixing the number yourself on your return.

Step 1: Verify against your pay stub

Before assuming an error, grab your final pay stub of the year, it's your ground truth. Line up the year-to-date totals for your 401(k), HSA, and other benefits against the codes in Box 12. If the YTD figures match, there's no error, and the way the numbers flow is covered in how to calculate W-2 wages from your pay stub and how to read a pay stub.

Step 2: If it's truly wrong, request a W-2c

Don't correct it on your own return. If a Box 12 code is truly wrong or missing, ask your employer for a W-2c (Corrected Wage and Tax Statement). The IRS matches your return against what your employer filed with the SSA, so changing the figure yourself creates a mismatch that can trigger a notice. Only your employer can issue the corrected form. If you can't get the W-2 or correction at all, the lost-W-2 recovery steps apply.

Creating or Reading a W-2

If you're an employer issuing W-2s, or you need a clean W-2 layout from your real figures, a generator handles the boxes and codes for you, including the current 2026 fields.

From your figures to a formatted W-2. Our W-2 generator lays out every box correctly and calculates the wage and tax fields automatically, with a live preview. It works from the real numbers you enter, and for filing you should always use the official W-2 your employer submits to the SSA.

If your stub and W-2 figures don't line up, or you're deriving the boxes from a paycheck, see how to calculate W-2 wages from your pay stub, and for the Social Security and Medicare boxes specifically, what FICA means on a pay stub.

The Bottom Line

Your W-2's numbered boxes report your wages and taxes, and Box 12's letter codes break down the benefits behind them. The key things to remember: Box 1 is your federal taxable wages and is usually lower than your gross pay; most Box 12 codes are informational, not extra income; and for 2026 the new codes TA, TP, and TT (plus the Box 14b split) report Trump-account contributions, tips, and overtime tied to the new deductions. Enter every code exactly as shown, and use the linked guides if a number doesn't add up.

Frequently Asked Questions

What does Box 1 on a W-2 mean?

Box 1 shows your federal taxable wages, your total taxable earnings for the year after pre-tax deductions like 401(k) and health insurance. It's the figure that flows onto Line 1 of your Form 1040, and it's usually lower than your gross pay because of those pre-tax deductions.

What are the Box 12 codes on a W-2?

Box 12 uses letter codes (A through II, plus the new 2026 codes TA, TP, and TT) to report specific types of compensation and benefits, such as 401(k) contributions (D), HSA contributions (W), and the cost of employer health coverage (DD). Each code has a dollar amount and a specific tax treatment; some reduce taxable income while others are informational only.

What are the new 2026 W-2 Box 12 codes?

The IRS added three new Box 12 codes for 2026 under the One Big Beautiful Bill Act: TA (employer contributions to a Trump account), TP (total cash tips reported to the employer), and TT (qualified overtime compensation). Codes TP and TT support new tax deductions you claim on Schedule 1-A when you file.

What is the difference between code D and code DD in Box 12?

Code D reports your pre-tax 401(k) contributions, which lower your taxable income. Code DD reports the total cost of your employer-sponsored health coverage and is informational only, it does not affect your taxes. The two are easy to confuse because the letters look similar, but they mean very different things.

Which Box 12 codes are taxable?

Most Box 12 codes are informational or already included in Box 1, not extra income. Codes like DD, AA, BB, EE, and FF do not reduce or add to taxable income. Codes such as C, V, and Z are already included in your Box 1 wages. A common mistake is assuming every Box 12 entry is additional taxable income, which is not the case.

Why is Box 1 lower than Box 3 on my W-2?

Pre-tax deductions affect the boxes differently. A 401(k) contribution lowers Box 1 (federal wages) but not Box 3 (Social Security wages), because retirement money is still subject to Social Security and Medicare tax. That's why Box 3 is often higher than Box 1 on the same form.

What is the new Box 14b on the 2026 W-2?

Box 14 was split for 2026 into Box 14a (Other) and Box 14b (Treasury Tipped Occupation Code). If your employer reports tips with code TP in Box 12, they enter your occupation code in Box 14b, which you need to claim the new qualified-tips deduction.

How many Box 12 codes can a W-2 have?

A single W-2 has four Box 12 slots (12a, 12b, 12c, 12d), so it holds up to four codes. If you have more than four coded items, your employer issues an additional Form W-2 for the rest, which is why you might receive two W-2s from the same employer. Codes are never combined onto one line.

Do I need to enter my HSA contributions separately if Code W is on my W-2?

No. Code W already includes the combined total of your employer's and your own payroll HSA contributions. If that amount is in Code W, do not enter it again as a personal HSA contribution in your tax software, doing so creates a phantom excess contribution and can reduce your refund.

What should I do if a Box 12 code is wrong or missing?

First verify against your final pay stub by comparing the year-to-date totals to the Box 12 codes. If a code is truly wrong or missing, ask your employer for a W-2c (corrected W-2), don't change the figure yourself on your return, because the IRS matches it against what your employer filed with the SSA. Only your employer can issue the correction.

Disclaimer: This article is for general informational purposes only and is not tax advice. W-2 boxes, codes, and the rules around them (including the 2026 OBBBA changes) can be updated by the IRS, and final instructions may add clarifications. Enter codes exactly as they appear on your form, and consult the IRS or a tax professional for your specific situation. All details are current as of 2026.
ePaystubs Support Support team is online

Start a conversation

Enter your details and tell us how we can help.

Your conversation will appear here.
This conversation has been closed by the support team.