Substantial Presence Test: How the 183-Day Rule Determines U.S. Tax Residency
- What Is the Substantial Presence Test and How Does It Determine If I'm a U.S. Tax Resident?
- How Do I Calculate the Substantial Presence Test?
- Which Days Count Toward the Substantial Presence Test?
- Who Qualifies as an Exempt Individual?
- What Happens If I Meet the Substantial Presence Test?
- Can I Avoid Resident Status If I Meet the Test?
- How Does the Substantial Presence Test Differ from Tests for U.S. Expats?
- What Should I Do If I Meet the Substantial Presence Test?
- Get Expert Help with Your U.S. Tax Residency Status
- Related Resources
The Substantial Presence Test is an IRS calculation that determines whether foreign nationals become U.S. tax residents based on their physical presence in the United States. According to the IRS, you meet the test if you’re present in the U.S. for at least 31 days in the current year and 183 days over a three-year period using a weighted formula: 100% of current year days, plus one-third of prior year days, plus one-sixth of the second prior year days. Meeting this test means you must file Form 1040 and report worldwide income, not just U.S.-source income.
However, certain individuals are exempt, including F-1 students (five years), J-1 teachers and trainees (two years out of six), and diplomats. Even if you meet the test, you can claim the closer connection exception if you were present fewer than 183 days in the current year and maintain stronger ties to a foreign country.
What Is the Substantial Presence Test and How Does It Determine If I’m a U.S. Tax Resident?
The Substantial Presence Test determines whether a foreigner living in the United States becomes a U.S. tax resident. According to the IRS, you become a resident for tax purposes if you’re physically present in the U.S. for at least 31 days during the current year and 183 days using a weighted three-year formula. Unlike green card holders, who are automatically tax residents, the Substantial Presence Test uses a mathematical calculation based on your physical time in the country.
Nearly 400,000 H-1B visa holders received approvals in fiscal year 2024 alone, according to Pew Research Center. Most will meet the Substantial Presence Test and become U.S. tax residents without realizing it. This status shift means reporting worldwide income, filing Form 1040 instead of Form 1040-NR, and new reporting obligations like FBAR and FATCA.
The calculation works by weighting your days over three years: 100% of current year days, plus one-third of last year’s days, plus one-sixth of the year before that. If this weighted total reaches 183 days and you were present for at least 31 days this year, you’re classified as a U.S. tax resident. Certain visa holders qualify as “exempt individuals” whose days don’t count toward the test, including F-1 students (exempt for 5 years), J-1 teachers and trainees (exempt for 2 years out of 6), and diplomats on A or G visas. Even if you meet the test, you can avoid resident status by claiming the closer connection exception if you were present fewer than 183 days in the current year and maintain stronger ties to a foreign country.
This is completely different from the Physical Presence Test and Bona Fide Residence Test, which U.S. expats use to qualify for the Foreign Earned Income Exclusion. Those tests help Americans living abroad reduce their U.S. tax burden. The Substantial Presence Test does the opposite: it brings foreigners into the U.S. tax system.
Your Days in the U.S. Can Change Your Tax Status
How Do I Calculate the Substantial Presence Test?
The Substantial Presence Test has two requirements you must meet:
Requirement 1: The 31-Day Test
You must be physically present in the U.S. for at least 31 days during the current calendar year. Even one day short means you don’t meet the test.
Requirement 2: The 183-Day Test
You must be present for 183 days over a three-year period using this weighted formula:
- All days you were present in the current year (count each day as 1 full day)
- One-third of the days present in the first preceding year
- One-sixth of the days present in the second preceding year
If your total is 183 days or more, you pass the test.
Example 1: Not Meeting the Test
Sofia was physically present in the U.S. for 120 days in each of 2023, 2024, and 2025.
For 2025:
- 2025: 120 days × 1 = 120 days
- 2024: 120 days × 1/3 = 40 days
- 2023: 120 days × 1/6 = 20 days
- Total: 180 days
Sofia does not meet the Substantial Presence Test for 2025 because 180 is less than 183.
Example 2: H-1B Visa Holder
David arrived in the U.S. on an H-1B visa on January 15, 2024, and remained through December 31, 2025.
For 2025:
- 2025: 365 days × 1 = 365 days
- 2024: 351 days × 1/3 = 117 days
- 2023: 0 days × 1/6 = 0 days
- Total: 482 days
David meets the Substantial Presence Test for 2025. He is a U.S. tax resident and must file Form 1040 reporting worldwide income.
Which Days Count Toward the Substantial Presence Test?
You’re treated as present in the U.S. on any day you’re physically in the country at any time during the day. Arriving at 11:59 PM counts as a full day.
Days That Do NOT Count:
- Days you regularly commute to work in the U.S. from Canada or Mexico
- Days you’re in the U.S. for less than 24 hours while in transit between two places outside the U.S.
- Days you’re in the U.S. as a crew member of a foreign vessel
- Days you cannot leave the U.S. because of a medical condition that developed while in the U.S.
- Days you’re an “exempt individual” (see below)
What Counts as the United States:
The IRS definition includes all 50 states, the District of Columbia, U.S. territorial waters, and adjacent seabed areas where the U.S. has mineral rights. It does not include U.S. territories like Puerto Rico or U.S. airspace.
Who Qualifies as an Exempt Individual?
The term “exempt individual” refers to people whose days don’t count toward the Substantial Presence Test. This doesn’t mean you’re exempt from U.S. tax; it means your physical presence days are excluded from the calculation.
F, J, M, or Q Student Visa Holders
Students are exempt for up to five calendar years. If you’re in the U.S. as a student on an F-1 visa for any part of a calendar year, that entire year counts toward your five-year exemption, even if you only arrived in December.
The five-year exemption is a lifetime limit, not per visa or per degree. If you were in the U.S. on an F-1 visa for two years, completed your degree, left the country, and then returned three years later on another F-1 visa, you would only have three exempt years remaining.
J or Q Teacher/Trainee Visa Holders
Teachers and trainees are exempt from any two calendar years out of the preceding six years. After two exempt years, subsequent years count toward the test.
Foreign Government-Related Individuals (A or G Visas)
Diplomats, consular officials, and certain international organization employees on A or G visas (excluding A-3 and G-5 visa holders) are exempt for the entire period they hold these visas.
Example: F-1 Student Transitioning to H-1B
Maria arrived in the U.S. on an F-1 student visa in August 2020. She graduated in May 2024 and immediately transitioned to H-1B status in June 2024.
- 2020-2024: Exempt as F-1 student (five calendar years used)
- June 2024 onward: Days count toward the Substantial Presence Test
For 2025, Maria’s H-1B days count fully. Combined with her weighted 2024 H-1B days (June-December = 214 days × 1/3 = 71 days), she easily meets the test for 2025.
If you exclude days because you’re an exempt individual, you must file Form 8843 with your tax return or send it to the IRS by the filing deadline, even if you have no income and don’t need to file a return.
What Happens If I Meet the Substantial Presence Test?
Meeting the Substantial Presence Test means you’re a U.S. resident for tax purposes. Your tax obligations change immediately:
You Must File Form 1040 (Not Form 1040-NR)
Resident aliens file the same forms as U.S. citizens.
You Report Worldwide Income
Every dollar you earn anywhere in the world must be reported on your U.S. tax return. This includes foreign employment income, foreign bank interest, foreign rental income, and foreign investment gains.
You Gain Access to U.S. Tax Benefits
Resident aliens can claim the standard deduction ($15,750 for single filers in 2025), all tax credits, and the same deductions available to U.S. citizens.
New Reporting Requirements
- FBAR (FinCEN Form 114): Required if your combined foreign financial accounts exceeded $10,000 at any point during the year. Due April 15 (automatically extended to October 15).
- FATCA (Form 8938): Required if foreign assets exceed certain thresholds ($50,000 for single filers living in the U.S. on the last day of the year, or $75,000 at any point during the year).
Missing FBAR can trigger penalties of $10,000+ per account per year, even if no tax is owed.
Need help determining your resident alien tax status? If you’re a visa holder trying to figure out whether you need to file U.S. taxes, our tax services for foreign nationals can help. We specialize in helping H-1B visa holders, F-1 students, and other immigrants navigate their first year of U.S. tax filing, including FBAR and FATCA reporting requirements.
Can I Avoid Resident Status If I Meet the Test?
Yes. Even if you meet the Substantial Presence Test, you can still be treated as a nonresident if you qualify for the Closer Connection Exception.
Closer Connection Exception Requirements:
- You were present in the U.S. for fewer than 183 days in the current year
- You maintained a tax home in a foreign country for the entire year
- You have a closer connection to that foreign country than to the U.S.
- You haven’t applied for a green card or taken steps toward permanent residency
To claim this exception, you must file Form 8840 with your Form 1040-NR by the return deadline.
Example: Canadian Commuter
James lives in Vancouver but works in Seattle. He’s in the U.S. for 150 days in 2025. His calculation:
- 2025: 150 days
- 2024: 145 days × 1/3 = 48 days
- 2023: 140 days × 1/6 = 23 days
- Total: 221 days (meets test)
However, James maintains his Canadian home, keeps his family in Canada, holds Canadian bank accounts, and has stronger ties to Canada. He files Form 8840 claiming the closer connection exception and files Form 1040-NR as a nonresident alien.
You cannot claim the closer connection exception if you were present for 183 days or more in the current year, regardless of your foreign ties.
How Does the Substantial Presence Test Differ from Tests for U.S. Expats?
The Substantial Presence Test is often confused with the Physical Presence Test and Bona Fide Residence Test, but they serve opposite purposes:
| Test | Who Uses It | Purpose | Criteria |
|---|---|---|---|
| Substantial Presence Test | Foreigners in the U.S. | Determine U.S. tax residency | 183 weighted days in the U.S. |
| Physical Presence Test | U.S. expats abroad | Qualify for FEIE exclusion | 330 full days outside U.S. |
| Bona Fide Residence Test | U.S. expats abroad | Qualify for FEIE exclusion | Full tax year foreign residence |
If you’re a U.S. citizen or green card holder living abroad, you use the Physical Presence or Bona Fide Residence tests to exclude up to $130,000 of foreign-earned income from U.S. taxation in 2025.
If you’re a foreigner living in the U.S., the Substantial Presence Test determines whether you become a U.S. tax resident who must report worldwide income.
What Should I Do If I Meet the Substantial Presence Test?
Step 1: Calculate Your Days Carefully
Track every day of the U.S. presence. Keep:
- Flight itineraries and boarding passes
- Passport entry/exit stamps
- Calendar records of your location
Step 2: Determine Your Residency Start Date
Your residency typically begins on the first day you were physically present in the U.S. during the year you met the test. This affects which months of income you must report.
If you have a dual-status year, you’ll report worldwide income only from your residency start date forward.
Step 3: File the Correct Tax Form
Resident aliens file Form 1040 and report worldwide income. Attach any required forms, like Form 8843, if you were an exempt individual for part of the year.
Step 4: Report Foreign Accounts and Assets
Don’t overlook FBAR and FATCA requirements. Penalties for missing these forms can be severe, even when no additional tax is owed.
Step 5: Consider Tax Treaty Benefits
Many countries have tax treaties with the U.S. that can reduce double taxation. If claiming treaty benefits, you may need to file Form 8833.
Filing your first foreign national tax return? Whether you need a dual-status tax return, help with amended returns for foreign national errors, or guidance on whether you can claim tax treaty benefits, our accountants for immigrants have helped thousands of foreign nationals file correctly. We understand the unique challenges of filing taxes for non-U.S. citizens.
Get Expert Help with Your U.S. Tax Residency Status
The Substantial Presence Test calculation may seem straightforward, but getting it wrong can cost thousands in penalties. Dual-status years, exempt individual periods, closer connection exceptions, and treaty provisions add complexity that most people underestimate.
Greenback Tax Services specializes in helping foreign nationals determine their U.S. tax residency status correctly. We’ve helped over 23,000 expats and foreign nationals file 71,000+ returns while maintaining a 4.9-star average on Trustpilot. Our CPAs and Enrolled Agents have the knowledge and patience to handle complex residency situations.
No matter how complicated your tax status situation may be, you’ll have peace of mind knowing that your classification and tax obligations were determined correctly.
If you’re ready to be matched with a Greenback accountant, click the Get Started button below. For general questions on U.S. expat taxes or working with Greenback, contact our Customer Champions.
Don’t Guess Your U.S. Tax Residency
This article is provided for general information purposes only and should not be considered tax advice. Tax situations vary, and you should consult with a qualified tax professional about your specific circumstances.
Related Resources
- Resident Alien vs Nonresident Alien: Tax Differences Explained
- Form 1040 vs Form 1040-NR: Which Tax Form Should I File?
- Resident Alien Tax Guide: First-Year Filing Requirements
- How Do I File My Taxes as a Dual-Status Alien?
- U.S. Person for Tax Purposes: Who Qualifies & Filing Rules
- Do Green Card Holders Pay Taxes on Foreign Income?
- FBAR vs FATCA: Which Foreign Account Reporting Do I Need?
- H-1B Taxes: Filing Rules, Worldwide Income, and Deadlines
- U.S. Taxes for Foreigners: Who Has to File and How It Works
- Form 8833 & Tax Treaties for Your U.S. Tax Return