To find your gross annual income on a W-2, start with Box 1 and add back the pre-tax deductions your employer subtracted before printing that number: 401(k) or similar retirement contributions from Box 12, HSA contributions from Box 12, and any pre-tax health insurance premiums paid through a cafeteria plan. No single box on the form shows the salary your employer offered you, because each box reports a version of your pay tailored to a specific tax.1Internal Revenue Service. General Instructions for Forms W-2 and W-3 (2026)
Why No Box Matches Your Salary
Your final pay stub for the year shows a gross figure. Your W-2 does not, at least not in one place. Box 1 is federal taxable wages, Box 3 is wages subject to Social Security tax, and Box 5 is wages subject to Medicare tax. Each is calculated by taking your gross pay and removing whatever the relevant tax rule excludes.1Internal Revenue Service. General Instructions for Forms W-2 and W-3 (2026)
Box 1 comes out lowest for most people. Traditional 401(k) contributions, 403(b) contributions, HSA contributions made through a cafeteria plan, and pre-tax health insurance premiums are all excluded before Box 1 is calculated. Boxes 3 and 5 still include retirement deferrals, so they usually run higher than Box 1 by the amount you set aside for retirement.1Internal Revenue Service. General Instructions for Forms W-2 and W-3 (2026)
Box 1 can also include items you never saw in a paycheck. Employer-provided group-term life insurance coverage above $50,000, the value of personal use of a company car, and dependent care assistance above $7,500 ($3,750 if married filing separately) all get added in.2Internal Revenue Service. Employer’s Tax Guide to Fringe Benefits (Publication 15-B) That’s why Box 1 sometimes lands a bit higher than paycheck math predicts.
The Calculation, Step by Step
For most employees the formula looks like this:
Gross annual income ≈ Box 1 + Box 12 Code D (401(k)) + Box 12 Code W (HSA) + pre-tax health insurance premiums
Substitute the retirement code that applies to you: D for a 401(k), E for a 403(b), G for a 457(b), or S for a SIMPLE IRA. Code W covers both employer HSA contributions and your own HSA contributions made through a cafeteria plan.1Internal Revenue Service. General Instructions for Forms W-2 and W-3 (2026)
Pre-tax health insurance premiums are the piece that trips people up. They’re excluded from Box 1, but they don’t get their own Box 12 code. Some employers list them in Box 14 as an informational item; many don’t. The reliable way to find that number is to pull your final year-end pay stub and look at the year-to-date total for medical, dental, and vision premiums deducted before tax.
The Codes That Change Your Gross Calculation
- Code D: 401(k) contributions
- Code E: 403(b) contributions
- Code G: 457(b) deferred compensation contributions
- Code S: SIMPLE IRA contributions
- Code W: HSA contributions (employer and cafeteria-plan employee)
One code you can skip: Code DD, the total cost of your employer-sponsored health coverage. It’s informational only and doesn’t change your taxable wages or your gross income calculation.3Internal Revenue Service. Reporting Employer-Provided Health Coverage on Form W-2
When Box 5 Works as a Shortcut
Box 5, Medicare wages, is often the number closest to your true gross compensation on the entire form. It includes retirement deferrals that Box 1 excludes, and unlike Box 3, it has no annual cap. For employees earning below the Social Security wage base, Box 3 and Box 5 typically match. Above that base, Box 5 pulls ahead.1Internal Revenue Service. General Instructions for Forms W-2 and W-3 (2026)
Box 3 does have a ceiling. For 2026, the Social Security wage base is $184,500, and any earnings above that don’t appear in Box 3.4Social Security Administration. 2026 Cost-of-Living Adjustment (COLA) Fact Sheet The IRS instructions give a direct example: an employee earning $199,750 would see $184,500 in Box 3 and the full $199,750 in Box 5.1Internal Revenue Service. General Instructions for Forms W-2 and W-3 (2026)
Box 5 still doesn’t include pre-tax health premiums or HSA contributions run through a cafeteria plan, so it usually falls short of gross salary by that amount. But if you’re roughly reconstructing your income for a mortgage application or personal budgeting, Box 5 is a faster starting point than Box 1.
A Note for High Earners
If your Box 5 figure exceeds $200,000, your employer withheld an extra 0.9% Additional Medicare Tax on the excess. That $200,000 withholding trigger applies regardless of your filing status, though the actual liability thresholds on your return are $250,000 for married filing jointly, $125,000 for married filing separately, and $200,000 otherwise.5Internal Revenue Service. Topic no. 560, Additional Medicare Tax
Reconciling With Your Final Pay Stub
Once you’ve calculated a gross figure, compare it against the year-to-date gross on your final pay stub. If there’s still a gap, the difference is almost always the pre-tax insurance premiums your employer didn’t itemize on the W-2. Some employers put state disability insurance, union dues, or health premiums in Box 14, but Box 14 is optional and unlabeled from the IRS’s side, so employers use it inconsistently.1Internal Revenue Service. General Instructions for Forms W-2 and W-3 (2026)
State taxable wages, shown in Box 16, generally track close to Box 1 but can be higher if your state doesn’t recognize a federal exclusion. That difference doesn’t tell you your gross salary, but it can explain why a state figure looks off compared to Box 1.
If You Worked for More Than One Employer
Each employer issues its own W-2, and there’s no combined “gross annual income” total across them. Add up the Box 1 figures for your federal return. Add up the boxes you’re using for whatever gross calculation you need. Because each employer withholds Social Security tax independently, if your combined wages exceeded $184,500 in 2026, you may have had too much Social Security tax withheld and can claim the excess as a credit on your return.4Social Security Administration. 2026 Cost-of-Living Adjustment (COLA) Fact Sheet
If Your W-2 Is Wrong or Missing
Employers must furnish W-2s by February 1. If yours hasn’t arrived by the end of January, ask your employer when it’s coming. If you still don’t have it by the end of February, call the IRS at 800-829-1040 with your name, Social Security number, dates of employment, and your employer’s contact information. The IRS will contact the employer and send you Form 4852, a substitute W-2.6Internal Revenue Service. If You Don’t Get a W-2 or Your W-2 Is Wrong
If the numbers on your W-2 are wrong, ask the employer to issue a corrected W-2c. If they don’t by the end of February, follow the same IRS process; the agency will send the employer a letter requesting the correction within 10 days.6Internal Revenue Service. If You Don’t Get a W-2 or Your W-2 Is Wrong
If the filing deadline is close and you still don’t have a correct form, file on time using Form 4852 and estimate your figures from your final pay stub’s year-to-date totals. Don’t rely on a pay stub that only shows net take-home pay.7Internal Revenue Service. Using Form 4852 When Missing the Form W-2 or 1099-R for VITA/TCE Volunteers If a corrected W-2 later shows different numbers, file an amended return.