A resident alien pays U.S. tax on worldwide income and files the same Form 1040 as a U.S. citizen, while a nonresident alien pays U.S. tax only on U.S.-source income, files Form 1040-NR, and loses access to most deductions and credits. The practical difference between a resident alien vs. a nonresident alien comes down to two IRS tests, and your immigration visa does not decide the answer. An H-1B worker can be a resident alien after one year in the country; a student on an F-1 visa can remain a nonresident alien for five.
Which One Are You
The IRS uses two tests to decide whether you are a resident alien for tax purposes. You only need to pass one.
The Green Card Test
If you hold a lawful permanent resident card (Form I-551), you are a resident alien, period. Time spent in the country does not matter. Your residency starts on the first day you are physically present in the U.S. as a green card holder, or if USCIS approved the card while you were abroad, on the first day you enter the country after receiving it.1Internal Revenue Service. Residency Starting and Ending Dates You remain a resident alien until you surrender the card to USCIS, have it administratively revoked, or have it judicially revoked by a federal court.2Internal Revenue Service. U.S. Tax Residency – Green Card Test
The Substantial Presence Test
Without a green card, you become a resident alien if you are physically present in the U.S. for at least 31 days during the current calendar year and at least 183 days over a three-year window. The 183-day count uses a weighted formula: all your days in the current year, plus one-third of your days in the prior year, plus one-sixth of your days the year before that.3Internal Revenue Service. Determining an Individual’s Tax Residency Status
Some people do not count their days of presence at all, even while living in the country. The excluded group includes diplomats and employees of international organizations on A or G visas, teachers and trainees on J or Q visas, students on F, J, M, or Q visas, and individuals unable to leave because of a medical condition that arose while here.3Internal Revenue Service. Determining an Individual’s Tax Residency Status
The student and teacher exemptions have time limits. F-1 students are generally treated as nonresident aliens for their first five calendar years in the U.S., and J-1 non-students for their first two years. After those windows close, days start counting and resident status can follow quickly.3Internal Revenue Service. Determining an Individual’s Tax Residency Status
The Closer Connection Escape Hatch
Passing the substantial presence test does not always lock you into resident status. If you were in the U.S. for fewer than 183 days during the current year, maintained a tax home in a foreign country for the full year, and have not applied for a green card, you can claim a “closer connection” to that country and remain a nonresident alien. The IRS looks at where your permanent home, family, belongings, bank accounts, driver’s license, and voting registration sit. You claim the exception by filing Form 8840 with your return.4Internal Revenue Service. Closer Connection Exception to the Substantial Presence Test
What Gets Taxed, and How
The single biggest difference between the two statuses is the scope of what you owe tax on.
Worldwide vs. U.S.-Source Income
Resident aliens report and pay tax on worldwide income, exactly like U.S. citizens. Wages, interest, dividends, rental income from anywhere in the world — all of it lands on your return. Nonresident aliens owe U.S. tax only on income from U.S. sources and income effectively connected with a U.S. trade or business.5Internal Revenue Service. Publication 519 (2025), U.S. Tax Guide for Aliens Foreign bank interest, overseas rental properties, and investments held outside the U.S. generally fall outside the net for nonresident aliens.
Forms, Deductions, and Credits
Resident aliens file Form 1040 and qualify for the same deductions and credits as U.S. citizens. Nonresident aliens file Form 1040-NR.6Internal Revenue Service. Alien Taxation – Certain Essential Concepts
The deductions gap is where classification bites hardest. Nonresident aliens generally cannot claim the standard deduction. The exceptions are nonresident aliens who elect to file jointly with a U.S. citizen or resident spouse, and students or business apprentices from India who qualify under the U.S.-India tax treaty.7Internal Revenue Service. Topic No. 551, Standard Deduction Itemized deductions are available only when connected to income effectively connected with a U.S. trade or business.5Internal Revenue Service. Publication 519 (2025), U.S. Tax Guide for Aliens
Credits are similarly restricted. Nonresident aliens are generally ineligible for education credits and the earned income credit. The child and dependent care credit is available only when the nonresident alien files jointly with a U.S. citizen or resident spouse.5Internal Revenue Service. Publication 519 (2025), U.S. Tax Guide for Aliens
Withholding
Most U.S.-source income paid to a nonresident alien that is not connected with a U.S. trade or business faces a flat 30% withholding rate. That covers interest, dividends, rents, royalties, and other fixed or periodic payments.8Internal Revenue Service. NRA Withholding Tax treaties often reduce or eliminate this rate for specific income types. Resident aliens have taxes withheld from wages the same way U.S. citizens do, through the standard Form W-4 system.
Capital Gains
Capital gains is one area where nonresident aliens can come out ahead. If you are a nonresident alien without a U.S. tax home and you are present for fewer than 183 days during the tax year, capital gains from U.S. stocks and securities are generally treated as foreign-source income and not taxed by the U.S. at all. Present for 183 days or more in the tax year, however, and a flat 30% tax applies to U.S.-source capital gains. This 183-day count is a separate calculation from the substantial presence test and uses different rules.9Internal Revenue Service. The Taxation of Capital Gains of Nonresident Students, Scholars, and Employees of Foreign Governments Resident aliens pay capital gains tax on worldwide gains at the regular graduated rates, with preferential rates for long-term holdings.
Social Security and Medicare for Students
Nonresident alien students on F-1, J-1, or M-1 visas are generally exempt from Social Security and Medicare taxes on wages earned in the U.S., provided they have been in the country fewer than five calendar years and the work is USCIS-authorized and tied to the purpose of the visa. The exemption covers on-campus employment of up to 20 hours per week during the school year (40 hours during summer) and USCIS-authorized practical training.10Internal Revenue Service. Foreign Student Liability for Social Security and Medicare Taxes
Spouses and dependents on F-2, J-2, or M-2 visas do not qualify. The exemption also ends when the student shifts to a non-exempt immigration status or becomes a resident alien.10Internal Revenue Service. Foreign Student Liability for Social Security and Medicare Taxes
Estate Tax: The Biggest Gap
The estate tax difference between the two statuses is enormous. U.S. citizens and resident aliens receive a basic exclusion of $15,000,000 for 2026, meaning no estate tax is owed below that amount.11Internal Revenue Service. What’s New – Estate and Gift Tax Nonresident aliens who are not U.S. citizens get only a $60,000 exemption on U.S.-situated assets, and the estate must file Form 706-NA if those U.S. assets exceed that threshold.12Internal Revenue Service. Some Nonresidents With U.S. Assets Must File Estate Tax Returns U.S.-situated assets include real estate, tangible personal property located in the U.S., and shares in U.S. corporations. For a nonresident alien holding significant U.S. investments, almost everything above $60,000 can face estate tax.
Foreign Account Reporting
Resident aliens carry the same foreign account reporting duties as U.S. citizens. If your foreign bank or financial accounts exceed $10,000 in combined value at any point during the year, you must file FinCEN Form 114, the Report of Foreign Bank and Financial Accounts (the FBAR). Nonresident aliens are not U.S. persons for FBAR purposes and do not file.13Internal Revenue Service. Comparison of Form 8938 and FBAR Requirements
Resident aliens may also need to file Form 8938 (Statement of Specified Foreign Financial Assets) if their foreign financial assets exceed separate, higher thresholds. Becoming a resident alien triggers reporting obligations that did not exist before, and the penalties for missing them are steep.
Tax Treaties and the Nonresident Spouse Election
Nonresident aliens from countries with U.S. income tax treaties can often reduce or eliminate U.S. tax on certain income. Treaties commonly cut withholding rates on interest, dividends, rents, and royalties, and some exempt or reduce tax on personal service income, pensions, Social Security benefits, and income earned by students, teachers, and researchers.14Internal Revenue Service. Claiming Tax Treaty Benefits Resident aliens generally cannot claim treaty benefits as a resident of a foreign country.
If you are a U.S. citizen or resident alien married to a nonresident alien, you can jointly elect to treat the nonresident spouse as a resident for tax purposes. The election opens the door to a joint return, the standard deduction, lower joint brackets, and credits otherwise out of reach. You attach a signed statement to your joint return declaring that one spouse was a nonresident at year’s end and that both of you choose to be treated as residents for the full year.15Internal Revenue Service. Nonresident Spouse
The trade-off is real. The nonresident spouse must then report worldwide income. Neither spouse can claim tax treaty benefits as a foreign resident while the election is in effect. And it is a once-in-a-lifetime choice: once revoked, neither spouse can ever make it again, even with a different partner.15Internal Revenue Service. Nonresident Spouse The nonresident spouse needs either a Social Security number or an ITIN for the election to work.
Your Visa Does Not Decide Your Tax Status
The most common mistake is assuming visa type dictates tax classification. It does not. An H-1B worker on a temporary visa can easily pass the substantial presence test and become a resident alien within a year. An F-1 student who has been in the U.S. for six years may shift from nonresident to resident alien once the exempt-year period expires. Your immigration paperwork may say “nonimmigrant” while the IRS treats you as a resident.3Internal Revenue Service. Determining an Individual’s Tax Residency Status
Which classification applies decides your form, your reportable income, your deductions and credits, your FICA liability, and your foreign-account filings. Run the green card test and the substantial presence test before you prepare your return, not after.