Skip to content
statelinetax.comChecker

Live in Pennsylvania, Work in Maryland: Which State Taxes Your Paycheck?

Reciprocal agreement — file the exemption formPennsylvania withholds

Answer

One state, one form, one return. The Pennsylvania-Maryland reciprocal agreement means Maryland withholding should never start: submit Form MW507 to your employer, keep paying Pennsylvania, and file only in Pennsylvania. Note that Form MW507 belongs to Maryland, the state where the work is.

Last verified

Reciprocity is the cleanest outcome in multi-state wage tax, and also the one most often missed, because it only works if you file the certificate. The agreement between Pennsylvania and Maryland does not apply itself: an employer that never receives Form MW507 keeps withholding.

Maryland does not tax the wages of residents of the District of Columbia, Pennsylvania, Virginia or West Virginia who do not keep a place of abode in Maryland for 183 days or more. The employee claims the exemption on Form MW507.

The certificate goes to your employer's payroll department, not to Comptroller of Maryland, and it is not retroactive — filing it in June does not recover Maryland tax withheld in January. That money comes back only by filing a Maryland nonresident return for the year and claiming a refund.

Maryland also has a layer below the state one, and it is the layer that survives every agreement: Every Maryland county and Baltimore City levies its own income tax, collected on the state return. A reciprocity agreement exempts wages from the Maryland state tax only — it never reaches the county tax. Nonresidents who are not covered by an agreement pay a special nonresident rate in place of the county tax. Pennsylvania carries one further condition: a Pennsylvania resident exempt from the Maryland state tax remains liable for the Maryland local tax unless their own Pennsylvania jurisdiction imposes no earnings tax on Maryland residents.

What you file

  1. 1Give to your employer · MarylandForm MW507

    Give your employer Form MW507 so Maryland stops withholding. This goes to the employer, not to Comptroller of Maryland — and it is not retroactive, so file it before the first paycheck of the year.

  2. 2Resident return · Pennsylvania

    File a Pennsylvania resident return reporting all of your income, including the wages earned in Maryland.

The two states, side by side

 PennsylvaniaMaryland
Taxes wagesYes — flatYes — graduated
Reciprocity partners6 (Form REV-419)4 (Form MW507)
Convenience ruleYes — general ruleNo
Nonresident returnForm PA-40 (nonresident)Form 505 with Form 505NR
Credit for other-state taxSchedule G-LForm 502CR
Nonresident safe harbourNone publishedNone published
Local income taxYesYes
Revenue departmentPennsylvania Department of RevenueComptroller of Maryland
Last verified

The other direction

Reversing the commute does not always reverse the answer. Living in Maryland and working in Pennsylvania gives:Reciprocal agreement — file the exemption form.

Maryland to Pennsylvania →

Same two states, different situation

The withholding answer turns on how you are paid and where the work happens, not only on which two states are involved.

Other Pennsylvania pairs

Questions people actually ask

I live in Pennsylvania and work in Maryland. Which state takes the tax out of my paycheck?

One state, one form, one return. The Pennsylvania-Maryland reciprocal agreement means Maryland withholding should never start: submit Form MW507 to your employer, keep paying Pennsylvania, and file only in Pennsylvania. Note that Form MW507 belongs to Maryland, the state where the work is.

Which state should my employer be withholding for?

Pennsylvania. Your employer should withhold Pennsylvania tax rather than Maryland tax on these wages, but only once you have given payroll Form MW507 — the exemption is not automatic and it does not apply retroactively. If a Maryland line is showing on your pay stub, raise it with payroll now rather than at filing time.

What if Maryland tax was already withheld from my pay?

File Form MW507 with your employer to stop it going forward, then recover what was already taken by filing a Maryland nonresident return for that year and claiming a refund of the full amount. Pennsylvania will still expect its own tax on the same wages, so do not treat the refund as a windfall.

How current is this?

The Pennsylvania and Maryland rules on this page were last checked against Pennsylvania Department of Revenue and Comptroller of Maryland on 2026-08-07. We re-check the full grid every December after state legislative sessions close, and re-check the convenience-of-the-employer states quarterly because that is where the rules move fastest.

Sources

Every fact above comes from the revenue department that publishes the rule. We do not cite secondary summaries, and we do not restate a figure we could not find at source.