Maryland · form and line
Part-Year and Nonresident Returns
Moved to or from Maryland, or earned income there while living elsewhere: where each type of income goes on the Maryland 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 Comptroller of Maryland 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 Maryland 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 Maryland resident return
A full-year resident does not use the part-year and nonresident lines on this page. Your Maryland 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: Form 502CR, Part A.
A full-year resident fills in Form 502CR, Part A, one for each state. The state credit goes through Part AA to Form 502, line 24; the local credit goes through Part BB to line 31.
How Maryland does it
Where each type of income goes
Lines are from the 2025 Maryland forms; click a form name to open it. Maryland uses two forms. A part-year resident files the resident Form 502, marked “P” with the dates of residence. A nonresident files Form 505 with Form 505NR. The 2026 lines will be added when the state posts its forms.
| Click a type of income to read what goes in the Maryland column | Federal line | Part-year resident 2025 form and line | Nonresident 2025 form and line |
|---|---|---|---|
| Income | |||
Federal adjusted gross income for the whole year, wherever earned. Lines 1a to 1d break out wages, earned income, net capital gain and retirement income. Each kind of income is entered three ways: federal, Maryland and non-Maryland. Wages (1), interest (2), dividends (3), tax refunds (4), alimony (5), business income (6), capital gains (7), other gains (8), pensions and IRAs (9), rents and pass-through income (10), farm income (11), unemployment (12), Social Security (13), other income including lottery and gambling winnings (14). Line 17 is adjusted gross income. | 1040, line 11 | Form 502, line 1 | Form 505, lines 1 to 17 |
Part-year resident: Federal adjusted gross income for the whole year, wherever earned. Lines 1a to 1d break out wages, earned income, net capital gain and retirement income. Nonresident: Each kind of income is entered three ways: federal, Maryland and non-Maryland. Wages (1), interest (2), dividends (3), tax refunds (4), alimony (5), business income (6), capital gains (7), other gains (8), pensions and IRAs (9), rents and pass-through income (10), farm income (11), unemployment (12), Social Security (13), other income including lottery and gambling winnings (14). Line 17 is adjusted gross income. On Form 505, column 1 is federal income, column 2 Maryland income and column 3 non-Maryland income. | |||
In line 1. Wages earned before the move in, or after the move out, come off on line 12. Column 2: pay for work done in Maryland. Wages of a District of Columbia, Pennsylvania, Virginia or West Virginia resident stay in column 3. | 1040, line 1z | Form 502, lines 1 and 12 | Form 505, line 1 |
Part-year resident: In line 1. Wages earned before the move in, or after the move out, come off on line 12. Nonresident: Column 2: pay for work done in Maryland. Wages of a District of Columbia, Pennsylvania, Virginia or West Virginia resident stay in column 3. On Form 505, column 1 is federal income, column 2 Maryland income and column 3 non-Maryland income. | |||
In line 1. Amounts received while a nonresident come off on line 12. Column 3. A nonresident's investment and retirement income is not Maryland income unless it belongs to a Maryland business. | 1040, lines 2b to 5b | Form 502, lines 1 and 12 | Form 505, lines 2, 3 and 9 |
Part-year resident: In line 1. Amounts received while a nonresident come off on line 12. Nonresident: Column 3. A nonresident's investment and retirement income is not Maryland income unless it belongs to a Maryland business. On Form 505, column 1 is federal income, column 2 Maryland income and column 3 non-Maryland income. | |||
In line 1. The part from the nonresident period that Maryland does not tax comes off on line 12. Column 2: a business carried on in Maryland, rent from Maryland property, and gain on Maryland real and tangible property. | Schedule 1; 1040, line 7 | Form 502, lines 1 and 12 | Form 505, lines 6 to 8, 10 and 11 |
Part-year resident: In line 1. The part from the nonresident period that Maryland does not tax comes off on line 12. Nonresident: Column 2: a business carried on in Maryland, rent from Maryland property, and gain on Maryland real and tangible property. On Form 505, column 1 is federal income, column 2 Maryland income and column 3 non-Maryland income. | |||
Losses and adjustments realized while a nonresident are added back. Non-Maryland losses and adjustments are added back. | Form 502, line 5, code a | Form 505, line 18 | |
Part-year resident: Losses and adjustments realized while a nonresident are added back. Nonresident: Non-Maryland losses and adjustments are added back. On Form 505, column 1 is federal income, column 2 Maryland income and column 3 non-Maryland income. | |||
| Maryland adjustments | |||
The usual additions, for the resident period. Other additions by code letter (19); line 21 is federal adjusted gross income plus additions. | Form 502, lines 2 to 6 | Form 505, lines 19 to 21 | |
Part-year resident: The usual additions, for the resident period. Nonresident: Other additions by code letter (19); line 21 is federal adjusted gross income plus additions. On Form 505, column 1 is federal income, column 2 Maryland income and column 3 non-Maryland income. | |||
Income from the part of the year you lived elsewhere, to the extent Maryland does not tax it. Non-Maryland income from column 3 of Form 505. | Form 502, line 12 | Form 505NR, line 6b | |
Part-year resident: Income from the part of the year you lived elsewhere, to the extent Maryland does not tax it. Nonresident: Non-Maryland income from column 3 of Form 505. On Form 505, column 1 is federal income, column 2 Maryland income and column 3 non-Maryland income. | |||
The usual subtractions for income that stays in Maryland income. The pension exclusion is prorated by months of Maryland residence. Military pay of a nonresident (22) and other subtractions by code letter from Form 505SU (23). | Form 502, lines 8 to 14 | Form 505, lines 22 to 24 | |
Part-year resident: The usual subtractions for income that stays in Maryland income. The pension exclusion is prorated by months of Maryland residence. Nonresident: Military pay of a nonresident (22) and other subtractions by code letter from Form 505SU (23). On Form 505, column 1 is federal income, column 2 Maryland income and column 3 non-Maryland income. | |||
Line 7 minus line 15. Form 505NR, line 4, minus line 7. | Form 502, line 16 | Form 505NR, line 8 | |
Part-year resident: Line 7 minus line 15. Nonresident: Form 505NR, line 4, minus line 7. On Form 505, column 1 is federal income, column 2 Maryland income and column 3 non-Maryland income. | |||
| The factor, the deductions and the tax | |||
Maryland adjusted gross income divided by federal adjusted gross income, between 0 and 1. Line 8 divided by federal adjusted gross income on line 3, to six decimals, between 0 and 1. It also goes on Form 505, line 29. | Worksheet 26A (Form 502, line 16 ÷ line 1) | Form 505NR, line 9 | |
Part-year resident: Maryland adjusted gross income divided by federal adjusted gross income, between 0 and 1. Nonresident: Line 8 divided by federal adjusted gross income on line 3, to six decimals, between 0 and 1. It also goes on Form 505, line 29. On Form 505, column 1 is federal income, column 2 Maryland income and column 3 non-Maryland income. | |||
The standard deduction ($3,350, or $6,700 joint, head of household or surviving spouse) or net itemized deductions, times the factor. The standard deduction or net itemized deductions from Form 505, line 26, times the factor. | Form 502, line 17 | Form 505NR, lines 10a and 10b | |
Part-year resident: The standard deduction ($3,350, or $6,700 joint, head of household or surviving spouse) or net itemized deductions, times the factor. Nonresident: The standard deduction or net itemized deductions from Form 505, line 26, times the factor. On Form 505, column 1 is federal income, column 2 Maryland income and column 3 non-Maryland income. | |||
$3,200 for each person at most incomes, times the factor. The exemption amount from Form 505, line 28, times the factor. | Form 502, line 19 | Form 505NR, line 12 | |
Part-year resident: $3,200 for each person at most incomes, times the factor. Nonresident: The exemption amount from Form 505, line 28, times the factor. On Form 505, column 1 is federal income, column 2 Maryland income and column 3 non-Maryland income. | |||
The tax on line 20 from the table or Schedule 17A. Line 13 is Maryland taxable net income. Line 14 is the tax on total taxable net income (Form 505, line 31). Line 15 is line 13 divided by that total, to six decimals. Line 16 is line 14 times line 15, to Form 505, line 32a. | Form 502, line 21 | Form 505NR, lines 13 to 16 | |
Part-year resident: The tax on line 20 from the table or Schedule 17A. Nonresident: Line 13 is Maryland taxable net income. Line 14 is the tax on total taxable net income (Form 505, line 31). Line 15 is line 13 divided by that total, to six decimals. Line 16 is line 14 times line 15, to Form 505, line 32a. On Form 505, column 1 is federal income, column 2 Maryland income and column 3 non-Maryland income. | |||
The county rate times taxable net income, from Worksheet 19A. The special nonresident tax: 2.25% of line 13, to Form 505, line 32b. | Form 502, line 28 | Form 505NR, line 17 | |
Part-year resident: The county rate times taxable net income, from Worksheet 19A. Nonresident: The special nonresident tax: 2.25% of line 13, to Form 505, line 32b. On Form 505, column 1 is federal income, column 2 Maryland income and column 3 non-Maryland income. | |||
| 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. | Form 502CR, Part A | Form 502CR, Part A | |
Part-year resident and nonresident: Not this row: see the two rows below. A full-year resident fills in Form 502CR, Part A, one for each state. The state credit goes through Part AA to Form 502, line 24; the local credit goes through Part BB to line 31. | |||
Allowed for income taxed by both states while a Maryland resident. Not for tax on income from the nonresident period that was subtracted on Form 502, line 12. Does not apply. | Form 502CR, Part A | not allowed | |
Part-year resident: Allowed for income taxed by both states while a Maryland resident. Not for tax on income from the nonresident period that was subtracted on Form 502, line 12. Nonresident: Does not apply. | |||
Does not apply. The Form 502CR instructions say filers of Forms 505 and 515 cannot claim Part A. The credit comes from your home state, on its return, for the tax you paid Maryland. | not allowed | not allowed | |
Part-year resident: Does not apply. Nonresident: The Form 502CR instructions say filers of Forms 505 and 515 cannot claim Part A. The credit comes from your home state, on its return, for the tax you paid Maryland. | |||
A worked example: a mid-year move
A single person with no dependents moved to Maryland on July 1, 2025. Wages were $40,000 from a job in the old state through June and $50,000 from a Maryland 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.
| Form 502, line 1: federal adjusted gross income | $90,600, the whole year |
| Form 502, line 12: income while a nonresident | $40,000 of wages and $200 of interest = $40,200 |
| Form 502, line 16: Maryland adjusted gross income | $50,400 |
| Worksheet 26A: Maryland income factor | $50,400 divided by $90,600 = 0.5563 |
| Form 502, line 17: standard deduction | $3,350 times 0.5563 = $1,864 |
| Form 502, line 19: exemption | $3,200 times 0.5563 = $1,780 |
| Form 502, lines 20 and 21: taxable net income and state tax | $46,756; $90 plus 4.75% of the amount over $3,000 = $2,168.41 |
| Form 502, line 28: local tax | The county rate times $46,756: at 3.20%, $1,496.19 |
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. Use the taxable income and the tax on that return, not the withholding on the W-2. No credit is given for a state with no income tax.
- Find the Maryland tax caused by that income. Form 502CR, Part A: line 1 is Maryland taxable net income (Form 502, line 20). Line 2 is the income taxed by both states. Line 3 is the difference, and line 4 is the Maryland tax on line 3. Lines 5 to 8 do the same for the 2% capital gain tax. Line 10 is the Maryland tax (line 9) minus lines 4 and 8.
- Do the same for the county tax. Line 11 is the local tax (Form 502, line 28). Line 12 is line 3 times your local rate. Line 13 is the difference. Line 14 is line 10 plus line 13.
- Compare with the tax paid. Line 15 is the state and local tax owed to the other state, with its two-letter code. Line 16 is the smaller of lines 14 and 15.
- Split it and carry it. Line 17, the state credit, is the smaller of lines 10 and 16 and goes to Part AA, line 1. Line 18, the local credit, is line 16 minus line 17 and goes to Part BB, line 1. Attach all of Form 502CR and a signed copy of the other state's return.
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 Maryland, file the Maryland return as a nonresident, pay Maryland, and claim the credit on your home state's return.
District of Columbia, Pennsylvania, Virginia and West Virginia: no credit for tax on wages, salaries, tips or commissions there; ask that state for a refund. Other income taxed there, such as business income or gain on property, does qualify. A Pennsylvania local wage tax can be claimed on line 15.
More than one state: fill in a separate Form 502CR for each, then total lines 17 and 18 on a summary form.
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 Maryland 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.
- Leaving off the county tax. A part-year resident owes it on Form 502, line 28. A nonresident owes the 2.25% special nonresident tax instead.
- Taking the full standard deduction and exemptions. Both are multiplied by the Maryland income factor, on Form 502 and on Form 505NR.
- Claiming the Form 502CR credit for income already removed on line 12. A part-year resident gets no credit for another state's tax on income Maryland did not tax.
- Filing Form 505 for wages covered by reciprocity. A District of Columbia, Pennsylvania, Virginia or West Virginia resident owes Maryland nothing on wages; the only reason to file is to get back tax withheld by mistake.
- Skipping Form 505NR. Form 505, lines 32a and 32b, come from Form 505NR. Without it the return cannot be figured.
Also
- The earned income credit, the poverty level credit and the refundable earned income credit are multiplied by the Maryland income factor on a part-year return.
- The senior tax credit on Form 502CR, Part M, is not prorated for a part-year resident.
- On Form 505 the poverty level credit is line 33 and Form 502CR credits are line 34; the child and dependent care credit is for residents only.
- Tax withheld when a nonresident sells Maryland real estate (Form MW506NRS) is claimed on Form 505, line 45.
- Whether a part-year resident with Maryland income during the nonresident period reports it on Form 502 or also files Form 505 was not read (need to verify).