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.
Live Expat FX Tool Zero Hidden Markup• 50+ Global Currencies
International Money Transfer & FX Rates — Transparent Cross-Border Wire Rates
Bypass retail bank markups when transferring USD, GBP, EUR, CAD, AUD, or INR. Check today's real mid-market exchange rate instantly before initiating a transfer.
Compare Live Rates Free live calculator • 0% spread
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.
The IRS Substantial Presence Test classifies foreign nationals as U.S. resident aliens for income tax purposes once they pass the 183-day weighted day-count calculation. Meeting the SPT subjects your worldwide income (foreign salaries, investments, overseas business profits) to full U.S. progressive taxation on Form 1040, as well as triggering foreign asset disclosure mandates including FinCEN 114 (FBAR) and Form 8938 (FATCA). Nonresidents who do not meet SPT only pay U.S. tax on U.S.-source income using Form 1040-NR.
Yes. If an individual qualifies as a tax resident of both the United States (under the domestic Substantial Presence Test) and another country under its domestic laws, the taxpayer can invoke the 'residency tie-breaker' rules under Article 4 of the relevant bilateral income tax treaty. To legally claim nonresident alien treatment under the treaty, the taxpayer must file Form 1040-NR and attach Form 8833 (Treaty-Based Return Position Disclosure under Section 6114 or 7701(b)).
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