U.S. tax residency determines whether a person is treated as a nonresident alien, resident alien, or dual-status alien for a federal tax year. For most non-U.S. citizens, the starting point is whether the person meets the green card test or the substantial presence test. If neither test is met, the person is generally treated as a nonresident alien for U.S. federal income tax purposes, although exceptions, elections, and tax treaty rules can change the result.
Federal tax residency is determined under tax law. Immigration classification can affect the facts used in that determination, especially when certain days of U.S. presence are excluded, but immigration status and federal tax residency are separate classifications.
Why U.S. Tax Residency Matters for Nonresidents
Tax residency affects the scope of income subject to U.S. federal tax and the return rules that may apply. A resident alien is generally taxed on worldwide income under rules similar to those that apply to U.S. citizens. A nonresident alien is generally taxed on certain U.S.-source income and income effectively connected with a U.S. trade or business.
Residency can also determine whether Form 1040 or Form 1040-NR is the relevant income tax return. Someone whose status changes during the year may instead have a dual-status tax year with different rules for the resident and nonresident portions.
The IRS classifies non-U.S. citizens as resident aliens or nonresident aliens for federal tax purposes and discusses these rules in Publication 519, U.S. Tax Guide for Aliens. The word “alien” in these rules is an IRS tax term for an individual who is not a U.S. citizen or U.S. national.
Federal Tax Residency and Immigration Status
Immigration documents can affect a person’s tax analysis without deciding it by themselves. A lawful permanent resident will usually meet the green card test. By contrast, some students, teachers, trainees, and exchange visitors can be physically present in the United States while excluding qualifying days from the substantial presence test.
A person can therefore have permission to live, study, or work in the United States and still be a nonresident alien for federal tax purposes during a particular year. The reverse issue can also arise: a person who does not hold a green card may become a resident alien after meeting the substantial presence test.
The Three Federal Tax Residency Outcomes
| Tax Classification | General Meaning | Tax Return Context |
|---|---|---|
| Nonresident alien | A person who is not a U.S. citizen or U.S. national and generally does not meet the green card test or substantial presence test for the year, unless another rule changes the classification. | Form 1040-NR may apply when a federal income tax return is required. |
| Resident alien | A non-U.S. citizen who meets the green card test or substantial presence test, subject to applicable exceptions or treaty provisions. | Resident aliens generally use Form 1040 and are generally subject to U.S. tax on worldwide income. |
| Dual-status alien | A person who is a nonresident alien for part of the year and a resident alien for another part of the same year. | Special dual-status return rules apply, and the residency starting or ending date becomes important. |
The Green Card Test
A person generally meets the green card test if they were a lawful permanent resident of the United States at any time during the calendar year. Tax residency under this test can begin on a specific date rather than automatically applying from January 1.
For example, when a person meets the green card test but not the substantial presence test, the residency starting date is generally the first day during the calendar year on which the person is present in the United States as a lawful permanent resident. Different timing rules can apply when both residency tests are met.
A person does not have to meet both the green card test and the substantial presence test. Either test can establish resident alien status under the normal federal residency rules.
The Substantial Presence Test
The substantial presence test is based on days of physical presence in the United States. In general, a person meets the test when both of the following conditions are satisfied:
- The person is present in the United States for at least 31 days during the current year.
- The weighted total for the current year and the two preceding years is at least 183 days.
The weighted calculation generally counts all qualifying days in the current year, one-third of qualifying days in the preceding year, and one-sixth of qualifying days in the second preceding year.
| Year | Days Included in the Calculation |
|---|---|
| Current year | All countable days of U.S. presence. |
| Previous year | One-third of countable U.S. days. |
| Second previous year | One-sixth of countable U.S. days. |
Earlier visits can therefore affect current-year residency. Vacation days, business trips, temporary assignments, and other physical presence from the preceding two years may need to be included unless a specific exclusion applies.
The IRS provides the test and its day-counting rules on the Substantial Presence Test page.
Days That May Be Excluded From the Presence Test
Not every day physically spent in the United States is necessarily counted for the substantial presence test. Federal law excludes certain days in defined situations.
One of the most frequently misunderstood terms is exempt individual. In this setting, “exempt” refers to exclusion of qualifying days from the substantial presence calculation. It does not mean the person is automatically exempt from U.S. income tax.
Exempt individual rules can apply to certain students, teachers, trainees, foreign government-related individuals, and professional athletes temporarily present in the United States to compete in qualifying charitable sporting events. The applicable category and time limits depend on the person’s circumstances.
Form 8843 is used by certain individuals to explain the basis for excluding days of presence. The IRS provides the current form and instructions on its Form 8843 page.
The Closer Connection Exception
Meeting the substantial presence calculation does not always result in resident alien treatment. A person who was present in the United States for fewer than 183 days during the current year may be able to remain a nonresident under the closer connection exception when the other requirements are satisfied.
The exception generally requires the person to maintain a tax home in a foreign country during the year and have a closer connection to that country than to the United States. A person who has taken certain steps toward lawful permanent resident status generally cannot use this exception.
Form 8840 is used to claim the closer connection exception. Filing deadlines matter because failure to file the form on time can prevent a person from claiming the exception unless the IRS requirements for late relief are met. The IRS explains the conditions on its Closer Connection Exception page.
Residency Starting Dates and Dual-Status Years
Passing a residency test does not always mean that resident status applies from January 1. Federal rules determine an official residency starting date, and that date can cause a person to be a nonresident for one part of the year and a resident for the remainder.
For someone who meets the substantial presence test, the residency starting date is generally the first day of physical presence in the United States during that calendar year. Special rules can change that date, including rules for certain short periods of presence and days excluded as an exempt individual.
If a person meets both the green card test and the substantial presence test during the same year, the residency starting date is generally the earlier of the applicable starting dates under the two tests.
A year containing both a resident period and a nonresident period is generally a dual-status tax year. Income can be treated differently depending on which portion of the year it belongs to. The IRS describes the timing rules on its Residency Starting and Ending Dates page.
The First-Year Choice
The first-year choice is a separate residency rule for certain people who do not meet the green card test or substantial presence test in the current year but meet the substantial presence test in the following year.
Among its requirements, the person generally must be present in the United States for at least 31 consecutive days during the current year and satisfy a separate 75% presence requirement for the period beginning with the first day of that 31-day period and ending on December 31. Other conditions also apply.
When a valid first-year choice is made, resident treatment can begin during the earlier year instead of waiting until the following calendar year. The IRS describes the election and its conditions on the Tax Residency Status — First-Year Choice page.
How Residency Changes Federal Income Tax Treatment
A resident alien is generally subject to U.S. federal income tax on worldwide income. A nonresident alien is generally taxed under narrower rules that focus on U.S.-source income and income effectively connected with a U.S. trade or business.
For nonresident aliens, two terms appear frequently:
- ECI: Effectively connected income, generally income connected with a U.S. trade or business. ECI is generally taxed on a net basis at applicable graduated rates after permitted deductions.
- FDAP: Fixed, determinable, annual, or periodical income. U.S.-source FDAP that is not effectively connected with a U.S. trade or business is generally taxed on a gross basis at 30% unless a lower treaty rate or another rule applies.
The residency determination should therefore be made before assuming that the income and filing rules for a nonresident alien continue to apply throughout the year.
Forms Connected Directly to Residency Status
| Form | Residency Connection |
|---|---|
| Form 1040-NR | Used by nonresident alien individuals when a U.S. nonresident income tax return is required. |
| Form 1040 | Generally used by resident aliens under the same basic federal return system that applies to U.S. citizens. |
| Form 8843 | Used by certain individuals to explain days excluded from the substantial presence test. |
| Form 8840 | Used to claim the closer connection exception to the substantial presence test when the requirements are met. |
Other forms may arise because of income, withholding, treaty claims, or taxpayer identification requirements, but those issues do not by themselves establish whether someone is a resident or nonresident for federal tax purposes.
Tax Treaties Can Affect Residency
An income tax treaty can affect the residency result in some cases. A person may be treated as a resident under U.S. domestic tax rules while also being treated as a resident of another country under that country’s rules. Many U.S. tax treaties contain residency tie-breaker provisions for situations involving residence in both countries.
Treaty treatment depends on the treaty text and the person’s facts. Permanent home, center of personal and economic relations, habitual abode, nationality, and other tests may appear in treaty residency provisions, although the wording differs among treaties.
Claiming foreign residence under a treaty can also create federal reporting requirements. The applicable treaty, protocol, IRS instructions, and filing year should be checked before applying a treaty residency position.
Student, Teacher, and Exchange Visitor Residency Issues
International students, teachers, trainees, and exchange visitors often encounter tax residency through the rules for excluded days. Some people in F, J, M, or Q immigration classifications may qualify as exempt individuals for a period of time, which can delay when their U.S. days begin counting toward the substantial presence test.
The applicable limits depend on whether the person is treated as a student, teacher, trainee, or another exempt category and on prior U.S. presence. A change in immigration classification can also change how later days are counted.
Once excluded-day treatment ends, qualifying U.S. days generally begin contributing to the substantial presence calculation. Someone who remained a nonresident alien for several years as a student can therefore become a resident alien for tax purposes in a later year without obtaining a green card.
Federal and State Tax Residency Are Separate
Federal nonresident alien status does not determine state residency. States can use their own definitions of resident, nonresident, and part-year resident and may apply separate domicile, presence, income-source, or filing rules.
A person can therefore be a nonresident alien for federal purposes while having a state filing obligation. Someone who moves during the year may also have different federal and state residency starting dates. The rules of each state connected to the person’s residence, work, or income should be checked separately.
Residency Rules That Can Change the Result
- Excluded days: Certain qualifying days are not counted toward the substantial presence test.
- Closer connection exception: Some people who meet the weighted presence calculation can remain nonresidents when the current-year presence and foreign-connection requirements are satisfied.
- First-year choice: A qualifying person may elect resident treatment beginning during a year before the year in which the substantial presence test is met.
- Residency starting and ending dates: Resident status can begin or end during a calendar year rather than applying for the entire year.
- Dual-status treatment: A person can be a nonresident for one portion of the year and a resident for another.
- Tax treaty residency: An applicable treaty can affect how dual residency is resolved and may change federal reporting.
Information Needed to Determine Tax Residency
| Information | Why It Matters |
|---|---|
| Lawful permanent resident status | Determines whether and when the green card test may apply. |
| U.S. arrival and departure dates | Used to calculate physical presence for the current year and the two preceding years. |
| Immigration classification during each period | Can affect whether particular days qualify for an exclusion from the substantial presence test. |
| Prior student, teacher, or trainee periods | Previous exempt individual years can affect whether later days are excluded. |
| Foreign tax home and personal connections | May be relevant to the closer connection exception or a treaty residency question. |
| Date lawful permanent resident status began or ended | Can determine the federal residency starting or ending date. |
| Tax residence in another country | May matter when an income tax treaty contains residency tie-breaker rules. |
Related Tax Residency Terms
Nonresident alien: A person who is not a U.S. citizen or U.S. national and generally does not meet the green card test or substantial presence test for the tax year, subject to other applicable rules.
Resident alien: A non-U.S. citizen treated as a U.S. resident for federal tax purposes under the green card test, substantial presence test, an election, or another applicable rule.
Dual-status alien: A person who is treated as a resident alien during one part of the tax year and a nonresident alien during another part.
Substantial presence test: A weighted day-counting test using qualifying U.S. presence during the current year and two preceding years.
Exempt individual: A person whose qualifying days may be excluded from the substantial presence test under a specific category. The term does not mean that all income is exempt from tax.
Tax home: A tax concept generally tied to the location of a person’s main place of business, employment, or post of duty and relevant to certain residency exceptions.
Educational Note
This article is for general educational information only. It is not tax, legal, financial, or immigration advice. Nonresident tax rules can depend on immigration classification, days of presence, prior U.S. travel, residency starting dates, treaty position, state law, and filing year. Readers should verify details with official sources or a qualified tax professional.
FAQ
What Is U.S. Tax Residency?
U.S. tax residency is the federal tax classification used to determine whether a non-U.S. citizen is treated as a nonresident alien, resident alien, or dual-status alien for a tax year. The green card test and substantial presence test are the two primary statutory residency tests.
Is Tax Residency the Same as Visa Status?
No. Immigration classification can affect the residency calculation, particularly when certain days are excluded from the substantial presence test, but federal tax residency is determined under federal tax rules.
Can Someone Without a Green Card Become a U.S. Tax Resident?
Yes. A person who does not have a green card can become a resident alien by meeting the substantial presence test unless an exception, treaty provision, or other applicable rule changes the result.
Does Meeting the Substantial Presence Test Always Make Someone a Resident?
No. The closer connection exception can allow certain people who meet the weighted substantial presence calculation to remain nonresidents when they spend fewer than 183 days in the United States during the current year and satisfy the other requirements. Treaty rules can also affect residency in some cases.
Does Exempt Individual Mean Exempt From U.S. Tax?
No. For the substantial presence test, exempt individual generally means that qualifying days are excluded from the residency day count. The person can still have U.S. taxable income or federal filing obligations.
Can Tax Residency Change During the Year?
Yes. A person can be a nonresident alien for part of a year and a resident alien for another part. This creates a dual-status tax year, and the applicable residency starting or ending date determines where the change occurs.
Do State Tax Rules Follow Federal Tax Residency?
Not necessarily. State residency and state-source income rules are separate from federal nonresident alien rules. A state can treat a person as a resident, part-year resident, or nonresident under its own law.
Resources Used
- IRS — Determining an Individual’s Tax Residency Status: Explains the green card test, substantial presence test, dual-status treatment, and federal residency exceptions.
- IRS — Substantial Presence Test: Provides the federal weighted day-counting formula and rules for determining physical presence.
- IRS Publication 519 — U.S. Tax Guide for Aliens: Covers resident and nonresident alien status, residency periods, exceptions, income treatment, and filing rules.
- IRS — Residency Starting and Ending Dates: Explains when federal resident alien status begins and ends under the principal residency rules.
- IRS — Closer Connection Exception to the Substantial Presence Test: Lists the requirements for qualifying as a nonresident under the closer connection rules.
- IRS — About Form 8840: Describes the form used to claim the closer connection exception.
- IRS — About Form 8843: Describes the statement used by certain individuals when excluding qualifying days of U.S. presence.
- IRS — Tax Residency Status: First-Year Choice: Explains the conditions under which resident treatment can begin during the year before the substantial presence test is met.
- IRS — Nonresident Aliens: Defines nonresident alien status and links to federal tax rules for nonresident individuals.
- IRS — Effectively Connected Income: Explains the general federal treatment of ECI for foreign persons.
- IRS — Characterization of Income of Nonresident Aliens: Explains FDAP income and its relationship to nonresident alien taxation.
- IRS — Tax Treaties: Provides U.S. income tax treaties and related federal treaty material.