Substantial Presence Test Calculator
Substantial Presence Test Calculator
Determine whether you qualify as a U.S. tax resident under the IRS Substantial Presence Test. This test uses a weighted formula counting days present in the U.S. over a three-year period to determine if you meet the 183-day threshold.
Tax Year
Days Present in the U.S.
Exemptions & Exceptions
Test Results
How the SPT Works
- Condition 1: You were physically present in the U.S. for at least 31 days during the current year.
- Condition 2: Your weighted day count over 3 years equals 183 days or more, calculated as: (Current year days x 1) + (Prior year days x 1/3) + (2 years prior days x 1/6) ≥ 183
- Result: If both conditions are met and no exception applies, you are a U.S. resident alien for tax purposes and must report worldwide income.
- Days that don’t count: Days as an exempt individual, days in transit between two foreign countries, days you were unable to leave due to a medical condition that arose in the U.S.
Exempt Individuals
- F, J, M, Q Students: Do not count days for up to 5 calendar years. After 5 years, days count toward the SPT.
- J, Q Teachers/Trainees: Do not count days for up to 2 of the last 6 calendar years.
- A, G Visa Diplomats: Do not count any days while in diplomatic status.
- Closer Connection (Form 8840): If present fewer than 183 days in the current year and you have a tax home in and a closer connection to a foreign country. Must file Form 8840 annually.
- Tax Treaty (Form 8833): Some treaties override the SPT result. Must file Form 8833 to claim treaty-based nonresident status.
Common Questions
This calculator provides a general assessment based on the IRS Substantial Presence Test rules. Individual circumstances, tax treaties, and exceptions may affect your actual tax residency status. This tool is for informational purposes only and does not constitute tax or legal advice. Consult a qualified tax professional for guidance specific to your situation.