The 183-day rule determines whether the IRS generally treats a foreign national as a resident or nonresident alien for federal tax purposes. The calculation can affect which income must be reported, which tax return applies and whether foreign financial accounts trigger additional disclosures.
Tax residency and immigration status follow different rules. A person may hold H-1B, L-1, O-1 or another nonimmigrant status while being treated as a US resident for tax purposes.
How the Substantial Presence Test Works
The Substantial Presence Test uses a weighted three-year formula. To meet it, an individual generally must be physically present in the United States for:
- at least 31 days during the current calendar year; and
- 183 weighted days across the current year and the two previous years.
The calculation includes:
- all qualifying days in the current year;
- one-third of qualifying days in the previous year;
- one-sixth of qualifying days in the second previous year.
For example, someone present for 120 qualifying days in each of three consecutive years would count 120 days from the current year, 40 from the previous year and 20 from the second previous year. The total would be 180, which does not meet the 183-day threshold.
Tax Residency Is Different From Visa Status
Meeting the test does not change a visa, grant permanent residence or create immigration status. It establishes federal tax residency under IRS rules.
A resident alien generally files Form 1040 and reports worldwide income. A nonresident alien generally files Form 1040-NR and is taxed primarily under the rules applicable to US-source income and effectively connected income.
A lawful permanent resident can also become a tax resident under the separate Green Card Test. Tax treaties and residency-starting rules may affect the final classification in certain cases.
Days That May Be Excluded
Not every day spent inside the country necessarily counts. The IRS permits certain excluded days of presence, including qualifying days connected with:
- F-1 or J-1 student status;
- J-1 or Q-1 teacher or trainee status;
- regular commuting from Canada or Mexico;
- transit through the United States;
- a medical condition that arose while the person was in the country;
- certain foreign-government or international-organization statuses.
“Exempt individual” does not mean exempt from taxation. It means that qualifying days are excluded from the Substantial Presence Test.
F-1 and qualifying J-1 students can generally exclude days during five calendar years. J-1 teachers and trainees are normally subject to a different two-out-of-six-year framework, with additional rules and possible exceptions.
F-1, OPT and H-1B Transitions
A change from F-1 to H-1B requires a new calculation. Days excluded while the person qualified as an exempt student may stop being excluded once H-1B status begins.
However, changing status on October 1 does not automatically create resident status or require a dual-status return. The taxpayer must still apply the formula, evaluate previous years and determine whether any election is available.
Someone who does not meet the test during the arrival year may qualify for the First-Year Choice if all applicable conditions are satisfied and the person meets the test in the following year.
Closer Connection Exception
A person who meets the weighted calculation may still qualify for the Closer Connection Exception when they were present in the United States for fewer than 183 actual days during the current year and maintain a tax home and stronger connections in a foreign country.
This exception generally requires Form 8840 and supporting facts. It may be unavailable when the person has taken certain steps toward permanent residence, including having an adjustment-of-status application pending.
Resident vs. Nonresident Tax Treatment
| Criterion | Resident alien | Nonresident alien |
|---|---|---|
| Primary federal return | Form 1040 | Form 1040-NR |
| Income generally reported | Worldwide income | Income covered by nonresident rules |
| Standard deduction | Generally available | Usually unavailable, with limited exceptions |
| Foreign-account reporting | FBAR and Form 8938 may apply | Generally more limited |
| Treaty treatment | Depends on treaty provisions | Certain benefits may remain available |
| Tax residency test | Green Card Test or SPT | Does not meet or is excepted from resident treatment |
The table provides a general comparison. Filing obligations can change because of tax treaties, elections, marital status, income type and other circumstances.
Foreign Accounts and Assets
Once someone becomes a US person for applicable reporting purposes, foreign financial reporting may become relevant.
The FBAR may be required when the aggregate value of foreign financial accounts exceeds US$10,000 at any time during the calendar year. Form 8938 uses different thresholds and covers specified foreign financial assets.
These are separate obligations. Filing one form does not automatically replace the other, and owning foreign assets does not necessarily mean that every asset is reportable on both forms.
Common Mistakes
The first mistake is counting every day without applying the student, teacher, medical or commuter rules.
The second is assuming that a visa category alone determines tax classification. The IRS calculation must be performed separately.
The third is filing a full-year resident return immediately after a midyear status change without checking whether the person actually met the test or qualifies for an election.
Another mistake is failing to submit Form 8843 when claiming excluded days. Qualifying F-1, J-1 and other exempt individuals may need to file it even when they had no taxable US income.
Finally, many taxpayers overlook foreign accounts after becoming residents for tax purposes, creating potential FBAR or FATCA compliance problems.
Checklist Before Filing
- Download your complete I-94 travel history.
- List every US entry and departure for the three-year calculation.
- Identify days that may be excluded.
- Confirm how many exempt calendar years have already been used.
- Calculate the test before choosing Form 1040 or Form 1040-NR.
- Review possible treaty or closer-connection treatment.
- Identify foreign accounts and financial assets.
- Consult a tax professional experienced in international taxation.
How D4U Supports Your International Planning
D4U Immigration is an international planning company, not a law firm or accounting firm. We help clients organize travel records, documents and administrative timelines so tax and immigration decisions can be coordinated with qualified professionals.
Our planning standards are informed by Warren Janssen, former USCIS director. More than 91% of clients who complete D4U’s structured planning process achieve success in their journeys.
Clients also receive six months of Doctor24 access and our guarantee: your journey completed, or your money back, according to the contracted scope. Tax advice and return preparation must be provided by qualified tax professionals.
Frequently Asked Questions
Does the 183-day rule simply count six months in the United States?
No. It uses all qualifying days from the current year, one-third from the previous year and one-sixth from the second previous year.
Do F-1 students count every day spent in the country?
Not always. Qualifying students can generally exclude days during five calendar years, although Form 8843 and other requirements may apply.
Does meeting the test change my immigration status?
No. Tax residency does not grant a visa, Green Card or employment authorization.
Does changing from F-1 to H-1B automatically require a dual-status return?
No. The outcome depends on the day count, residency-starting rules and any valid election.
Should I use a general tax preparer?
Cases involving foreign income, dual status, tax treaties or overseas accounts should generally be handled by a CPA or enrolled agent experienced in international taxation.
Talk to the D4U team and start your international journey.











