# W2 Boxes 15 Through 20 State and Local, Line by Line

- Canonical: https://schematax.com/blog/w2-boxes-15-through-20-state-and-local
- Author: Schema Tax (https://schematax.com)
- Published: 2026-05-08T10:54:18.000Z
- Updated: 2026-05-08T10:54:18.000Z

W2 boxes 15 through 20 are the state and local strip along the bottom of the form. Box 15 names the state and the employer's state ID, Box 16 shows state wages and Box 17 state income tax withheld. Boxes 18 to 20 repeat the pattern for a city or other locality: local wages, local tax and the locality's name.

## W2 Box 15: state code and employer state ID number

W2 Box 15 identifies which state a row reports and which account the employer uses with that state. It holds two entries side by side: a two-letter state abbreviation, labelled "State," and the "Employer's state ID number." Every other number in that row belongs to the state named here.

The [IRS General Instructions for Forms W-2 and W-3 (2026)](https://www.irs.gov/instructions/iw2w3) say: "Enter the two-letter abbreviation for the name of the state. The employer's state ID numbers are assigned by the individual states." The state ID is not the federal employer identification number (EIN) in Box b. It is a separate account number that the state gave the employer for withholding, and its format varies from state to state.

Box 15 is the first thing to read in each row, because it tells you which state the wages and tax beside it belong to. A row with "PA" in Box 15 reports Pennsylvania figures, and a second row with a different code reports that second state's figures.

Two practical points come from this box. First, the state ID is the cleanest way to tell two employers apart on state records when their names look alike. Second, if Box 15 shows a state you never lived or worked in, that is a question for the payroll department before you use the row.

The IRS instructions say little more about Boxes 15 through 20. They end the section with "Contact your state or locality for specific reporting information." The rules for what goes in each state's wage figure come from that state, not from the IRS.

## W2 Boxes 16 and 17: state wages and state income tax

W2 Box 16, "State wages, tips, etc.," shows the wages the state named in Box 15 treats as taxable. W2 Box 17, "State income tax," shows the state income tax the employer withheld for that state. Read them as a pair: Box 17 is the tax on Box 16, under that state's rules.

Box 16 is not always equal to federal Box 1. Each state decides which pre-tax deductions it allows, so a state that taxes something the federal government does not will show a higher Box 16. The most common reasons are under [why are W2 state wages different from federal wages?](/blog/w2-boxes-15-through-20-state-and-local#why-are-w2-state-wages-different-from-federal-wages)

Box 17 is a running total of what was taken out for that state over the year. It is withholding, not your final state tax. Your state return compares your actual state tax with this amount, much as a federal return compares federal tax with Box 2.

A quick check is to compare Box 16 and Box 17 with your last pay stub of the year. Most stubs show year-to-date state wages or state tax. The post on [how to read a W2 earnings summary](/blog/how-to-read-a-w2-earnings-summary) shows how to line up payroll totals with the W-2 boxes, including the state line.

### What Box 16 and Box 17 are not

Box 16 is not the amount of your pay that was earned in the state in every case. For a resident who worked in another state, or a nonresident, the figure depends on the state's own rules for allocating wages. State disability insurance and similar payroll deductions have a different home: the 2026 W-2 instructions list "state disability insurance taxes withheld" as an example of what an employer may report in Box 14a.

## Why are W2 state wages different from federal wages?

W2 state wages are different from federal wages when a state includes or excludes amounts that federal Box 1 treats another way. Retirement plan deferrals are the clearest example. Federal Box 1 leaves out traditional 401(k) deferrals. A state that does not allow that exclusion adds them back, so its Box 16 is larger than Box 1.

Pennsylvania is a documented case. The [Pennsylvania PA-40 W-2 RW reconciliation worksheet](https://www.revenue.pa.gov/FormsandPublications/FormsforIndividuals/PIT/Documents/pa-40w-2_rw.pdf) starts from federal wages in Box 1 and lists additions needed to reach Pennsylvania wages in Box 16. Its additions include "Elective deferrals to IRC Section 401(k) - Code 'D' in Box 12," along with 403(b), SEP, 457(b) and other deferrals. The worksheet says it must be completed when Medicare wages in Box 5 are greater than Pennsylvania wages in Box 16 and the W-2 does not carry enough information to reconcile them.

A worked example with fictional figures: a Pennsylvania employee's W-2 shows $81,600.00 in Box 1 and $6,000.00 in Box 12 with code D. Following the worksheet's logic, Box 16 would show $87,600.00, the federal wages plus the deferral. A Box 16 that matches Box 1 in that situation would be worth asking the payroll department about.

Other differences come from state rules on benefits paid through a cafeteria plan, on certain fringe benefits, and on which wages a state may tax when someone lives in one state and works in another. These vary, and the IRS instructions leave them to the states. The federal side of the story, why Box 1, Box 3 and Box 5 already differ from each other, is in the post on [W2 Box 1 vs Box 3 vs Box 5](/blog/w2-box-1-vs-box-3-vs-box-5).

### A difference is not an error by itself

A Box 16 that differs from Box 1 is normal in many states. The questions to ask are whether the difference has a cause you can name, such as a 401(k) deferral in Box 12, and whether it matches the state wages on your final pay stub. A difference with no visible cause is the one to raise.

## W2 Boxes 18 to 20: local wages, local tax and locality name

W2 Boxes 18 to 20 repeat the state pattern for a local taxing authority. Box 18 is "Local wages, tips, etc.," Box 19 is "Local income tax," and Box 20 is "Locality name." They are filled in only when a city or other locality taxes wages and the employer withholds for it.

The 2026 Form W-2 prints these three labels on the same line as Boxes 15 through 17, so each local entry sits beside the state row it belongs to. Box 20 names the locality in words, since there is no standard code for it on the federal form. Box 18 shows the wages that locality taxes, which may differ from both Box 1 and Box 16. Box 19 shows the tax withheld for it.

The copies of the form point to who uses these lines. On [Form W-2 (2026)](https://www.irs.gov/pub/irs-pdf/fw2.pdf), Copy 1 is titled "For State, City, or Local Tax Department," and Copy 2 is "To Be Filed With Employee's State, City, or Local Income Tax Return." The post on [W2 Copy 1 and Copy 2, the state and local copies](/blog/w2-copy-b-vs-copy-c-vs-copy-2#w2-copy-1-and-copy-2-the-state-and-local-copies) explains who keeps each one.

Many W-2s leave Boxes 18 to 20 blank. A blank local section can mean no local income tax applied to the wages, or the employer did not withhold one. If your city taxes wages and the boxes are empty, check your pay stubs for a local deduction before assuming anything was missed.

## What does a W2 with two state lines mean?

A W2 with two state lines means the employer reported wages and tax to two states in the same year. Each row has its own state code, state ID, wages and tax. Common causes are moving to another state partway through the year, or working in one state while living in another.

The 2026 W-2 instructions say the state and local boxes "can be used to report wages and taxes for two states and two localities," with each state's and locality's information "separated by the broken line." An employer that needs more than two states or localities prepares a second Form W-2. The instructions also say not to report the same federal data to the SSA on more than one Copy A, so a second W-2 used only for extra state lines should not double your federal wages.

### The bottom of a sample W-2

All values below are fictional and for illustration only. The employee, Morgan Example, SSN XXX-XX-1234, moved during the year. State codes and ID numbers are placeholders.

| Row | Box 15 state and ID | Box 16 state wages | Box 17 state tax | Box 18 local wages | Box 19 local tax | Box 20 locality | Which return it belongs to |
| --- | --- | --- | --- | --- | --- | --- | --- |
| State row 1 | PA, 12345678 | $52,000.00 | $1,596.40 | $52,000.00 | $520.00 | SAMPLE CITY | The row 1 state's return, and the Sample City return if one is required |
| State row 2 | XX, 98-7654 | $35,600.00 | $1,210.00 | (blank) | (blank) | (blank) | The row 2 state's return |
| Federal reference | Box 1 | $81,600.00 | | | | | The federal return uses Box 1, not the state rows |

### Reading the sample in order

Start with row 1. The state code and ID identify the first state and the employer's account there. Box 16 and Box 17 show the wages and tax for the months in that state. The local entries sit on the same row, so Sample City is a locality within that state.

Row 2 is the second state. It has its own ID and its own wages and tax, and no local entries.

Then compare the rows with federal Box 1. In this example the two state wage figures add up to $87,600.00, which is more than Box 1. That fits a state that adds back a $6,000 401(k) deferral, such as the Pennsylvania case under [why are W2 state wages different from federal wages?](/blog/w2-boxes-15-through-20-state-and-local#why-are-w2-state-wages-different-from-federal-wages) State wage figures do not have to add up to Box 1. The Pennsylvania worksheet, for instance, has residents who worked in another state adjust to the world-wide wages Pennsylvania rules would tax, whatever the other state's row shows.

Which state returns you file, and how credits between states work, depends on each state's rules. This post describes what the rows say, not what to file. A tax preparer or the state agency named in Box 15 is the place to confirm it; the posts for [tax preparers](/blog/category/tax-preparers) cover how professionals handle stacks of these forms.

### Keeping two rows apart in your records

Two state rows are easy to flatten into one by mistake when copying a W-2 into a spreadsheet. The post on [which W2 boxes get their own Excel column](/blog/w2-to-excel#which-w2-boxes-get-their-own-excel-column) shows how to store each row separately. Schema Tax reads the state and local lines as their own fields on each W-2, so both rows stay intact in the export; the [interactive demo](/#demo) shows where each box lands.

## W2 state lines with a blank Box 17: no-income-tax states

A blank W2 Box 17 is correct when the state in Box 15 does not tax wages, or when Box 15 is blank because no state income tax applies. It can also mean the employer did not withhold for a state that does tax wages. Your pay stubs show which case applies.

Washington is one state where a blank is expected. The [Washington Department of Revenue page on income tax](https://dor.wa.gov/taxes-rates/income-tax) says "Washington does not currently have an individual income tax." The same page notes a new tax on very high incomes that takes effect in 2028, which does not affect current W-2s. A worker paid only for work in a state like this may receive a W-2 with nothing in Boxes 15 through 17.

### When a blank Box 17 is a problem

A blank Box 17 next to wages in Box 16 for a state that taxes income usually means no state tax was taken out. One way that happens is payroll still set up for the old state after a move. The tax may still be owed on the state return, so a blank here is worth checking against your pay stubs early in the year.

### Other boxes that are often blank nearby

Blank state lines sit next to other boxes that are often empty. Box 13 has three checkboxes, and a typical salaried form has at most one of them marked. The post on the [W2 Box 13 retirement plan checkbox](/blog/w2-box-13-retirement-plan-checkbox) explains what a checked or unchecked box means.
