You are a resident alien for U.S. federal income tax purposes if you meet the green-card test (you are a lawful permanent resident at any point during the year) or the substantial presence test, unless an exempt-individual rule, a treaty tie-breaker, or an election applies; otherwise you are a nonresident alien, and the distinction matters because the two are taxed on completely different bases.
For the November 13, 2026 reference date, all tests below are applied to calendar year 2026 using the standard counting rules. Nothing here is individualized advice; confirm your facts against the current IRS Publication 519 and the instructions for Form 1040-NR or Form 1040 before filing.
The two independent gateways to resident status
U.S. tax law does not use immigration status ("resident" on a visa stamp, green card pending, "nonimmigrant intent") as the test. It uses two statutory gateways, and passing either one makes you a resident alien for tax purposes.
Green-card test. If you are a lawful permanent resident of the United States at any time during the calendar year—typically because you hold an I-551 (green card) or a pending adjustment that has been approved—you are a resident alien for that year. The test looks at the year, not the number of days. A green card abandoned or administratively terminated during the year can end resident status, but the timing and the administrative or judicial action matter; this is one of the genuinely ambiguous areas.
Substantial presence test (SPT). If you were physically present in the United States on at least 31 days during the current year, and the weighted total of days reaches 183, you are a resident alien—counting all days in the current year, one-third of days in the prior year, and one-sixth of days in the year before that. The formula for 2026 is:
All 2026 days + (1/3 × 2025 days) + (1/6 × 2024 days) ≥ 183
A concrete example: 120 days in 2026, 120 in 2025, and 120 in 2024 gives 120 + 40 + 20 = 180, short of 183, so no residency under the SPT on those numbers alone—even though the raw day count (360) looks high. Change 2024 to 200 days and the total becomes 120 + 40 + 33.3 = 193.3, which meets the test.
The 31-day floor is a separate gate: someone present 20 days in 2026 cannot be an SPT resident no matter how many days they had in prior years.
Why "exempt individual" changes the arithmetic
Certain people are exempt individuals for the SPT: foreign-government-related individuals (A and G visa holders, generally), teachers and trainees (J and Q visa holders) in their first years, and students (F, J, M, and Q visa holders) in the years the rules allow. Their days of presence generally do not count toward the 183-day weighted total.
This is where most confusion arises. "Exempt individual" does not mean exempt from tax. It means exempt from counting days for the SPT. A student on an F-1 visa may be a nonresident alien for several years precisely because their presence days are excluded—and then the exclusion window closes, and the same person can become a resident under the SPT in a later year without changing visa status.
The teacher/trainee window and the student window are bounded by statute and regulation, not open-ended. The precise number of years depends on the category and on the current version of the rules; that is a fact to verify each filing season, not a figure to assume.
The "closer connection" exception and the treaty tie-breaker
Two separate escape hatches exist, and they are not the same.
Closer connection exception. If you were present fewer than 183 days in the current year, you maintain a tax home in a foreign country, and you have a closer connection to that country than to the United States, you can be treated as a nonresident alien despite meeting the SPT—provided you file the required statement. This exception is unavailable to green-card holders.
Treaty tie-breaker. If you are a resident of both the United States and a treaty country under each country's domestic rules, an applicable income tax treaty's tie-breaker article (typically residence, permanent home, center of vital interests) can determine which country treats you as resident for treaty purposes. A treaty-based return position generally requires disclosure on the appropriate form. Treaties differ; not every treaty has the same tie-breaker structure, and some categories of income are carved out.
The first-year choice and the residency starting date
If you do not meet the SPT in the current year but will meet it in the following year, the first-year choice lets you elect to be treated as a resident for the part of the current year beginning with your first day of U.S. presence, if you meet the conditions (including a minimum period of continuous presence after that date and meeting the SPT in the following year). The election is made on a statement attached to your return. It is a timing/reporting mechanism, not a status change: it affects which return you file for that first year and how the residency starting date is fixed.
Why the distinction has real consequences
The two categories are taxed on different bases:
Resident aliens are taxed on worldwide income, generally using the same graduated rates and standard deduction as U.S. citizens, and can be claimed as dependents or claim dependents under the usual rules. Nonresident aliens are taxed on U.S.-source income and certain other categories, generally at graduated or flat rates depending on the income type, often with 30% withholding on fixed or determinable annual or periodical (FDAP) income such as certain dividends, interest, and royalties, reduced by treaty where applicable. They generally cannot claim the standard deduction, and they file Form 1040-NR. FICA (Social Security and Medicare): nonresident students and certain other nonresident aliens are often exempt from FICA on wages for services performed in the United States, while resident aliens generally are not. Dependents and credits: the treatment of a spouse and children, the child tax credit, and the earned income credit differs sharply between the two categories.
A common scenario: a foreign student on an F-1 visa works on campus, receives a W-2, and assumes that because taxes were withheld they are "a resident." In fact, their presence days may be excluded and they may be a nonresident alien filing Form 1040-NR—or, in a later year, they may have crossed into resident status and should be filing Form 1040. The withholding form (W-4 versus W-4NR) and the return form should match the actual status, and mismatches are a frequent source of IRS correspondence.
The date you became a resident (or ceased to be one)
Residency is not always all-or-nothing for the whole year. Under the SPT, your residency starting date is generally the first day of the current year on which you are present and the weighted count reaches 183; days before that can be nonresident days. If you cease to be a resident (for example, you abandon your green card or your presence drops below the threshold and no exception keeps you resident), you can have a residency termination date. This produces dual-status years in some cases, with different rules for each portion of the year—an advanced topic that often requires professional help.
What is unknown here and what you should check
Several facts would change the answer and are not in the query:
Your visa category and immigration status, including whether a green card was ever issued or is pending. Your exact day counts for 2026, 2025, and 2024, including partial days and days in transit. Whether any exempt-individual years apply and how many have been used. Your country of tax residence and whether a treaty applies. Whether you made any election (first-year choice, treaty position) in a prior year.
Because the reference date is November 13, 2026, and the year is not over, a day count for 2026 is necessarily provisional. The SPT is applied to the full calendar year, so an answer computed mid-year can change by December 31. That is a real ambiguity, not a technicality.
For the general rule: start with the green-card test; if that fails, compute the SPT with exempt-individual exclusions; if the SPT is met, check the closer-connection exception and any treaty tie-breaker; then confirm the residency starting date and the correct return form. Those steps resolve the large majority of cases, and the remaining edge cases are the ones that call for a qualified tax professional who can see your documents and day records.
This is general tax education, not individual tax, legal, or financial advice. Residency determinations turn on your specific immigration documents, travel records, and treaty facts; consult a qualified U.S. tax professional or the IRS directly (Publication 519 and the Form 1040-NR instructions are the starting references) before filing.