Your residency status is the legal classification a government uses to decide how it taxes you, whether you can live and work in its territory, and what obligations you owe it. The confusing part is that “resident” is not one label. Federal tax law, U.S. immigration law, and state law each define the term using their own criteria, and the definitions don’t line up. You can be a lawful permanent resident for immigration purposes and still a nonresident for a state’s tax rules, or a tax resident of two states at once. Understanding your residency status means answering the question separately in each system that applies to you.
Federal Tax Residency
For federal income tax, the IRS sorts every individual into one of three buckets: U.S. citizen, resident alien, or nonresident alien. The stakes are significant. Resident aliens owe U.S. tax on their worldwide income, the same as citizens. Nonresident aliens generally owe tax only on income from U.S. sources. Two tests in the Internal Revenue Code decide which bucket a noncitizen falls into.1Office of the Law Revision Counsel. 26 US Code 7701 – Definitions
The Green Card Test
If you were granted lawful permanent residence at any point during the calendar year, you are a resident alien for tax purposes for that entire year. The number of days you actually spent inside the country is irrelevant. Once you hold a green card, worldwide income reporting follows.
The Substantial Presence Test
The second test uses a weighted formula across a three-year window. You meet it if you were physically present in the U.S. for at least 31 days during the current year and the following calculation adds up to 183 days or more:1Office of the Law Revision Counsel. 26 US Code 7701 – Definitions
- Every day of presence in the current year counts as a full day.
- Each day in the first preceding year counts as one-third of a day.
- Each day in the second preceding year counts as one-sixth of a day.
Roughly 120 days a year in the U.S. for three consecutive years is enough to cross the line. Frequent travelers often don’t notice until the IRS treats them as a resident. Keep a travel log with exact entry and departure dates.
Exceptions That Can Preserve Nonresident Status
Meeting 183 weighted days does not automatically make you a resident alien. Several exceptions exist, but each requires paperwork filed on time.
Foreign students on F or J visas can exclude their days of presence for up to five calendar years. Teachers and trainees on J visas can generally exclude days for up to two calendar years, with an extension to four under certain conditions.2Internal Revenue Service. Taxation of Alien Individuals by Immigration Status – J-1 Claiming exempt-individual status means filing Form 8843 with the IRS every year, even if you owe no tax and would not otherwise file a return.3IRS. Statement for Exempt Individuals and Individuals With a Medical Condition – Form 8843 Students who have been here for years without hearing of Form 8843 have technically never claimed the exemption.
The closer connection exception is available if you were present in the U.S. fewer than 183 days in the current year, still meet the weighted three-year formula, and maintained a tax home in a foreign country to which you have closer ties. The IRS weighs factors such as where your permanent home is, where your family lives, where you vote, where your driver’s license was issued, and where you do your banking. You cannot claim it if you have applied for a green card or have a pending adjustment-of-status application. You claim it by filing Form 8840 by the due date of your return; missing the deadline forfeits the exception unless you can show by clear and convincing evidence that you took reasonable steps to comply.4Internal Revenue Service. Closer Connection Exception to the Substantial Presence Test
If you qualify as a tax resident of both the U.S. and a treaty partner country, many bilateral treaties include a tie-breaker provision that assigns you to one country. The analysis usually runs through where you have a permanent home, where your personal and economic ties are strongest, where you habitually live, and finally your nationality. Claiming treaty tie-breaker status requires Form 8833 with your return, and it affects treaty benefits rather than your underlying U.S. filing obligation.
Dual-Status Years
The year you arrive in or permanently leave the U.S. often splits: nonresident for part of the year, resident for the rest. The IRS calls this a dual-status year. For the resident portion, worldwide income is taxable; for the nonresident portion, only U.S.-source income.5Internal Revenue Service. Taxation of Dual-Status Individuals
Dual-status returns come with real restrictions. You cannot claim the standard deduction, so you must itemize. You generally cannot file jointly with a spouse, though a joint election is available if your spouse is a U.S. citizen or resident. If you are a resident on the last day of the year, the main form is 1040 with “Dual-Status Return” written across the top and a 1040-NR attached as a statement for the nonresident portion. If you are a nonresident on December 31, the primary form is 1040-NR instead.5Internal Revenue Service. Taxation of Dual-Status Individuals
What Comes With Becoming a Tax Resident
The moment you become a U.S. tax resident, foreign account reporting rules apply to you the same way they apply to citizens. If your financial accounts outside the United States had an aggregate value exceeding $10,000 at any point during the year, you must file an FBAR electronically through FinCEN. The deadline is April 15, with an automatic extension to October 15.6Internal Revenue Service. Report of Foreign Bank and Financial Accounts (FBAR)
A separate FATCA rule requires Form 8938 with your tax return if your specified foreign financial assets exceed $50,000 on the last day of the year or $75,000 at any point during the year, for unmarried filers living in the U.S.7Internal Revenue Service. Do I Need to File Form 8938, Statement of Specified Foreign Financial Assets The FBAR and Form 8938 are not interchangeable, and you may owe both. Penalties reach $10,000 or more per violation for non-willful failures, with much higher penalties for willful noncompliance.
Immigration Residency Status
Immigration law draws its own lines, separate from the tax code. The categories sit in the Immigration and Nationality Act, which defines who may enter, stay, and work in the country.8Office of the Law Revision Counsel. 8 USC 1101 – Definitions
Lawful permanent residents hold the right to live and work in the U.S. indefinitely. They carry a green card and can eventually apply for citizenship. Permanent residents still need to keep genuine ties to the country; spending too many years abroad without a reentry permit can result in abandonment of status.
Conditional residents receive permanent residence on a two-year probationary basis, most commonly because they obtained their green card through marriage to a U.S. citizen. During the 90-day window before the second anniversary of receiving conditional status, the couple must jointly file a petition to remove the conditions. Failing to file within that window results in automatic termination of status.9Office of the Law Revision Counsel. 8 USC 1186a – Conditional Permanent Resident Status for Certain Alien Spouses and Sons and Daughters
Nonimmigrants hold temporary visas tied to a specific purpose: work, study, cultural exchange, tourism, or business. Each visa class carries its own rules about how long you can stay, whether you can work, and whether you can change employers. Switching between visa categories or overstaying the authorized period can cost you status and, in some cases, the ability to return.
Unlawful Presence and Reentry Bars
Overstaying a visa or otherwise being present without authorization carries escalating consequences based on how long the unlawful presence lasts:10U.S. Citizenship and Immigration Services (USCIS). Unlawful Presence and Inadmissibility
- More than 180 days but less than one year: leaving voluntarily before removal proceedings begin triggers a three-year bar on reentry.
- One year or more: a ten-year bar on reentry after departure or removal.
- One year or more of unlawful presence, followed by an illegal reentry or attempted reentry: permanent inadmissibility.
The bars run from the date of departure, not from when the unlawful presence started. Waivers exist for some situations, but the standard is high and processing is slow. The permanent bar has no automatic waiver.
State Residency and Domicile
States draw their own residency lines for income tax, voting, and tuition. Most treat you as a tax resident if you spend more than half the year within their borders, but the precise formula varies. Physical presence is often not the only test. States also look at where your strongest personal and financial connections sit.
The important distinction is between residence and domicile. You can hold residences in multiple states at the same time. You can only hold one domicile: the place you consider your permanent home and intend to return to after any absence. Courts and tax agencies evaluate domicile by looking at where you registered your car, where you vote, where you hold your driver’s license, where your bank accounts sit, and where you keep professional licenses or insurance policies.
Domicile is where most multi-state tax fights happen. If you split time between two states, both may claim you as a resident, and you may end up paying tax to both and then claiming credits to offset the double taxation. Some states audit more aggressively than others. The cleanest way to establish domicile is to concentrate as many objective indicators as possible in one state: voter registration, vehicle registration, driver’s license, bank accounts, and the address on your federal return.
Domicile also drives eligibility for in-state tuition at public universities. Most schools require at least 12 months of physical presence combined with proof that you intend to remain permanently rather than only for school. Requirements vary, and some university systems apply the residency question more strictly than the state tax agency does.
How the Three Systems Fit Together
The three residency systems are independent, and answers in one do not answer the other two. A green card holder is automatically a federal resident alien for tax purposes and owes tax on worldwide income, but whether any given state treats them as a resident depends on days of presence and domicile in that state. A student on an F-1 visa may be a nonresident alien for federal tax purposes for five years while still building a state residency claim for tuition purposes. Someone on a work visa may become a federal tax resident under the substantial presence test long before their immigration status changes.
The practical upshot is to answer the residency question three times: once for federal tax, once for immigration, and once for each state that might have a claim on you. The forms and deadlines flow from the answers. Resident aliens generally file Form 1040 and provide Form W-9 to payers who need a taxpayer identification number.11Internal Revenue Service. About Form W-9, Request for Taxpayer Identification Number and Certification Nonresident aliens file Form 1040-NR, provide Form W-8BEN to certify foreign status for passive U.S.-source income,12Internal Revenue Service. Instructions for the Requester of Form W-9 and use Form 8233 to claim a treaty exemption from withholding on personal services income.13Internal Revenue Service. Form 8233 – Exemption From Withholding on Compensation for Independent and Certain Dependent Personal Services of a Nonresident Alien Individual Foreign students, teachers, and trainees claiming exempt-individual status file Form 8843 every year, even without U.S. income.3IRS. Statement for Exempt Individuals and Individuals With a Medical Condition – Form 8843 Individuals who need to file a return but cannot get a Social Security Number apply for an ITIN on Form W-7.14IRS.gov. Instructions for Form W-7
If any of the three answers is close to a line, document it. Keep a travel log, keep the paperwork for exempt-individual and closer-connection claims, and concentrate your objective ties in a single state. The cost of getting a residency status wrong is back taxes, penalties, or bars on returning to the country, and each system has its own way of collecting.