Skip to content

How to fill out a W-2, box by box

A W-2 reports one employee's pay for the year and the taxes withheld from it. Most boxes come straight from your payroll totals. Social Security and Medicare follow from the wages at the 2026 rates: 6.2% up to $184,500, and 1.45% on all of them.

Updated , from the IRS pages listed at the end.

Social Security
6.2%
of wages up to $184,500
Medicare
1.45%
plus 0.9% over $200,000
Due
Feb 1
2027, employee and SSA
E-file from
10
information returns

Before you start

  • Your employer identification number (EIN), business name and address.
  • The employee's name, address and Social Security number.
  • The year's totals from payroll: wages, tips, pre-tax deferrals, and the federal, state and local tax withheld. The year's last pay stub shows them as year-to-date totals.

Box by box

Form W-2, box by box
BoxWhat it isHow to fill it in
aEmployee's Social Security numberThe employee's nine-digit Social Security number.
bEmployer identification number (EIN)Your nine-digit employer identification number, written 00-0000000.
cEmployer's name, address and ZIP codeYour business name and address.
e, fEmployee's name, address and ZIP codeThe employee's name and address.
1Wages, tips, other compensation (federal taxable wages)All taxable pay for the year: wages, tips, bonuses and other compensation. Leave out elective deferrals such as 401(k) contributions.
2Federal income tax withheldThe federal income tax you withheld over the year.
3Social Security wagesWages subject to Social Security tax, 401(k) deferrals included. Boxes 3 and 7 together stop at $184,500.
4Social Security tax withheldThe Social Security tax withheld: 6.2% of boxes 3 and 7.
5Medicare wages and tipsWages and tips subject to Medicare tax: the same as Social Security's, with no wage base.
6Medicare tax withheldThe Medicare tax withheld: 1.45% of box 5, plus the 0.9% Additional Medicare Tax on wages over $200,000.
7Social Security tipsTips the employee reported to you.
8Allocated tipsTips you allocated to the employee, if you allocate tips.
10Dependent care benefitsDependent care benefits you provided.
11Nonqualified plansDistributions from a nonqualified deferred compensation plan.
12a⁠–⁠dCodes for other pay and benefitsUp to 4 codes with their amounts: the box 12 codes guide.
13Statutory employee, retirement plan, third-party sick payCheck what applies: statutory employee, retirement plan (an active participant in your plan during the year) or third-party sick pay.
14OtherOther information for the employee, each item labelled: the instructions' examples include state disability insurance taxes withheld and union dues. 14b holds the tipped occupation codes when box 12 has code TP.
15⁠–⁠17State, employer's state ID, state wages and state income taxYour state, your state ID number, the state wages and the state income tax withheld.
18⁠–⁠20Local wages, local income tax and locality nameThe same for a local income tax, where one applies.

Two worked examples

The same boxes for two employees in 2026, worked out at the 2026 rates. Box 2 is whatever federal tax you withheld over the year.

W-2 boxes worked out for 2026
Box$60,000 salary, $3,000 to a 401(k)$210,000 salary, no deferrals
1$57,000.00$210,000.00
3$60,000.00$184,500.00
4$3,720.00$11,439.00
5$60,000.00$210,000.00
6$870.00$3,135.00
12aD 3000.00Empty

In the first, the 401(k) deferral comes out of box 1 but not boxes 3 and 5, and goes in box 12 as code D. In the second, Social Security stops at the $184,500 wage base:

“The total of boxes 3 and 7 cannot exceed $184,500 (2026 maximum social security wage base).”

Medicare doesn't stop, and the $10,000 over $200,000 adds 0.9% of Additional Medicare Tax to box 6.

After you fill it in

  • Give the employee Copies B, C and 2 by February 1, 2027. Keep Copy D.
  • Send Copy A to the SSA with Form W-3 by February 1, 2027: on the official red-ink form, or filed electronically through SSA Business Services Online. With 10 or more information returns, you must file electronically.

Making a W-2 here

The W-2 generator fills boxes a to f, 1 to 6, 12 to 14 and the state line (15 to 17). Enter the wages and the tax withheld, and boxes 3 to 6 fill in from box 1 at the 2026 rates; change them where they differ, as with a 401(k) deferral. Answer “Yes, add it” for up to 4 box 12 codes, the box 13 checks and labelled box 14 lines; in a state with a disability or paid leave programme, box 14 starts with its 2026 amounts on box 5's wages, to keep or remove. You get Copies B, C, 2 and D as one PDF; see pricing.

Fill in the figures once and check the live preview before you pay. You pay per form, with no subscription.

Sources, checked Nov 30, 2026