W-2 Analyzer: Every Box Explained
Form W-2 is the wage statement your employer gives you for your federal return. Upload the PDF or type the boxes in and see each box explained in one line, what every box 12 code means, whether Social Security and Medicare add up, why boxes 3 and 5 are higher than box 1, and what a Puerto Rico W-2 means. Your file never leaves your device.
Works anywhere in the world, wherever you are.
Upload your W-2 PDF
We read the boxes of a W-2 from any employer and put them below for you to review. You can also type them in.
Your file never leaves your device: your browser reads it, it is not uploaded anywhere, not saved and not sent to the site's analytics. We only read amounts, codes and the employer's name; your name, address, Social Security number and control number are never read or shown. One PDF of up to 10 MB.
We guess it from the employer's name, but you can change it: if your employer is the federal government, the Puerto Rico and box 14 notes change.
Your W-2 boxes
Box 1 · federal taxable wages
—
Upload your W-2 or type box 1
All box 12 codes (A to II)
- A
- Uncollected Social Security or RRTA tax on tips; you pay it on your federal return.
- B
- Uncollected Medicare tax on tips; you pay it on your federal return.
- C
- Taxable cost of group-term life insurance over $50,000; already included in boxes 1, 3 and 5.
- D
- Pre-tax deferrals to a 401(k) (for federal employees, traditional TSP). Not in box 1, but in boxes 3 and 5.
- E
- Pre-tax deferrals to a 403(b) plan. Not in box 1, but in boxes 3 and 5.
- F
- Pre-tax deferrals to a section 408(k)(6) salary reduction SEP.
- G
- Deferrals and employer contributions to a section 457(b) deferred compensation plan.
- H
- Deferrals to a 501(c)(18)(D) plan; they are in box 1 and you deduct them on Form 1040.
- J
- Nontaxable sick pay from a third party; information only.
- K
- 20% excise tax on excess golden parachute payments.
- L
- Substantiated employee business expense reimbursements (the nontaxable part).
- M
- Uncollected Social Security or RRTA tax on group-term life insurance over $50,000 (former employees).
- N
- Uncollected Medicare tax on group-term life insurance over $50,000 (former employees).
- P
- Excludable moving expense reimbursements paid to a member of the U.S. Armed Forces.
- Q
- Nontaxable combat pay (military).
- R
- Employer contributions to an Archer MSA.
- S
- Salary reduction contributions to a section 408(p) SIMPLE plan; not in box 1.
- T
- Adoption benefits; not in box 1.
- V
- Income from exercising nonstatutory stock options; already in boxes 1, 3 and 5.
- W
- Employer contributions to your health savings account (HSA), including what you chose to put in through a cafeteria plan.
- Y
- Deferrals under a section 409A nonqualified deferred compensation plan.
- Z
- Income from a nonqualified deferred plan that fails section 409A; already in box 1 and subject to an additional tax.
- AA
- Designated Roth contributions to a 401(k) (for federal employees, Roth TSP); they are in box 1.
- BB
- Designated Roth contributions to a 403(b) plan; they are in box 1.
- DD
- Cost of employer-sponsored health coverage (your share and theirs). Information only: not taxable.
- EE
- Designated Roth contributions to a governmental 457(b) plan; they are in box 1.
- FF
- Permitted benefits under a qualified small employer health reimbursement arrangement (QSEHRA).
- GG
- Income from qualified equity grants under section 83(i).
- HH
- Aggregate deferrals under section 83(i) elections as of the end of the year.
- II
- Medicaid waiver payments excluded from gross income (Notice 2014-7).
- TA
- Employer contributions to a Trump account under section 128 (new code from 2026 W-2s).
- TP
- Total cash tips reported to the employer (new code from 2026 W-2s).
- TT
- Total qualified overtime compensation (new code from 2026 W-2s).
This explains your W-2 and does arithmetic with figures published by the IRS, the SSA and Hacienda; it is not tax advice for your situation. If something doesn't add up, ask your employer or a tax professional.
Related tools
Puerto Rico Tax Return Calculator
Money
Refund or balance due? Estimate it from your 499R-2.
OpenPuerto Rico Net Salary Calculator
Money
What's left after PR tax and FICA.
OpenNo Tax on Tips & Overtime Calculator
Money
Your tips and overtime deduction and the tax it saves, from your W-2.
Open1099-R Code Decoder
Money
What the code on your 1099-R or 480.7C means, rollovers and the 10%.
OpenPay Period Calculator
Work
What this pay period comes to, and per hour.
OpenAbout this calculator
How it works
Pick your W-2 PDF: any employer's works, including DFAS for Department of Defense civilians. Your browser reads the PDF's text, takes the amounts in boxes 1 through 20 and puts them in the fields for you to review. If your PDF is a scan or a photo, or you have no PDF, type the boxes in.
Many PDFs hold three copies of the same W-2 (Copy B for your federal return, Copy C for your records and Copy 2 for your state return) plus an instructions page. The analyzer reads them all, keeps one and tells you how many it found: nothing is counted twice.
Also choose who paid you: a company, DFAS or another federal agency. With DFAS you get its box 14 codes explained, and federal employees in Puerto Rico see what changes for their returns.
The box 12 codes you will see most
D: what you deferred pre-tax to a 401(k); for federal employees, that is traditional TSP. E is the same for a 403(b) and G for a 457(b). AA, BB and EE are the Roth versions, which are already inside box 1.
DD is the cost of your employer-sponsored health coverage, their share and yours. It is information only: not taxable, and you don't add it anywhere. W is money put into your health savings account (HSA), and C is the taxable cost of group-term life insurance over $50,000.
The IRS uses the letters A through HH plus II; there is no I, O, U, X or CC. From 2026 W-2s there are three new codes: TA (Trump accounts), TP (cash tips) and TT (qualified overtime). The full list, one line per code, is under the analyzer.
Why boxes 3 and 5 are higher than box 1
Box 1 is what is taxable for federal income tax. What you put pre-tax into a retirement plan (codes D, E, F, G and S) comes out of it, but the IRS has employers include it in box 3 (Social Security) and box 5 (Medicare), because those taxes do apply to that money.
So on many W-2s the gap between box 5 and box 1 is exactly the code D amount. The analyzer does that math with your numbers and tells you whether it reconciles or how much is left unexplained.
Box 3 stops at the Social Security maximum ($176,100 for 2025, together with box 7); box 5 has no cap. If you earn more than that, box 3 will be lower than box 5.
Social Security and Medicare: how they are checked
Social Security: box 4 should be 6.2% of boxes 3 and 7, and for 2025 it should not exceed $10,918.20 from one employer.
Medicare: box 6 should be 1.45% of box 5, plus 0.9% Additional Medicare Tax on anything above $200,000.
A few cents off is normal, because employers round on every paycheck. If it is more than that, ask your employer; if you worked for more than one and the total Social Security withheld is above the maximum, you claim the excess on your federal return.
Worked example
A made-up 2025 W-2: box 1, $61,500; box 2, $6,150; boxes 3 and 5, $65,000; box 4, $4,030; box 6, $942.50; box 12, D $3,500 and DD $9,800; state GA, box 16 $61,500 and box 17 $3,075.
Social Security: 6.2% of $65,000 = $4,030, the same as box 4. Medicare: 1.45% of $65,000 = $942.50, the same as box 6. Both match.
Box 5 is $3,500 higher than box 1: exactly code D, what this person put pre-tax into a 401(k). The DD of $9,800 is what the health plan costs and is not taxable.
Effective federal withholding: $6,150 is 10% of box 1. State withholding: $3,075 is 5% of box 16. These are not tax rates: what is owed comes from the whole return.
Box 14 and DFAS codes
Box 14 has no IRS codes: each employer uses its own labels, such as SDI, UNION DUES or 414H. If your employer is not DFAS, the analyzer shows the label and the amount and reminds you to look up its meaning on your employer's W-2 explanation sheet.
DFAS does print its list on the back of its W-2. For example: K is the pre-tax vision and dental deduction; R, retirement deductions for civilian employees with wages earned in Puerto Rico; S, the Federal Employee Health Benefits (FEHB) deduction for those same employees; and T, the cost-of-living allowance (COLA) that is in neither box 1 nor box 16.
Your W-2 if you live in Puerto Rico
As a general rule, bona fide residents of Puerto Rico do not pay U.S. federal income tax on Puerto Rico-source income (Internal Revenue Code section 933, IRS Publication 1321) and file the Puerto Rico return instead. That is why many W-2s with PR in box 15 show $0 in box 2.
If your employer is the federal government (DFAS or another agency), the rule is different. Under IRS Publications 570 and 1321, wages the U.S. government pays for work in Puerto Rico do not qualify for that exclusion: they are taxed by Puerto Rico and by the U.S. You generally must file a federal return (Form 1040) and claim the tax paid to Puerto Rico as a foreign tax credit (Form 1116), and the cost-of-living allowance (COLA) is excluded from federal income. A $0 box 2 does not mean you owe $0. If your employer is a private company or the Puerto Rico government, the exclusion generally applies. Social Security and Medicare apply in every case.
For the Puerto Rico return, what your employer reported for Puerto Rico is in box 16 (wages) and box 17 (tax withheld). Hacienda's 2025 instructions put a federal-government W-2 on Encasillado 1, line 1C of the return: Puerto Rico tax withheld in column A and federal wages taxable in Puerto Rico, without the COLA, in column B. A W-2 from a private employer goes on Anejo F Individuo.
Your W-2 never leaves your device
The PDF is read in your browser with pdf.js: it is not uploaded to any server, not saved, not in the Share link and not sent to the site's analytics, not even the file name. Close or reload the page and it is gone.
From the PDF we only read amounts, codes, box 14 labels, the state and locality, and the employer's name. Your name, address, Social Security number, control number and EIN are never read or shown.
Important limitations
- It explains your W-2 and checks Social Security and Medicare against the IRS and SSA figures for 2025 and 2026; it does not work out the tax you owe and is not tax advice.
- It reads text PDFs of up to 10 MB, one W-2 per file. A scan or photo can't be read: type the boxes in.
- Box 13 checkmarks are often drawn rather than written as text; when we can't see them we say so, and you should check them on your W-2.
- Box 14 codes are explained for DFAS only; other employers define their own.
- The Puerto Rico notes are the general rule in IRS Publications 570 and 1321 and Hacienda's 2025 instructions. Whether your employer is the federal government is guessed from its name, and you can change it; your situation may have details that change the outcome.
Learn more
Guides explaining the context behind this calculation.
Frequently asked questions
This calculation runs in your browser and is never sent to a server. Your last values may be saved on your device only, for convenience. Results are estimates and are not financial, tax, accounting or legal advice.