Taxes have a special talent for making normal words sound suspicious. Take “nonresident,” for example. In everyday English, it simply means you do not live somewhere. In tax English, it means, “Please sit down, count your days, review your visa status, identify your income source, and maybe fill out a form with a number that looks like a locker combination.”
So, what is a nonresident for tax purposes? In the United States, the answer depends on which tax system you are talking about. For federal income tax, the term often refers to a nonresident alien: a person who is not a U.S. citizen and does not meet the IRS tests for being treated as a U.S. tax resident. At the state level, a person can also be a nonresident of a state, even if they are a U.S. citizen or federal tax resident. Yes, you can be one thing federally and another thing for a state. Taxes love plot twists.
This guide explains the meaning of nonresident for tax purposes, how the IRS determines residency status, what income nonresidents usually report, which forms may apply, and the most common mistakes to avoid.
Nonresident for Tax Purposes: The Simple Definition
A nonresident for tax purposes is generally someone who is not treated as a resident under the rules of a particular tax authority. For U.S. federal tax, this usually means a non-U.S. citizen who does not pass the green card test or the substantial presence test. For state taxes, it usually means someone who is not domiciled in that state and does not meet that state’s residency rules, but who may still owe tax on income sourced to that state.
The most important thing to understand is that tax residency is not always the same as immigration status, mailing address, or how emotionally attached you are to a favorite coffee shop in Chicago. A person may be physically present in the United States but still be a nonresident alien for federal tax purposes. Another person may live abroad but still be a U.S. tax resident because they are a U.S. citizen or lawful permanent resident.
Federal Tax Residency: Resident Alien vs. Nonresident Alien
For federal income tax, the IRS classifies individuals who are not U.S. citizens as either resident aliens or nonresident aliens. A resident alien is generally taxed much like a U.S. citizen, meaning they report worldwide income. A nonresident alien is usually taxed only on certain U.S.-source income and income effectively connected with a U.S. trade or business.
That difference is huge. It can affect which tax return you file, what deductions you can claim, whether treaty benefits apply, how your investment income is taxed, and whether a payroll department withholds the right amount from your paycheck instead of turning your tax life into a group project.
The Green Card Test
The green card test is the more straightforward of the two major federal residency tests. If you are a lawful permanent resident of the United States at any time during the calendar year, you are generally treated as a U.S. resident for federal tax purposes. In plain English: if you have a green card, the IRS usually sees you as a resident alien, even if you spent part of the year outside the country.
There are special rules for residency starting and ending dates, abandoned green cards, treaty positions, and dual-status years. But as a basic rule, the green card test is the tax version of “you’re in the club.” Whether you wanted a club with this much paperwork is a separate emotional journey.
The Substantial Presence Test
If you do not have a green card, the IRS looks at the substantial presence test. This test counts how many days you were physically present in the United States over a three-year period. You generally meet the test if you were present in the U.S. for at least:
- 31 days during the current year, and
- 183 days using a three-year weighted formula.
The formula counts all your U.S. days in the current year, one-third of your U.S. days from the previous year, and one-sixth of your U.S. days from the year before that.
For example, suppose you were in the United States for 120 days this year, 120 days last year, and 120 days the year before. Your substantial presence calculation would be:
- 120 days from the current year
- 40 days from last year, because 120 × 1/3 = 40
- 20 days from two years ago, because 120 × 1/6 = 20
Your total would be 180 days. That is close, but not 183. In this example, you would not meet the substantial presence test based on those days alone. The IRS, unlike your fitness tracker, does not round up because you “basically got there.”
Who Can Still Be a Nonresident Even After Spending Time in the U.S.?
Some people do not count all of their U.S. days for the substantial presence test. These individuals are called exempt individuals, but the name is a little misleading. It does not mean they are exempt from paying U.S. tax. It means certain days may be exempt from being counted toward tax residency.
Common examples include certain students, teachers, trainees, researchers, exchange visitors, professional athletes temporarily in the U.S. for charitable events, and people unable to leave because of certain medical conditions. Many international students in F, J, M, or Q visa status may exclude days for a limited number of calendar years if they meet the requirements.
For example, a student temporarily present in the U.S. on an F-1 visa may often remain a nonresident alien for federal tax purposes during the first five calendar years in that status. A J-1 teacher or trainee may have a shorter exemption period. These rules are detailed, and small facts matter, so anyone relying on them should keep clear records and file the correct statements, such as Form 8843 when required.
The Closer Connection Exception
Some people meet the substantial presence test but may still be treated as nonresidents if they qualify for the closer connection exception. Generally, this may apply when a person is present in the United States for fewer than 183 days in the current year, maintains a tax home in a foreign country, and has a closer connection to that foreign country than to the United States.
Think of it as the IRS asking, “Where is your real tax life?” The answer may involve your permanent home, family, personal belongings, driver’s license, bank accounts, business activities, voting location, and social connections. It is not enough to say, “My heart is in Paris.” The IRS prefers paperwork to poetry.
Dual-Status Taxpayers: When You Are Both
A person can be both a resident and a nonresident for U.S. tax purposes in the same year. This is called a dual-status tax year. It commonly happens in the year someone arrives in the United States and becomes a resident, or in the year someone leaves and ends U.S. tax residency.
For example, if you move to the U.S. in July, receive a green card in September, and remain a lawful permanent resident through December 31, part of your year may be treated as nonresident and part as resident. Dual-status filing is more complex than a normal return because different income reporting rules apply to different parts of the year.
How Nonresident Aliens Are Taxed
Nonresident aliens are generally taxed differently from U.S. citizens and resident aliens. The big idea is this: nonresident aliens usually report U.S.-source income, not worldwide income. But the type of income matters.
Effectively Connected Income
Effectively connected income, often called ECI, is income connected with a U.S. trade or business. Wages earned for work performed in the United States are a common example. ECI is generally taxed at graduated tax rates after allowable deductions. This means the tax rate can rise as income increases, similar to the way regular U.S. income tax brackets work.
If a nonresident alien works for a U.S. employer, earns wages in the United States, or operates a business connected to U.S. activity, that income may need to be reported on Form 1040-NR.
FDAP Income
FDAP income stands for fixed, determinable, annual, or periodical income. In normal-person language, it often includes passive income such as dividends, interest, rents, royalties, annuities, and certain other recurring payments from U.S. sources.
FDAP income that is not effectively connected with a U.S. trade or business is generally taxed at a flat 30% rate on gross income unless a tax treaty reduces or eliminates the tax. “Gross income” is the key phrase. Deductions are generally not allowed against this type of income. The IRS is not asking how much you spent on coffee while worrying about your dividends.
Tax Treaties Can Change the Answer
The United States has income tax treaties with many countries. A treaty may reduce withholding, exempt certain types of income, or provide special rules for students, teachers, researchers, pensions, royalties, and business profits. Treaty benefits depend on the country, the type of income, the person’s residency under the treaty, and whether all paperwork is completed correctly.
For instance, a student from one country may qualify for a limited exemption on scholarship or wage income, while a student from another country may not. A foreign investor may receive a reduced dividend withholding rate under a treaty, but only if the correct documentation is provided to the payer. Tax treaties are powerful, but they are not magic coupons. You must qualify, claim them properly, and keep records.
Common Forms for Nonresident Taxpayers
Form 1040-NR
Form 1040-NR is the U.S. Nonresident Alien Income Tax Return. Nonresident aliens use it to report taxable U.S. income, such as wages, tips, taxable scholarships, business income, certain investment income, and other U.S.-source income.
Form 8843
Form 8843 is used by certain exempt individuals and individuals with medical conditions to explain why days of presence in the United States are excluded from the substantial presence test. Many F, J, M, and Q visa holders may need to file this form even if they had little or no U.S. income.
Form W-8BEN
Form W-8BEN is usually given to a withholding agent or payer, not filed directly with the IRS by the individual. It helps certify foreign status and may be used to claim a reduced withholding rate under an applicable tax treaty.
Form W-2, Form 1042-S, and Form 1099
Nonresident taxpayers may receive different income forms depending on the type of payment. Wages may be reported on Form W-2. Certain scholarship, fellowship, treaty-exempt, or other payments to foreign persons may be reported on Form 1042-S. Investment or miscellaneous income may appear on a Form 1099, although nonresident withholding rules can differ. The form you receive is a clue, not always the final answer.
State Tax Nonresidents: A Different Game
Federal tax residency and state tax residency are related but not identical. A person may be a nonresident alien for federal tax purposes and still be treated as a resident for a state’s income tax rules. Likewise, a U.S. citizen may be a nonresident of California, New York, or another state while still being fully subject to U.S. federal tax on worldwide income.
States often look at concepts such as domicile, permanent place of abode, number of days spent in the state, and source of income. A nonresident of a state may still owe tax to that state if they earned income from work performed there, owned rental property there, sold real estate there, or operated a business connected to that state.
For example, a person who lives in Nevada but travels to California for consulting work may owe California tax on income earned from services performed in California. A person living in Florida who owns rental property in New York may owe New York tax on rental income sourced to New York. The state may not care that your suitcase lives elsewhere.
Examples of Nonresident Tax Situations
Example 1: International Student
Maria comes to the United States on an F-1 visa to study at a university. During her first years in that status, she may be treated as an exempt individual for substantial presence test purposes. If she earns taxable U.S. wages from authorized campus employment, she may need to file Form 1040-NR. She may also need Form 8843. If she has no U.S.-source income, she may still need to file Form 8843 depending on her situation.
Example 2: Short-Term Business Visitor
Ken visits the United States for 70 days this year, 90 days last year, and 100 days the year before. He does not have a green card. Using the substantial presence formula, his count is 70 + 30 + 16.67 = 116.67 days. He does not meet the 183-day threshold. If he has no U.S.-source taxable income, he may not have a federal income tax return filing requirement. If he performed services in the U.S. and was paid for them, the answer may change quickly.
Example 3: Remote Worker Visiting the U.S.
Lina works for a foreign employer and spends several months visiting family in the United States. If she performs work while physically present in the U.S., some of that compensation may be treated as U.S.-source income, even if her employer is foreign and her paycheck lands in a foreign bank account. Tax residency, payroll, treaty rules, and visa rules all need careful review. Remote work may feel borderless, but tax rules still own a map.
Example 4: State Nonresident With Rental Property
David lives in Texas but owns a rental condo in California. He is not a California resident, but the rental income comes from California real property. As a result, he may have a California nonresident filing requirement. Federal residency status does not erase state source-income rules.
Common Mistakes Nonresidents Make
One common mistake is filing the wrong tax form. Nonresident aliens usually file Form 1040-NR, not the standard Form 1040 used by U.S. citizens and resident aliens. Filing the wrong return can create problems with deductions, credits, treaty claims, Social Security and Medicare tax treatment, and future immigration-related paperwork.
Another mistake is assuming that “nonresident” means “no U.S. tax.” A nonresident may still owe U.S. tax on wages earned in the United States, U.S.-source business income, taxable scholarships, U.S. rental income, royalties, dividends, or gains connected with U.S. real property.
A third mistake is ignoring state tax. People often focus on the IRS and forget that states have their own rules. This is like remembering the main villain in a movie and forgetting the sequel has three more.
Finally, many taxpayers fail to keep a travel calendar. For anyone near the substantial presence threshold, a reliable record of U.S. entry and exit dates is essential. Passport stamps, I-94 records, airline tickets, lease agreements, school records, and employer documents can all help support your position.
Checklist: How to Know If You Are a Nonresident for Tax Purposes
- Confirm whether you are a U.S. citizen. U.S. citizens are generally U.S. tax residents regardless of where they live.
- If you are not a U.S. citizen, check whether you held a green card at any point during the year.
- Count your U.S. days under the substantial presence test.
- Review whether any days are excluded because you are an exempt individual or had a qualifying medical condition.
- Consider whether the closer connection exception or a tax treaty position may apply.
- Identify whether your income is U.S.-source, foreign-source, effectively connected, or FDAP.
- Review state residency and state source-income rules separately.
- Choose the correct forms, such as Form 1040-NR, Form 8843, or Form W-8BEN.
- Keep documentation in case the IRS, a state tax agency, school, employer, or withholding agent asks questions later.
Practical Experiences Related to Nonresident Tax Status
In real life, nonresident tax status often becomes confusing not because the rules are impossible, but because people receive mixed signals. A university may call someone an “international student,” an employer may call them an “employee,” a bank may call them a “foreign person,” and tax software may cheerfully ask questions that assume they are a U.S. resident. Suddenly, a simple tax return feels like trying to assemble furniture with instructions written by a committee of squirrels.
One common experience involves international students who arrive in the United States and assume that earning a small amount of campus income is too minor to matter. Later, they discover that even modest U.S.-source income can create a Form 1040-NR filing requirement. Some also learn that Form 8843 may be required even when no income was earned. The lesson is simple: nonresident tax filing is not always about how much money you made. Sometimes it is about documenting why your U.S. days should not count toward residency.
Another familiar situation happens with payroll withholding. A nonresident employee may notice that federal income tax was withheld, but Social Security and Medicare taxes were also withheld even though a specific exemption might apply to their visa category and employment type. Correcting that after the fact can be tedious. The better experience is to speak with the payroll or international office early, provide accurate visa and tax residency information, and review pay stubs before the year ends. A pay stub is not exactly beach reading, but it can save you from a springtime tax headache.
Remote workers also run into surprises. Someone may work for a foreign company while temporarily staying in the United States and assume that foreign payroll means foreign income. But compensation for services is often sourced based on where the work is physically performed. If the person is typing reports from a kitchen table in Boston, that kitchen table may have tax consequences. Charming? No. Important? Absolutely.
State taxes create another layer of experience. Many people move out of a state and believe the old state is now ancient history. Then a W-2, rental property, business client, or stock option allocation pulls them back into a nonresident return. States such as California and New York are known for paying close attention to residency and source income. The practical advice is to save moving records, lease documents, utility bills, travel calendars, and employer work-location records. In tax disputes, “I definitely remember leaving” is less persuasive than a folder full of documents.
Investors can also be caught off guard. A nonresident alien with U.S. brokerage income may see withholding on U.S. dividends, but not necessarily on every type of investment gain. Tax treaties, FDAP rules, capital gain rules, and withholding forms all matter. Providing a valid Form W-8BEN to the broker is often essential. Without it, withholding may be higher than expected, treaty benefits may not be applied, or the account may be documented incorrectly.
The best overall experience comes from treating nonresident tax status as a calendar-and-paperwork issue, not a mystery. Track days in the United States. Save immigration documents. Keep income forms. Ask employers and schools which forms they will issue. Review treaty eligibility before filing, not after. And when the facts are unusualdual-status year, green card surrender, multiple states, self-employment, rental property, stock options, or treaty claimsconsider getting help from a tax professional who understands nonresident returns. The right answer is rarely found by guessing, and the IRS is not famous for awarding points for confidence.
Conclusion
A nonresident for tax purposes is someone who does not meet the residency rules of the relevant tax authority. For U.S. federal tax, a nonresident alien is generally a non-U.S. citizen who does not pass the green card test or substantial presence test, unless special exceptions or treaty rules apply. Nonresidents may still owe U.S. tax, especially on U.S.-source income, effectively connected income, FDAP income, wages, scholarships, rental income, or state-source income.
The key is not to guess your status based on your visa label, address, or how long your favorite barista has known your order. Instead, count your days, identify your income sources, check federal and state rules separately, use the correct forms, and keep good records. Tax residency may be technical, but with the right map, it is manageable.
Note: This article is for general educational purposes and is based on current U.S. federal and state tax concepts. It is not personalized tax, legal, or immigration advice. Nonresident tax situations can change based on visa status, treaty country, income type, state law, and dates of presence.


