State tax filing

PA residents working in NJ will file a NJ income tax return then file a PA Income Tax Return (PA- 40). They will get a credit toward their PA income tax obligation for income tax paid to NJ. ... The credit is the lesser of tax paid to NJ or the income subject to tax in both states times 3.07%.

If you only worked for one company then your W2 should show two lines for state taxes wiethheld.  One line for PA and one line for NJ.

 

TurboTax will ask you the questions needed to make sure you are paying the correct state taxes.

If you received two W2 forms from the same company and the only difference is the state income and taxes withheld, then you will only have one W2 entry and add another line for the second state.

Pennsylvania and New Jersey are reciprocal states for state income tax. As a worker in a reciprocal state, you can fill out that state's exemption form and give it to your employer if you don't want them to withhold taxes for your work state. If you do this, make sure your employer also withholds taxes for your resident state, otherwise you may get hit with underpayment penalties come tax time.
 

[edited 2/17/2021 | 7:38 pm PST]