PA & NJ have a reciprocal tax agreement which means you only pay taxes to your home state. You would have had to notify your employer that you moved so they would start withhold NJ and not PA taxes. So in your scenario you are a part year resident of PA where you would allocate 8/12 of your income if salaried or based on time worked if hourly to PA for that time period. You are also a part year resident of NJ for 4/12 of the year. So you file a part year return in both states (NJ does not have a part year return but you call allocate the income during the interview), YOU DO NOT get a credit for taxes paid to another state due to reciprocity agreement.
PA PART YEAR RULES:
As a part-year resident, you are subject to PA tax on ALL income earned, received, or credited for that part of the year you were a PA resident. You are also subject to PA tax on all income earned received or credited from PA sources for that part of the year you were a nonresident.
Part-year residents use the same PA-40 that residents and nonresidents use. Make sure when you complete your return that you indicate that you are a part-year resident by filling in the oval for "part-year resident."
If you are a part-year resident, Pennsylvania taxes you on the following kinds of income from PA sources:
Compensation. Pennsylvania taxes part-year residents on compensation for services performed in Pennsylvania, unless you are a resident of one of the reciprocal agreement states (Indiana, Maryland, New Jersey, Ohio, Virginia, or West Virginia). If you are a resident of a reciprocal agreement state, your Pennsylvania employer should withhold and remit the tax to that state.
Net Income or Loss from the Operation of a Business, Profession, or Farm. Pennsylvania taxes part year resident owners on all income from the operation of a business entity in Pennsylvania.
If you derive income from sources both inside and outside Pennsylvania, you should maintain separate accounts and records that clearly reflect your PA business activity. Otherwise, you must file a PA Schedule NRH to apportion your income.
Net Income or Loss from the Sale, Exchange, or Disposition of Property. Pennsylvania taxes part year residents on the gain from the sale of any real or tangible personal property located in Pennsylvania.
Important: If you sell property in your former state before moving into Pennsylvania, you are not subject to tax on the gain.
However, if you moved from Pennsylvania to another state and then sell property or any other tangible property in Pennsylvania, you must report the gain, unless you qualify for an exclusion from paying tax on the gain of the sale of your principal residence, whether within or outside Pennsylvania.
For more information, view the sale of Your Principal Residence brochures, REV-625.
Net Income or Loss from Rents, Royalties, Patents, and Copyrights. Pennsylvania taxes nonresidents on the net income from the use of property located in Pennsylvania or used in Pennsylvania.
Estate or Trust Income. Pennsylvania taxes part-year resident beneficiaries on income from an estate or trust, only to the extent the PA source income to the beneficiaries is taxable to part-year residents.
Winnings from gambling activities from within Pennsylvania, except those winnings from the PA Lottery, for tax years prior to January 1, 2016.
Pursuant to Act 84 of 2016, winners who receive a cash prize or an annuity payment from the PA Lottery, must report those payments as taxable income on their 2016 PA personal income tax return. This is retroactive to January 1, 2016. This also includes payments from annuities or cash prizes won prior to, but not received until 2016 or later.
Make sure you fill in the oval for a "part-year" return and record the time period you were a resident.
For copies of all Pennsylvania Personal Income Tax Forms and Instructions visit the Forms and Publications page of our web site.
**I don't work for TT. Just trying to help. All the best.
***Say "Thanks" by marking as BEST ANSWER and clicking the thumb icon in a post and that I solved your question
**Mark the post that answers your question by clicking on "Mark as Best Answer" I am NOT an expert and you should confirm with a tax expert.