- The Substantial Presence Test determines if you are a resident alien for tax purposes.
- A 3-year weighted formula counts days from 2024, 2025, and 2026 to calculate status.
- Resident aliens must report worldwide income to the IRS, not just U.S. earnings.
(UNITED STATES) — The key distinction is simple: the Substantial Presence Test decides your U.S. tax status, while a green card decides your immigration status. Those are not the same thing, and mixing them up can trigger filing mistakes, missed foreign reporting, and extra scrutiny.
For tax year 2026, filed in 2027, the IRS uses the Substantial Presence Test to decide whether many non-citizens are taxed as resident aliens or nonresident aliens. The rule sits in Internal Revenue Code section 7701(b) and is explained in IRS Publication 519, U.S. Tax Guide for Aliens.
That tax label matters. A resident alien usually reports worldwide income on Form 1040. A nonresident alien usually reports only certain U.S.-source income on Form 1040-NR.
Resident alien vs nonresident alien: side-by-side
| Category | Resident Alien for Tax Purposes | Nonresident Alien for Tax Purposes |
|---|---|---|
| Main test | Meets Green Card Test or Substantial Presence Test | Does not meet either test |
| Main return | Form 1040 | Form 1040-NR |
| Income reported | Worldwide income | Generally only U.S.-source income |
| Standard deduction | Usually allowed, subject to rules | Usually not allowed, except limited cases |
| Foreign accounts | May need FBAR and Form 8938 | Usually less common, but facts matter |
| Treaty claims | Possible, but limited once resident | Often used to reduce or exempt U.S. tax |
| Common visa examples | H-1B, L-1, O-1 after enough days | New arrivals, short-term visitors, many F-1 students in exempt years |
A lawful permanent resident is usually a tax resident under the Green Card Test, even without meeting the day count. By contrast, someone with no green card can still become a tax resident through days in the United States.
What is the Substantial Presence Test?
The Substantial Presence Test is a formula used by the IRS to decide if a non-U.S. citizen is a resident alien for tax purposes.
You meet the test only if both rules apply:
- You were present in the United States for at least 31 days in 2026
- Your total under the 3-year weighted formula is at least 183 days
The formula for 2026 is:
- All days in 2026
- 1/3 of days in 2025
- 1/6 of days in 2024
This is where many immigrants get tripped up. You can fail to spend 183 actual days in 2026 and still become a tax resident.
How the 3-year weighted formula works
Here is the comparison the IRS uses for tax year 2026:
| Year counted for 2026 test | Weight |
|---|---|
| 2026 | 100% |
| 2025 | 1/3 |
| 2024 | 1/6 |
Example 1:
- 2026: 120 days
- 2025: 120 days
- 2024: 120 days
Weighted total:
- 120
- plus 40
- plus 20
- equals 180 days
Result: Not a resident alien under the Substantial Presence Test, because the total is below 183.
Example 2:
- 2026: 130 days
- 2025: 150 days
- 2024: 60 days
Weighted total:
- 130
- plus 50
- plus 10
- equals 190 days
Result: Resident alien, because the total reaches 183 and the person spent at least 31 days in 2026.
💡 Tax Tip: Keep travel records, I-94 history, and passport stamps. A day-count error can change your filing form, treaty claim, and foreign reporting duties.
The IRS page on the test and Publication 519 are the main starting points. Readers comparing status rules can also review our green card taxes guide.
How visa status changes the answer
Visa type does not always control tax status, but it often changes which days count.
| Visa or status | Days counted for SPT? | Typical tax result |
|---|---|---|
| F-1 / J-1 students | Usually exempt for 5 calendar years | Often remain nonresident aliens during exempt years |
| J-1 scholars / teachers / trainees | Usually exempt for 2 calendar years | Often nonresident aliens during exempt years |
| H-1B / L-1 / O-1 | No exemption | Often become resident aliens in the first full year |
| B-1 / B-2 | Usually count, unless another rule applies | Often remain nonresident aliens if days stay low |
| Green card holders | Green Card Test usually applies | Usually resident aliens |
F-1 and J-1 students
Many F-1 and J-1 students are treated as exempt individuals for the Substantial Presence Test for 5 calendar years. “Exempt” here means the days generally do not count for the test. It does not mean exempt from tax.
These students usually must file Form 8843, even if they have no income.
J-1 scholars
Many J-1 scholars, teachers, and trainees get a shorter exemption, usually 2 calendar years. After that, counted days can push them into resident alien status quickly.
H-1B, L-1, and O-1 workers
These visa holders get no automatic SPT exemption. Many meet the test in their first full year and then report worldwide income. In FY 2024, nearly 400,000 H-1B approvals were issued, so this affects a large group.
If you moved from F-1 to H-1B, check for a dual-status year. That can require a split-year filing under Publication 519.
Undocumented taxpayers and ITIN filers
Many undocumented immigrants meet the Substantial Presence Test and file with an ITIN. As of late 2025, there were more than 5.8 million active ITINs. Recent estimates put undocumented immigrants’ federal tax payments at $89 billion to $100 billion in recent years.
IRS tax residency vs Department of Homeland Security enforcement
This issue now reaches beyond filing mechanics. As of April 1, 2026, IRS-Department of Homeland Security data sharing is affecting immigration enforcement.
Key dates:
- April 11, 2025: DHS announced renewed registration enforcement for foreign nationals present more than 30 days
- April 2025: Treasury and DHS signed an MOU allowing IRS data sharing tied to SPT and ITIN records with ICE
- February 25, 2026: A federal appeals court denied a request to block that sharing
- March 30, 2026: USCIS issued an alert on increased financial vetting and social media checks for benefit applicants
Recent court filings also reported that ICE requested records for about 1.3 million taxpayers, with more than 47,000 matches as of March 2026.
⚠️ Warning: Tax residency and immigration status are separate legal categories, but tax filings may now have more immigration enforcement consequences than in prior years.
This matters for green card applicants too. USCIS often reviews tax records, and sponsors in family cases may need tax transcripts for Form I-864 support cases. Clean, consistent filing matters.
Why tax residency changes your filing duties
Once you are a resident alien for tax purposes, the filing burden can increase fast.
You may need to report:
- Wages and self-employment income from any country
- Foreign interest, dividends, and rental income
- Foreign retirement income, depending on treaty rules
- Foreign bank and financial accounts
For foreign reporting, the main thresholds are:
| Filing status and location | FBAR threshold | Form 8938 end-of-year threshold | Form 8938 anytime threshold |
|---|---|---|---|
| Single, living in U.S. | $10,000 aggregate | $50,000 | $75,000 |
| Married filing jointly, living in U.S. | $10,000 aggregate | $100,000 | $150,000 |
FBAR is filed as FinCEN Form 114, not with your tax return. The due date is April 15, 2027, with an automatic extension to October 15, 2027 for tax year 2026.
| Tax event | Deadline for tax year 2026 | Extension available |
|---|---|---|
| Individual return | April 15, 2027 | October 15, 2027 |
| FBAR | April 15, 2027 | Automatic to October 15, 2027 |
Readers with foreign accounts should also review our FBAR rules explainer.
One major exception: the Closer Connection Exception
You can meet the weighted formula and still avoid resident status in some cases.
If you were in the United States for fewer than 183 days in 2026, you may claim a Closer Connection Exception on Form 8840. You must show a closer connection to a foreign country and usually maintain a tax home there.
This exception does not help green card holders.
Common mistakes immigrants make
- Confusing green card status with tax residency A person without a green card can still be a tax resident under the Substantial Presence Test.
- Counting exempt student years incorrectly F-1 and J-1 students often forget that exempt years are limited.
- Skipping Form 8843 Students with no income still often must file it.
- Ignoring worldwide income after meeting SPT Foreign salary, bank interest, and investments may become reportable.
- Missing FBAR or Form 8938 These forms have separate thresholds and penalties.
📅 Deadline Alert: If you became a tax resident in 2026, prepare for a Form 1040 filing by April 15, 2027, and check FBAR by the same date.
Check your day count now. Pull your I-94 history, review your visa category, and compare your facts with IRS Publication 519, Publication 901, and the IRS international taxpayers page. If you changed from F-1 to H-1B in 2026, ask whether a dual-status return applies. If you spent fewer than 183 days in 2026, check whether Form 8840 can preserve nonresident status.
You are a resident alien if you have a valid green card at any time during the year, or you meet the Substantial Presence Test and no exception applies. You are a nonresident alien if you do not meet the Green Card Test or the Substantial Presence Test, or you qualify for an allowed exception such as the Closer Connection Exception.
⚠️ Disclaimer: This article is for informational purposes only and does not constitute tax, legal, or financial advice. Tax situations vary based on individual circumstances. Consult a qualified tax professional or CPA for guidance specific to your situation.