The Complete U.S. Tax Guide for Foreign Nationals
Updated September 2026 | Atlantic Tax Advisory PLLC
U.S. tax rules for foreign nationals can change dramatically depending on one threshold question: are you a U.S. resident or a nonresident for federal income tax purposes? Immigration status matters, but it does not by itself determine your U.S. tax residency. This guide explains the core federal rules for foreign nationals who work, study, invest, own U.S. real estate, or otherwise receive U.S.-source income.
This guide is educational and is not a substitute for advice based on your facts. International tax results can depend on travel dates, visa history, treaty residence, income type, withholding documents, elections, and state law. If your situation crosses borders, review the position before filing—not after a notice arrives.
1. Start Here: Resident Alien, Nonresident Alien, or Dual-Status?
For U.S. federal income tax purposes, a foreign national is generally classified as a resident alien or nonresident alien. A person can also be dual-status when resident status changes during the year. These tax classifications are separate from immigration labels.
Resident aliens are generally taxed in the same manner as U.S. citizens and report worldwide income on Form 1040. Nonresident aliens generally file Form 1040-NR and are taxed under special rules that focus primarily on U.S.-source income and income effectively connected with a U.S. trade or business. Dual-status taxpayers apply different rules to the resident and nonresident portions of the year.
IRS source: Alien Taxation—Certain Essential Concepts: https://www.irs.gov/individuals/international-taxpayers/alien-taxation-certain-essential-concepts
2. The Green Card Test
You are generally a U.S. resident for federal income tax purposes if you are a lawful permanent resident of the United States at any time during the calendar year under the green card test, subject to special rules for residency starting and ending dates and possible treaty positions. A green card holder should not assume that living abroad automatically ends U.S. tax residency.
A treaty may affect the residence analysis for a person who is treated as resident by both the United States and another treaty country. Treaty tie-breaker positions can carry disclosure obligations and should be evaluated under the actual treaty, not by general assumptions.
3. The Substantial Presence Test
A foreign national who does not satisfy the green card test may nevertheless become a U.S. resident under the substantial presence test. In general, the test requires at least 31 days of U.S. presence during the current year and a weighted total of at least 183 days over the current year and two preceding years. The formula counts all qualifying days in the current year, one-third of qualifying days in the first preceding year, and one-sixth of qualifying days in the second preceding year.
Not every day physically spent in the United States necessarily counts. The Internal Revenue Code excludes certain days, including days for individuals who qualify as ‘exempt individuals.’ The word exempt here means exempt from counting days for the substantial presence test—not exempt from U.S. tax.
IRS source: Substantial Presence Test: https://www.irs.gov/individuals/international-taxpayers/substantial-presence-test
4. Exempt Individuals: F, J, M, Q and Other Categories
Certain foreign government-related individuals, teachers or trainees temporarily present under qualifying J or Q status, students temporarily present under qualifying F, J, M, or Q status, and certain professional athletes may exclude days from the substantial presence calculation when the statutory requirements are met. These exclusions have time limits and special rules.
Students are generally subject to a five-calendar-year limitation on exempt-individual treatment, while teachers and trainees generally apply a two-of-the-prior-six-calendar-years framework, with exceptions. Because even part of a calendar year can matter, arrival history should be reviewed year by year.
A person excluding days as an exempt individual generally files Form 8843. Form 8843 can be required even when the individual has no income-tax return filing requirement.
5. Closer Connection Exception and Form 8840
Meeting the substantial presence formula does not always end the analysis. A person who is present in the United States for fewer than 183 days during the current year may still be treated as a nonresident if the closer connection exception applies. Among other requirements, the individual must generally maintain a tax home in a foreign country, demonstrate a closer connection to that foreign country than to the United States, and not have taken specified steps toward lawful permanent resident status.
The exception is claimed on Form 8840. Filing deadlines matter: failure to timely file can jeopardize the exception unless the taxpayer satisfies a demanding reasonable-action standard.
IRS source: Closer Connection Exception: https://www.irs.gov/individuals/international-taxpayers/closer-connection-exception-to-the-substantial-presence-test
6. Treaty Residency Can Change the Result
A person may be resident under U.S. domestic law and also resident under another country's domestic law. When an income tax treaty applies, the treaty's residence article may contain tie-breaker rules. Those rules commonly examine factors such as permanent home, center of vital interests, habitual abode, and nationality, but the exact treaty text controls.
A dual-resident taxpayer who claims treaty treatment as a nonresident may need Form 8833, Treaty-Based Return Position Disclosure Under Section 6114 or 7701(b). Treaty positions should be documented carefully because they can affect income reporting, information returns, and other U.S. tax obligations.
IRS source: Form 8833: https://www.irs.gov/forms-pubs/about-form-8833
7. Who Must File Form 1040-NR?
Nonresident aliens who are required to file a U.S. income tax return generally use Form 1040-NR. Filing can be required when a nonresident is engaged in a U.S. trade or business, has certain U.S.-source income not fully satisfied by withholding, or needs to claim a refund, deduction, credit, election, or treaty position. Foreign students, teachers, and trainees temporarily present in F, J, M, or Q status are treated as engaged in a U.S. trade or business for certain purposes, but Form 1040-NR is generally required only when they have income subject to U.S. tax or otherwise need to file.
For calendar-year taxpayers receiving wages subject to U.S. income-tax withholding, the filing deadline is generally April 15. In certain cases where the taxpayer does not receive wages or nonemployee compensation subject to U.S. withholding and does not have a U.S. office or place of business, the deadline is generally June 15. An extension to file generally does not extend the time to pay tax.
IRS source: Taxation of Nonresident Aliens: https://www.irs.gov/individuals/international-taxpayers/taxation-of-nonresident-aliens
IRS Form 1040-NR page: https://www.irs.gov/forms-pubs/about-form-1040-nr
8. ECI vs. FDAP: The Two Major Nonresident Income Categories
A nonresident alien's taxable U.S. income is generally divided into two broad categories: income effectively connected with a U.S. trade or business, commonly called ECI, and U.S.-source fixed, determinable, annual, or periodical income, commonly called FDAP, that is not effectively connected with a U.S. trade or business.
ECI is generally taxed on a net basis after allowable deductions at graduated rates applicable to U.S. individuals. Non-ECI FDAP is generally taxed on a gross basis at 30%, unless an Internal Revenue Code exemption or an applicable income tax treaty provides a lower rate or exemption. The characterization of income matters as much as the amount.
Common FDAP categories can include dividends, rents, royalties, annuities, and other passive payments. But facts can convert income that looks passive into ECI, so classification should be performed before applying a rate.
9. Wages and Compensation for Services
Compensation for services is generally sourced where the services are physically performed. Wages for services performed in the United States are therefore generally U.S.-source and may be effectively connected income. A treaty can sometimes exempt compensation when its specific requirements are satisfied.
Foreign nationals should reconcile Forms W-2 and 1042-S carefully. A Form 1042-S may report treaty-exempt or specially withheld income. The information return is important evidence, but it does not replace the taxpayer's obligation to determine the correct treatment.
10. Scholarships and Fellowships
Scholarship and fellowship taxation depends on the nature of the payment, the recipient's status, the expenses covered, the source of the payment, whether services are required, and any applicable treaty. A payment labeled ‘scholarship’ is not automatically tax-free. Qualified scholarship amounts for a degree candidate can receive favorable treatment when statutory requirements are met, while amounts for room, board, travel, or compensation for services may be taxable.
Students and researchers should retain award letters, university statements, Forms 1042-S and W-2, and documentation showing how funds were used.
11. Investment Income and Capital Gains
Interest, dividends, securities gains, partnership income, and other investment items require separate sourcing and ECI analysis. Certain U.S. bank deposit interest and qualifying portfolio interest may be exempt for nonresident aliens. U.S.-source dividends are generally FDAP and may be subject to 30% withholding unless a treaty reduces the rate.
Capital gains for nonresident aliens are subject to special rules, including the 183-day rule under section 871(a)(2), ECI rules, and separate rules for U.S. real property interests. Do not assume that every securities gain is either automatically taxable or automatically exempt merely because the brokerage account is located in the United States.
12. U.S. Rental Real Estate and the Section 871(d) Election
U.S. real property is a major area where planning can materially change the tax calculation. In general, U.S. real-property income of a nonresident alien that is not ECI may be subject to a 30% tax on gross income, subject to treaty rules. A nonresident owner of income-producing U.S. real property may elect under IRC section 871(d) to treat qualifying real-property income as effectively connected income, allowing eligible expenses to be taken into account and the net income to be taxed under the ECI rules.
The election has continuing consequences and should be coordinated with depreciation, passive-activity considerations, withholding, ownership structure, and the taxpayer's future sale plans.
IRS source: Nonresident Aliens—Real Property Located in the U.S.: https://www.irs.gov/individuals/international-taxpayers/nonresident-aliens-real-property-located-in-the-us
13. Selling U.S. Real Estate: FIRPTA
A foreign person selling a U.S. real property interest can be subject to the Foreign Investment in Real Property Tax Act (FIRPTA). FIRPTA generally treats gain from a U.S. real property interest as effectively connected income and imposes a withholding regime on dispositions. Withholding is not necessarily the final tax; the seller may need to file a U.S. return to calculate the actual liability and claim a refund or pay additional tax.
14. Deductions and Credits for Nonresident Aliens
Nonresident aliens generally have narrower deduction and credit rules than resident aliens. Deductions are generally relevant to ECI and are not ordinarily available against gross-basis FDAP income. Nonresident aliens generally cannot claim the standard deduction, although a treaty-based exception may apply to qualifying students and business apprentices from India.
Credits—including child-related, education, earned-income, and foreign tax credits—have separate eligibility rules. Residency status for any portion of the year can change eligibility. Never assume that a credit available on a resident Form 1040 is available on Form 1040-NR.
15. Filing Status, Spouses, and Elections
A nonresident alien generally cannot use married filing jointly on Form 1040-NR. However, elections under sections 6013(g) and 6013(h) can allow certain married couples to treat a nonresident or dual-status spouse as a U.S. resident and file under resident rules. These elections can provide access to resident filing rules but generally bring worldwide income into the U.S. tax base.
The right question is not simply ‘Will filing jointly lower our U.S. tax?’ The analysis should also consider foreign income, foreign tax credits, foreign financial reporting, treaty effects, and the election's duration and termination rules.
IRS source: Nonresident Spouse: https://www.irs.gov/individuals/international-taxpayers/nonresident-spouse
16. Dual-Status Taxpayers and the First-Year Choice
Arrival and departure years often produce dual-status returns. A dual-status individual is a resident for part of the year and a nonresident for another part. Different sourcing and deduction rules apply to each period, and the filing mechanics depend on status at year-end.
A qualifying individual who does not meet the green card or substantial presence test for the current or prior year but meets the substantial presence test in the following year may be able to make the First-Year Choice. Among the requirements are a 31-consecutive-day presence period and a 75% presence test for the relevant period. This election can require waiting until the following year's substantial presence test is satisfied before the prior-year return can be completed.
IRS source: First-Year Choice: https://www.irs.gov/individuals/international-taxpayers/tax-residency-status-first-year-choice
IRS source: Dual-Status Individuals: https://www.irs.gov/individuals/international-taxpayers/dual-status-individuals
17. Tax Treaties: Never Stop at the Summary Table
The United States has income tax treaties with many countries. Depending on the treaty and the taxpayer's residence, a treaty may reduce withholding, exempt specified compensation, protect certain business profits absent a permanent establishment, provide special student or teacher rules, or resolve dual-residence status.
Treaty analysis should start with the actual treaty and applicable protocol. IRS Publication 901 and the IRS treaty tables are useful quick-reference tools, but the IRS itself cautions that they are not complete guides to every treaty provision. Treasury Technical Explanations can also be important when available.
Most treaties contain a saving clause that preserves the United States' right to tax its citizens and residents as if the treaty did not exist, subject to enumerated exceptions. Student, trainee, teacher, and researcher provisions sometimes survive the saving clause, but this must be checked treaty by treaty.
IRS source: Researching Tax Treaties: https://www.irs.gov/individuals/international-taxpayers/researching-tax-treaties
IRS Publication 901: https://www.irs.gov/publications/p901
18. Forms 8233, W-8BEN, W-9 and 8833
Different forms serve different purposes. Form 8233 is used by qualifying nonresident alien individuals to claim treaty-based exemption from withholding on certain compensation for personal services. Form W-8BEN is commonly used to certify foreign status and claim treaty rates on certain non-service income. A person who becomes a U.S. person for tax documentation purposes may instead need Form W-9. Form 8833 is a tax-return disclosure form for certain treaty-based return positions and dual-resident positions.
For students, trainees, teachers, and researchers claiming treaty exemption from withholding on compensation, the IRS instructs taxpayers to use Form 8233 and attach the appropriate statement described in Publication 519 when applicable.
IRS source: Claiming Tax Treaty Benefits: https://www.irs.gov/individuals/international-taxpayers/claiming-tax-treaty-benefits
IRS Form 8233 instructions: https://www.irs.gov/instructions/i8233
19. F-1, J-1, M-1 and Q-1: Income Tax and FICA Are Different Systems
A foreign national can owe federal income tax while being exempt from Social Security and Medicare tax, or vice versa. Nonresident alien students, scholars, professors, teachers, trainees, researchers, and certain other individuals temporarily present in qualifying F-1, J-1, M-1, or Q-1 status may be exempt from FICA on wages for authorized services performed to carry out the purpose for which they were admitted.
The exemption is not permanent. For example, foreign students in F-1, J-1, or M-1 status who have been in the United States for more than five calendar years and become resident aliens under the substantial presence test are generally subject to FICA unless another exemption applies, such as the separate student FICA exception for qualifying employment by a school, college, or university.
If FICA was withheld in error, the taxpayer should generally request a refund from the employer first. If the employer does not provide a full refund, Forms 843 and 8316 may be used with required supporting documentation in qualifying cases.
IRS source: Foreign Student Liability for Social Security and Medicare Taxes: https://www.irs.gov/individuals/international-taxpayers/foreign-student-liability-for-social-security-and-medicare-taxes
20. ITINs and Form W-7
An Individual Taxpayer Identification Number is a federal tax-processing number for individuals who need a U.S. taxpayer identification number but are not eligible for a Social Security number. An ITIN does not authorize employment, change immigration status, or provide Social Security benefits.
Form W-7 is used to apply for an ITIN. In many cases the W-7 is attached to a federal income tax return, although specified exceptions allow an application without a return. Documentation rules are strict. The IRS generally requires original documents or copies certified by the issuing agency, subject to procedures for IRS Taxpayer Assistance Centers, Certifying Acceptance Agents, and certain approved institutions.
Do not apply for an ITIN if you are eligible for an SSN. Foreign nationals who are authorized and actually employed may be eligible to obtain an SSN through the Social Security Administration.
IRS ITIN page: https://www.irs.gov/tin/itin/individual-taxpayer-identification-number-itin
Form W-7 instructions: https://www.irs.gov/instructions/iw7
21. State Taxes: Federal Nonresident Does Not Mean State Nonresident
State tax residency, sourcing, filing thresholds, treaty treatment, and credits are determined under state law. A federal nonresident alien can still have a state filing obligation. Likewise, a federal treaty exemption does not automatically produce the same state result. The analysis should consider where the taxpayer lived, worked, owned property, conducted business, and received state-source income.
Remote work creates additional complexity because wage sourcing often follows where services are physically performed, subject to state-specific rules. A move during the year can also create part-year and nonresident state returns.
22. Foreign Financial Accounts and International Information Reporting
Once a foreign national becomes a U.S. resident for federal tax purposes, the compliance landscape can expand beyond Form 1040. Depending on the facts, foreign accounts, companies, partnerships, trusts, gifts, pensions, and financial assets can trigger separate information returns. Potential forms include FBAR (FinCEN Form 114), Form 8938, Form 5471, Form 8865, Form 8858, Form 3520, and others.
These forms have different definitions, thresholds, and filing systems, and penalties can be substantial. Residency planning should therefore consider information reporting before the residency starting date whenever possible.
23. Leaving the United States
Departure can create a dual-status year, a residency termination analysis, final federal and state returns, and continuing U.S. filing obligations for U.S.-source income or U.S. assets. Certain departing aliens may also need to consider the certificate-of-compliance or ‘sailing permit’ rules under Form 1040-C, subject to statutory and regulatory exceptions.
Long-term lawful permanent residents and certain U.S. citizens who expatriate face a separate expatriation regime that is beyond the ordinary nonresident rules described in this guide.
24. Common Foreign National Tax Mistakes
Assuming visa status automatically determines federal tax residency.
Counting every U.S. day without checking exempt-individual rules—or excluding days without filing Form 8843.
Using Form 1040 when Form 1040-NR is required, or vice versa.
Assuming treaty benefits apply because a country has a U.S. treaty without reading the applicable article, saving clause, protocol, and eligibility requirements.
Ignoring Form 1042-S or failing to reconcile it with Form W-2.
Treating all investment income as tax-free for nonresidents.
Reporting U.S. rental property without considering the section 871(d) election.
Assuming federal treaty treatment automatically controls state tax treatment.
Missing ITIN, FBAR, Form 8938, or foreign-entity reporting requirements after becoming a U.S. resident.
Filing a joint resident return election without modeling the effect of worldwide income and international reporting.
25. Documents to Gather Before Preparing a Foreign National Return
Passport, visa and immigration-status documents.
A travel calendar showing every U.S. entry and exit for at least the current year and two prior years—and often longer for F/J history.
Forms W-2, 1042-S, 1099, K-1 and other U.S. information returns.
Foreign income statements and foreign tax records if resident or considering a resident election.
Scholarship, fellowship, university and employer letters.
Treaty-country residency documentation.
Prior-year U.S. federal and state tax returns, Forms 8843, 8840 and 8833.
Rental-property statements, closing documents and depreciation records.
Foreign account and entity information if U.S. resident reporting may apply.
26. A Practical Foreign National Tax Workflow
Step 1: Build the immigration and U.S.-presence timeline.
Step 2: Apply the green card and substantial presence tests, including excluded days.
Step 3: Review closer-connection and treaty-residence rules where relevant.
Step 4: Determine whether the year is resident, nonresident, or dual-status.
Step 5: Classify each income item by source and by ECI/FDAP treatment.
Step 6: Review the actual treaty, protocol, saving clause, and technical explanation before claiming treaty benefits.
Step 7: Determine federal return, disclosure, withholding, ITIN, and international-information-reporting requirements.
Step 8: Perform a separate state tax analysis.
Step 9: Reconcile withholding and information returns before filing.
Frequently Asked Questions
Do I have to file a U.S. tax return if I am not a U.S. citizen?
Possibly. Citizenship is not the deciding factor. Your U.S. tax residency, U.S. trade-or-business activity, income type, withholding, treaty position, and need to claim a refund or tax benefit can all create a filing requirement.
I am on an F-1 visa. Am I automatically a nonresident alien?
No. F-1 students often qualify to exclude U.S. days from the substantial presence test for a limited period, generally five calendar years, but the analysis changes after the applicable exempt-individual period and can also be affected by prior U.S. visits.
Do I file Form 8843 if I had no income?
If you are excluding days of U.S. presence because you are an exempt individual, Form 8843 is generally required even if you do not otherwise have to file an income tax return.
If I pass the substantial presence test, am I definitely a U.S. resident?
Not always. The closer connection exception may apply in qualifying cases where current-year U.S. presence is under 183 days, and an applicable income tax treaty may also alter the residency result for a dual-resident taxpayer.
Are nonresident aliens taxed on worldwide income?
Generally no. Nonresident aliens are usually taxed under U.S.-source and ECI rules, although limited exceptions exist. Resident aliens, by contrast, generally report worldwide income.
Can a nonresident alien claim the standard deduction?
Generally no. A notable treaty-based exception may apply to qualifying students and business apprentices from India. Other deductions depend on the nature of the income and the applicable rules.
Can I use a tax treaty after becoming a U.S. resident?
Sometimes. Most treaties contain a saving clause, but certain treaty provisions—often including some student, trainee, teacher, or researcher provisions—may be excepted from that clause. The actual treaty must be reviewed.
Do I pay Social Security and Medicare tax on an F-1 or J-1 visa?
It depends. Certain nonresident aliens in qualifying F-1, J-1, M-1, or Q-1 status can be exempt from FICA on authorized services performed consistently with the purpose of their admission. The exemption can end when tax residency or status changes, and separate FICA exceptions may also apply.
Do I need an ITIN?
You may need an ITIN if you have a federal tax reason for a U.S. taxpayer identification number and are not eligible for an SSN. If you are eligible for an SSN, you generally should not apply for an ITIN.
Does my federal treaty exemption automatically apply to state income tax?
No. State law must be reviewed separately. States are not uniformly bound to follow federal treaty treatment.
Can I file jointly with my U.S. citizen or resident spouse?
Potentially. Certain elections can treat a nonresident spouse as a U.S. resident for income-tax purposes. Because the election generally brings worldwide income into the U.S. tax system, it should be modeled before filing.
How Atlantic Tax Advisory PLLC Can Help
Foreign national tax returns are rarely just data-entry exercises. The correct filing position starts with residency, sourcing, treaty, and withholding analysis. Atlantic Tax Advisory PLLC assists foreign nationals, international students and professionals, investors, property owners, and cross-border families with U.S. tax compliance and planning.
U.S. tax residency and substantial presence analysis
Form 1040-NR and dual-status return preparation
Tax treaty research and treaty-based return positions
Forms 8843, 8840, 8833 and related disclosures
Foreign student, scholar, teacher and researcher tax matters
ITIN and Form W-7 guidance
U.S. rental real estate and foreign-owner tax compliance
FIRPTA and U.S. real estate disposition planning
Resident-alien worldwide income and international information reporting
Federal and state cross-border tax coordination
Need Help With Your U.S. Tax Position?
Schedule a consultation with Atlantic Tax Advisory PLLC before you file. We can review your travel history, visa status, income, treaty eligibility, withholding documents, and filing options and identify the forms and positions that apply to your facts.
Website: https://www.atlantic.cpa | Email: contact@atlantic.cpa
Primary IRS Resources
Publication 519, U.S. Tax Guide for Aliens — https://www.irs.gov/publications/p519
Taxation of Nonresident Aliens — https://www.irs.gov/individuals/international-taxpayers/taxation-of-nonresident-aliens
Substantial Presence Test — https://www.irs.gov/individuals/international-taxpayers/substantial-presence-test
Closer Connection Exception — https://www.irs.gov/individuals/international-taxpayers/closer-connection-exception-to-the-substantial-presence-test
Researching Tax Treaties — https://www.irs.gov/individuals/international-taxpayers/researching-tax-treaties
Publication 901, U.S. Tax Treaties — https://www.irs.gov/publications/p901
Form 1040-NR — https://www.irs.gov/forms-pubs/about-form-1040-nr
Form 8833 — https://www.irs.gov/forms-pubs/about-form-8833
ITIN Information — https://www.irs.gov/tin/itin/individual-taxpayer-identification-number-itin
Foreign Student FICA Rules — https://www.irs.gov/individuals/international-taxpayers/foreign-student-liability-for-social-security-and-medicare-taxes
Important Disclaimer
This publication is for general educational purposes only and does not constitute tax, legal, immigration, accounting, or investment advice. Tax law and administrative guidance change, and the application of U.S. tax law depends on individual facts and circumstances. Reading this guide does not create a client relationship with Atlantic Tax Advisory PLLC. Consult a qualified adviser regarding your specific situation before taking or refraining from action.
Comments