Calculator scope: This tool calculates the domestic Substantial Presence Test under the general rules. It does not fully model tax-treaty residency tie-breakers, the closer-connection exception, the green-card test, first-year choice, dual-status years, or special J-1 teacher/trainee exceptions. Use the result as an SPT screening result, not a complete legal tax-residency determination.
Days & Visa Info
Awaiting Presence Details
Input your visa type and days present in the U.S. to determine your tax residency classification.
⭐ Recommended FX Partner Zero Bank Markup 50+ Currencies
Wise International Money Transfer — Transparent International Wire Transfers
Bypass expensive bank markup fees when transferring USD, GBP, EUR, CAD, or INR. Fast, secure cross-border payments.
Calculate Wise Rate Zero Hidden Currency Markup
Frequently Asked Questions (FAQ)
Under IRC § 7701(b)(3), you meet the Substantial Presence Test if you are physically present in the U.S. for at least 31 days during the current year, AND 183 days over a 3-year weighted period calculated as: 100% of current year days + 1/3 of 1st prior year days + 1/6 of 2nd prior year days.
The IRS treats qualifying students temporarily present under F, J, M, or Q status as exempt individuals, and qualifying teachers/trainees under J or Q status as exempt individuals. The number of calendar years that can be excluded depends on the category and the applicable limitation rules. Qualifying exempt individuals must generally file Form 8843.
For the student rule, a calendar year generally counts toward the five-calendar-year limitation if the student was an exempt individual for any part of that calendar year. J-1 teachers and trainees are subject to a different two-of-six-year limitation and certain exceptions, so their rule should not be reduced to a simple lifetime two-year counter in every case.
A person who satisfies the Substantial Presence Test is generally a resident alien for U.S. federal tax purposes unless an applicable exception or treaty rule changes the result. A nonresident alien generally uses Form 1040-NR when a return is required and is taxed under the nonresident rules, including applicable U.S.-source income and effectively connected income. A person can also have dual-status treatment or treaty residency issues that this calculator does not model.
Form 8843 documents days that are being excluded from the Substantial Presence Test because the individual qualifies as an exempt individual or under another qualifying exclusion. A qualifying F-1 student or J-1 teacher/trainee who excludes days generally must file Form 8843, even when no income tax return is otherwise required. Visa status alone should not be treated as the filing test.
A person who meets the Substantial Presence Test can sometimes remain a nonresident under the closer-connection exception if U.S. presence is fewer than 183 actual days in the current year, the person maintains a tax home in a foreign country, has a closer connection to that foreign country than to the United States, has not taken the prohibited steps toward lawful permanent residence, and timely files Form 8840.
Have questions about Substantial Presence Test day weighting, Form 8843, or Form 8840?
⬆️ Refer to FAQ Section Above Official IRS References
• IRS Substantial Presence Test Rules: irs.gov/substantial-presence-test
• IRS Publication 519 (U.S. Tax Guide for Aliens): irs.gov/p519