Need to Know Tax › Pennsylvania
Pennsylvania · form and line
Part-Year and Nonresident Returns
Moved to or from Pennsylvania, or earned income there while living elsewhere: where each type of income goes on the Pennsylvania return, and how to report tax paid to another state.

Edited by Charles Trautman, EA
Need to Know Tax · form and line numbers read by AI from the 2025 Pennsylvania Department of Revenue forms, November 29, 2026
Before you start
A move between states, or income earned in a state you do not live in, means two state returns that have to agree with each other and with the federal return. This is the return most worth taking to a tax professional. This page shows where each number goes.
Line check: the form and line numbers on this page were read by AI from the 2025 Pennsylvania forms on November 29, 2026. The editor, an enrolled agent, has not yet checked them line by line, so look at the form before you rely on a line number.
You file the regular Pennsylvania resident return
A full-year resident does not use the part-year and nonresident lines on this page. Your Pennsylvania return already takes in the income you earned in the other state. What you need is the credit for the tax that state charged you: PA-40, line 22 (Schedule G-L).
A full-year resident fills in PA Schedule G-L, one for each state, and attaches a copy of each other state's return.
How Pennsylvania does it
Where each type of income goes
Lines are from the 2025 Pennsylvania forms; click a form name to open it. Pennsylvania uses one form, Form PA-40, for everyone; the residency box is marked R, N or P. The form has a single column, so the two columns here match. What differs is what a part-year resident and a nonresident put on each line: click a row to read it. The 2026 lines will be added when the state posts its forms.
| Click a type of income to read what goes in the Pennsylvania column | Federal line | Part-year resident 2025 form and line | Nonresident 2025 form and line |
|---|---|---|---|
| The eight classes of income | |||
All compensation received while a resident, plus pay for work in Pennsylvania during the rest of the year. Pay for work done in Pennsylvania. When the employer did not split it, PA Schedule NRH apportions pay and employee expenses by days worked in Pennsylvania. | 1040, line 1z | PA-40, lines 1a to 1c | PA-40, lines 1a to 1c (PA Schedule NRH) |
Part-year resident: All compensation received while a resident, plus pay for work in Pennsylvania during the rest of the year. Nonresident: Pay for work done in Pennsylvania. When the employer did not split it, PA Schedule NRH apportions pay and employee expenses by days worked in Pennsylvania. Line 1b is unreimbursed employee expenses; line 1c is the net. | |||
Interest received while a resident. None. A nonresident's interest is not Pennsylvania income unless it belongs to a Pennsylvania business. | 1040, line 2b | PA-40, line 2 | PA-40, line 2 |
Part-year resident: Interest received while a resident. Nonresident: None. A nonresident's interest is not Pennsylvania income unless it belongs to a Pennsylvania business. PA Schedule A adjusts the federal figure. | |||
Dividends and capital gain distributions received while a resident. None, on the same rule. | 1040, line 3b | PA-40, line 3 | PA-40, line 3 |
Part-year resident: Dividends and capital gain distributions received while a resident. Nonresident: None, on the same rule. PA Schedule B. | |||
Income for the resident period, plus Pennsylvania business income from the rest of the year. Income of a business carried on in Pennsylvania. | Schedule 1, lines 3 and 6 | PA-40, line 4 | PA-40, line 4 |
Part-year resident: Income for the resident period, plus Pennsylvania business income from the rest of the year. Nonresident: Income of a business carried on in Pennsylvania. | |||
Sales made while a resident, plus Pennsylvania real and tangible property sold at any time. Gain on real or tangible property located in Pennsylvania. | 1040, line 7 | PA-40, line 5 | PA-40, line 5 |
Part-year resident: Sales made while a resident, plus Pennsylvania real and tangible property sold at any time. Nonresident: Gain on real or tangible property located in Pennsylvania. PA Schedule D. No long-term rate and no loss carryforward. | |||
Income for the resident period, plus rent from Pennsylvania property. Rent and royalties from property located in Pennsylvania. | Schedule 1, line 5 | PA-40, line 6 | PA-40, line 6 |
Part-year resident: Income for the resident period, plus rent from Pennsylvania property. Nonresident: Rent and royalties from property located in Pennsylvania. PA Schedule E. | |||
Income received while a resident. The Pennsylvania-source share shown on the schedule from the estate or trust. | Schedule 1, line 5 | PA-40, line 7 | PA-40, line 7 |
Part-year resident: Income received while a resident. Nonresident: The Pennsylvania-source share shown on the schedule from the estate or trust. PA Schedule J. | |||
Winnings while a resident, plus Pennsylvania winnings from the rest of the year. Only winnings from Pennsylvania sources. | Schedule 1, line 8b | PA-40, line 8 | PA-40, line 8 |
Part-year resident: Winnings while a resident, plus Pennsylvania winnings from the rest of the year. Nonresident: Only winnings from Pennsylvania sources. PA Schedule T. | |||
| Total, deductions and tax | |||
Only the positive amounts on lines 1c to 8 are added. A loss in one class does not reduce another. Only the positive amounts on lines 1c to 8 are added. A loss in one class does not reduce another. | PA-40, line 9 | PA-40, line 9 | |
Part-year resident and nonresident: Only the positive amounts on lines 1c to 8 are added. A loss in one class does not reduce another. | |||
Schedule O deductions for 529, ABLE, health savings and student loan interest. Schedule O deductions for 529, ABLE, health savings and student loan interest. | PA-40, line 10 | PA-40, line 10 | |
Part-year resident and nonresident: Schedule O deductions for 529, ABLE, health savings and student loan interest. Enter the code letter and attach PA Schedule O. | |||
Line 9 minus line 10, times 3.07%. Line 9 minus line 10, times 3.07%. | PA-40, lines 11 and 12 | PA-40, lines 11 and 12 | |
Part-year resident and nonresident: Line 9 minus line 10, times 3.07%. | |||
From PA Schedule NRK-1, for the nonresident period. Tax a partnership or S corporation withheld for you, from PA Schedule NRK-1, line 6. | PA-40, line 17 | PA-40, line 17 | |
Part-year resident: From PA Schedule NRK-1, for the nonresident period. Nonresident: Tax a partnership or S corporation withheld for you, from PA Schedule NRK-1, line 6. Not entered on line 13. | |||
| Tax paid to another state: who can claim the credit | |||
Not this row: see the two rows below. Not this row: see the two rows below. | PA-40, line 22 (Schedule G-L) | PA-40, line 22 (Schedule G-L) | |
Part-year resident and nonresident: Not this row: see the two rows below. A full-year resident fills in PA Schedule G-L, one for each state, and attaches a copy of each other state's return. | |||
Allowed for another state's tax on income earned there while a Pennsylvania resident. Does not apply. | PA-40, line 22 (Schedule G-L) | not allowed | |
Part-year resident: Allowed for another state's tax on income earned there while a Pennsylvania resident. Nonresident: Does not apply. | |||
Does not apply. Line 22 is a resident credit. A nonresident takes the credit at home, on the home state's return, for the tax paid to Pennsylvania. | not allowed | not allowed | |
Part-year resident: Does not apply. Nonresident: Line 22 is a resident credit. A nonresident takes the credit at home, on the home state's return, for the tax paid to Pennsylvania. | |||
A worked example: a mid-year move
A single person with no dependents moved to Pennsylvania on July 1, 2025. Wages were $40,000 from a job in the old state through June and $50,000 from a Pennsylvania job after the move. Bank interest was $200 through June and $400 after. Federal adjusted gross income is $90,600. No other income, no adjustments, standard deduction.
| PA-40, residency box | P, with the dates July 1 to December 31 |
| PA-40, line 1a: compensation | $50,000, the wages earned after the move |
| PA-40, line 2: interest | $400, the interest received after the move |
| PA-40, line 9: total Pennsylvania taxable income | $50,400 |
| PA-40, line 12: tax | 3.07% of $50,400 = $1,547.28 |
The old state taxes the $40,200 earned before the move on its own part-year return. No income is taxed by both states, so there is no credit for tax paid to another state on either return.
An illustration with 2025 figures, to show how the lines connect. It is not advice for your return.
Tax paid to another state: how to report it
When two states tax the same income, one of them gives a credit so you are not taxed twice. As a rule the state where the income was earned taxes it first, and the state where you live gives the credit.
- Finish the other state's return first. The same income must be taxed by both states in the same year. Schedule G-L uses the tax on that return, adjusted for its credits.
- Fill in PA Schedule G-L, one for each state. Section II lists each class of income and the amount taxed by the other state and by Pennsylvania. Section III adjusts the tax paid.
- Take the smaller figure. The credit is the smaller of the tax paid to the other state or 3.07% of the income taxed by both.
- Enter the total on PA-40, line 22. Add the schedules together if more than one state is involved.
- Attach each Schedule G-L and a copy of each other state's return. No credit is given for tax paid to a foreign country.
If you moved during the year, expect little or no credit. Each state taxes the months you lived there, so the same income is not usually taxed twice. The credit matters when income keeps coming from the old state after the move.
If you live elsewhere and earned income in Pennsylvania, file the Pennsylvania return as a nonresident, pay Pennsylvania, and claim the credit on your home state's return.
Reciprocal states: no credit for tax on wages in Indiana, Maryland, New Jersey, Ohio, Virginia or West Virginia. Ask that state for a refund.
S corporations: no resident credit for tax paid by an S corporation that is not also a Pennsylvania S corporation.
Where these returns go wrong
- Taking the credit for the tax withheld. The credit is based on the tax shown on the other state's finished return, not the withholding on the W-2.
- Claiming the credit on both returns. Only one state gives it, normally the state you live in.
- Doing the returns in the wrong order. The return for the state where the income was earned comes first, because the home state's credit needs its numbers.
- Trusting the state wages on the W-2. After a mid-year move with one employer, the state wage boxes can overlap or both show the full year. Split the wages by where the work was done and when.
- Reporting investment or retirement income to Pennsylvania as a nonresident. Bank interest, dividends, pensions, IRA withdrawals and Social Security belong to the state you live in when you receive them.
- Reporting a pension to the state you left. Once you have moved, the old state cannot tax your retirement income, even if you earned the pension there.
- Starting from federal adjusted gross income. Pennsylvania builds its own income in eight classes. Box 16 of the W-2, not box 1, is the wage figure.
- Netting a loss against other income. A loss in one class does not reduce another class, and line 9 adds only the positive amounts.
- Reporting interest and dividends as a nonresident. They are not Pennsylvania income for a nonresident unless they belong to a Pennsylvania business.
- Paying Pennsylvania tax on wages covered by reciprocity. A resident of Indiana, Maryland, New Jersey, Ohio, Virginia or West Virginia files only to get the withholding back.
- Forgetting the local return. The earned income tax is filed separately with the local collector.
Also
- Tax Forgiveness is available to part-year residents and nonresidents, but eligibility income counts income from everywhere; PA Schedule SP has a line for non-Pennsylvania income.
- The local earned income tax is separate, filed with the local collector. A part-year resident owes it only for the months lived or worked in the municipality.
- Philadelphia's wage tax applies to nonresidents who work in the city and is withheld by the employer.