The Substantial Presence Test (SPT) Simplified
For immigrants and visa holders, your tax residency status is arguably the most important factor in determining your US tax liability. The IRS uses the Substantial Presence Test (SPT) to decide whether you should be taxed as a resident alien (taxed on worldwide income) or a nonresident alien (taxed only on US-sourced income).
The SPT is a mathematical formula based on the number of days you are physically present in the United States. To pass the test and be considered a resident alien, you must be physically present in the US for at least 31 days during the current year, and 183 days during the 3-year period that includes the current year and the two years immediately before that. The catch is how the days are counted: all days in the current year count as 1, days in the previous year count as 1/3, and days in the year before that count as 1/6.
Crucially, time spent on certain visas does not count toward the SPT. F, J, M, and Q visa holders are considered 'exempt individuals' for a specific number of years (typically 5 calendar years for F1 students). During this exempt period, your days in the US do not count toward the 183-day threshold, ensuring you remain a nonresident alien. Understanding your status is vital because it determines which tax forms you file (Form 1040 vs. 1040-NR) and what deductions you can claim.