IRS Substantial Presence Test (SPT): 2026 Tax Residency Guide
Detailed guide to the IRS Substantial Presence Test for determining whether a foreign individual is treated as a U.S. resident for federal income-tax purposes, including the 183-day weighted formula, day-count exceptions, F-1 and J-1 rules, closer connection exception, Form 8840, Form 8843, and the relationship with the green card test.
Quick Reference & Core Specifications
| Form / Filing: | Form 1040 / Form 1040-NR / Form 8843 / Form 8840 |
| Filing Agency: | Internal Revenue Service (IRS) |
| Filing Threshold: | 31 days current year + 183 weighted days over 3-year period (Calculated annually based on calendar-year physical presence) |
| Deadlines: | Due April 15 (June 15 for nonresidents not subject to wage withholding) (Automatic extension: October 15 with valid Form 4868 extension) |
| Submission Method: | Form 8840/8843 attached to Form 1040-NR or mailed standalone to IRS Austin |
| Record Retention: | Retain passport stamps, I-94 travel history, and boarding passes for 5 years |
Core Statutory Takeaways
- Meeting the Substantial Presence Test classifies a foreign national as a U.S. resident alien, subjecting worldwide income to U.S. taxation and triggering foreign asset reporting (FBAR and FATCA).
- The 183-day test is a weighted 3-year formula: 100% of current-year days, 1/3 of the first preceding year's days, and 1/6 of the second preceding year's days, plus a mandatory 31-day current-year floor.
- Exempt individual does NOT mean exempt from tax; it means physical presence days are excluded from the SPT calculation.
- F-1/M-1 students can exclude days for up to 5 calendar years; J-1 teachers and trainees can exclude days for 2 calendar years (with a potential 4-year exception), reported on Form 8843.
- Taxpayers with fewer than 183 actual days in the current year who maintain a foreign tax home can remain nonresident aliens by timely filing Form 8840 (Closer Connection Exception).
- The Green Card Test is entirely independent of the SPT; lawful permanent residents are U.S. tax residents regardless of days spent in the United States.
Key Regulatory Facts
| Parameter | Operative Statutory Rule |
|---|---|
| Current Year Floor | Must be physically present in the United States for at least 31 days in the current calendar year. |
| 3-Year Weighted Formula | 100% of current year days + 1/3 of first prior year days + 1/6 of second prior year days >= 183 days. |
| F-1 Student Exemption | Exclude days from SPT for up to 5 calendar years (filed on Form 8843). |
| J-1 Teacher/Trainee Exemption | Exclude days from SPT for 2 calendar years (or 4 years under qualifying exceptions; filed on Form 8843). |
| Closer Connection Exception | Requires < 183 actual days in current year, a foreign tax home, and Form 8840 filed by the due date. |
| Form 8840 vs. Form 8843 | Form 8840 is for Closer Connection; Form 8843 is for Exempt Individuals and medical exclusions. |
| Worldwide Tax Exposure | Resident aliens are taxed on global income and must file FBAR (FinCEN 114) and FATCA (Form 8938) if thresholds are met. |
The Substantial Presence Test: Core Rules & Formula
Under Internal Revenue Code § 7701(b), a foreign national is treated as a U.S. resident alien for federal tax purposes if they satisfy the two-part Substantial Presence Test for the calendar year.
- Part 1 (Current-Year Floor): The individual must be physically present in the United States for at least 31 days during the current calendar year.
- Part 2 (183-Day Weighted Formula): The sum of weighted physical presence days over the current calendar year and the two immediately preceding calendar years must equal or exceed 183 days.
- Weighting Percentages: 100% (all) of current-year days + 33.33% (1/3) of first preceding year days + 16.67% (1/6) of second preceding year days.
- Legal Consequence: Meeting the test subjects the individual to worldwide income taxation and international information return obligations (FBAR and FATCA).
Step-by-Step Mathematical Calculation Example
Understanding how the weighted day count applies over a rolling three-year period:
- Scenario: A non-immigrant professional visits the U.S. for 120 days in 2026, 120 days in 2025, and 120 days in 2024.
- Current Year 2026: 120 days * 1 = 120 weighted days.
- First Preceding Year 2025: 120 days * (1/3) = 40 weighted days.
- Second Preceding Year 2024: 120 days * (1/6) = 20 weighted days.
- Total Weighted Days: 120 + 40 + 20 = 180 weighted days.
- Conclusion: Because 180 is less than 183 days, the individual does NOT meet the Substantial Presence Test for 2026 (assuming all days are countable).
If the individual stayed 123 days in 2026 (with 120 in 2025 and 120 in 2024), the calculation yields 123 + 40 + 20 = 183 days, triggering U.S. resident alien status on day 123.
Physical Presence Day-Counting Standards
For Substantial Presence Test purposes, physical presence rules are applied strictly under Treasury Regulations.
- Any Part of a Day Counts: Being physically present in the United States for any fraction of a minute (e.g., an evening flight landing at 11:55 PM) counts as a full day of presence.
- Geographic Scope: The United States comprises the 50 states, the District of Columbia, and territorial waters. It does NOT include U.S. territories (Puerto Rico, Guam, U.S. Virgin Islands) or U.S. airspace.
- Commuter Exclusion: Regular commuters who reside in Canada or Mexico and commute to work in the U.S. on more than 75% of workdays do not count commuter days.
- Transit Exclusion: Physical presence of less than 24 hours while in direct transit between two foreign points does not count.
- Foreign Vessel Crew: Days present solely as a crew member of a foreign vessel engaged in international commerce do not count.
- Medical Condition Exception: Days where an individual intended to leave but was prevented by an acute medical condition that arose while in the U.S. are excluded (claimed on Form 8843).
The 'Exempt Individual' Concept: Day Exclusions
A widespread point of confusion is the term 'Exempt Individual' under IRC § 7701(b)(5).
- Exempt from Day-Counting, NOT Tax: An exempt individual is NOT exempt from U.S. federal income taxation. It simply means that qualifying days of physical presence are excluded from the Substantial Presence Test day count.
- Eligible Visa Categories: F-1, J-1, M-1, and Q-1 visa holders who substantially comply with the terms of their immigration status.
- Mandatory Form 8843: To legally exclude presence days as an exempt individual, the taxpayer must file Form 8843 (Statement for Exempt Individuals and Individuals with a Medical Condition) annually with the IRS.
- Consequence of Non-Filing: Failing to file Form 8843 can lead to the IRS disallowing the day exclusion, causing the individual to unexpectedly fail the SPT and become a resident alien.
F-1 & M-1 Student Exemption: The 5-Calendar-Year Rule
International students enrolled in academic programs in the United States receive specialized day-count relief under IRC § 7701(b)(5)(D).
- 5 Calendar Years Limit: An F-1 or M-1 student is treated as an exempt individual for up to five calendar years in their lifetime.
- Calendar Year Tracking: The five-year clock is based on calendar years, not 365-day periods. Arriving on December 30 counts as an entire calendar year toward the five-year limit.
- Transition to Resident Alien: Beginning in their 6th calendar year, the student is no longer an exempt individual. All U.S. days count toward the SPT, and staying 183 days in year 6 makes them a U.S. resident alien.
- Post-5-Year Exception: A student beyond year 5 can continue to exclude days only if they establish to the IRS that they do not intend to reside permanently in the U.S. and continue to maintain closer connections to a foreign country.
J-1 Teachers, Scholars & Trainees: The 2-Year Rule
Visiting professors, research scholars, and trainees on J-1 or Q-1 visas are governed by a different time horizon than students.
- 2 Calendar Years Standard: A J-1 teacher or researcher is generally an exempt individual for two calendar years within any consecutive six-calendar-year lookback period.
- 4-Calendar-Year Extension: A J-1 teacher/researcher can qualify for exempt status for up to 4 calendar years if all foreign-source compensation was paid by a foreign employer and other IRS criteria are met.
- Non-Resetting Lifetime Clock: Unlike students, the 2-year lookback is evaluated based on whether the individual was exempt in any 2 of the preceding 6 calendar years.
- Dependents: Qualifying J-2 dependents of exempt J-1 holders also exclude physical presence days by filing their own Form 8843.
Form 8840: Closer Connection Exception to the SPT
Even if an individual meets the weighted 183-day Substantial Presence Test, they can remain classified as a nonresident alien under the Closer Connection Exception of IRC § 7701(b)(3).
- Condition 1 (Actual Day Ceiling): The individual must be physically present in the U.S. for fewer than 183 actual days during the current calendar year.
- Condition 2 (Foreign Tax Home): The individual must maintain a bona fide tax home in a foreign country for the entire tax year.
- Condition 3 (Closer Social/Economic Ties): The individual must have closer personal, familial, and economic connections to that foreign country than to the U.S. (evaluated via home ownership, location of family, driver's licenses, voting, and banking).
- Condition 4 (No Immigrant Intent): The taxpayer must NOT have filed Form I-485 (Adjustment of Status) or taken affirmative steps toward applying for a U.S. Green Card.
- Mandatory Filing: The closer connection is claimed by filing Form 8840 (Closer Connection Exception Statement for Aliens) by June 15 (or April 15 with wages).
Green Card Test Interaction & Treaty Tie-Breakers
The Substantial Presence Test operates alongside the Green Card Test under U.S. tax law.
- Independent Green Card Test: Anyone granted Lawful Permanent Resident (LPR) status becomes a U.S. tax resident from the first day of physical presence as a green card holder, regardless of SPT day counts.
- Dual Tests in One Year: If an individual meets both the SPT and obtains a green card in the same year, the residency start date is the earliest date of either event.
- Treaty 'Tie-Breaker' Override: A green card holder or SPT resident who is also a tax resident of a treaty partner country (such as India) can make an election under a tax treaty to be taxed as a nonresident alien on Form 8833. However, doing so may impact U.S. immigration status and trigger expatriation tax consequences.
Residency Starting Dates & Dual-Status Tax Years
When a foreign national transitions between nonresident and resident alien status within a single calendar year, specialized dual-status rules apply.
- Residency Starting Date: For an individual meeting the SPT for the first time, residency begins on the first day of physical presence in the U.S. during that calendar year.
- De Minimis Presence Exception: Up to 10 days of early physical presence can be disregarded in determining the residency start date if the individual maintained a closer connection to a foreign country during those days.
- Dual-Status Tax Return: An individual who is a nonresident for part of the year and resident for the remainder files a Dual-Status return (Form 1040 with a Form 1040-NR statement), reporting worldwide income only for the resident portion.
Tax Implications: Resident Alien vs. Nonresident Alien
Determining whether you pass or fail the SPT drastically alters your federal tax rights, tax brackets, and disclosure liabilities.
- Resident Alien (Form 1040): Taxed on worldwide income from all sources; eligible for the standard deduction ($15,000 single / $30,000 MFJ for 2025/2026); eligible for joint filing; must file FBAR and Form 8938.
- Nonresident Alien (Form 1040-NR): Taxed ONLY on U.S.-source income (fixed, determinable, annual, periodical income taxed at 30% flat or treaty rate; effectively connected income taxed at graduated rates); NO standard deduction (except under India DTAA Article 21(2)); cannot file married jointly; exempt from FBAR/FATCA.
- FICA Tax Exemption: Nonresident F-1/J-1 exempt students are exempt from Social Security (6.2%) and Medicare (1.45%) taxes under IRC § 3121(b)(19). Once classified as a resident alien, FICA exemption ceases immediately.
Pre-Filing Verification Checklist
- ✓Obtain official travel records and I-94 travel history from the CBP website.
- ✓Count all calendar days of physical presence in the United States for the current calendar year.
- ✓Identify and subtract qualifying excluded days (commuters, 24-hour transit, medical conditions).
- ✓Identify exempt-individual days (F-1/M-1 students in first 5 years; J-1 scholars in first 2 years).
- ✓Complete and attach Form 8843 to verify exempt-individual days or medical exclusions.
- ✓Calculate 100% of remaining current-year days, 1/3 of first prior year, and 1/6 of second prior year.
- ✓Verify if the total equals or exceeds 183 weighted days AND current-year days equal at least 31.
- ✓If 183 weighted days are met but actual current-year days are under 183, evaluate Form 8840 Closer Connection eligibility.
- ✓Confirm that no pending Form I-485 or Green Card applications disqualify the closer connection claim.
- ✓If classified as a resident alien, prepare Form 1040 reporting global income and review FBAR/FATCA thresholds.
- ✓If classified as a nonresident alien, file Form 1040-NR reporting only U.S.-source and ECI income.
Common Compliance Scenarios & Determinations
| Practical Expat Scenario | Legal Determination & Action |
|---|---|
| H-1B worker present for 120 days in 2026, 120 in 2025, and 120 in 2024 | The weighted formula yields 120 + 40 + 20 = 180 days. Because 180 is less than 183, the worker does NOT meet the SPT and remains a nonresident alien for 2026. |
| L-1 executive present for 150 days in 2026, 120 in 2025, and 60 in 2024 | Formula: 150 + 40 + 10 = 200 weighted days. The worker meets the SPT. However, since actual days (150) are under 183, they can file Form 8840 if they maintain a foreign tax home. |
| F-1 graduate student in their 4th calendar year in the U.S. | The student remains an exempt individual under the 5-calendar-year rule. All U.S. days are excluded from the SPT, maintaining nonresident alien status (Form 8843 must be filed). |
| F-1 student on OPT in their 6th calendar year in the U.S. | The 5-year student exemption has expired. All U.S. presence days now count toward the SPT. Staying more than 183 days makes the student a resident alien subject to worldwide taxation and FICA taxes. |
| J-1 research scholar present for 365 days in their 2nd calendar year | The scholar remains an exempt individual under the 2-year teacher/scholar rule, filing Form 8843 and Form 1040-NR as a nonresident alien. |
Pre-Filing Compliance Checklist
- ✓Obtain official travel records and I-94 travel history from the CBP website.
- ✓Count all calendar days of physical presence in the United States for the current calendar year.
- ✓Identify and subtract qualifying excluded days (commuters, 24-hour transit, medical conditions).
- ✓Identify exempt-individual days (F-1/M-1 students in first 5 years; J-1 scholars in first 2 years).
- ✓Complete and attach Form 8843 to verify exempt-individual days or medical exclusions.
- ✓Calculate 100% of remaining current-year days, 1/3 of first prior year, and 1/6 of second prior year.
- ✓Verify if the total equals or exceeds 183 weighted days AND current-year days equal at least 31.
- ✓If 183 weighted days are met but actual current-year days are under 183, evaluate Form 8840 Closer Connection eligibility.
- ✓Confirm that no pending Form I-485 or Green Card applications disqualify the closer connection claim.
- ✓If classified as a resident alien, prepare Form 1040 reporting global income and review FBAR/FATCA thresholds.
- ✓If classified as a nonresident alien, file Form 1040-NR reporting only U.S.-source and ECI income.
Practical Compliance & Real-World Scenarios
| Practical Scenario | Regulatory Determination & Legal Treatment |
|---|---|
| H-1B worker present for 120 days in 2026, 120 in 2025, and 120 in 2024 | The weighted formula yields 120 + 40 + 20 = 180 days. Because 180 is less than 183, the worker does NOT meet the SPT and remains a nonresident alien for 2026. |
| L-1 executive present for 150 days in 2026, 120 in 2025, and 60 in 2024 | Formula: 150 + 40 + 10 = 200 weighted days. The worker meets the SPT. However, since actual days (150) are under 183, they can file Form 8840 if they maintain a foreign tax home. |
| F-1 graduate student in their 4th calendar year in the U.S. | The student remains an exempt individual under the 5-calendar-year rule. All U.S. days are excluded from the SPT, maintaining nonresident alien status (Form 8843 must be filed). |
| F-1 student on OPT in their 6th calendar year in the U.S. | The 5-year student exemption has expired. All U.S. presence days now count toward the SPT. Staying more than 183 days makes the student a resident alien subject to worldwide taxation and FICA taxes. |
| J-1 research scholar present for 365 days in their 2nd calendar year | The scholar remains an exempt individual under the 2-year teacher/scholar rule, filing Form 8843 and Form 1040-NR as a nonresident alien. |
International Money Transfer & FX Rates — Transparent Cross-Border Wire Rates
Bypass retail bank markups when transferring USD, GBP, EUR, CAD, AUD, or INR. Check today's real mid-market exchange rate instantly before initiating a transfer.
Frequently Asked Compliance Questions
Primary Regulatory Authorities & Precedents
| Authority | Source / Ruling | Regulatory Scope |
|---|---|---|
| Internal Revenue Service (IRS) | IRS Publication 519 (U.S. Tax Guide for Aliens) | Comprehensive official guidance on the Substantial Presence Test, day-counting, and dual-status returns. |
| Internal Revenue Code | 26 U.S. Code § 7701(b) — Definition of Resident Alien and Nonresident Alien | Statutory 183-day weighted formula, exempt individual rules, and Closer Connection Exception. |
| IRS Official Guidance | Instructions for Form 8840 & Form 8843 | Procedural requirements for claiming the Closer Connection Exception and excluding exempt-individual days. |
International Money Transfer & FX Rates
Sending funds for tuition, rent, or immigration fees? Retail banks sneak 2.5%–4% into exchange rates. Check today's real mid-market rate first.
Statutory Penalty Warning
Failing to file as a resident alien when meeting the SPT triggers failure-to-file penalties (up to 25% under IRC § 6651), failure-to-pay penalties, and international asset non-disclosure penalties (starting at $10,000 for FATCA Form 8938 and up to $16,536 for unfiled FBARs).
Substantial Presence Test (SPT) Calculator
Calculate three-year weighted day counts and verify resident vs nonresident alien status.
Open Calculator →Need Professional CPA Support?
Cross-border reporting errors carry substantial civil exposure. Retain qualified international tax counsel for multi-year disclosures.
View All 40 Compliance Topics