State Pay Math

Living in One State and Working in Another

By Samet Türkkan · Updated 2026-12-06

States and local tax · Updated 2026-12-06

If you live in one state and work in another, expect the state where you do the work to want a share of the tax, and your home state to want to know about the income too. Which one actually withholds from your paycheck depends on whether the two states have a reciprocity agreement, whether either has an income tax, and what your employer's payroll system has on file.

The good news: this is fixable with one or two forms. The bad news: if nobody fixes it, you usually find out when you file your returns.

Start with two questions

  1. Where do you physically do the work? For most states with an income tax, pay earned inside the state is taxable there, even for people who live elsewhere. Maryland's withholding guide, for example, has a separate nonresident rate for workers who do not live in the state.
  2. Where is your home? Your home state generally taxes you as a resident, which is the broadest claim a state can make on your income.

That gives you up to two states with a claim on one paycheck. The rest of this guide is about how they sort it out.

Four common setups

1. Both states have an income tax, and they have an agreement

This is the easy one. Under a reciprocity agreement, you pay income tax on wages only to your home state. You give your employer an exemption form from the work state. Our guide on state tax reciprocity agreements lists the pairs we could verify, such as Pennsylvania with Maryland, and how the forms work.

2. Both states have an income tax, and no agreement

You will probably see the work state withheld from your pay. At year end you file a nonresident return in the work state, and a resident return at home. Each return reports your income, and the home state's return has a place to account for tax you already paid to another state. Ask your home state's revenue department how it handles income taxed elsewhere, because the rules differ. Do not guess, and do not skip a return.

3. You live in a no-tax state and work in a taxed state

Your home state does not tax wages, so the work state is the only income tax in the picture. It usually withholds its tax on your pay. See states with no income tax for which states are on that list.

4. You live in a taxed state and work in a no-tax state

You do not owe the work state anything on wages, and it will not withhold. Your home state may still tax all your income, because you live there. That means you may need to make sure your employer withholds home state tax. Tell payroll your home address and file your home state's withholding form. If you skip this, you could owe a lump sum at filing time.

Remote work makes this harder

When your office is in a different state from your home, you now have two views of where the work happens. Employers often withhold based on the address in payroll, not on where you actually sit. A few examples of what we can say with confidence from state sources:

  • Philadelphia's wage tax applies a "requirement of employment" test. The city says a nonresident is exempt only when the employer requires them to work outside Philadelphia, and working from home for convenience does not qualify. Nonresidents who had the tax withheld for days they were required to work elsewhere can file a refund petition.
  • New York City requires employers to withhold city tax from the wages of city residents, even when the work is done outside the city.
  • Pennsylvania local taxes work differently from state tax. The state's community and economic development agency says an out-of-state employer is not required to withhold local earned income tax for a Pennsylvania resident who physically works outside Pennsylvania, although it may do so as a courtesy.

These rules point in different directions, and that is the point: there is no single national rule. Your employer's payroll team has to follow the rules of each state and sometimes each city. Give them accurate information and ask which jurisdictions they are withholding for.

What to do, step by step

  1. Write down both addresses (home and workplace) and the state of each.
  2. Check whether the states have an agreement. Start on the work state's revenue site.
  3. Hand payroll the right form. In a reciprocal pair, it is the work state's exemption form. Otherwise it is your home state's withholding certificate, if it has one.
  4. Read your first two pay stubs. The state line should match your plan. If a state shows that you did not expect, ask about it right away.
  5. Keep records of where you worked. If you work in several places during the year, a simple log of days by location is useful for return time.
  6. At year end, read the W-2. Boxes 15 through 17 show the state and the amount withheld per state. See W-2 boxes explained. If your pay was split between two states, there will be two lines.
  7. File in both states if required. Do not assume one withholding settles both returns.

Mistakes that cost money

  • Letting the wrong state keep withholding after a move. Update your address and state certificate with payroll the week you move.
  • Assuming "no state tax" means no tax. A local tax can still apply. See local taxes on paychecks.
  • Keeping a place to live in the work state. The Maryland exemption form warns that people from some reciprocal states who keep a place to live in Maryland past the time limit on the form become Maryland statutory residents and must file a resident return on all their income. Similar residency tests exist elsewhere, so read your state's rules before you keep a second home.
  • Ignoring a small withholding line. A refund usually takes a return. It will not arrive on its own.

How to estimate the effect

Because two states may be involved, the cleanest way to see the effect on your take-home pay is to run both versions. Use the state paycheck comparison to put your work state and home state side by side, and the main paycheck calculator to check your own pay stub numbers against a calculation. For the state calculators, start at /states/. We describe how we handle state data on How we calculate.

If your situation is complicated, such as work in three states, a move mid-year or self-employment on the side, ask a tax professional or call the state revenue departments. They answer questions like these every day.

Sources