What Is a Non-Resident Alien? Tests, Tax Rules, and Filing

A non-resident alien is a person who is not a U.S. citizen and who fails both IRS tests for tax residency: the Green Card Test and the Substantial Presence Test. That classification is what controls how the U.S. taxes you, and it is separate from your immigration status. Holding a valid U.S. visa does not, by itself, make you a resident for tax purposes.

The practical consequence is that a non-resident alien pays federal income tax only on U.S.-source income, files Form 1040-NR instead of Form 1040, cannot take the standard deduction, and faces a $60,000 estate tax exemption on U.S. assets rather than the multi-million-dollar exclusion available to citizens and residents.

The Two Tests That Decide Your Status

The IRS sorts every non-citizen into one of two boxes using two tests. Pass either one and you are a resident alien for that year. Fail both and you are a non-resident alien.1Internal Revenue Service. Determining an Individual’s Tax Residency Status

Green Card Test

If you were a lawful permanent resident of the United States at any point during the calendar year, you are a resident alien. That status continues until it is officially rescinded or you formally abandon it. Letting your green card expire or moving abroad does not end your U.S. tax residency on its own.

Substantial Presence Test

You can also become a resident alien through physical presence alone. You pass the Substantial Presence Test if you were in the U.S. for at least 31 days during the current year and your weighted three-year day count reaches 183. Days in the current year count in full; days in the prior year count as one-third; days from two years back count as one-sixth.2Internal Revenue Service. Substantial Presence Test

So 120 days this year, 150 last year, and 180 the year before comes to 120 + 50 + 30 = 200 days. That crosses the threshold and makes you a resident alien for the year, unless an exception applies.

Who Can Skip Days: Exempt Individuals

Some people do not count their U.S. days toward the Substantial Presence Test at all. The IRS calls them “exempt individuals,” which refers only to day-counting, not to any tax exemption. The categories are:3Internal Revenue Service. Substantial Presence Test – Section: Exempt Individual

  • Foreign government employees on an A or G visa (other than A-3 or G-5 class visas).
  • Teachers and trainees on a J or Q visa who comply with the visa terms.
  • Students on an F, J, M, or Q visa who comply with the visa terms.
  • Professional athletes temporarily in the U.S. for a charitable sports event.

The student exemption has a five-year cap. Once you have been an exempt individual for any part of more than five calendar years, your days generally start counting.4Internal Revenue Service. Exempt Individual – Who Is a Student Teachers and researchers on J visas have a shorter window. If you claim exempt-individual status, or you exclude days because of a medical condition that arose while you were already in the U.S., attach Form 8843 to your return.5Internal Revenue Service. About Form 8843, Statement for Exempt Individuals and Individuals With a Medical Condition The medical exclusion is unavailable if you came to the country for treatment, knew about the condition before arriving, or stayed longer than reasonable after recovering.6Internal Revenue Service. Form 8843 – Statement for Exempt Individuals and Individuals With a Medical Condition

The Closer Connection Exception

Even if your weighted days push you past 183, you can still be treated as a non-resident alien if all four of these are true:7Internal Revenue Service. Closer Connection Exception to the Substantial Presence Test

  • You were in the U.S. for fewer than 183 days during the current calendar year.
  • You maintained a tax home in a foreign country all year.
  • You had a closer connection to that country than to the United States.
  • You had not applied for or taken steps toward lawful permanent resident status.

To claim the exception, file Form 8840. Missing the deadline can cost you the exception unless you can show clear and convincing evidence that you took reasonable steps to comply.

How the U.S. Taxes a Non-Resident Alien’s Income

A non-resident alien owes U.S. federal income tax only on U.S.-source income. Foreign income with no U.S. connection is generally outside the U.S. tax net entirely.8Internal Revenue Service. Nonresident Aliens – Section: Tax Treatment of Nonresident Alien That is the biggest difference from a resident alien or citizen, both of whom are taxed on worldwide income.

Effectively Connected Income

Wages, salaries, self-employment earnings, and profits from a U.S. trade or business are “effectively connected income.” They are taxed at the same graduated rates that apply to citizens, and you can claim deductions against them.

Passive U.S. Income

Passive U.S. income that is not connected to a U.S. business — interest, dividends, rents, royalties, and similar payments — is generally taxed at a flat 30% on the gross amount, with no deductions. The payer usually withholds that 30% at the source. A tax treaty between the U.S. and your home country may lower the rate or eliminate it. To claim treaty benefits at the withholding stage you generally give the payer a Form W-8BEN; to claim treaty-based positions that reduce your U.S. tax on your return, attach Form 8833.9Internal Revenue Service. Claiming Tax Treaty Benefits Some states do not honor federal tax treaties.

Bank Interest Is Usually Exempt

Interest on deposits at U.S. banks, savings institutions, and certain insurance companies is generally not taxable to non-resident aliens, provided the interest is not connected to a U.S. business.10Office of the Law Revision Counsel. 26 U.S. Code 871 – Tax on Nonresident Alien Individuals

No Standard Deduction

