J-1 visa taxes in Maryland
Complete guide to J-1 visa taxes in Maryland for nonresident workers. Learn residency rules, state filing requirements, exemptions, and how to file Form

You worked in Maryland on a J-1 visa, got a W-2 from your U.S. employer, and now you’re wondering whether you have to file taxes in Maryland, what residency rules apply, and whether you might owe anything to the state. Maryland’s tax rules for J-1 visa holders can seem tangled because the state has its own income tax and follows different rules than the federal government. This guide breaks down exactly what you need to know: your residency status under both federal and Maryland law, whether you file Form 1040-NR with Maryland, which withholdings you can reclaim, and where J-1 workers most often get tripped up.
Does this sound like you? You’re on a J-1 visa, you got a W-2 from a U.S. employer, and you worked more than 3 months in the U.S. If so, see your real J-1 tax calculator number in under 2 minutes — no login required, and you only pay if you actually get a refund.
Do you have to file J-1 visa taxes in Maryland?
Whether you file Maryland state income tax depends entirely on your residency status under both federal and Maryland law—not on whether you wish you didn’t have to. Most J-1 visa holders who worked in Maryland for more than a few months are nonresident aliens for federal purposes and also nonresident for Maryland state tax. If you are a nonresident alien, you generally file federal Form 1040-NR (not the standard Form 1040) and file Maryland Form 502 NR (the nonresident version of Maryland’s income tax return)—but only if Maryland source income (money you earned in the state) exceeds filing thresholds.
Here is what matters most: your J-1 category and how long you have been in the U.S. Shape your residency status under the federal Substantial Presence Test first, because Maryland follows the same test. If you are a “student” category J-1, you can exclude U.S. physical presence from the test for up to 5 calendar years; if you are a “teacher or trainee” category J-1 (which includes interns, trainees, specialists, and camp counselors), you can exclude only 2 of the last 6 calendar years. Once that exclusion period ends and you meet the Substantial Presence Test, you become a resident alien and must file full-year U.S. income tax. In the meantime, as a nonresident, you file 1040-NR for the federal side.
Maryland source income is income you earned by working in Maryland. That is income subject to Maryland tax filing rules. If you only lived and worked in Maryland during your J-1 time, nearly all your W-2 income is Maryland source income. Maryland has no special exemption for J-1 workers, so you report your income on Maryland Form 502 NR just as any other nonresident would.
What factors determine whether you file in Maryland?
Your residency decision rests on three variables: your J-1 visa category, your prior time in the U.S., and your home country tax treaty status. None of these alone settles it—you have to check all three.
J-1 category and exclusion period: The IRS allows certain J-1 visa holders to exclude time in the U.S. from the Substantial Presence Test for a limited period. Student category J-1s can exclude up to 5 full calendar years; teacher and trainee category J-1s can exclude 2 of the last 6 calendar years (sometimes extendable to 4 under specific rules). The exclusion clock ticks from the first day you were in the U.S., regardless of whether you were working the whole time. Once your exclusion period ends or you switch categories, the Substantial Presence Test applies in full.
Prior time in the U.S.: If this is not your first time on a J-1 or other U.S. visa, your earlier time counts toward the Substantial Presence Test. The test adds up physical presence from the current year plus weighted days from the two prior years. In most cases, three to four months of presence per year will push you over the threshold. The exact tipping point depends on how many days you were in the U.S. in prior years.
Home country tax treaty: The U.S. has tax treaties with roughly 60 countries. Some treaties carve out special nonresident status for certain visa holders even after the Substantial Presence Test is met. For instance, a few countries have treaty provisions that let teachers or researchers remain nonresident for income tax purposes even if they would otherwise pass the test. This is rare, and most J-1 workers do not have it, but it is worth checking if your home country is on the treaty list.
Check your own situation using the Substantial Presence Test tool with your specific J-1 category and arrival date. That tool will tell you whether you are a resident or nonresident alien for the tax year in question.
Where J-1 workers get tripped up on Maryland taxes
The biggest mistake is filing Form 1040 (resident form) when you should file 1040-NR, or vice versa. Many J-1 holders use general-purpose tax software built for U.S. residents and default to Form 1040 without checking their residency status first. The IRS will catch this and send a notice asking you to refile. To avoid it, confirm your Substantial Presence Test status before you file anything.
A second trap is forgetting that Maryland has its own withholding and refund rules. Your W-2 shows federal withholding, but your employer may also have withheld Maryland income tax. If you are nonresident and have no Maryland filing obligation (because your income was below the filing threshold or all your income was from non-Maryland sources), you can claim a refund of any Maryland withholding your employer took. Some J-1 workers assume their withholding is correct and miss this refund.
The third mistake is confusing Maryland’s nonresident filing threshold with the federal one. Maryland requires you to file a state return if you have Maryland source income above a certain threshold—even as a nonresident—but that threshold is usually much lower than the federal threshold. If your federal filing obligation is zero but you have Maryland income, you may still owe a Maryland return. The calculator will help you sort this out by running all your W-2 numbers at once.
Frequently Asked Questions
Do I have to pay Maryland state income tax if I’m on a J-1 visa?
You pay Maryland state income tax if you are a resident of Maryland for tax purposes or if you have Maryland source income (money earned in the state) that exceeds the filing threshold. Most J-1 visa holders are nonresident aliens; as a nonresident, you still file Maryland Form 502 NR if your Maryland income crosses the filing requirement, which is typically much lower than federal thresholds. Your J-1 status does not exempt you from Maryland tax—only your residency status matters.
What is the difference between Form 1040 and Form 1040-NR for Maryland filing?
Form 1040 is the standard U.S. individual income tax return for residents and citizens. Form 1040-NR is for nonresident aliens and works differently—you report only U.S. source income, you cannot claim certain deductions, and your tax brackets are often higher. In Maryland, if you file 1040-NR federally, you also file Maryland Form 502 NR (nonresident) instead of Form 502 (resident). Using the wrong form can trigger an IRS notice, so always confirm your residency status first.
Can I claim a refund of Maryland withholding if I don’t have to file in the state?
Yes. If your employer withheld Maryland income tax but you have no Maryland filing obligation—either because your income was too low or because you have no Maryland source income—you can file Maryland Form 502 NR to claim a refund of that withholding. Many nonresident J-1 workers overlook this step and leave money on the table. Your paystubs will show the exact amount withheld; the calculator will help you determine if you qualify for a refund and estimate how much.
Does Maryland have a special tax treaty exemption for J-1 workers?
Maryland does not. The state does not recognize special J-1 exemptions; your residency status under the Substantial Presence Test is what counts. However, the U.S. federal government has tax treaties with certain countries that can affect how the Substantial Presence Test applies to you personally. If your home country has a treaty with the U.S., a qualified tax preparer can review whether you qualify for a treaty-based exemption, but this is rare among J-1 workers and is separate from Maryland state tax.
What do I do if my employer withheld the wrong amount of Maryland tax?
File your return with the correct income and let the calculation show the true tax owed (or refund due). Your employer’s withholding is just an estimate; the IRS and Maryland adjust based on your actual return. If you believe your employer made a clerical error, you can contact your employer’s payroll department, but do not let that stop you from filing your own accurate return. When you file Form 1040-NR with Maryland Form 502 NR, the refund or additional tax owed will be calculated for you.
This is general information, not personalized tax advice. Your exact situation depends on your J-1 category, prior time in the U.S., and home country tax treaty status. Use the Substantial Presence Test tool to check your residency status, and consult a qualified tax preparer for anything beyond a standard return.
Maryland state tax for J-1 visa holders comes down to knowing whether you are a resident or nonresident alien under the Substantial Presence Test, then filing the matching Maryland form and reporting your Maryland source income. Get your residency status locked in first—that one decision drives everything else. Once you have your full W-2 in hand, answer a few quick questions in the tax calculator to see your estimated federal and Maryland tax refund, plus any Maryland withholding you can claim back.
Answer a few quick questions and see your estimated refund — no login required, no obligation.