This article is provided for educational and informational purposes only. It does not constitute legal, financial, or tax advice, and no attorney-client relationship is formed by reading it. Laws, regulations, official guidance, and related information vary by jurisdiction, change frequently, and may have changed or become outdated since publication. Always verify current information with authoritative sources and consult a qualified professional about your specific circumstances. The author and publisher assume no liability for actions taken based on this information.
- Tax residency starts with the green card and presence tests
- An “exempt individual” is not necessarily exempt from tax
- The closer-connection exception has limits
- Treaties and elections can change the starting result
- A year can contain both resident and nonresident periods
- Income character determines how the nonresident rules apply
- Who files Form 1040-NR, and when?
- W-8BEN addresses withholding, not annual filing
- Records that make the classification workable
- Sources
Key Facts
- Federal income tax: A nonresident alien is generally an individual who is neither a U.S. citizen nor a U.S. resident under the federal tax-residency rules.
- Day counting: The substantial presence test requires at least 31 days in the current year and a weighted total of at least 183 days across the current and two preceding years.
- Different tax treatment: Effectively connected income and certain other U.S.-source income follow different tax rules.
- Filing: A nonresident alien engaged in a U.S. trade or business generally must file Form 1040-NR even if no tax is ultimately due.
- Separate documents: Form W-8BEN is a withholding certificate; it does not replace an income-tax return.
A nonresident alien is a person whose U.S. federal income-tax treatment follows the nonresident rules rather than the resident rules. The starting definition is an individual who is neither a U.S. citizen nor a resident under the tax code’s residency provisions.
The classification answers a tax question. This guide addresses federal income tax, not permission to enter, work, or remain in the country, and it does not determine state tax residency or estate-tax domicile.
Tax residency starts with the green card and presence tests
Under the green card test, lawful permanent residence generally makes a noncitizen a U.S. resident for tax purposes, subject to the rules for residency dates and treaty treatment. The statute looks to whether that immigration status has been revoked or administratively or judicially determined to have been abandoned, rather than merely whether a physical card is expired.
The green card overview explains the immigration status itself. For income tax, the presence test creates a separate route to resident treatment even without a green card.
The substantial presence test requires both at least 31 days of U.S. presence in the current calendar year and at least 183 days under a weighted calculation. Count 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.
The weighted total can therefore reach the threshold even when current-year presence is below 183 days. Ordinarily, being physically present for any part of a day counts, but specific exclusions can remove days from the calculation.
An “exempt individual” is not necessarily exempt from tax
Certain students, teachers or trainees, foreign government-related individuals, and athletes competing in qualifying charitable events can exclude days under the exempt-individual rules. This exclusion concerns the residency calculation, not a blanket exemption for their income.
For students, the statute identifies qualifying F, J, M, and Q categories and requires substantial compliance with the conditions of that presence. After five calendar years counted as an exempt student, teacher, or trainee, a student generally needs to establish no intent to reside permanently and continued compliance to keep the student exclusion.
Other exclusions can apply to regular commuters from Canada or Mexico, qualifying transit of less than 24 hours between foreign points, and a medical condition arising during the U.S. stay that prevents departure. Each exclusion has its own conditions; it is not enough simply to describe a visit as temporary.
The IRS uses Form 8843 to report specified excluded-day categories, including qualifying students, teachers or trainees, charitable-event athletes, and certain medical circumstances. Form 8843 can be needed even when there is no income-tax return to file.
The closer-connection exception has limits
A person who otherwise meets the substantial presence calculation may qualify for the closer-connection exception when present for fewer than 183 days in the current year, maintaining a foreign tax home, and having a closer connection to that foreign country. This exception does not apply if an adjustment-of-status application was pending or the person took other steps to apply for lawful permanent residence during that year.
The IRS’s closer-connection reporting form is Form 8840. Its instructions should be checked alongside the supporting facts rather than assuming that a foreign address alone establishes the exception.
Treaties and elections can change the starting result
A person treated as resident by both countries’ domestic laws may be able to use an applicable income-tax treaty’s residence tie-breaker. When the treaty rules assign residence to the foreign country and the person claims the relevant benefit, the regulation generally treats that person as a nonresident for computing U.S. income-tax liability.
That treatment does not generally turn the person into a nonresident for every other tax-code purpose. The treaty-residency procedure calls for Form 1040-NR with Form 8833 disclosure.
The tax code also permits a first-year residency election for certain people who do not otherwise meet the green card or substantial presence test in that year but meet specified presence conditions and the substantial presence test in the next year. It is an election with eligibility and timing requirements, not an automatic choice available to every new arrival.
A separate election can apply when a nonresident spouse is married to a U.S. citizen or resident at year-end and both spouses choose resident treatment. That election generally brings worldwide income into the U.S. income-tax calculation and can continue into later years until terminated under the statutory rules.
Marriage does not itself settle the election or reporting decision. The related guide on spouses and federal tax filing explains a different issue that should not be confused with residency.
A year can contain both resident and nonresident periods
When residency begins or ends, a person may have a dual-status year. The tax code supplies starting and ending rules, so the relevant tax date is not necessarily the date someone chooses to describe as a move.
For a person required to file who is resident at year-end, the regulations generally call for Form 1040 with a statement covering the nonresident period. For a person who ends the year as a nonresident after abandoning U.S. residence, the general rule is Form 1040-NR with a statement covering the resident period, subject to the applicable election rules.
Income character determines how the nonresident rules apply
Effectively connected income, usually called ECI, is generally taxed at graduated rates on taxable income after allowable deductions. Certain U.S.-source income that is not effectively connected, including covered dividends, rents, and other fixed or determinable annual or periodical income, is generally taxed at 30% of the gross amount unless an exemption or applicable treaty reduces the tax.
The same taxpayer can have income in both categories. A salary, dividend, rental payment, or capital gain must be classified under its own sourcing and tax rules rather than taxed solely by reference to the person’s residency label.
Not every investment payment is subject to the general 30% rule. The statute excludes qualifying portfolio interest and certain deposit interest when the applicable conditions are met.
Capital gains have a separate rule involving 183 days of actual presence during the tax year. That is different from the weighted substantial presence calculation used to determine residency.
U.S. real-property income can involve another choice: section 871(d) allows an eligible nonresident to elect effectively connected treatment for the covered income. The election can continue for later years and should be evaluated as a separate tax decision.
Who files Form 1040-NR, and when?
A nonresident alien engaged in a U.S. trade or business generally must file Form 1040-NR even without effectively connected income, U.S.-source income, or tax due on treaty-exempt income. The filing requirement is therefore not simply a test of whether a payment is taxable.
For someone not engaged in a U.S. trade or business, a return generally is unnecessary if the tax liability is fully satisfied through withholding, subject to exceptions. A return is still used to claim a refund of overpaid tax, and special taxes or other filing circumstances can create a separate requirement.
For a calendar-year nonresident individual whose wages are subject to U.S. income-tax withholding, the ordinary return deadline is April 15 of the following year. For a nonresident individual without those wages, the ordinary deadline is June 15 of the following year, with weekend, holiday, extension, or relief rules potentially affecting the applicable date.
The office-or-place-of-business distinction in the same statute concerns foreign corporations; it should not be imported into the individual’s wage-withholding deadline rule. Use the instructions for the particular tax year rather than a deadline copied from a different type of return.
W-8BEN addresses withholding, not annual filing
An individual beneficial owner generally gives Form W-8BEN to the withholding agent or payer to document foreign status and, when applicable, claim treaty withholding benefits. The IRS instructions say to give it to the requester rather than send it to the IRS.
The appropriate certificate depends on the income and recipient. For example, effectively connected income and payments to an entity can require different forms, and a certificate does not eliminate an otherwise applicable Form 1040-NR filing duty.
Records that make the classification workable
A useful review starts with the immigration-status history, a day-by-day presence record, the grounds for excluding any days, and the relevant foreign tax-home facts. It then separates each income item, withholding record, treaty position, and election before selecting the return.
The main distinction is between residency, income treatment, withholding, and filing. Resolving one does not automatically resolve the others, especially in a year involving a move, a treaty claim, or a spouse’s residency election.
Sources
- 26 U.S.C. § 7701(b): tax residency definitions and tests
- 26 U.S.C. § 871: nonresident income taxation
- 26 U.S.C. § 6013: spousal residency elections
- 26 U.S.C. § 6072: return deadlines
- 26 C.F.R. § 1.6012-1: individual return requirements
- IRS Publication 519 (2025): U.S. Tax Guide for Aliens
- IRS Instructions for Form 1040-NR (2025)
- IRS Instructions for Form W-8BEN
- 26 C.F.R. § 1.1441-1: foreign-status withholding certificates
- 26 C.F.R. § 301.7701(b)-7: treaty residency coordination