Non-resident aliens cannot take the standard deduction on Form 1040-NR. Itemizing is your only route. The one carve-out is for students and business apprentices from India, who may qualify for the standard deduction under the U.S.–India treaty.11Internal Revenue Service. Nonresident — Figuring Your Tax

Social Security and Medicare for Student Visa Holders

Non-resident alien students on F-1, J-1, or M-1 visas who have been in the U.S. for fewer than five calendar years are generally exempt from Social Security and Medicare tax on wages from qualifying employment. Qualifying work includes on-campus jobs (up to 20 hours per week during the school year, 40 during summer) and USCIS-authorized off-campus work such as practical training.12Internal Revenue Service. Foreign Student Liability for Social Security and Medicare Taxes

The exemption does not cover F-2, J-2, or M-2 dependents, and it ends when you change to a non-exempt status or become a resident alien. If an employer withholds FICA in error, ask the employer for a refund first. If that does not resolve it, file Form 843 with the IRS along with copies of your W-2 and visa documents.13Internal Revenue Service. Social Security Tax/Medicare Tax and Self-Employment

Filing: Form, Deadline, and Taxpayer ID

Non-resident aliens report U.S.-source income on Form 1040-NR. You are required to file even if a treaty makes all your income exempt or no tax is owed, and you should file to claim a refund of over-withheld tax.14Internal Revenue Service. Instructions for Form 1040-NR

The deadline depends on what you earned. If you had U.S. wages subject to income tax withholding, the return is due April 15. If you did not, the return is due the 15th day of the sixth month after your tax year ends, which is June 15 for calendar-year filers.

If you are not eligible for a Social Security number, you will need an Individual Taxpayer Identification Number (ITIN) to file. Non-resident aliens holding a U.S. work visa generally qualify for an SSN and do not need an ITIN.15Internal Revenue Service. Individual Taxpayer Identification Number (ITIN)

Departure Permits

A non-resident alien who does not fall into a specific exempt category is technically required to obtain a departure or sailing permit before leaving the U.S. You get one by filing Form 2063 (no taxable income) or Form 1040-C (taxable income) at a local IRS Taxpayer Assistance Center. Exempt from this requirement are students and trainees on F, J, M, or Q visas with no U.S.-source income beyond limited exceptions, foreign government employees with exempt compensation, and Canadian or Mexican residents who commute to the U.S. for work.16Internal Revenue Service. Topic No. 858, Alien Tax Clearance

The Year You Arrive or Leave: Dual Status

The year you arrive in or leave the United States often splits into two tax periods, part non-resident and part resident. The IRS calls this a dual-status tax year, and it has its own rules and restrictions.17Internal Revenue Service. Publication 519, U.S. Tax Guide for Aliens During the resident portion you are taxed on worldwide income; during the non-resident portion you are taxed only on U.S.-source income and foreign income connected to a U.S. business.

Dual-status taxpayers cannot claim the standard deduction, cannot file as head of household, and cannot file a joint return.18Internal Revenue Service. Taxation of Dual-Status Individuals A married couple can avoid dual-status treatment by electing to treat the non-resident spouse as a resident for the full year, but that election means being taxed on worldwide income.

Estate and Gift Tax: The Big Trap

This is where being a non-resident alien costs the most. In 2026, a U.S. citizen or resident can pass up to $15,000,000 in assets free of federal estate tax.19Internal Revenue Service. What’s New — Estate and Gift Tax A non-resident alien who is not a U.S. citizen gets a $60,000 exemption.20Internal Revenue Service. Frequently Asked Questions on Estate Taxes for Nonresidents Not Citizens of the United States U.S.-situated assets above that threshold face federal estate tax at rates up to 40%.

The tax reaches only property considered “situated” in the United States: U.S. real estate, tangible personal property physically here, stock in U.S. corporations, and certain U.S. debt obligations.21Office of the Law Revision Counsel. 26 U.S. Code 2104 – Property Within the United States A non-resident alien who owns a $500,000 U.S. condo and holds $200,000 in U.S. stock could have a taxable estate of $640,000 after the $60,000 exemption. Some estate tax treaties allow a proportional credit tied to the full U.S. citizen exclusion, so check whether your country has one.22Office of the Law Revision Counsel. 26 USC 2102 – Credits Against Tax

Gift Tax

For gifts of U.S.-situated property, non-resident aliens get the same $19,000 annual per-recipient exclusion in 2026 that applies to citizens. Give more than that in present-interest gifts to any single person other than your spouse and you must file Form 709-NA.23Internal Revenue Service. Frequently Asked Questions on Gift Taxes for Nonresidents Not Citizens of the United States Gifts to a non-citizen spouse get a higher annual exclusion of $194,000 for 2026, in place of the unlimited marital deduction available between two U.S. citizens. Exceeding that threshold also triggers the Form 709-NA filing requirement.

Noncompliance with U.S. tax filing obligations can result in penalties and may affect future visa applications or immigration status. The IRS and USCIS do not operate in complete isolation, and a record of noncompliance tends to surface at the worst possible moment.